/* Landing page styles, moved out of inline <style> blocks in app/views/home so browsers can
   cache them across visits. Order = the order the partials render (cascade order matters).
   Linked after the app stylesheets via content_for :page_stylesheets (home/_hero). */

/* === shared tokens (awesome-design-md/apple): every landing section reads these, none redefines them ===
   One accent (Action Blue), one ink, one parchment, one dark tile. Sky Link Blue is for dark tiles only. */
:root {
  --apple-canvas: #f5f5f7;
  --apple-ink: #1d1d1f;
  --apple-ink-80: #333336;
  --apple-ink-48: #6e6e73;
  --apple-hairline: #d2d2d7;
  --apple-blue: #0066cc;
  --apple-focus: #0071e3;
  --apple-blue-on-dark: #2997ff;
  --apple-dark: #000;
  --apple-dark-muted: #a1a1a6;
  --apple-font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

/* === hero === a film with the copy on it (hero_stage_controller) ===
   The render is white above the action, so the copy sits on the film and cropping only ever loses white:
   - landscape: the film fills the stage (cover, anchored at the floor); copy top-left, readouts right;
   - portrait: copy first, then the tall film tucked up behind it (its white top under the copy), readouts
     in a 2x2 grid under the walker. Readouts: frosted cards, hairline, no shadow; Action Blue marks live. */
.landing-hero { background: #fff; color: var(--apple-ink); font-family: var(--apple-font); overflow: clip; }
.landing-hero-stage { position: relative; }
.landing-hero-film img, .landing-hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.landing-hero-film video { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
/* Two videos take turns (hero_stage_controller): only the front one shows; once playing the poster hides, so
   a hand-off between walks shows two white frames, never the poster. */
.landing-hero-stage.is-playing .landing-hero-film video.is-front { opacity: 1; transition: none; }
.landing-hero-stage.is-playing .landing-hero-film img { opacity: 0; transition: opacity 400ms ease 300ms; }

.landing-hero-caption {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--apple-ink-48);
}
.landing-hero-caption i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #30d158; animation: hero-live 2.4s ease-out infinite; }
.landing-hero h1 { margin-top: 1rem; font-size: clamp(2.6rem, 5.6vw, 5.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.landing-hero h1 .hero-nowrap { display: inline-block; animation: hero-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 160ms; }
.landing-hero h1 .hero-br + .hero-nowrap { animation-delay: 300ms; }
.landing-hero h1 .hero-nowrap:last-child { animation-delay: 380ms; }
.landing-hero-lede { max-width: 34rem; margin-top: 1.25rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--apple-ink-80); }
.landing-hero-in { animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--in, 0) * 110ms + 120ms); }
.landing-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.landing-hero-actions [data-testid^='store-badges'] { justify-content: flex-start; }
.landing-hero-pill { display: flex; }

/* readouts */
.landing-hero-readouts { display: grid; gap: 0.75rem; z-index: 2; }
.landing-readout {
  display: grid; gap: 0.35rem; padding: 0.9rem 1rem 0.95rem; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, 0.74); border: 1px solid rgba(0, 0, 0, 0.07);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  animation: hero-chip-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(1.1s + var(--i, 0) * 120ms);
}
.landing-readout.is-cadence { --i: 1; } .landing-readout.is-step-length { --i: 2; } .landing-readout.is-balance { --i: 3; }
.landing-readout-label { font-size: 0.8rem; font-weight: 600; letter-spacing: -0.01em; color: var(--apple-ink-48); }
.landing-readout-value { display: flex; align-items: baseline; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.landing-readout-value b { font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--apple-hairline); transition: color 300ms ease; }
.landing-readout-value small { font-size: 0.85rem; color: var(--apple-ink-48); }
.landing-readout.is-live .landing-readout-value b { color: var(--apple-ink-48); }
.landing-readout.is-settled .landing-readout-value b { color: var(--apple-ink); }
.landing-readout-ticks { display: grid; grid-template-columns: repeat(var(--ticks, 14), 1fr); gap: 3px; margin-top: 0.15rem; }
.landing-readout-ticks i { height: 4px; border-radius: 2px; background: var(--apple-canvas); transition: background-color 250ms ease; }
.landing-readout-ticks i.is-on { background: var(--apple-blue); }
.landing-readout.is-step .landing-readout-ticks i.is-on:last-of-type, .landing-readout.is-step .landing-readout-ticks i.is-on:has(+ i:not(.is-on)) { animation: hero-tick-flash 0.5s ease-out; }
.landing-readout-split { display: flex; height: 6px; margin-top: 0.15rem; border-radius: 3px; overflow: hidden; background: var(--apple-canvas); }
.landing-readout-split i { transition: width 400ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 200ms ease; opacity: 0.35; }
.landing-readout-split i[data-side='L'] { width: var(--left, 50%); background: #ff7d70; }
.landing-readout-split i[data-side='R'] { flex: 1; background: #45b3ff; margin-left: 2px; }
.landing-readout.is-live .landing-readout-split i { opacity: 0.85; }
.landing-readout[data-side='L'] .landing-readout-split i[data-side='L'], .landing-readout[data-side='R'] .landing-readout-split i[data-side='R'] { opacity: 1; }
.landing-hero-sample { font-size: 0.78rem; color: var(--apple-ink-48); font-variant-numeric: tabular-nums; animation: hero-chip-in 0.9s ease 1.7s both; }

.landing-hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; padding: 1.25rem 1rem 2.5rem;
  font-size: 0.875rem; line-height: 1.4; color: var(--apple-ink-48);
}
.landing-hero-proof span { display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-hero-proof svg { width: 14px; height: 14px; flex-shrink: 0; }
:lang(ko) .landing-hero h1 { letter-spacing: -0.03em; word-break: keep-all; }
:lang(ko) .landing-hero-lede { line-height: 1.6; word-break: keep-all; }

/* landscape: the film fills the stage; copy top-left, readouts in a column on the right */
@media (min-aspect-ratio: 1/1) {
  .landing-hero-stage { height: clamp(640px, 100svh, 1100px); }
  .landing-hero h1 { font-size: clamp(2.6rem, 4.4vw, 4.75rem); }
  .landing-hero-film { position: absolute; inset: 0; }
  .landing-hero-intro {
    position: relative; z-index: 2; max-width: min(40rem, 46vw);
    padding: clamp(6.5rem, 14vh, 9rem) 0 0 clamp(1.5rem, 6vw, 7rem);
  }
  .landing-hero-readouts {
    position: absolute; right: clamp(1.25rem, 4vw, 5rem); bottom: clamp(2rem, 9vh, 6rem); width: clamp(13rem, 17vw, 16.5rem);
    transition: opacity 450ms ease, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  /* The film's close-up draws knee angle, hip rotation and step length on the legs: the column steps aside. */
  .landing-hero-stage.is-closeup .landing-hero-readouts { opacity: 0; transform: translateX(24px); pointer-events: none; }
}
/* portrait: copy, then the film under it (its white top tucked behind the copy), then the readouts */
@media (max-aspect-ratio: 1/1) {
  .landing-hero-stage { display: flex; flex-direction: column; }
  .landing-hero-intro { order: 0; position: relative; z-index: 2; padding: clamp(6.5rem, 16vw, 8.5rem) 1.25rem 0; text-align: center; }
  .landing-hero-film { order: 1; }
  .landing-hero-readouts { order: 2; }
  .landing-hero-lede { margin-left: auto; margin-right: auto; }
  .landing-hero-actions { justify-content: center; }
  .landing-hero-actions [data-testid^='store-badges'] { justify-content: center; }
  .landing-hero-film { position: relative; z-index: 1; aspect-ratio: 9 / 16; margin-top: -24vw; max-height: 120vh; }
  .landing-hero-readouts { position: relative; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: -2rem 1rem 0; }
  .landing-hero-sample { grid-column: 1 / -1; text-align: center; }
  .landing-readout { padding: 0.75rem 0.85rem 0.8rem; }
}
@media (max-width: 424px) {
  .landing-hero h1 { font-size: 2.55rem; line-height: 1.08; }
  .landing-hero-proof { gap: 0.5rem 1.1rem; font-size: 0.8rem; }
}
@media (min-width: 640px) {
  .hero-nowrap { white-space: nowrap; display: inline-block; }
  .hero-br { display: block; }
}

@keyframes hero-rise { from { opacity: 0; transform: translateY(0.45em); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hero-chip-in { from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hero-live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } }
@keyframes hero-tick-flash { from { box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.35); } to { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); } }
@media (prefers-reduced-motion: reduce) {
  .landing-hero *, .landing-hero-stage { animation: none !important; transition: none !important; }
}

/* === features shell === */
[data-testid='landing-features-side-indicator'] {
  display: flex;
}

[data-testid='landing-features-analysis-layout'] {
  display: grid;
}

[data-testid='landing-features-analysis-card-shell'] {
  width: min(100%, 44rem, calc(62vh + 1rem));
  margin-inline: auto;
}

@media (min-width: 426px) and (max-width: 1024px) and (orientation: portrait) {
  [data-testid='landing-features-analysis-layout'] {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
  }

  [data-testid='landing-features-analysis-layout'] > :first-child {
    order: 1;
  }

  [data-testid='landing-features-analysis-layout'] > :last-child {
    order: 2;
  }

  [data-testid='landing-features-analysis-card-shell'] {
    width: min(100%, 34rem, calc(47vh + 1rem));
  }
}

@media (min-width: 426px) and (max-width: 1024px) and (orientation: landscape) {
  [data-testid='landing-features-analysis-layout'] {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 1.85rem;
    align-items: center;
  }

  [data-testid='landing-features-analysis-layout'] > :first-child {
    order: 1;
  }

  [data-testid='landing-features-analysis-layout'] > :last-child {
    order: 2;
  }

  [data-testid='landing-features-analysis-card-shell'] {
    width: min(100%, 40rem, calc(58vh + 1rem));
    margin-inline: 0;
  }
}

@media (max-width: 425px) {
  [data-testid='landing-features-side-indicator'] {
    display: none;
  }
}

/* === upload panel: base === */
[data-testid='landing-features-upload-panel'] {
  background: transparent;
}

[data-testid='landing-features-upload-panel'] .upload-video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
}

[data-testid='landing-features-upload-panel'] .upload-video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* Frame-sequence scrubber for phones / low-power devices (FrameSequencePlayer draws on a canvas
   inside it). Hidden by default; the controller picks the mode and sets display inline. The
   background is frame 0, so the stage is never blank while the first frames download. */
[data-testid='landing-features-upload-panel'] .upload-frame-scrubber {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  border-radius: inherit;
  background: #eef0f1 url(/videos/upload-frames/wide/f000.webp) center / cover no-repeat;
}

@media (orientation: portrait) {
  [data-testid='landing-features-upload-panel'] .upload-frame-scrubber {
    background-image: url(/videos/upload-frames/tall/f000.webp);
  }
}

@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  [data-testid='landing-features-upload-panel'] .upload-video-stage video {
    display: none;
  }
  [data-testid='landing-features-upload-panel'] .upload-frame-scrubber {
    display: block;
  }
}

/* Vignette removed — copy now fades in over a clean white panel */
[data-testid='landing-features-upload-panel'] .upload-video-vignette {
  display: none;
}

[data-testid='landing-features-upload-panel'] .upload-copy-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 4rem);
  pointer-events: none;
  isolation: isolate;
}

/* White panel fades in behind the copy — same approach as mobile */
[data-testid='landing-features-upload-panel'] .upload-copy-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy-stage::before {
  opacity: 1;
}

[data-testid='landing-features-upload-panel'] .upload-copy {
  width: min(28rem, 88%);
  color: rgba(15, 23, 42, 0.92);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: none;
  text-align: center;
  position: relative;
  z-index: 1;
}

[data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy {
  opacity: 1;
  transform: translateY(0);
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 0.55rem;
  color: #4338ca;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-badge svg {
  width: 1.1rem;
  height: 1.1rem;
}

[data-testid='landing-features-upload-panel'] .upload-copy h3 {
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  color: #0f172a;
}

[data-testid='landing-features-upload-panel'] .upload-copy h3 .landing-features-upload-title-line {
  display: inline-block;
  white-space: nowrap;
}

/* Soften muted line from locale (it ships .text-slate-400) */
[data-testid='landing-features-upload-panel'] .upload-copy h3 .text-slate-400 {
  color: rgba(15, 23, 42, 0.45) !important;
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.76);
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-bullets {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.65rem;
  color: rgba(15, 23, 42, 0.86);
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  line-height: 1.35;
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
}

[data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon svg {
  width: 0.62rem;
  height: 0.62rem;
}

/* === upload panel: hi-res screens === */
@media (min-width: 1920px) {
  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(52rem, 70vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    font-size: clamp(0.78rem, 0.6vw, 1.5rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    font-size: clamp(3.75rem, 4.4vw, 8rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    font-size: clamp(1.125rem, 1.3vw, 3rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
    font-size: clamp(1rem, 1.05vw, 2rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon svg {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* 4K scaling — uncap vw for native 4K displays */
@media (min-width: 3200px) {
  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(80rem, 65vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    font-size: clamp(1.5rem, 0.6vw, 2.25rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    font-size: clamp(8rem, 4.4vw, 16rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    font-size: clamp(3rem, 1.3vw, 6rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
    font-size: clamp(2rem, 1.05vw, 4rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* === upload panel: desktop === */
/* Desktop / wide viewports — copy lives on the left side of the frame in
   dark tones, and the animated dark vignette is fully disabled. */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1280px) {
  [data-testid='landing-features-upload-panel'] .upload-video-vignette {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
    transition: none;
  }

  [data-testid='landing-features-upload-panel'][data-overlay-active='true'] .upload-video-vignette {
    display: none !important;
    opacity: 0 !important;
  }

  /* No white overlay at desktop — copy sits on the natural light video area */
  [data-testid='landing-features-upload-panel'] .upload-copy-stage::before {
    display: none;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy-stage {
    justify-content: flex-start;
    align-items: center;
    padding: clamp(2rem, 4vw, 4.5rem);
    /* Left padding keeps the copy in the clean off-white video area before
       the darker action shifts toward the right side of the frame. */
    padding-left: clamp(2rem, 5vw, 6rem);
    padding-right: max(clamp(2rem, 4vw, 4rem), 58vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(28rem, 34vw);
    text-align: left;
    color: #0f172a;
    text-shadow: none;
    transform: translateX(-24px);
  }

  [data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy {
    transform: translateX(0);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    flex-direction: row;
    color: #1f2937;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    color: #0a0a0a;
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 .text-slate-400 {
    color: rgba(15, 23, 42, 0.45) !important;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    color: rgba(15, 23, 42, 0.7);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullets {
    align-items: flex-start;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
    flex-direction: row;
    color: rgba(15, 23, 42, 0.82);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.25);
    color: #0f172a;
  }
}

@media (min-width: 1600px) and (orientation: landscape) {
  [data-testid='landing-features-upload-panel'] .upload-copy-stage {
    padding: clamp(2.25rem, 4vw, 5rem);
    padding-left: clamp(2.5rem, 5vw, 7rem);
    padding-right: max(clamp(2.25rem, 4vw, 5rem), 59vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(34rem, 32vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    font-size: clamp(2.6rem, 3vw, 4rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  }
}

@media (min-width: 2000px) and (orientation: landscape) {
  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(40rem, 32vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    font-size: clamp(3rem, 3vw, 4.5rem);
  }
}

/* 4K — uncap all text tokens so vw drives proportional growth */
@media (min-width: 3200px) {
  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(52rem, 32vw);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    font-size: clamp(3rem, 3.3vw, 8rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    font-size: clamp(1rem, 0.98vw, 3rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
    font-size: clamp(0.9rem, 0.82vw, 2.5rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Portrait / narrow viewports — copy sits at the bottom over the video with

/* === upload panel: narrow === */
   the original dark vignette, but push the copy to the right edge with
   enough breathing room from the viewport. */
@media (orientation: portrait) and (min-width: 433px) and (max-width: 1024px),
       (min-width: 769px) and (max-width: 1023px) {
  [data-testid='landing-features-upload-panel'] .upload-copy-stage {
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1.75rem, 5vw, 3.5rem) clamp(2rem, 7vw, 3rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy-stage::before {
    content: "";
  }

  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: min(28rem, 86vw);
    text-align: center;
    transform: translateY(12px);
    color: rgba(15, 23, 42, 0.92);
    text-shadow: none;
  }

  [data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy {
    transform: translateY(0);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    flex-direction: row;
    color: #4338ca;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    color: #0f172a;
    font-size: clamp(1.8rem, 5vw, 2.9rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 .text-slate-400 {
    color: rgba(15, 23, 42, 0.45) !important;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    color: rgba(15, 23, 42, 0.76);
    font-size: clamp(0.9rem, 2.4vw, 1rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullets {
    align-items: center;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet {
    flex-direction: row;
    color: rgba(15, 23, 42, 0.86);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4338ca;
  }
}

/* Very narrow / very tall viewports — shrink the video stage vertically so
   less is cropped from the sides and the reference vertical seam stays
   within the frame with breathing room from the edge. */
@media (max-aspect-ratio: 3/5) and (max-width: 768px) {
  [data-testid='landing-features-upload-panel'] .upload-video-stage {
    top: clamp(1.25rem, 9vh, 7rem);
    bottom: clamp(1.25rem, 9vh, 7rem);
  }
}

@media (max-aspect-ratio: 1/2) and (max-width: 600px) {
  [data-testid='landing-features-upload-panel'] .upload-video-stage {
    top: clamp(2rem, 15vh, 9rem);
    bottom: clamp(2rem, 15vh, 9rem);
  }
}

/* Small mobile portrait: the copy takes over the section with a solid white
   panel instead of sharing space with the video. */
@media (max-width: 432px) {
  [data-testid='landing-features-upload-panel'] .upload-video-vignette {
    display: none;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy-stage {
    isolation: isolate;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #fff;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0;
    transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy {
    position: relative;
    isolation: isolate;
    z-index: 1;
    width: min(22rem, 92%);
    text-align: center;
    transform: translateY(16px) scale(0.98);
    color: rgba(15, 23, 42, 0.92);
    text-shadow: none;
  }

  [data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy {
    text-align: center;
    transform: translateY(0) scale(1);
  }

  [data-testid='landing-features-upload-panel'][data-copy-visible='true'] .upload-copy-stage::before {
    opacity: 1;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    flex-direction: row;
    align-self: center;
    color: #4338ca;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 {
    color: #0f172a;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy h3 .text-slate-400 {
    color: rgba(15, 23, 42, 0.52) !important;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-body {
    color: rgba(15, 23, 42, 0.76);
    font-size: clamp(0.85rem, 3.4vw, 1rem);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullets {
    align-items: center;
    justify-content: center;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullets li {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(15, 23, 42, 0.86);
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-bullet-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4338ca;
  }
}

@media (max-width: 420px) {
  [data-testid='landing-features-upload-panel'] .upload-copy-stage {
    /* Side indicator is hidden below 425px, so we can reclaim the left edge. */
    padding: 1.1rem 1.1rem 2rem 1.25rem;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy {
    width: 100%;
  }

  [data-testid='landing-features-upload-panel'] .upload-copy .upload-badge {
    font-size: 0.7rem;
  }
}

/* === intelligence panel === */
/* ── Design tokens ───────────────────────────────────────── */
[data-testid='intel-panel'] {
  background: transparent;
  color: var(--apple-ink);
  font-family: var(--apple-font);
  box-sizing: border-box;
}

/* ── Base grid (mobile-first): text row on top, stage fills rest ── */
[data-testid='intel-shell'] {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding-top: 4.5rem; /* clears the fixed nav (~72px mobile) */
}

[data-testid='intel-copy'] {
  grid-row: 1;
  padding: 1.25rem 1.25rem 0.75rem;
  text-align: center;
  opacity: 1;
  transition: transform 460ms cubic-bezier(.16,1,.3,1);
}

/* shared-pose-scene is the second direct child of intel-shell — it fills 1fr */
[data-testid='intel-shell'] [data-testid='shared-pose-scene'] {
  min-height: 0;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
[data-testid='intel-eyebrow'] {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--apple-blue);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.3vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
[data-testid='intel-eyebrow']::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--apple-blue);
  box-shadow: 0 0 0 0 rgba(0,102,204,0.55);
  animation: intelPulse 2.2s infinite;
}
@keyframes intelPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,102,204,.55) } 70% { box-shadow: 0 0 0 8px rgba(0,102,204,0) } }

/* ── Title ───────────────────────────────────────────────── */
[data-testid='intel-title'] {
  margin-top: 0.85rem;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--apple-ink);
  hyphens: none;
  overflow-wrap: normal;
}
[data-testid='intel-title'] .intelligence-title-muted { color: var(--apple-ink-48); display: block; }

/* ── Body ────────────────────────────────────────────────── */
[data-testid='intel-body'] {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  line-height: 1.55;
  color: var(--apple-ink-48);
  hyphens: none;
  overflow-wrap: normal;
}

/* ── 2K / 4K display scaling (intel section only) ────────── */
@media (min-width: 2560px) {
  [data-testid='intel-eyebrow'] { font-size: clamp(0.8rem, 0.9vw, 0.95rem); }
  [data-testid='intel-title']   { font-size: clamp(2.4rem, 3.8vw, 4.2rem); }
  [data-testid='intel-body']    { font-size: clamp(1.1rem, 1.4vw, 1.45rem); }
}
@media (min-width: 3840px) {
  [data-testid='intel-eyebrow'] { font-size: clamp(0.9rem, 1vw, 1.15rem); }
  [data-testid='intel-title']   { font-size: clamp(3.2rem, 4.2vw, 5.5rem); }
  [data-testid='intel-body']    { font-size: clamp(1.35rem, 1.6vw, 1.9rem); }
}

/* === shared pose scene === */
/* ── Height chain: each wrapper must propagate height down to the canvas ── */
[data-testid='shared-pose-scene'] {
  width: 100%;
  height: 100%;
  min-height: 0;
}

[data-testid='shared-pose-stage'] {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.scene-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

/* canvas must be block so it doesn't carry inline baseline gap */
.scene-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* SVG overlay sits on top of the canvas */
.scene-shell svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* === step breakdown panel === */
/* ── Design tokens (mirrors intelligence panel) ──────────── */
[data-testid='step-panel'] {
  background: transparent;
  color: var(--apple-ink);
  font-family: var(--apple-font);
  box-sizing: border-box;
}

/* ── Base grid: text row on top, transparent scene gap fills rest ── */
[data-testid='step-shell'] {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding-top: 4.5rem; /* clears the fixed nav (~72px mobile) */
}

[data-testid='step-copy'] {
  grid-row: 1;
  padding: 1.25rem 1.25rem 0.75rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  transition: transform 460ms cubic-bezier(.16,1,.3,1), opacity 460ms cubic-bezier(.16,1,.3,1);
}

/* Transparent gap — 3D world from the intelligence panel shows through */
[data-testid='step-scene-gap'] {
  grid-row: 2;
  min-height: 0;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
[data-testid='step-eyebrow'] {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--apple-blue);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.3vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
[data-testid='step-eyebrow']::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--apple-blue);
}

/* ── Title ───────────────────────────────────────────────── */
[data-testid='step-title'] {
  margin-top: 0.85rem;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--apple-ink);
  hyphens: none;
  overflow-wrap: normal;
}

/* ── Body ────────────────────────────────────────────────── */
[data-testid='step-body'] {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  line-height: 1.55;
  color: var(--apple-ink-48);
  hyphens: none;
  overflow-wrap: normal;
}

/* ── 2K / 4K display scaling ──────────────────────────────── */
@media (min-width: 2560px) {
  [data-testid='step-eyebrow'] { font-size: clamp(0.8rem, 0.9vw, 0.95rem); }
  [data-testid='step-title']   { font-size: clamp(2.4rem, 3.8vw, 4.2rem); }
  [data-testid='step-body']    { font-size: clamp(1.1rem, 1.4vw, 1.45rem); }
}
@media (min-width: 3840px) {
  [data-testid='step-eyebrow'] { font-size: clamp(0.9rem, 1vw, 1.15rem); }
  [data-testid='step-title']   { font-size: clamp(3.2rem, 4.2vw, 5.5rem); }
  [data-testid='step-body']    { font-size: clamp(1.35rem, 1.6vw, 1.9rem); }
}

@media (max-width: 720px) {
  [data-testid='step-shell'] { padding: 0.85rem 0.75rem 1.15rem; gap: 0.8rem; }
  [data-testid='step-header'] { max-width: 22rem; }
  [data-testid='step-title'] { margin-top: 0.45rem; font-size: clamp(1.35rem, 7vw, 1.9rem); }
  [data-testid='step-body'] { margin-top: 0.45rem; font-size: 0.82rem; line-height: 1.45; }
  [data-testid='step-stage-wrap'] {
    width: 300%;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 16 / 9;
  }
}

/* Portrait mobile: text stays on top, 3D canvas (shared from intelligence
   anchor) fills below. The stage-wrap is invisible (opacity:0) and not
   used by the bridge on portrait — hide it from layout to avoid dead space. */
@media (max-width: 1024px) and (orientation: portrait) {
  [data-testid='step-panel'] {
    align-items: stretch;
  }
  [data-testid='step-shell'] {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    max-width: none;
    padding: 44px 16px 8px 16px;
    gap: 0;
    align-content: unset;
    overflow: visible;
  }
  [data-testid='step-header'] {
    max-width: none;
    padding-top: 0;
    margin: 0;
    opacity: 0;
    transform: scale(0.965);
  }
  [data-testid='step-stage-wrap'] {
    display: none;
  }
}

/* === reports panel === */
/* ── 2K / 4K display scaling ──────────────────────────────── */
@media (min-width: 2560px) {
  #features-reports [data-testid='rp-badge']   { font-size: clamp(0.8rem, 0.9vw, 1rem); }
  #features-reports [data-testid='rp-title']   { font-size: clamp(2.5rem, 3.5vw, 4rem); }
  #features-reports [data-testid='rp-body']    { font-size: clamp(1rem, 1.3vw, 1.35rem); }
  #features-reports [data-testid='rp-bullets'] li { font-size: clamp(0.95rem, 1.2vw, 1.2rem); }
}
@media (min-width: 3840px) {
  #features-reports [data-testid='rp-badge']   { font-size: clamp(1rem, 1.1vw, 1.3rem); }
  #features-reports [data-testid='rp-title']   { font-size: clamp(3.5rem, 4.5vw, 5.5rem); }
  #features-reports [data-testid='rp-body']    { font-size: clamp(1.3rem, 1.6vw, 1.8rem); }
  #features-reports [data-testid='rp-bullets'] li { font-size: clamp(1.2rem, 1.4vw, 1.6rem); }
}

/* === research section === */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === certification === */
[data-testid='landing-certification'] {
  /* Apple design tokens (from awesome-design-md/apple), mirrored from the stats stage */

  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
  font-family: var(--apple-font);
  color: var(--apple-ink);
}

[data-testid='landing-certification-stage'] {
  margin: 0.75rem;
  border-radius: 1.5rem;
  background: var(--apple-canvas);
  overflow: hidden;
}

[data-testid='landing-certification-content'] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  [data-testid='landing-certification-content'] {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

[data-testid='landing-certification-eyebrow'] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--apple-blue);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.3vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

[data-testid='landing-certification-eyebrow']::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--apple-blue);
}

[data-testid='landing-certification-heading'] {
  margin-top: 0.85rem;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--apple-ink);
  text-wrap: balance;
  word-break: keep-all;
}

[data-testid='landing-certification-heading'] .certification-heading-muted {
  display: block;
  color: var(--apple-ink-48);
}

[data-testid='landing-certification-body'] {
  margin-top: 1.1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--apple-ink-48);
  text-wrap: pretty;
  word-break: keep-all;
}

/* Spec sheet: label / value rows divided by hairlines, no card chrome */
[data-testid='landing-certification-specs'] {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 36rem;
  border-bottom: 1px solid var(--apple-hairline);
}

[data-testid='landing-certification-specs'] > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--apple-hairline);
  font-size: clamp(0.875rem, 1.4vw, 0.9375rem);
  line-height: 1.43;
  letter-spacing: -0.01em;
}

[data-testid='landing-certification-specs'] dt {
  color: var(--apple-ink-48);
}

[data-testid='landing-certification-specs'] dt,
[data-testid='landing-certification-specs'] dd {
  margin: 0;
}

[data-testid='landing-certification-specs'] dd {
  color: var(--apple-ink);
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

[data-testid='landing-certification-specs'] .certification-spec-note {
  color: var(--apple-ink-48);
  font-weight: 400;
}

[data-testid='landing-certification-specs'] .certification-spec-numeric {
  font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 420px) {
  [data-testid='landing-certification-specs'] > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

/* Primary pill CTA (Action Blue) */
[data-testid='landing-certification-cta'] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background-color 160ms ease;
}

[data-testid='landing-certification-cta']:hover { background: #0077ed; }
[data-testid='landing-certification-cta']:active { transform: scale(0.95); }
[data-testid='landing-certification-cta']:focus-visible { outline: 2px solid var(--apple-focus, #0071e3); outline-offset: 3px; }
[data-testid='landing-certification-cta'] svg { width: 0.95rem; height: 0.95rem; }

[data-testid='landing-certification-footnote'] {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--apple-ink-48);
  word-break: keep-all;
}

/* The certificate is the "product shot": it rests on the surface and takes the system's one shadow */
[data-testid='landing-certification-figure'] {
  display: block;
  justify-self: center;
  width: min(100%, 22rem);
}

[data-testid='landing-certification-figure'] img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  transform: rotate(1.5deg);
  transition: transform 460ms cubic-bezier(.16,1,.3,1);
}

[data-testid='landing-certification-figure']:hover img { transform: rotate(0deg) translateY(-4px); }

@media (min-width: 900px) {
  [data-testid='landing-certification-figure'] { width: min(100%, 24rem); }
}

@media (prefers-reduced-motion: reduce) {
  [data-testid='landing-certification-figure'] img,
  [data-testid='landing-certification-cta'] { transition: none; }
}

@media (min-width: 900px) {
  [data-testid='landing-certification-content'].certification-no-figure {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
  }
}

/* === tests + faq (press design system: docs/press/README.md, after awesome-design-md/apple) === */
.landing-tests,
.landing-regions,
.landing-support,
.landing-faq {
  background: #fff;
  color: var(--apple-ink);
  font-family: var(--apple-font);
  padding: clamp(4.5rem, 9vw, 8rem) 1rem;
}
.landing-tests-inner { max-width: 72rem; margin: 0 auto; }
.landing-faq-inner { max-width: 48rem; margin: 0 auto; }
.landing-tests-intro { max-width: 44rem; margin: 0 auto; text-align: center; }
.landing-eyebrow {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--apple-blue);
}
.landing-tests-heading {
  margin-top: 0.75rem; font-size: clamp(1.9rem, 4.2vw, 3.25rem); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.025em; text-wrap: balance;
}
.landing-tests-lede {
  margin-top: 1rem; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--apple-ink-80); text-wrap: pretty;
}
.landing-tests-grid {
  display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.landing-test-card {
  display: flex; flex-direction: column; background: var(--apple-canvas); border-radius: 18px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.landing-test-tag { font-size: 0.8rem; font-weight: 600; color: var(--apple-ink-48); letter-spacing: -0.005em; }
.landing-test-card h3 {
  margin-top: 0.35rem; font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.landing-test-body { margin-top: 0.75rem; font-size: 0.975rem; line-height: 1.55; color: var(--apple-ink-80); }
.landing-test-figure { margin-top: auto; padding-top: 1.5rem; }
.landing-track { position: relative; display: flex; gap: 3px; height: 10px; }
.landing-track span { display: block; min-width: 3px; border-radius: 999px; }
.landing-track i {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 999px; border: 3px solid #fff;
  transform: translate(-50%, -50%);
}
.landing-figure-caption { margin-top: 0.6rem; font-size: 0.75rem; color: var(--apple-ink-48); }
.landing-tests-footnote {
  max-width: 44rem; margin: clamp(2rem, 4vw, 3rem) auto 0; padding-top: 1.25rem; border-top: 1px solid var(--apple-hairline);
  text-align: center; font-size: 0.85rem; line-height: 1.5; color: var(--apple-ink-48);
}
.landing-faq { background: var(--apple-canvas); }
.landing-faq .landing-eyebrow, .landing-faq .landing-tests-heading { text-align: center; }
.landing-faq-list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--apple-hairline); }
.landing-faq details { border-bottom: 1px solid var(--apple-hairline); }
.landing-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0;
  cursor: pointer; list-style: none;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--apple-ink-48); }
.landing-faq details[open] summary::after { content: "−"; }
.landing-faq summary h3 { font-size: clamp(1.02rem, 1.6vw, 1.15rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.landing-faq details p { padding: 0 2rem 1.25rem 0; font-size: 0.975rem; line-height: 1.6; color: var(--apple-ink-80); }
:lang(ko) .landing-tests, :lang(ko) .landing-regions, :lang(ko) .landing-faq { word-break: keep-all; }
:lang(ko) .landing-eyebrow { letter-spacing: 0.06em; }
:lang(ko) .landing-test-body, :lang(ko) .landing-tests-lede, :lang(ko) .landing-faq details p { line-height: 1.7; }
:lang(ko) .landing-tests-heading { letter-spacing: -0.015em; }

/* feature list (tests/show, info/apps_guide) - shares the .landing-tests tokens */
.landing-feature-list {
  display: grid; gap: 2.25rem 2rem; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.landing-feature-list li { padding-top: 1.25rem; border-top: 1px solid var(--apple-hairline); }
.landing-feature-list svg { width: 26px; height: 26px; color: var(--apple-blue); }
.landing-feature-list h3 { margin-top: 0.9rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.landing-feature-list p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.55; color: var(--apple-ink-80); }
:lang(ko) .landing-feature-list p { line-height: 1.7; }
.landing-track-ticks { position: relative; height: 1.1rem; margin-top: 0.4rem; font-size: 0.72rem; color: var(--apple-ink-48); font-variant-numeric: tabular-nums; }
.landing-track-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.landing-scale-legend { margin-top: 0.35rem; font-size: 0.78rem; line-height: 1.45; color: var(--apple-ink-80); }

/* === landing grammar (awesome-design-md/apple): buttons, light/parchment/dark tiles ===
   Every landing section uses these, so the page reads as one system:
   - one action colour (Action Blue; Sky Link Blue on dark tiles), pills only, scale(0.95) on press;
   - tiles alternate white / parchment / black, the colour change is the divider (no gradients, glows, shadows);
   - eyebrow = small blue caps text (.landing-eyebrow), headline = 600 with tight tracking. */
.landing-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 11px 22px; border-radius: 9999px; border: 1px solid var(--apple-blue);
  background: var(--apple-blue); color: #fff; font-family: var(--apple-font); font-size: 17px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.022em; text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, background-color 160ms ease, color 160ms ease;
}
.landing-btn:hover { background: #0077ed; border-color: #0077ed; }
.landing-btn:active { transform: scale(0.95); }
.landing-btn:focus-visible { outline: 2px solid var(--apple-focus); outline-offset: 3px; }
.landing-btn--ghost { background: transparent; color: var(--apple-blue); }
.landing-btn--ghost:hover { background: rgba(0, 102, 204, 0.06); border-color: var(--apple-blue); }
.landing-btn--block { width: 100%; }
.landing-dark .landing-btn--ghost { color: var(--apple-blue-on-dark); border-color: var(--apple-blue-on-dark); }
.landing-dark .landing-btn--ghost:hover { background: rgba(41, 151, 255, 0.1); }
.landing-link { color: var(--apple-blue); text-decoration: none; }
.landing-link:hover { text-decoration: underline; }
.landing-dark { background: var(--apple-dark); color: #f5f5f7; }
.landing-dark .landing-eyebrow { color: var(--apple-blue-on-dark); }
.landing-dark .landing-tests-lede { color: var(--apple-dark-muted); }
.landing-heading-muted { display: block; color: var(--apple-ink-48); }
.landing-dark .landing-heading-muted, .landing-dark .text-slate-400 { color: #6e6e73; }

/* tests tile on parchment (hero above is white): cards turn white so they still read as cards */
.landing-tests.is-parchment { background: var(--apple-canvas); }
.landing-tests.is-parchment .landing-test-card { background: #fff; }

/* pricing: white tile, segmented toggle, utility cards (hairline, 18px, no shadow) */
.landing-pricing { background: #fff; }
.landing-pricing-toggle {
  display: inline-flex; gap: 2px; margin-top: 2rem; padding: 3px; border-radius: 9999px; background: var(--apple-canvas);
}
.landing-pricing-toggle button {
  padding: 0.5rem 1.15rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 400; color: var(--apple-ink-80);
  transition: background-color 160ms ease, color 160ms ease;
}
.landing-pricing-toggle button.is-active { background: #fff; color: var(--apple-ink); font-weight: 600; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.landing-pricing-toggle small { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--apple-blue); }
.landing-pricing-grid {
  display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.landing-plan {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: 18px;
  border: 1px solid var(--apple-hairline); background: #fff; text-align: left;
}
.landing-plan .hidden { display: none; } /* the toggle swaps prices with Tailwind's .hidden; landing.css loads later */
.landing-plan.is-featured { border: 2px solid var(--apple-focus); }
.landing-plan-flag { font-size: 0.8rem; font-weight: 600; color: var(--apple-blue); min-height: 1.2rem; }
.landing-plan h3 { margin-top: 0.35rem; font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.landing-plan-desc { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--apple-ink-80); }
.landing-plan-price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 1.5rem; }
.landing-plan-price strong { font-size: clamp(2.1rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.landing-plan-price span { font-size: 0.9rem; color: var(--apple-ink-48); }
.landing-plan-save { margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--apple-ink-80); }
.landing-plan ul { flex: 1; margin: 1.5rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid var(--apple-hairline); }
.landing-plan li { display: flex; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.95rem; line-height: 1.45; color: var(--apple-ink-80); }
.landing-plan li svg { width: 16px; height: 16px; margin-top: 0.15rem; flex-shrink: 0; color: var(--apple-ink); }
.landing-plan .landing-btn { margin-top: 1.5rem; }
.landing-plan ul.landing-plan-packs { flex: 0 0 auto; margin: 1.5rem 0 0; padding: 0; }
.landing-plan .landing-plan-packs li {
  justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--apple-hairline); color: var(--apple-ink);
  font-variant-numeric: tabular-nums;
}
.landing-plan-packs b { font-weight: 600; }
.landing-plan-packs em { font-style: normal; color: var(--apple-ink-48); }
.landing-plan .landing-plan-packs + ul { border-top: 0; padding-top: 0.75rem; margin-top: 0; }
.landing-pricing-note { margin-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--apple-ink-48); }
:lang(ko) .landing-plan-desc, :lang(ko) .landing-plan li { line-height: 1.65; word-break: keep-all; }


/* closing CTA: black tile, badges + one pill */
.landing-cta { padding: clamp(5rem, 10vw, 8rem) 1rem; text-align: center; font-family: var(--apple-font); }
.landing-cta h2 { margin-top: 0.75rem; font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.03em; text-wrap: balance; }
.landing-cta .landing-tests-lede { max-width: 38rem; margin-left: auto; margin-right: auto; }
:lang(ko) .landing-cta, :lang(ko) .landing-pricing { word-break: keep-all; }

/* === how a test works (home/_tests) === three steps with looping illustrations, started by .is-in */
.landing-steps {
  position: relative; display: grid; gap: 1rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.landing-step {
  position: relative; padding: 1rem 1rem 1.5rem; border-radius: 22px; background: #fff;
  opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 140ms);
}
.landing-steps.is-in .landing-step { opacity: 1; transform: none; }
.landing-step-visual { aspect-ratio: 3 / 2; border-radius: 14px; background: var(--apple-canvas); display: grid; place-items: center; overflow: hidden; }
.landing-step-visual svg { width: 100%; height: 100%; }
.landing-step-num { margin: 1.1rem 0.25rem 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apple-blue); }
.landing-step h3 { margin: 0.35rem 0.25rem 0; font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; }
.landing-step h3 + p { margin: 0.45rem 0.25rem 0; font-size: 0.95rem; line-height: 1.55; color: var(--apple-ink-80); }
:lang(ko) .landing-step-num { letter-spacing: 0.02em; }
:lang(ko) .landing-step h3 + p { line-height: 1.7; }

.landing-step svg line, .landing-step svg path, .landing-step svg rect, .landing-step svg circle { fill: none; stroke: var(--apple-ink); stroke-width: 2.5; stroke-linecap: round; }
.sv-floor { stroke: var(--apple-hairline) !important; }
.sv-phone rect { fill: #e8e3db !important; stroke-width: 2 !important; }
.sv-phone circle { fill: var(--apple-ink) !important; stroke: none !important; }
.sv-ball { fill: var(--apple-ink) !important; }
.sv-guide { stroke: var(--apple-blue) !important; stroke-width: 2 !important; stroke-dasharray: 6 5; opacity: 0; }
.is-in .sv-phone { animation: sv-settle 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
.is-in .sv-guide { animation: sv-guide 3.2s ease infinite; }
@keyframes sv-settle { 0% { transform: translateY(-22px); opacity: 0; } 18%, 100% { transform: none; opacity: 1; } }
@keyframes sv-guide { 0%, 22% { opacity: 0; } 34%, 80% { opacity: 1; } 100% { opacity: 0; } }

.sv-path { stroke: var(--apple-hairline) !important; stroke-dasharray: 2 7; }
.sv-phone-small rect { fill: #e8e3db !important; stroke-width: 2 !important; }
.sv-foot { stroke: none !important; opacity: 0; }
.sv-foot.is-l { fill: #ff7d70 !important; } .sv-foot.is-r { fill: #45b3ff !important; }
.is-in .sv-foot { animation: sv-foot 3.4s ease infinite; animation-delay: calc(var(--k) * 260ms); }
@keyframes sv-foot { 0% { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; } 8% { opacity: 1; transform: scale(1.15); } 14%, 62% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }

.sv-ring-bg { stroke: var(--apple-hairline) !important; stroke-width: 9 !important; }
.sv-ring { stroke: var(--apple-blue) !important; stroke-width: 9 !important; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 74px 80px; }
.sv-bar-bg { fill: var(--apple-canvas) !important; stroke: none !important; }
.sv-bar { fill: var(--apple-ink) !important; stroke: none !important; transform: scaleX(0); transform-origin: left; transform-box: fill-box; }
.is-in .sv-ring { animation: sv-ring 4s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
.is-in .sv-bar { animation: sv-bar 4s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; animation-delay: calc(400ms + var(--k) * 180ms); }
@keyframes sv-ring { 0% { stroke-dasharray: 0 100; } 45%, 85% { stroke-dasharray: 82 100; } 100% { stroke-dasharray: 82 100; opacity: 0.2; } }
@keyframes sv-bar { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0.2; } }

/* test card: copy left, the measured qualities as chips right */
.landing-tests-grid:has(.landing-test-card:only-child) { grid-template-columns: 1fr; }
.landing-test-card { display: grid; gap: 1.5rem 3rem; align-items: center; }
.landing-test-card:has(.landing-test-measures) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.landing-test-measures { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.landing-test-measures li {
  padding: 0.65rem 1.1rem; border-radius: 9999px; background: var(--apple-canvas); font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--apple-ink); opacity: 0.25; transition: opacity 500ms ease, background-color 500ms ease, color 500ms ease;
  transition-delay: calc(var(--i) * 160ms);
}
.landing-test-measures.is-in li { opacity: 1; }
.landing-test-measures.is-in li:last-child { background: var(--apple-blue); color: #fff; }
.landing-test-more { margin-top: 1.25rem; font-size: 0.95rem; }
.landing-test-more a { color: var(--apple-blue); text-decoration: none; }
.landing-test-more a:hover { text-decoration: underline; }

/* === bento (home/_feature_grid, #features) === black tile, near-black cards, a live visual in each */
.landing-bento { padding: clamp(4.5rem, 9vw, 8rem) 1rem; font-family: var(--apple-font); }
.landing-bento-inner { max-width: 72rem; margin: 0 auto; }
.landing-bento-grid {
  display: grid; gap: 0.9rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "voice voice replay replay" "phone phone replay replay" "coach coach report exercises" "progress progress privacy privacy";
}
.landing-bento-tile {
  position: relative; display: flex; flex-direction: column; min-height: 15rem; overflow: hidden; border-radius: 24px; background: #161617;
  opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.landing-bento-tile.is-in { opacity: 1; transform: none; }
.landing-bento-tile.is-voice { grid-area: voice; } .landing-bento-tile.is-phone { grid-area: phone; }
.landing-bento-tile.is-replay { grid-area: replay; min-height: 31rem; } .landing-bento-tile.is-report { grid-area: report; }
.landing-bento-tile.is-coach { grid-area: coach; } .landing-bento-tile.is-exercises { grid-area: exercises; }
.landing-bento-tile.is-progress { grid-area: progress; } .landing-bento-tile.is-privacy { grid-area: privacy; }
.landing-bento-visual { flex: 1; display: grid; place-items: center; min-height: 8.5rem; padding: 1.25rem 1.25rem 0; }
.landing-bento-copy { padding: 1rem 1.5rem 1.5rem; }
.landing-bento-copy h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; color: #f5f5f7; }
.landing-bento-copy p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--apple-dark-muted); }
:lang(ko) .landing-bento-copy p { line-height: 1.65; word-break: keep-all; }
.landing-bento .landing-tests-intro { text-align: center; }
.landing-bento .landing-tests-heading { color: #f5f5f7; }

/* replay: the hero film's close-up fills the tile, the copy over a soft shade at the bottom */
.landing-bento-tile.is-replay .landing-bento-visual { position: absolute; inset: 0; padding: 0; }
.landing-bento-tile.is-replay { background: #fff; }
.bv-replay { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.landing-bento-tile.is-replay .landing-bento-copy { position: relative; margin-top: auto; background: linear-gradient(to top, #fff 55%, rgba(255, 255, 255, 0)); padding-top: 3rem; }
.landing-bento-tile.is-replay h3 { color: var(--apple-ink); } .landing-bento-tile.is-replay .landing-bento-copy p { color: var(--apple-ink-80); }

/* voice */
.bv-voice { display: grid; gap: 1rem; justify-items: center; width: 100%; }
.bv-wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.bv-wave i { width: 4px; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--apple-blue-on-dark); transform: scaleY(0.25); }
.is-in .bv-wave i { animation: bv-wave 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -73ms); }
@keyframes bv-wave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.bv-langs { display: flex; gap: 0.5rem; }
.bv-langs span { padding: 0.35rem 0.9rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: var(--apple-dark-muted); }
.is-in .bv-langs span { animation: bv-lang 4s ease infinite; animation-delay: calc(var(--k) * 2s); }
@keyframes bv-lang { 0%, 45% { background: var(--apple-blue); border-color: var(--apple-blue); color: #fff; } 55%, 100% { background: transparent; color: var(--apple-dark-muted); } }

/* phone */
.bv-phone { display: flex; align-items: center; gap: 1.75rem; }
.bv-phone-shape { width: 52px; height: 95px; }
.bv-phone-shape rect { fill: #2a2a2c; stroke: #48484a; stroke-width: 2; }
.bv-phone-shape circle { fill: #0a0a0c; stroke: #636366; stroke-width: 1.2; }
.bv-phone ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.bv-phone li { position: relative; width: max-content; font-size: 1.05rem; font-weight: 600; color: #f5f5f7; }
.bv-phone li::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; border-radius: 1px; background: #ff7d70; transform: scaleX(0); transform-origin: left; }
.is-in .bv-phone li { animation: bv-dim 5s ease infinite; animation-delay: calc(var(--k) * 500ms); }
.is-in .bv-phone li::after { animation: bv-strike 5s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; animation-delay: calc(var(--k) * 500ms); }
@keyframes bv-strike { 0%, 10% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bv-dim { 0%, 15% { color: #f5f5f7; } 30%, 85% { color: #6e6e73; } 100% { color: #f5f5f7; } }

/* report */
.bv-report { position: relative; width: 110px; height: 130px; }
.bv-page {
  position: absolute; inset: 0; display: grid; align-content: start; gap: 7px; padding: 14px 12px; border-radius: 10px; background: #f5f5f7;
  transform: translate(calc(var(--k) * 8px), calc(var(--k) * 8px)); opacity: calc(1 - var(--k) * 0.3); z-index: calc(3 - var(--k));
}
.bv-page b { justify-self: start; padding: 2px 6px; border-radius: 4px; background: #ff453a; color: #fff; font-size: 0.6rem; letter-spacing: 0.05em; }
.bv-page i { height: 5px; border-radius: 3px; background: #d2d2d7; } .bv-page i.is-short { width: 60%; }
.bv-page span { height: 26px; border-radius: 5px; background: #e8e8ed; }
.is-in .bv-page:first-child { animation: bv-lift 4.5s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
@keyframes bv-lift { 0%, 20% { transform: none; } 45%, 70% { transform: translate(-14px, -16px) rotate(-5deg); } 100% { transform: none; } }

/* coach */
.bv-coach { display: grid; gap: 0.6rem; width: min(100%, 22rem); }
.bv-q, .bv-typing, .bv-a { opacity: 0; }
.bv-q { justify-self: end; max-width: 85%; padding: 0.6rem 0.95rem; border-radius: 18px 18px 4px 18px; background: var(--apple-blue); color: #fff; font-size: 0.92rem; }
.bv-typing { justify-self: start; display: flex; gap: 4px; padding: 0.75rem 0.9rem; border-radius: 18px 18px 18px 4px; background: #2c2c2e; }
.bv-typing i { width: 6px; height: 6px; border-radius: 3px; background: #8e8e93; animation: bv-dot 1s ease-in-out infinite; }
.bv-typing i:nth-child(2) { animation-delay: 0.15s; } .bv-typing i:nth-child(3) { animation-delay: 0.3s; }
.bv-a { justify-self: start; display: grid; gap: 7px; width: 80%; padding: 0.85rem 0.95rem; border-radius: 18px 18px 18px 4px; background: #2c2c2e; }
.bv-a i { height: 6px; border-radius: 3px; background: #48484a; } .bv-a i.is-short { width: 55%; }
.is-in .bv-q { animation: bv-chat-q 6s ease infinite; } .is-in .bv-typing { animation: bv-chat-t 6s ease infinite; }
.is-in .bv-a { animation: bv-chat-a 6s ease infinite; }
@keyframes bv-dot { 0%, 100% { transform: none; opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes bv-chat-q { 0%, 5% { opacity: 0; transform: translateY(8px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bv-chat-t { 0%, 18% { opacity: 0; } 24%, 40% { opacity: 1; } 46%, 100% { opacity: 0; height: 0; padding: 0; } }
@keyframes bv-chat-a { 0%, 44% { opacity: 0; transform: translateY(8px); } 52%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* exercises */
.bv-ex { position: relative; width: 120px; height: 110px; }
.bv-card {
  position: absolute; inset: 0 0 auto; height: 70px; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 7px 10px;
  padding: 12px; border-radius: 14px; background: #2c2c2e; transform: translateY(calc(var(--k) * 16px)) scale(calc(1 - var(--k) * 0.06));
  z-index: calc(3 - var(--k)); opacity: calc(1 - var(--k) * 0.3);
}
.bv-card i { grid-column: 2; height: 6px; border-radius: 3px; background: #48484a; } .bv-card i.is-short { width: 60%; }
.bv-check { grid-row: span 2; width: 22px; height: 22px; border-radius: 11px; border: 2px solid #48484a; }
.is-in .bv-card:first-child .bv-check { animation: bv-check 3.6s ease infinite; }
.is-in .bv-card:first-child { animation: bv-deal 3.6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
@keyframes bv-check { 0%, 30% { background: transparent; border-color: #48484a; } 40%, 70% { background: #30d158; border-color: #30d158; } 100% { background: transparent; } }
@keyframes bv-deal { 0%, 70% { transform: none; opacity: 1; } 85% { transform: translateX(60px) rotate(8deg); opacity: 0; } 86% { transform: translateY(32px) scale(0.88); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* progress */
.bv-progress { width: min(100%, 22rem); height: auto; overflow: visible; }
.bv-trend { fill: none; stroke: var(--apple-blue-on-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 100; }
.bv-trend-fill { fill: none; stroke: rgba(41, 151, 255, 0.15); stroke-width: 14; stroke-linecap: round; }
.bv-progress circle { fill: #161617; stroke: var(--apple-blue-on-dark); stroke-width: 2.5; opacity: 0; }
.is-in .bv-trend { animation: bv-draw 5s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.is-in .bv-progress circle { animation: bv-point 5s ease infinite; animation-delay: calc(var(--k) * 550ms); }
@keyframes bv-draw { 0% { stroke-dasharray: 0 100; } 55%, 90% { stroke-dasharray: 100 100; } 100% { stroke-dasharray: 100 100; opacity: 0; } }
@keyframes bv-point { 0%, 5% { opacity: 0; } 15%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* privacy */
.bv-privacy { width: 120px; height: 120px; }
.bv-ring { fill: none; stroke: rgba(41, 151, 255, 0.55); stroke-width: 2; stroke-dasharray: 3 9; transform-origin: 60px 60px; }
.bv-ring.is-inner { stroke: rgba(48, 209, 88, 0.5); stroke-dasharray: 2 6; }
.bv-shackle { fill: none; stroke: #f5f5f7; stroke-width: 5; stroke-linecap: round; }
.bv-body { fill: #f5f5f7; } .bv-key { fill: #161617; }
.is-in .bv-ring { animation: bv-spin 14s linear infinite; } .is-in .bv-ring.is-inner { animation-duration: 9s; animation-direction: reverse; }
@keyframes bv-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .landing-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "replay replay" "voice voice" "phone phone" "coach coach" "report exercises" "progress privacy"; }
  .landing-bento-tile.is-replay { min-height: 24rem; }
}
@media (max-width: 560px) {
  .landing-bento-grid { grid-template-columns: 1fr; grid-template-areas: "replay" "voice" "phone" "coach" "report" "exercises" "progress" "privacy"; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-step, .landing-bento-tile { opacity: 1; transform: none; transition: none; }
  .landing-steps *, .landing-bento * { animation: none !important; }
  .sv-foot, .sv-guide, .bv-q, .bv-a, .bv-progress circle { opacity: 1; }
  .sv-ring { stroke-dasharray: 82 100; } .sv-bar { transform: none; } .bv-trend { stroke-dasharray: 100 100; }
}

/* === test pages (tests/show) - press design system, same tokens as .landing-tests === */
.test-page {
  color: var(--apple-ink); background: #fff;
  font-family: var(--apple-font);
}
.test-page-inner { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.test-page-narrow { max-width: 48rem; }
.test-page-hero { padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem); }
.test-page-hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .test-page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.test-page-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; font-size: 0.82rem; color: var(--apple-ink-48); }
.test-page-crumbs a { color: var(--apple-ink-48); }
.test-page-crumbs a:hover { color: var(--apple-blue); }
.test-page h1 {
  margin-top: 0.75rem; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance;
}
.test-page-lede { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--apple-ink-80); text-wrap: pretty; }
.test-page-facts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.test-page-facts div { border: 1px solid var(--apple-hairline); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.88rem; }
.test-page-facts dt { display: inline; color: var(--apple-ink-48); margin-right: 0.4rem; }
.test-page-facts dd { display: inline; font-weight: 600; }
.test-page-phone { justify-self: center; width: min(100%, 300px); margin: 0; }
.test-page-phone-screen {
  display: flex; flex-direction: column; aspect-ratio: 1080 / 2400; overflow: hidden;
  border: 8px solid #1d1d1f; border-radius: 36px; background: #f3f5f8;
}
.test-page-phone-header { display: block; width: 100%; height: auto; flex: none; }
.test-page-phone-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: auto; }
.test-page-phone-scroll::-webkit-scrollbar { display: none; }
.test-page-phone-scroll:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: -2px; }
.test-page-phone-scroll img { display: block; width: 100%; height: auto; }
.test-page-phone-hint { margin-top: 0.75rem; text-align: center; font-size: 0.82rem; color: var(--apple-ink-48); }
.test-page-band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.test-page-alt { background: var(--apple-canvas); }
.test-page h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.test-page-text { margin-top: 1rem; font-size: 1.02rem; line-height: 1.65; color: var(--apple-ink-80); }
.test-page-steps { counter-reset: step; display: grid; gap: 1.5rem 2rem; margin: 2rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.test-page-steps li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--apple-hairline); }
.test-page-steps li::before { content: counter(step); display: block; font-size: 0.8rem; font-weight: 600; color: var(--apple-blue); letter-spacing: 0.08em; }
.test-page-steps h3 { margin-top: 0.5rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.test-page-steps p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.6; color: var(--apple-ink-80); }
.test-page-track { margin-top: 1.75rem; background: #fff; }
.test-page-track .landing-test-figure { padding-top: 0; }
.test-page-who { margin-top: 1.25rem; padding: 0; list-style: none; border-top: 1px solid var(--apple-hairline); }
.test-page-who li { padding: 0.9rem 0; border-bottom: 1px solid var(--apple-hairline); font-size: 1rem; line-height: 1.55; color: var(--apple-ink-80); }
.test-page-refs { margin-top: 1.25rem; padding-left: 1.25rem; display: grid; gap: 0.75rem; font-size: 0.9rem; line-height: 1.55; color: var(--apple-ink-80); }
.test-page-refs a { color: var(--apple-ink-80); text-decoration: underline; text-decoration-color: var(--apple-hairline); text-underline-offset: 3px; }
.test-page-refs a:hover { color: var(--apple-blue); }
.test-page-other { text-decoration: none; color: inherit; background: #fff; }
.test-page-other:hover h3 { color: var(--apple-blue); }
.landing-test-more { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; }
.landing-test-more a, span.landing-test-more { color: var(--apple-blue); }
.test-page-getapp { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }
.test-page-getapp .test-page-text { margin-bottom: 1.5rem; }
:lang(ko) .test-page { word-break: keep-all; }
:lang(ko) .test-page-lede, :lang(ko) .test-page-text, :lang(ko) .test-page-steps p, :lang(ko) .test-page-who li { line-height: 1.75; }
:lang(ko) .test-page .landing-eyebrow { letter-spacing: 0.06em; }
.landing-test-title-link { color: inherit; text-decoration: none; }
.landing-test-title-link:hover { color: var(--apple-blue); }
.test-page-video-frame { margin: 1.75rem 0 0; }
.test-page-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #f5f5f7; }
.test-page-video-frame figcaption { max-width: 48rem; }
.test-page-video-note { margin-top: 0.5rem; font-size: 0.85rem; color: var(--apple-ink-48); }

/* science page (info/science) - shares the .test-page tokens */
.test-page-narrow-text { max-width: 48rem; }
.science-table-wrap { margin-top: 1.75rem; overflow-x: auto; }
.science-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.science-table th, .science-table td { padding: 0.85rem 0.9rem 0.85rem 0; border-bottom: 1px solid var(--apple-hairline); text-align: left; vertical-align: top; }
.science-table thead th { font-size: 0.78rem; font-weight: 600; color: var(--apple-ink-48); text-transform: uppercase; letter-spacing: 0.06em; }
.science-table tbody th { font-weight: 600; color: var(--apple-ink); white-space: nowrap; }
.science-table td { color: var(--apple-ink-80); }
.science-table a { color: var(--apple-blue); }
.science-numbers { display: grid; gap: 1.5rem 2rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.science-numbers div { padding-top: 1rem; border-top: 1px solid var(--apple-hairline); }
.science-numbers dt { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.science-numbers dd { margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.5; color: var(--apple-ink-80); }
.science-download { margin-top: 1.75rem; }
.landing-tests-footnote a { color: var(--apple-blue); white-space: nowrap; }
:lang(ko) .science-table { word-break: keep-all; }
@media (max-width: 640px) {
  .science-table { min-width: 0; }
  .science-table thead { display: none; }
  .science-table, .science-table tbody, .science-table tr, .science-table th, .science-table td { display: block; width: 100%; }
  .science-table tr { padding: 0.9rem 0; border-bottom: 1px solid var(--apple-hairline); }
  .science-table th, .science-table td { padding: 0.15rem 0; border: 0; white-space: normal; }
  .science-table td[data-label]::before { content: attr(data-label); display: block; margin-top: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--apple-ink-48); }
  .science-table .science-source { margin-top: 0.25rem; font-size: 0.85rem; }
}
@media (min-width: 900px) { .science-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.science-page .landing-tests-footnote { margin-left: 0; text-align: left; }

/* buyer's guide (info/apps_guide) - reuses .test-page and .science-table */
.guide-disclosure { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 18px; background: var(--apple-canvas); font-size: 0.9rem; line-height: 1.55; color: var(--apple-ink-80); }
.guide-table { min-width: 64rem; font-size: 0.86rem; }
.guide-table tbody th { white-space: normal; min-width: 14rem; }
.guide-table tbody th > a { color: var(--apple-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--apple-hairline); text-underline-offset: 3px; }
.guide-note { margin-top: 0.35rem; font-weight: 400; color: var(--apple-ink-80); line-height: 1.5; }
.guide-tests { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; min-width: 9.5rem; }
.guide-test { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; }
.guide-test b { font-weight: 600; }
.guide-test-yes b { color: var(--apple-ink); }
.guide-test-no b { color: var(--apple-ink-48); font-weight: 400; }
.guide-test-unknown b { color: var(--apple-ink-48); font-weight: 400; font-style: italic; }
.guide-paper { display: block; margin-bottom: 0.3rem; color: var(--apple-blue); }
@media (max-width: 640px) {
  .guide-table { min-width: 0; }
  .guide-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
}

/* reference values (info/reference_values) - reuses .test-page, .science-table, .guide-disclosure */
.refvalues-toc { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.refvalues-toc a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--apple-hairline); color: var(--apple-ink); font-size: 0.85rem; text-decoration: none; }
.refvalues-toc a:hover { border-color: var(--apple-ink-48); }
.refvalues-table tbody th { white-space: normal; min-width: 9rem; font-variant-numeric: tabular-nums; }
.refvalues-sources-heading { margin-top: 1.5rem; font-size: 0.95rem; font-weight: 600; color: var(--apple-ink); }
.refvalues-sources { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; line-height: 1.6; }
.refvalues-sources a { color: var(--apple-blue); }
.refvalues-inapp { margin-top: 1.25rem; font-size: 0.92rem; line-height: 1.55; color: var(--apple-ink-80); }
.refvalues-inapp b { display: block; font-weight: 600; color: var(--apple-ink); }
.refvalues-inapp a { color: var(--apple-blue); }
.refvalues-page .landing-tests-footnote { margin-left: 0; text-align: left; }

/* learn (info/learn + test pages) - article cards linking to the AICU blog */
.learn-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.learn-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: var(--apple-ink); text-decoration: none; border: 1px solid var(--apple-hairline); }
.test-page-band:not(.test-page-alt) .learn-card { background: var(--apple-canvas); border-color: transparent; }
.learn-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.learn-card-image { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--apple-canvas); }
.learn-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.learn-card h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.learn-card-excerpt { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--apple-ink-80); }
.learn-card-meta { margin-top: auto; padding-top: 0.9rem; font-size: 0.8rem; color: var(--apple-ink-48); }
/* shorts: square cards; a sideways-scrolling row on phones, a grid from tablets up */
.learn-shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.learn-short { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.6rem; color: var(--apple-ink); text-decoration: none; }
.learn-short img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #272729; }
.learn-short-title { font-size: 0.95rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.learn-short:hover .learn-short-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .learn-shorts { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }

/* learn articles (info/article): Ghost HTML on this site, in the press type scale */
.learn-article-column { max-width: 44rem; margin: 0 auto; }
.learn-article-hero h1 { text-wrap: balance; }
.learn-article-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.9rem; color: var(--apple-ink-48); }
.learn-article-feature { max-width: 56rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.learn-article-feature img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--apple-canvas); }
.is-short .learn-article-feature { max-width: 34rem; }
.learn-article-band { padding-top: clamp(1rem, 3vw, 2rem); }
.learn-article-body { font-size: 1.075rem; line-height: 1.7; color: var(--apple-ink-80); word-break: keep-all; overflow-wrap: anywhere; }
.learn-article-body > * + * { margin-top: 1.15em; }
.learn-article-body h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--apple-ink); }
.learn-article-body h3 { margin-top: 1.8em; font-size: 1.2rem; font-weight: 600; color: var(--apple-ink); }
.learn-article-body a { color: var(--apple-blue); text-decoration: underline; text-decoration-color: rgba(0, 102, 204, 0.3); text-underline-offset: 3px; }
.learn-article-body strong { color: var(--apple-ink); font-weight: 600; }
.learn-article-body ul, .learn-article-body ol { padding-left: 1.3em; }
.learn-article-body ul { list-style: disc; }
.learn-article-body ol { list-style: decimal; }
.learn-article-body li + li { margin-top: 0.45em; }
.learn-article-body figure { margin: 2em 0; }
.learn-article-body figure img, .learn-article-body figure video { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--apple-canvas); }
.learn-article-body figcaption { margin-top: 0.7em !important; text-align: center; font-size: 0.85rem !important; line-height: 1.45; color: var(--apple-ink-48); opacity: 1 !important; }
.learn-article-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.learn-article-body th, .learn-article-body td { padding: 0.7em 0.9em 0.7em 0; border-bottom: 1px solid var(--apple-hairline); text-align: left; vertical-align: top; }
.learn-article-body thead th { font-size: 0.8rem; font-weight: 600; color: var(--apple-ink-48); text-transform: uppercase; letter-spacing: 0.02em; }
.learn-article-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--apple-hairline); }
.learn-article-body em { color: var(--apple-ink-48); }

/* === regions (#availability): dark tile, sticky dotted globe, scrolling steps, "I'm interested" ===
   After awesome-design-md/apple: a full-bleed near-black tile between the light hero and the light
   stats stage, display type, Sky Link Blue on dark, pill controls. The canvas sits in a sticky,
   viewport-tall layer; the steps scroll over it (no scroll-jacking). */
.landing-regions {
  --regions-live: #30d158;
  --regions-rolling: #2997ff;
  --regions-ink: #f5f5f7;
  --regions-muted: #a1a1a6;
  --regions-tile: #1d1d1f;
  --regions-line: rgba(255, 255, 255, 0.14);
  --apple-focus: #2997ff;
  --apple-blue: #0071e3;
  position: relative;
  padding: 0;
  background: #000;
  color: var(--regions-ink);
  overflow: clip; /* the sticky globe layer never paints past the tile (clip keeps sticky working) */
  scroll-margin-top: 4.5rem;
}
.landing-regions-layout { position: relative; }
.landing-regions-globe {
  position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
}
.landing-regions-globe canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.landing-regions-hint {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); margin: 0; white-space: nowrap;
  font-size: 0.78rem; letter-spacing: -0.01em; color: var(--regions-muted); opacity: 0; transition: opacity 400ms ease;
  pointer-events: none;
}
.landing-regions.is-globe-ready .landing-regions-hint { opacity: 1; }
.landing-regions-tip {
  position: absolute; left: 0; top: 0; z-index: 3; max-width: min(18rem, 80vw); padding: 0.6rem 0.85rem; border-radius: 14px;
  background: rgba(29, 29, 31, 0.92); border: 1px solid var(--regions-line); pointer-events: none;
  font-size: 0.85rem; line-height: 1.35; color: var(--regions-ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.landing-regions-tip strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.landing-regions-tip span { display: block; color: var(--regions-muted); }
.landing-regions-tip[hidden] { display: none; }

/* Steps: one viewport each, scrolling over the globe; the canvas still takes pointer events between them */
.landing-regions-steps { position: relative; z-index: 1; pointer-events: none; }
.landing-regions-list { list-style: none; margin: 0; padding: 0; }
.landing-regions-step {
  display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  padding: 0 1rem 12svh;
}
/* Country stops are shorter than the intro: the globe still turns between them, but the whole tile is
   about 3.5 viewports instead of 5 (it used to push everything after it far down the page). */
.landing-regions-list .landing-regions-step { min-height: 62vh; min-height: 62svh; }
.landing-regions-step-body {
  position: relative; isolation: isolate; pointer-events: auto; width: 100%; max-width: 34rem; margin: 0 auto;
  padding: 1.25rem 0 0; will-change: transform, opacity;
}
/* Phone: the text passes over the globe's lower part, so it carries a full-width scrim */
.landing-regions-step-body::before {
  content: ""; position: absolute; z-index: -1; top: -2rem; bottom: -12svh; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85) 3.5rem); pointer-events: none;
}
.landing-regions-step.is-intro { align-items: flex-end; }
.landing-regions-step.is-next { min-height: auto; padding-top: 50svh; padding-bottom: clamp(4rem, 10vw, 7rem); }
.landing-regions-eyebrow {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--regions-rolling);
}
.landing-regions-heading, .landing-regions .landing-region-name {
  margin-top: 0.6rem; font-size: clamp(2.4rem, 7.5vw, 5.25rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: anywhere;
}
.landing-regions .landing-region-name { font-size: clamp(2.6rem, 9vw, 6.5rem); margin-top: 0.35rem; }
.landing-regions .is-next .landing-region-name { font-size: clamp(2.2rem, 6.5vw, 4.5rem); }
.landing-regions .is-planned .landing-region-name { font-size: clamp(2rem, 6vw, 4rem); }
.landing-regions-heading-muted { display: block; color: #6e6e73; }
.landing-regions-lede { margin-top: 1rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.45; color: var(--regions-muted); text-wrap: pretty; }
.landing-region-status {
  display: inline-flex; align-items: center; gap: 0.55rem; font-size: clamp(0.9rem, 1.4vw, 1.05rem); font-weight: 600;
  letter-spacing: -0.005em; color: var(--regions-muted);
}
.landing-region-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.landing-regions .is-live .landing-region-status { color: var(--regions-live); }
.landing-regions .is-rolling .landing-region-status { color: var(--regions-rolling); }
.landing-regions .is-planned .landing-region-status, .landing-regions .is-next .landing-region-status { color: var(--regions-ink); }
.landing-region-detail { margin-top: 0.75rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.45; color: var(--regions-muted); font-variant-numeric: tabular-nums; }
.landing-region-relative { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: rgba(48, 209, 88, 0.14); color: var(--regions-live); font-size: 0.85em; }

@media (min-width: 900px) {
  .landing-regions-step { align-items: center; padding: 0 clamp(2rem, 5vw, 5rem); }
  .landing-regions-step.is-intro { align-items: center; }
  .landing-regions-step-body { margin: 0; max-width: min(36rem, 42vw); padding: 0; }
  .landing-regions-step-body::before { display: none; }
  .landing-regions-step.is-next { padding-top: 30vh; }
  .landing-regions-step.is-next .landing-regions-step-body { max-width: min(34rem, 42vw); }
  .landing-regions-hint { left: 68%; }
}
@media (max-width: 899px) {
  .landing-regions-step.is-intro { padding-bottom: 8svh; }
  .landing-regions-hint { top: 4.75rem; bottom: auto; }
}

/* Interest card on the dark tile */
.landing-regions-interest {
  display: grid; gap: 1.25rem; margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 2rem); border-radius: 18px; background: var(--regions-tile); border: 1px solid var(--regions-line);
}
.landing-regions-interest h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.landing-regions-interest-copy p, .landing-regions-done p {
  margin-top: 0.6rem; font-size: 1rem; line-height: 1.55; color: var(--regions-muted); text-wrap: pretty;
}
.landing-regions-interest-copy strong { font-weight: 600; color: var(--regions-ink); }
.landing-regions-form { display: grid; gap: 1.1rem; min-width: 0; }
.landing-regions-field { display: grid; gap: 0.4rem; min-width: 0; }
.landing-regions-field label { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.landing-regions-optional { font-weight: 400; color: var(--regions-muted); }
.landing-regions-field select, .landing-regions-field input {
  width: 100%; min-width: 0; height: 44px; padding: 0 1.25rem; border-radius: 999px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.16); background-color: #2a2a2c; color: var(--regions-ink);
  font: inherit; font-size: 1.0625rem; letter-spacing: -0.02em; color-scheme: dark;
}
.landing-regions-field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a1a1a6' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 1rem;
}
.landing-regions-field input::placeholder { color: #86868b; }
.landing-regions-field select:focus-visible, .landing-regions-field input:focus-visible { outline: 2px solid var(--apple-focus, #0071e3); outline-offset: 1px; }
.landing-regions-field [aria-invalid="true"] { border-color: #ff6961; }
.landing-regions-privacy { font-size: 0.78rem; line-height: 1.5; color: var(--regions-muted); }
.landing-regions-privacy a, .landing-regions-link { color: var(--regions-rolling); text-decoration: none; }
.landing-regions-privacy a:hover, .landing-regions-link:hover { text-decoration: underline; }
.landing-regions-error { font-size: 0.9rem; line-height: 1.45; color: #ff6961; font-weight: 500; }
.landing-regions-error[hidden] { display: none; }
.landing-regions-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.landing-regions-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px;
  border: 0; border-radius: 999px; background: var(--apple-blue); color: #fff; cursor: pointer;
  font: inherit; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.02em;
  transition: transform 160ms ease, background-color 160ms ease;
}
.landing-regions-button:hover { background: #0077ed; }
.landing-regions-button:active { transform: scale(0.95); }
.landing-regions-button:focus-visible, .landing-regions-link:focus-visible { outline: 2px solid var(--apple-focus, #0071e3); outline-offset: 3px; border-radius: 6px; }
.landing-regions-button:disabled { opacity: 0.6; cursor: progress; }
.landing-regions-done h3:focus { outline: none; }
.landing-regions-check {
  width: 2.5rem; height: 2.5rem; margin-bottom: 0.9rem; fill: none; stroke: var(--regions-live); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; border-radius: 999px; animation: landing-regions-ping 1.4s ease-out 1;
}
@keyframes landing-regions-ping {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  100% { box-shadow: 0 0 0 22px rgba(48, 209, 88, 0); }
}
.landing-regions-done-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: 0.95rem; }
.landing-regions-inline-form { display: inline; }
.landing-regions-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
:lang(ko) .landing-regions { word-break: keep-all; }
:lang(ko) .landing-regions-eyebrow { letter-spacing: 0.06em; }
:lang(ko) .landing-regions-heading, :lang(ko) .landing-regions .landing-region-name { letter-spacing: -0.02em; line-height: 1.12; }
:lang(ko) .landing-regions-interest-copy p, :lang(ko) .landing-regions-done p { line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .landing-regions-button, .landing-regions-hint { transition: none; }
  .landing-regions-check { animation: none; }
}

/* /for-clinicians early-access form (info/clinicians): light, on the test-page bands. */
.clinicians-form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 1.5rem; }
.clinicians-field { display: grid; gap: 0.4rem; }
.clinicians-field label { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; color: var(--apple-ink); }
.clinicians-field .clinicians-optional { font-weight: 400; color: #6e6e73; }
.clinicians-field select, .clinicians-field input {
  width: 100%; height: 44px; padding: 0 1.1rem; border-radius: 12px; box-sizing: border-box;
  border: 1px solid #d2d2d7; background: #fff; color: var(--apple-ink); font: inherit; font-size: 1.0625rem;
}
.clinicians-field select:focus-visible, .clinicians-field input:focus-visible { outline: 2px solid var(--apple-focus, #0071e3); outline-offset: 1px; }
.clinicians-field [aria-invalid="true"] { border-color: #d70015; }
.clinicians-note { font-size: 0.8rem; line-height: 1.5; color: #6e6e73; }
.clinicians-error { font-size: 0.9rem; color: #d70015; font-weight: 500; }
.clinicians-done { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 18px; background: #fff; max-width: 34rem; }
.clinicians-done h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.clinicians-button {
  justify-self: start; height: 44px; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--apple-blue);
  color: #fff; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
}
.clinicians-button:hover { background: #0077ed; }
.clinicians-button:focus-visible { outline: 2px solid var(--apple-focus, #0071e3); outline-offset: 3px; }

/* === support (SupportConfig: call hours + channels; shared/_support_channels) === */
.landing-support { background: #fff; }
.landing-support--embedded { padding: 0; background: transparent; }
.landing-support-inner { max-width: 60rem; margin: 0 auto; }
.landing-support-intro { text-align: center; max-width: 40rem; margin: 0 auto; }
.landing-support--embedded .landing-support-intro { text-align: left; margin: 0; }
.landing-support-grid {
  display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.landing-support-tile {
  border-radius: 18px; background: var(--apple-canvas); padding: clamp(1.25rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.landing-support-tile--call { background: #272729; color: #fff; }
.landing-support-tile h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; }
.landing-support-tile p { font-size: 0.975rem; line-height: 1.55; color: var(--apple-ink-80); }
.landing-support-tile--call p { color: #cccccc; }
.landing-support-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.landing-support-status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #7a7a7a; }
.landing-support-status--open::before { background: #30d158; }
.landing-support-langs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.landing-support-lang {
  border-radius: 9999px; padding: 0.2rem 0.7rem; font-size: 0.8rem; font-weight: 500;
  background: #fff; color: var(--apple-ink-80); border: 1px solid var(--apple-hairline);
}
.landing-support-tile--call .landing-support-lang { background: transparent; color: #fff; border-color: #48484a; }
.landing-support-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.landing-support-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-radius: 9999px; padding: 0.7rem 1.25rem; font-size: 1rem; font-weight: 500;
  background: #fff; color: var(--apple-blue); border: 1px solid var(--apple-hairline);
  transition: background 0.15s ease;
}
.landing-support-pill:hover { background: #fafafc; }
.landing-support-pill--primary { background: var(--apple-blue); color: #fff; border-color: transparent; }
.landing-support-pill--primary:hover { background: #0071e3; }
.landing-support-tile--call .landing-support-pill--primary { background: #2997ff; }
.landing-support-pill small { font-size: 0.8rem; font-weight: 400; opacity: 0.75; }
.landing-support-note { font-size: 0.85rem; color: var(--apple-ink-48); }
.landing-support-tile--call .landing-support-note { color: #a1a1a6; }
:lang(ko) .landing-support-tile p { line-height: 1.7; }
