/* ==========================================================================
   Clenzy v2 — Apple-style Editorial Product Landing Page
   Pure white (#fff), Apple soft grey (#f5f5f7), pure black (#000) chapters,
   SF Pro typography, hairline borders, and modern web platform primitives.
   ========================================================================== */

:root {
  --white: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #ebebef;
  --black: #000000;
  --dark-card: #161617;
  --dark-card-2: #1d1d1f;

  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-muted: #6e6e73;
  --ink-faint: #86868b;

  --ink-dark: #f5f5f7;
  --ink-dark-muted: #a1a1a6;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-tint: rgba(0, 113, 227, .10);

  --green: #1d8f4e;
  --green-bright: #30d158;
  --amber: #c87600;
  --red: #d93025;

  --mode-accent: #5856d6;

  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --line-dark: rgba(255, 255, 255, .12);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  --max-w: 1120px;
  --pad: clamp(20px, 4vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

html[data-mode="indigo"]   { --mode-accent: #5856d6; }
html[data-mode="terminal"] { --mode-accent: #0fb882; }
html[data-mode="sunset"]   { --mode-accent: #ff6b4a; }
html[data-mode="neon"]     { --mode-accent: #a855f7; }
html[data-mode="graphite"] { --mode-accent: #5b6676; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--fill { fill: currentColor; stroke: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 300;
  translate: 0 -180%;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  transition: translate .2s var(--ease);
}
.skip-link:focus { translate: 0 0; }

.container {
  width: min(var(--max-w), 100% - var(--pad) * 2);
  margin-inline: auto;
}
.container--narrow {
  width: min(820px, 100% - var(--pad) * 2);
}

/* ==========================================================================
   Scroll progress bar (native scroll-driven timeline + compositor fallback)
   ========================================================================== */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes v2-grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress span {
      animation: v2-grow-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* ==========================================================================
   Apple-style Sticky Translucent Navbar (single semantic tree + popover)
   ========================================================================== */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid var(--line);
}
.site-header.is-measuring *,
.site-header.is-measuring *::before,
.site-header.is-measuring *::after {
  transition: none !important;
}
.header-inner {
  width: min(var(--max-w), 100% - var(--pad) * 2);
  margin-inline: auto;
  block-size: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 680; letter-spacing: -.028em;
  color: var(--ink);
}
.site-logo img {
  width: 32px; height: 32px; flex: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .14));
}

.site-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
}
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .03);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: background-color .18s ease;
}
.menu-button:hover { background: rgba(0, 0, 0, .06); }

/* Collapsed mobile popover menu */
.site-menu {
  position: fixed;
  inset: auto;
  /* Fallback offset for browsers without CSS Anchor Positioning */
  inset-block-start: 3.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(82dvw, 18rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5rem);
  margin-block-start: .5rem;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .18);
  overflow: auto;
}
.site-menu[popover]:not(:is(:popover-open, .\:popover-open)) {
  display: none;
}
.site-menu[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.site-menu a:hover { background: var(--soft); color: var(--ink); }
.site-menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Wide inline navigation */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a {
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 450;
  color: var(--ink-2);
  border-radius: 8px;
}
.site-header.is-wide .site-menu a:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--ink);
}
.site-header.is-wide .site-menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.header-cta { display: flex; align-items: center; }

/* ==========================================================================
   Apple Pill Buttons & Links
   ========================================================================== */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  padding: 11px 22px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.pill-btn--sm { font-size: 12.5px; padding: 6px 14px; font-weight: 550; }
.pill-btn--lg { font-size: 17px; padding: 13px 26px; }
.pill-btn--blue { background: var(--blue); color: #fff; }
.pill-btn--blue:hover { background: var(--blue-hover); }
.pill-btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.pill-btn--outline:hover { background: var(--blue); color: #fff; }
.pill-btn--dark-outline {
  background: transparent; color: var(--ink-dark);
  border-color: rgba(255, 255, 255, .28);
}
.pill-btn--dark-outline:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.pill-btn:disabled { opacity: .42; cursor: not-allowed; }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; padding: 4px 2px;
  font-size: 15px; font-weight: 500; color: var(--blue);
  transition: color .15s ease;
}
.text-link--lg { font-size: 17px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ic { width: 15px; height: 15px; }
.text-link .ic--play { width: 13px; height: 13px; }

/* ==========================================================================
   Scroll-driven entry reveals (native view() timeline + IO fallback)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes apple-rise {
      from {
        opacity: 0;
        transform: translateY(28px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .scroll-reveal {
      animation: apple-rise auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
  }
}

.js-io-reveal .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-io-reveal .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Chapter 1: Hero (Pure White Apple Canvas)
   ========================================================================== */
.hero {
  background: var(--white);
  padding-block: clamp(56px, 8vw, 108px) clamp(64px, 8vw, 100px);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink-muted);
  margin-block-end: 14px;
}
.hero-title {
  font-size: clamp(2.85rem, 7.2vw, 5.2rem);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.03;
  color: var(--ink);
  max-width: 14ch;
}
.hero-sub {
  margin-block-start: 20px;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 420;
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ink-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 26px;
  margin-block-start: 30px;
}
.hero-price-note {
  margin-block-start: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-stage {
  margin-block-start: clamp(36px, 5vw, 56px);
  width: min(980px, 100%);
}
.mac-window {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .10);
  background: var(--white);
  box-shadow:
    0 36px 90px -28px rgba(0, 0, 0, .20),
    0 12px 30px -14px rgba(0, 0, 0, .10);
}
.mac-window-btn {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  cursor: zoom-in;
}
.mac-window img { width: 100%; height: auto; }

.hero-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050507;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-controls {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(20, 20, 24, .74);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -.01em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: background-color .18s ease, transform .18s ease;
}
.hv-btn:hover { background: rgba(20, 20, 24, .92); }
.hv-btn--sound { padding: 9px 16px; }
.hv-btn--icon { width: 38px; height: 38px; padding: 0; }
.hv-btn .ic { width: 15px; height: 15px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(980px, 100%);
  margin-block-start: clamp(36px, 5vw, 56px);
  padding-block-start: 32px;
  border-block-start: 1px solid var(--line);
  text-align: left;
}
.metric { display: flex; flex-direction: column-reverse; gap: 4px; }
.metric dd {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric dd span { font-size: .58em; font-weight: 550; color: var(--ink-muted); }
.metric dt { font-size: 13px; color: var(--ink-muted); }

/* ==========================================================================
   Chapters + Editorial Typography
   ========================================================================== */
.chapter { padding-block: clamp(72px, 9vw, 128px); }
.chapter--white { background: var(--white); color: var(--ink); }
.chapter--soft  { background: var(--soft); color: var(--ink); }
.chapter--black { background: var(--black); color: var(--ink-dark); }

.chapter-head { margin-block-end: clamp(36px, 5vw, 56px); }
.chapter-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.chapter-head--split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 48px; align-items: end;
}
.kicker {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink-muted); margin-block-end: 10px;
}
.kicker--dark { color: var(--ink-dark-muted); }

.display-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 670;
  letter-spacing: -.04em;
  line-height: 1.06;
}
.display-title--grad {
  background: linear-gradient(120deg, #ffffff 10%, #a5c9ff 58%, #76e3a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted-ink { color: var(--ink-muted); }
.chapter-lead {
  margin-block-start: 16px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 54ch;
}
.chapter-head--split .chapter-lead { margin-block-start: 0; }
.chapter-lead--dark { color: var(--ink-dark-muted); }

/* ==========================================================================
   Chapter 2: Apple Highlights Carousel (native scroll snap + accessible controls)
   ========================================================================== */
.carousel {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
}
.carousel-controls {
  position: absolute;
  inset-block-start: 44%;
  inset-inline: clamp(12px, 3vw, 36px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.carousel-btn {
  pointer-events: auto;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .18);
  touch-action: manipulation;
  transition: background-color .18s ease, opacity .18s ease;
}
.carousel-btn:hover:not(:disabled) { background: #fff; }
.carousel-btn:disabled { opacity: .28; cursor: default; }
.carousel-btn .ic--prev { transform: rotate(180deg); }

.carousel-track {
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding-inline: max(var(--pad), calc((100% - 920px) / 2));
  padding-block: 8px 26px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}

.slide {
  flex: 0 0 min(88vw, 920px);
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.2vw, 38px) clamp(22px, 3.2vw, 38px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .14);
}
.slide--dark {
  background: #111113;
  color: var(--ink-dark);
  border-color: var(--line-dark);
}
.slide-copy { max-width: 56ch; }
.slide-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
  margin-block-end: 8px;
}
.slide--dark .slide-tag { color: var(--ink-dark-muted); }
.slide h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 650; letter-spacing: -.03em; line-height: 1.18;
}
.slide-media {
  position: relative;
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, .08);
  cursor: zoom-in;
}
.slide-media--video { cursor: pointer; }
.slide-media img { width: 100%; height: auto; }
.play-badge {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.play-badge .ic { width: 24px; height: 24px; margin-inline-start: 3px; }

.carousel-markers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-block-start: 6px;
}
.carousel-markers button {
  /* 28x28 hit area (WCAG 2.5.8 >=24px) with visible pill drawn via padding-box */
  width: 28px; height: 28px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  display: grid; place-items: center;
  touch-action: manipulation;
}
.carousel-markers button::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  transition: width .24s var(--ease), background-color .2s ease;
}
/* Active marker uses both width expansion + high contrast (never color alone) */
.carousel-markers button[aria-current="true"] { width: 42px; }
.carousel-markers button[aria-current="true"]::before {
  width: 26px;
  background: var(--ink);
}

/* ==========================================================================
   Chapter 3: Apple Bento Toolkit
   ========================================================================== */
.apple-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.bcard {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bcard--wide { grid-column: span 3; }
.bcard--dark {
  grid-column: span 3;
  background: #111114;
  color: var(--ink-dark);
  border-color: var(--line-dark);
}
.bcard--full { grid-column: span 6; background: var(--soft); }

.bcard-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  margin-block-end: 10px;
}
.bcard--dark .bcard-label { color: var(--ink-dark-muted); }
.bcard-label .ic { width: 15px; height: 15px; color: var(--blue); }
.bcard--dark .bcard-label .ic { color: #5ac8fa; }
.bcard-copy h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 660; letter-spacing: -.03em; line-height: 1.15;
  margin-block-end: 10px;
}
.bcard-copy p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.bcard--dark .bcard-copy p { color: var(--ink-dark-muted); }
.bcard-copy code {
  font-family: var(--mono); font-size: .86em;
  background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 5px;
}
.bcard--dark .bcard-copy code { background: rgba(255, 255, 255, .10); color: #fff; }

/* Apple-clean mini UI cards */
.ui-sheet, .ui-ask, .ui-receipt, .ui-meter {
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column; gap: 9px;
}
.ui-sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding-block-end: 10px; border-block-end: 1px solid var(--line);
}
.ui-app-badge {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #0071e3, #5856d6); color: #fff;
  font-weight: 700; font-size: 14px; flex: none;
}
.ui-sheet-head strong { display: block; font-size: 13.5px; font-weight: 600; }
.ui-sheet-head span { display: block; font-size: 11.5px; color: var(--ink-muted); }
.ui-pill {
  margin-inline-start: auto; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.ui-pill--amber { background: rgba(200, 118, 0, .12); color: var(--amber); }
.ui-pill--green { background: rgba(29, 143, 78, .12); color: var(--green); }

.ui-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink);
}
.ui-row em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.ui-row b { margin-inline-start: auto; font-family: var(--mono); font-size: 12px; font-weight: 550; color: var(--ink-2); }
.ui-row--locked { color: var(--ink-muted); }
.ui-row--locked b { color: var(--amber); }
.ui-chk {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; flex: none;
}
.ui-lock { display: grid; place-items: center; width: 16px; height: 16px; color: var(--amber); flex: none; }
.ui-lock .ic { width: 12px; height: 12px; }

.ui-terminal {
  border-radius: 16px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.term-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dark); }
.term-row b { margin-inline-start: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-dark-muted); font-weight: 500; }
.term-cmd {
  display: flex; align-items: center; justify-content: space-between;
  margin-block-start: 4px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.term-cmd code { font-family: var(--mono); font-size: 12px; color: var(--green-bright); }
.term-cmd span { font-size: 11px; font-weight: 600; color: #5ac8fa; }

.ui-ask-q {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 550; padding: 8px 10px; border-radius: 10px;
  background: var(--soft);
}
.ui-ask-q kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 2px 5px; border-radius: 5px; background: var(--white); border: 1px solid var(--line-strong);
}
.ui-ask-a { font-size: 12.5px; color: var(--ink-muted); line-height: 1.48; }
.ui-ask-a strong { color: var(--ink); font-weight: 600; }

.ui-rc-head { display: flex; align-items: center; justify-content: space-between; padding-block-end: 8px; border-block-end: 1px solid var(--line); }
.ui-rc-head strong { font-size: 13px; font-weight: 600; }
.ui-rc-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.ui-rc-row b { font-family: var(--mono); font-weight: 500; color: var(--ink-muted); }

.ui-meter-top, .ui-meter-foot { display: flex; justify-content: space-between; font-size: 12.5px; }
.ui-meter-top span, .ui-meter-foot { color: var(--ink-muted); font-size: 11.5px; }
.ui-meter-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--soft-2); }
.ui-meter-bar i { background: var(--blue); }
.ui-meter-bar b { background: #ff9f0a; }

/* Interactive Sunburst Card inside Bento */
.sunburst-split {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px 40px; align-items: center;
}
.sb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.sb-meta { font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sb-canvas-wrap {
  position: relative; width: min(320px, 100%); aspect-ratio: 1;
  margin-inline: auto;
}
.sb-svg, .sb-svg svg { width: 100%; height: 100%; }
.sb-svg .arc { cursor: pointer; transition: opacity .2s ease, transform .2s ease; transform-origin: 50px 50px; }
.sb-svg .arc.is-dim { opacity: .22; }
.sb-svg .arc.is-hot { opacity: 1; transform: scale(1.03); }
.sb-center {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24%;
}
.sb-center strong { font-size: 1.55rem; font-weight: 680; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sb-center span { font-size: 12px; color: var(--ink-muted); margin-block-start: 2px; }
.sb-cap { text-align: center; font-size: 12px; color: var(--ink-faint); margin-block-start: 10px; }

.sb-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 14px; }
.sb-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.sb-filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green-bright); }
.dot--amber { background: #ff9f0a; }
.dot--gray  { background: #8e8e93; }

.sb-list {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px; border: 1px solid var(--line);
  overflow: hidden;
}
.sb-row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; text-align: left;
  padding: 10px 14px; border: 0; border-block-end: 1px solid var(--line);
  background: transparent;
  transition: background-color .15s ease;
}
.sb-row:last-child { border-block-end: 0; }
.sb-row:hover, .sb-row.is-active { background: var(--soft); }
.sb-row.is-hidden { display: none; }
.sb-swatch { width: 9px; height: 9px; border-radius: 3px; }
.sb-row-name { display: block; font-size: 13.5px; font-weight: 580; color: var(--ink); }
.sb-row-reason { display: block; font-size: 11.5px; color: var(--ink-muted); line-height: 1.35; }
.sb-row-size { font-family: var(--mono); font-size: 12.5px; font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Chapter 4: Dark Safety & Privacy Chapter
   ========================================================================== */
.safety-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px; align-items: stretch;
}
.trash-playground, .rules-window {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: var(--dark-card);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column;
}
.tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-block-end: 18px; }
.tp-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dark-muted); }
.tp-count { font-family: var(--mono); font-size: 12.5px; color: var(--green-bright); }
.tp-items { display: flex; flex-direction: column; gap: 8px; margin-block-end: 20px; }
.tp-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tp-item span { font-size: 14px; font-weight: 600; color: var(--ink-dark); }
.tp-item em { grid-column: 1; font-style: normal; font-size: 12px; color: var(--ink-dark-muted); }
.tp-item b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--mono); font-size: 13px; color: var(--ink-dark); }
.tp-items.is-trashed .tp-item { opacity: .28; transform: translateX(18px) scale(.97); }
.tp-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: auto; }
.tp-status { margin-block-start: 14px; font-size: 13px; color: var(--ink-dark-muted); }

.rules-window { padding: 0; overflow: hidden; }
.rules-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-block-end: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
}
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.rules-file { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-dark); }
.rules-tag {
  margin-inline-start: auto; font-size: 11px; font-weight: 600;
  color: var(--green-bright); background: rgba(48, 209, 88, .12);
  padding: 3px 9px; border-radius: 999px;
}
.rules-code {
  margin: 0; padding: 20px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #d1d1d6;
  flex: 1;
}
.rules-code .ln { display: inline-block; width: 2em; color: #54545c; user-select: none; }
.rules-code .rk { color: #7cb7ff; }
.rules-code .rs { color: #8be9a7; }
.rules-foot {
  padding: 14px 18px; border-block-start: 1px solid var(--line-dark);
  font-size: 12px; color: var(--ink-dark-muted);
}
.rules-foot span { display: inline-flex; align-items: center; gap: 7px; }
.rules-foot .ic { width: 13px; height: 13px; color: #ff9f0a; }

.dark-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-block-start: 36px; padding-block-start: 36px;
  border-block-start: 1px solid var(--line-dark);
}
.pillar dt {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 650; color: var(--ink-dark); margin-block-end: 8px;
}
.pillar dt .ic { width: 16px; height: 16px; color: var(--green-bright); }
.pillar dd { font-size: 13.5px; line-height: 1.55; color: var(--ink-dark-muted); }
.pillar code { font-family: var(--mono); font-size: .9em; color: #fff; background: rgba(255, 255, 255, .1); padding: 1px 5px; border-radius: 4px; }

/* ==========================================================================
   Chapter 5: Persona Modes
   ========================================================================== */
.mode-switcher {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-block-end: 28px;
}
.mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white);
  font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.mode-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.mode-tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.mode-card-v2 {
  max-width: 860px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px 40px; align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .12);
}
.mode-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--mode-accent);
  background: color-mix(in oklab, var(--mode-accent) 12%, transparent);
  padding: 4px 10px; border-radius: 999px; margin-block-end: 12px;
}
.mode-card-left h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 670; letter-spacing: -.03em; }
.mode-card-left p { margin-block-start: 8px; font-size: 15px; color: var(--ink-muted); }
.mode-pill-cta {
  display: inline-block; margin-block-start: 20px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--mode-accent); color: #fff; font-size: 13.5px; font-weight: 600;
  transition: background-color .25s ease;
}
.mode-card-tips { display: flex; flex-direction: column; gap: 12px; }
.mode-card-tips li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.mode-card-tips li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mode-accent); margin-block-start: 8px; flex: none;
}

/* ==========================================================================
   Chapter 6: Comparison Table (responsive-table with @container stacked cards)
   ========================================================================== */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(680px, 82vh);
  container-type: inline-size;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .10);
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14.5px;
  --label-2: "Clenzy";
  --label-3: "CleanMyMac";
  --label-4: "DaisyDisk";
  --label-5: "macOS Storage";
}
.compare-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}
.compare-table thead th {
  padding: 18px 18px;
  font-size: 13px; font-weight: 650; color: var(--ink-muted);
  background: var(--soft);
  border-block-end: 1px solid var(--line-strong);
  white-space: nowrap;
}
.compare-table thead th.is-clenzy {
  color: var(--blue);
  background: #edf5ff;
}
.compare-table tbody th,
.compare-table tbody td {
  padding: 15px 18px;
  border-block-end: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-block-end: 0; }
.compare-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  min-width: 200px;
}
.compare-table tbody td { color: var(--ink-muted); white-space: nowrap; }
.compare-table tbody td.is-clenzy {
  color: var(--ink);
  background: rgba(0, 113, 227, .04);
}
.compare-table tbody td.is-clenzy span { color: var(--ink-muted); font-size: 13px; }
.compare-table .yes { color: var(--green); font-weight: 620; }

@container (width < 600px) {
  .table-wrapper {
    max-block-size: none;
    border: 0; box-shadow: none; background: transparent; overflow: visible;
  }
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    margin-block-end: 14px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    overflow: hidden;
  }
  .compare-table tbody th {
    position: sticky;
    inset-block-start: 0;
    inset-inline-start: auto;
    z-index: 2;
    min-width: 0;
    padding: 13px 16px;
    background: var(--soft);
    border-block-end: 1px solid var(--line);
  }
  .compare-table tbody td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    white-space: normal; padding: 11px 16px; font-size: 14px;
  }
  .compare-table tbody td::before { font-weight: 600; color: var(--ink-faint); font-size: 12.5px; flex: none; }
  .compare-table tbody td:nth-child(2)::before { content: var(--label-2) ": "; color: var(--blue); }
  .compare-table tbody td:nth-child(3)::before { content: var(--label-3) ": "; }
  .compare-table tbody td:nth-child(4)::before { content: var(--label-4) ": "; }
  .compare-table tbody td:nth-child(5)::before { content: var(--label-5) ": "; }
}

/* ==========================================================================
   Chapter 7: Apple Store Pricing
   ========================================================================== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; max-width: 920px; margin-inline: auto;
}
.tier-card {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.tier-card--pro {
  border-color: rgba(0, 113, 227, .35);
  box-shadow: 0 28px 70px -36px rgba(0, 113, 227, .26);
}
.tier-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tier-name { font-size: 14px; font-weight: 650; color: var(--ink-muted); }
.tier-badge {
  font-size: 11.5px; font-weight: 650; color: var(--blue);
  background: var(--blue-tint); padding: 4px 10px; border-radius: 999px;
}
.tier-price { display: flex; align-items: baseline; gap: 8px; margin-block: 10px; }
.tier-price strong { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tier-price del { font-size: 1.25rem; color: var(--ink-faint); }
.tier-price span { font-size: 14px; color: var(--ink-muted); }
.tier-head p { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }
.tier-features { display: flex; flex-direction: column; gap: 11px; margin-block-end: auto; }
.tier-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.tier-features .ic { width: 16px; height: 16px; color: var(--green); stroke-width: 2.3; margin-block-start: 2px; }
.tier-cta { width: 100%; }
.tier-meta { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-block-start: -10px; }

/* ==========================================================================
   Chapter 8: FAQ Accordion (details::details-content + expand/collapse all)
   ========================================================================== */
.faq-bar { margin-block-start: 14px; }
[command="--toggle-all"][aria-expanded="true"] .expand,
[command="--toggle-all"][aria-expanded="false"] .collapse { display: none; }

.faq-list { border-block-start: 1px solid var(--line-strong); }
.faq-item { border-block-end: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 22px;
  cursor: pointer; list-style: none;
  font-size: clamp(1rem, 1.4vw, 1.12rem); font-weight: 600; letter-spacing: -.015em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  background: var(--ink-muted); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), background-color .2s ease;
}
.faq-plus::before { width: 14px; height: 1.6px; }
.faq-plus::after { width: 1.6px; height: 14px; }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::before { background: var(--blue); }

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-item:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: .3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}
.faq-body > p {
  padding-block-end: 22px;
  font-size: 15px; line-height: 1.65; color: var(--ink-muted); max-width: 66ch;
}
.faq-body code {
  font-family: var(--mono); font-size: .88em; color: var(--ink);
  background: var(--soft); padding: 2px 6px; border-radius: 5px;
}

/* ==========================================================================
   Finale + Apple Footer
   ========================================================================== */
.finale-v2-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.finale-icon {
  margin-block-end: 20px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .20));
}

.site-footer {
  background: var(--soft);
  border-block-start: 1px solid var(--line);
  padding-block: 44px 36px;
  font-size: 12.5px; color: var(--ink-muted);
}
.footnotes {
  list-style: decimal; padding-inline-start: 18px;
  display: flex; flex-direction: column; gap: 8px;
  padding-block-end: 28px; border-block-end: 1px solid var(--line);
  line-height: 1.55; color: var(--ink-faint);
}
.footnotes code { font-family: var(--mono); font-size: .95em; }

.footer-cols {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px; padding-block: 32px; border-block-end: 1px solid var(--line);
}
.footer-brand .site-logo img { width: 28px; height: 28px; }
.footer-brand p { margin-block-start: 10px; max-width: 28ch; line-height: 1.5; }
.footer-cols h4 { font-size: 12px; font-weight: 650; color: var(--ink); margin-block-end: 10px; }
.footer-cols a { display: block; padding-block: 4px; color: var(--ink-muted); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-block-start: 20px; color: var(--ink-faint);
}

/* ==========================================================================
   Native <dialog> Top-Layer Modals (closedby="any", overscroll-behavior)
   ========================================================================== */
dialog.dlg:modal {
  overscroll-behavior: contain;
}
dialog.dlg {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: visible;
  max-width: min(1040px, calc(100dvw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: .26s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
@media (prefers-reduced-motion: no-preference) {
  dialog.dlg { transform: scale(.96); }
}
dialog.dlg--shot { max-width: min(1280px, calc(100dvw - 32px)); }
dialog.dlg--buy  { width: min(540px, calc(100dvw - 32px)); }

dialog.dlg::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: .26s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

:is(dialog.dlg[open]):where(:not([data-closing])) {
  opacity: 1;

  @starting-style { opacity: 0; }

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(1);
    @starting-style { transform: scale(.96); }
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, .58);
    backdrop-filter: blur(12px);
    @starting-style {
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.dlg, dialog.dlg::backdrop { transition-duration: .1s; }
}

.dlg-panel { position: relative; width: 100%; border-radius: 22px; }
.dlg-panel--video { background: #000; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.dlg-panel--video video { width: 100%; height: auto; max-height: 76dvh; background: #000; }
.dlg-cap { padding: 12px 16px; font-size: 13px; color: var(--ink-dark-muted); text-align: center; background: #111; }

.dlg-panel--shot img {
  width: 100%; height: auto; max-height: 86dvh; object-fit: contain;
  border-radius: 16px; box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}

.dlg-panel--buy {
  background: var(--white);
  padding: clamp(24px, 3.6vw, 34px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .28);
}
.buy-head { display: flex; align-items: center; gap: 14px; margin-block-end: 20px; padding-inline-end: 36px; }
.buy-head img {
  width: 46px; height: 46px; flex: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .16));
}
.buy-head h2 { font-size: 1.3rem; font-weight: 670; letter-spacing: -.025em; }
.buy-head p { font-size: 13.5px; color: var(--ink-muted); margin-block-start: 2px; }
.buy-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-muted); margin-block-end: 8px; }
.field-row { display: flex; gap: 8px; }
.field-row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--soft);
  font-size: 15px; color: var(--ink);
}
.field-row input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-tint); }
.form-note { margin-block-start: 10px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }
.form-note.is-error { color: var(--red); }
.form-success {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: rgba(29, 143, 78, .08); border: 1px solid rgba(29, 143, 78, .25);
}
.buy-form.is-hidden,
.form-success.is-hidden { display: none; }
.success-check {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(29, 143, 78, .14); color: var(--green); flex: none;
}
.form-success strong { display: block; font-size: 14px; }
.form-success span { display: block; font-size: 13px; color: var(--ink-muted); }
.buy-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.buy-meta span { display: inline-flex; align-items: center; gap: 5px; }
.buy-meta .ic { width: 13px; height: 13px; color: var(--green); }

.dlg-close {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .55); color: #fff;
  transition: background-color .15s ease;
}
.dlg-close:hover { background: rgba(0, 0, 0, .78); }
.dlg-close--light { background: var(--soft); color: var(--ink-2); }
.dlg-close--light:hover { background: var(--soft-2); }

.toast {
  position: fixed; inset-inline-start: 50%; inset-block-end: 24px; z-index: 200;
  translate: -50% 24px; opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, translate .3s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .chapter-head--split { grid-template-columns: 1fr; }
  .apple-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard, .bcard--wide, .bcard--dark, .bcard--full { grid-column: span 2; }
  .sunburst-split, .safety-stage, .mode-card-v2 { grid-template-columns: 1fr; }
  .dark-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dark-pillars { grid-template-columns: 1fr; }
  .carousel-controls { display: none; }
  .field-row { flex-direction: column; }
  .field-row .pill-btn { width: 100%; }
}


/* ==========================================================================
   FLAGSHIP LUXURY POLISH — Studio Atmosphere, Tactile Depth & Pro Storefront
   ========================================================================== */

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Elevated sticky glass header */
.site-header {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px -18px rgba(0, 0, 0, .14);
}
.pill-btn--soft {
  background: rgba(0, 0, 0, .055);
  color: var(--ink);
  border-color: rgba(0, 0, 0, .07);
}
.pill-btn--soft:hover {
  background: rgba(0, 0, 0, .095);
}
.pill-btn--glow {
  background: linear-gradient(180deg, #0a84ff 0%, #0066d6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .28) inset,
    0 12px 30px -10px rgba(0, 113, 227, .55),
    0 2px 6px rgba(0, 113, 227, .24);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s ease;
}
.pill-btn--glow:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .34) inset,
    0 18px 38px -10px rgba(0, 113, 227, .62),
    0 4px 10px rgba(0, 113, 227, .28);
}
.pill-btn--glow:active { transform: translateY(0); }

/* Hero Studio Atmosphere */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 42%, #ffffff 100%);
}
.hero-ambient {
  position: absolute;
  inset-block-start: -160px;
  inset-inline: 0;
  width: 100%;
  height: 540px;
  background:
    radial-gradient(ellipse 52% 65% at 50% 30%, rgba(0, 113, 227, .12), transparent 72%),
    radial-gradient(ellipse 40% 50% at 24% 40%, rgba(88, 86, 214, .08), transparent 70%),
    radial-gradient(ellipse 38% 50% at 76% 38%, rgba(48, 209, 88, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  margin-block-end: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(0, 0, 0, .09);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .14), 0 1px 0 rgba(255, 255, 255, .9) inset;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.hero-pill strong { color: var(--blue); font-weight: 660; }
.hero-pill del { color: var(--ink-faint); font-weight: 450; margin-inline-start: 3px; }
.pill-sep { opacity: .35; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .22);
}

.hero-title {
  background: linear-gradient(180deg, #0d0d10 12%, #3a3a44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cinema Hero Stage with Ambient Studio Underglow */
.hero-stage {
  position: relative;
  width: min(1020px, 100%);
}
.hero-stage-glow {
  position: absolute;
  inset: 14% 6% -10%;
  border-radius: 40px;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 113, 227, .22), rgba(88, 86, 214, .12) 48%, transparent 74%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
}
.hero-video-wrap {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, .14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .22) inset,
    0 46px 110px -26px rgba(10, 18, 36, .34),
    0 14px 36px -14px rgba(0, 0, 0, .16);
  cursor: pointer;
}
.hero-video-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: rgba(255, 255, 255, .16);
  z-index: 2;
  pointer-events: none;
}
.hero-video-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0a84ff, #38bdf8);
}

/* Hardware Guarantee Trust Strip */
.trust-strip {
  width: min(1020px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-block-start: 28px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 540;
  color: var(--ink-2);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-strip .ic {
  width: 15px; height: 15px;
  color: var(--blue);
}

/* Carousel Footer with Counter */
.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block-start: 6px;
}
.carousel-footer .carousel-markers { margin-block-start: 0; }
.carousel-counter {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  font-variant-numeric: tabular-nums;
}
.slide {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 28px 70px -36px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

/* Tactile Bento Elevation + Cursor Spotlight on Dark Cards */
.bcard {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 18px 40px -30px rgba(0, 0, 0, .12);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s ease;
}
.bcard:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .13);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 26px 60px -30px rgba(0, 0, 0, .16);
}
.bcard--dark {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 30px 70px -28px rgba(0, 0, 0, .55);
}
.bcard--dark:hover {
  border-color: rgba(255, 255, 255, .20);
}

/* Cursor-reactive luxury spotlight for dark studio surfaces */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 0%;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(88, 166, 255, .14), transparent 64%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card > * { position: relative; z-index: 1; }

/* Interactive App Uninstaller Rows & Copyable CLI Command */
.ui-row--toggle,
.ui-row--locked {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  margin-inline: -8px;
  border-radius: 9px;
  text-align: left;
  transition: background-color .15s ease;
}
.ui-row--toggle:hover { background: var(--soft); }
.ui-row--toggle:not(.is-checked) .ui-chk {
  background: transparent;
  color: transparent;
  border: 1.5px solid var(--line-strong);
}
.ui-row--toggle:not(.is-checked) span:nth-child(2),
.ui-row--toggle:not(.is-checked) b {
  opacity: .45;
  text-decoration: line-through;
}
.ui-row--locked:hover { background: rgba(200, 118, 0, .06); }

button.term-cmd {
  width: 100%;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease;
}
button.term-cmd:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(90, 200, 250, .45);
}
button.term-cmd.is-copied .term-copy-lbl { color: var(--green-bright); }

/* Persona Mode Accent Glow */
.mode-card-v2 {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in oklab, var(--mode-accent) 24%, var(--line));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 32px 80px -38px color-mix(in oklab, var(--mode-accent) 42%, rgba(0, 0, 0, .14));
  transition: border-color .3s ease, box-shadow .3s ease;
}

/* Verified Engineering Spec Proof Ribbon above Pricing */
.spec-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-muted);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .14);
}
.spec-proof strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Flagship Apple Pro Obsidian Pricing Card (Air vs Pro contrast!) */
.tier-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 24px 60px -34px rgba(0, 0, 0, .12);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.tier-card:hover { transform: translateY(-3px); }

.tier-card--pro {
  background:
    radial-gradient(circle at 86% 6%, rgba(10, 132, 255, .24), transparent 44%),
    radial-gradient(circle at 14% 96%, rgba(48, 209, 88, .14), transparent 44%),
    linear-gradient(180deg, #15161c 0%, #0b0c10 100%);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 40px 90px -28px rgba(0, 35, 95, .42),
    0 12px 30px -12px rgba(0, 0, 0, .26);
}
.tier-card--pro .tier-name { color: #a1a1a6; }
.tier-card--pro .tier-badge {
  background: rgba(10, 132, 255, .22);
  color: #7cc4ff;
  border: 1px solid rgba(124, 196, 255, .28);
}
.tier-card--pro .tier-price strong { color: #ffffff; }
.tier-card--pro .tier-price del { color: #6e6e73; }
.tier-card--pro .tier-price span { color: #a1a1a6; }
.tier-card--pro .tier-head p { color: #a1a1a6; }
.tier-card--pro .tier-features li { color: #e5e5ea; }
.tier-card--pro .tier-features strong { color: #ffffff; }
.tier-card--pro .tier-features .ic { color: var(--green-bright); }

.tier-savings {
  margin-block-start: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(48, 209, 88, .11);
  border: 1px solid rgba(48, 209, 88, .24);
  font-size: 12.5px;
  font-weight: 560;
  color: #7ee89c;
}
.tier-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-block-start: -8px;
  font-size: 12px;
  color: #8e8e93;
}
.tier-trust span { display: inline-flex; align-items: center; gap: 5px; }
.tier-trust .ic { width: 13px; height: 13px; color: var(--green-bright); }

/* Upgraded Buy Modal — Segmented Tabs + 3-Step Confidence Strip */
.buy-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  margin-block-end: 16px;
}
.buy-tab {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.buy-tab del { font-weight: 450; opacity: .55; margin-inline-start: 2px; }
.buy-tab.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.buy-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-end: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.buy-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.buy-steps b {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  font-size: 11px; font-weight: 700; flex: none;
}
.buy-steps code {
  font-family: var(--mono); font-size: .9em;
  background: var(--white); padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line);
}

/* Floating Apple Store Quick-Buy Bar */
.sticky-buy {
  position: fixed;
  inset-inline-start: 50%;
  inset-block-end: 20px;
  z-index: 90;
  translate: -50% 130%;
  opacity: 0;
  pointer-events: none;
  width: min(560px, calc(100vw - 24px));
  transition: translate .35s var(--ease), opacity .28s ease;
}
.sticky-buy.is-shown {
  translate: -50% 0;
  opacity: 1;
  pointer-events: auto;
}
.sticky-buy-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.sticky-buy-inner img {
  width: 28px; height: 28px; flex: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .14));
}
.sticky-buy-copy { min-width: 0; }
.sticky-buy-copy strong { display: block; font-size: 13.5px; font-weight: 660; line-height: 1.15; }
.sticky-buy-copy span { display: block; font-size: 11.5px; color: var(--ink-muted); }
.sticky-buy-copy del { opacity: .6; }
.sticky-buy-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.sticky-buy-actions .text-link { font-size: 13px; }

@media (max-width: 640px) {
  .spec-proof { border-radius: 18px; }
  .sticky-buy-copy span { display: none; }
  .sticky-buy-actions .text-link { display: none; }
}
