/* W-Cut home: hero with the phone demo, three steps, closing button, phone dock.
   Builds on style.css (tokens, nav, footer). Home page only. */

:root {
  --sweep-ease: cubic-bezier(0.55, 0.05, 0.3, 1);
  --cycle: 8.4s;
}

/* ============================================================
   APP STORE BUTTONS
   ============================================================ */
.cta {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  scroll-margin-top: 120px;
}
.cta--center { align-items: center; }
.cta__row { position: relative; display: inline-block; }
.cta__note { font-size: 0.92rem; color: var(--n7); }

/* Apple's official badge artwork, unmodified. Apple's minimum on screen is 40px tall. */
.appbadge { display: inline-block; border-radius: 9px; line-height: 0; transition: transform 0.18s var(--ease); }
.appbadge img { display: block; height: 54px; width: auto; }
.appbadge--lg img { height: 60px; }
.appbadge--sm img { height: 40px; }
.appbadge:hover { transform: translateY(-2px); }
.appbadge:active { transform: none; }
.appbadge:focus-visible { outline: 2px solid var(--ember-400); outline-offset: 4px; }

/* ============================================================
   HERO
   ============================================================ */
/* the glows below are wider than a phone screen; never let them widen the page */
main { overflow-x: clip; }
.intro {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(100px, 12vh, 128px) var(--gutter) clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
/* sized so "See the haircut" holds one line from phone to desktop */
.intro__title {
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 8em; /* three lines: "See the haircut / before you / commit to it." */
}
.intro__sub {
  margin: 24px 0 36px;
  max-width: 30ch;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--n8);
}

.intro__demo {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
/* warm light behind the phone */
.intro__demo::before {
  content: '';
  position: absolute; left: 50%; top: 44%;
  width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 90, 44, 0.16), rgba(255, 90, 44, 0.05) 55%, transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- The phone ---------- */
.handset {
  --pw: clamp(232px, min(26vw, 34svh), 318px);
  position: relative;
  width: var(--pw);
  aspect-ratio: 1179 / 2556;
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(150deg, #4a4238 0%, #1b1813 26%, #0d0b09 60%, #322c25 100%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 238, 225, 0.14),
    inset 0 0 0 calc(var(--pw) * 0.012) #0b0a08,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 22px 40px -18px rgba(0, 0, 0, 0.6);
  container-type: inline-size;
}
/* side buttons */
.handset::before, .handset::after {
  content: '';
  position: absolute;
  width: calc(var(--pw) * 0.012);
  border-radius: 2px;
  background: #2b261f;
}
.handset::before { left: calc(var(--pw) * -0.01); top: 22%; height: 7%; box-shadow: 0 calc(var(--pw) * 0.2) 0 #2b261f; }
.handset::after  { right: calc(var(--pw) * -0.01); top: 28%; height: 11%; }

.handset__screen {
  position: absolute;
  inset: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.135);
  overflow: hidden;
  background: #070605;
  isolation: isolate;
}

/* The photo stage keeps the photo's 4:5 shape, so the mesh lines up with the face. */
.demo__stage {
  position: absolute; top: 0; bottom: 0; left: 50%;
  aspect-ratio: 4 / 5;
  transform: translateX(-50%);
}
/* Switching examples: the old pair fades out on top of the new one. */
.demo__pair { position: absolute; inset: 0; opacity: 0; }
.demo__pair.is-active { opacity: 1; }
.demo__pair.is-leaving { z-index: 1; opacity: 0; transition: opacity 0.7s var(--ease); }
.demo__pair img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.demo__before { filter: brightness(0.6) saturate(0.85); }
.demo__after  { clip-path: inset(0 0 100% 0); }
.handset[data-phase="develop"] .demo__pair.is-active .demo__after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s var(--sweep-ease);
}
.handset[data-phase="done"] .demo__pair.is-active .demo__after,
.demo__pair.is-leaving .demo__after { clip-path: inset(0 0 0 0); }

/* Face mesh, drawn by landing.js */
.demo__mesh {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.handset[data-phase="scan"] .demo__mesh,
.handset[data-phase="match"] .demo__mesh { opacity: 1; transition-duration: 0.3s; }
.mesh__line, .mesh__edge { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mesh__line { stroke: rgba(255, 122, 79, 0.45); stroke-width: 1.8; }
.mesh__edge { stroke: var(--ember-400); stroke-width: 3.2; }
.mesh__tri  { fill: none; stroke: rgba(255, 157, 122, 0.22); stroke-width: 1.2; opacity: 0; }
.mesh__node { fill: var(--ember-300); opacity: 0; }
.handset[data-phase="scan"] .mesh__line,
.handset[data-phase="scan"] .mesh__edge { animation: draw 1.1s var(--ease) forwards; }
.handset[data-phase="scan"] .mesh__tri { animation: fadein 0.8s ease 0.7s forwards; }
.handset[data-phase="scan"] .mesh__node { animation: fadein 0.4s ease forwards, twinkle 1.4s ease-in-out infinite alternate; }
.handset:not([data-phase="scan"]) .mesh__line,
.handset:not([data-phase="scan"]) .mesh__edge { stroke-dashoffset: 0; }
.handset:not([data-phase="scan"]) .mesh__tri { opacity: 1; }
.handset:not([data-phase="scan"]) .mesh__node { opacity: 0.85; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }

/* Face box: scan line and corner marks. Position comes from --fx/--ft/--fb/--fw (% of the photo). */
.demo__face {
  position: absolute;
  left: calc((var(--fx, 50) - var(--fw, 20) * 1.08) * 1%);
  width: calc(var(--fw, 20) * 2.16 * 1%);
  top: calc((var(--ft, 22) - 6) * 1%);
  height: calc((var(--fb, 64) - var(--ft, 22) + 11) * 1%);
  pointer-events: none;
}
.demo__scan { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.demo__scan i {
  position: absolute; inset: 0;
  transform: translateY(-100%);
  background: linear-gradient(to bottom, transparent 62%, rgba(255, 90, 44, 0.16) 94%, rgba(255, 157, 122, 0.75) 99.4%, #FFE3D6 100%);
}
.handset[data-phase="scan"] .demo__scan { opacity: 1; }
.handset[data-phase="scan"] .demo__scan i { animation: facescan 1.35s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes facescan { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.demo__corner {
  position: absolute;
  width: 15%; aspect-ratio: 1;
  border: 0 solid var(--ember-300);
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.demo__corner--tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 10px; transform-origin: 0 0; }
.demo__corner--tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 10px; transform-origin: 100% 0; }
.demo__corner--bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 10px; transform-origin: 0 100%; }
.demo__corner--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 10px; transform-origin: 100% 100%; }
.handset[data-phase="scan"] .demo__corner,
.handset[data-phase="match"] .demo__corner { opacity: 1; transform: none; }

/* The reveal beam: its bottom edge travels down the photo in step with the after-image clip. */
.demo__sweep { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
.demo__sweep i {
  position: absolute; inset: 0;
  transform: translateY(-100%);
  background: linear-gradient(to bottom, transparent 80%, rgba(255, 90, 44, 0.2) 96.5%, rgba(255, 180, 150, 0.9) 99.6%, #fff 100%);
}
.demo__sweep i::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: #FFF4EC;
  box-shadow: 0 0 14px 4px rgba(255, 90, 44, 0.8);
}
.handset[data-phase="develop"] .demo__sweep { opacity: 1; transition-duration: 0.15s; }
.handset[data-phase="develop"] .demo__sweep i { transform: translateY(0); transition: transform 1.5s var(--sweep-ease); }
.handset[data-phase="done"] .demo__sweep i { transform: translateY(0); }

/* Screen chrome */
.demo__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 6, 5, 0.6), transparent 16%),
    linear-gradient(to top, rgba(10, 8, 6, 0.95) 0%, rgba(10, 8, 6, 0.7) 22%, transparent 40%);
  pointer-events: none;
}
.demo__status {
  position: absolute; left: 0; right: 0; top: 0;
  height: 13cqw;
  padding: 0 8.5cqw 0 10cqw;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 4.6cqw/1 -apple-system, 'SF Pro Text', var(--body);
  color: #fff;
}
.demo__island {
  position: absolute; left: 50%; top: 3cqw;
  width: 31cqw; height: 9cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
.demo__icons { width: 18cqw; height: auto; }

.demo__chip {
  position: absolute; left: 50%; top: 17cqw;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2cqw;
  padding: 1.8cqw 3.6cqw;
  border-radius: 99px;
  background: rgba(16, 14, 11, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong);
  font: 700 2.9cqw/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n9);
  white-space: nowrap;
}
.demo__dot { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: var(--ember-500); }
.handset[data-phase="scan"] .demo__dot,
.handset[data-phase="develop"] .demo__dot { animation: blink 0.9s ease-in-out infinite alternate; }
@keyframes blink { from { opacity: 0.25; } to { opacity: 1; } }

.demo__panel {
  position: absolute; left: 5cqw; right: 5cqw; bottom: 6cqw;
  display: grid;
}
.demo__panel > * { grid-area: 1 / 1; align-self: end; }

.demo__loader {
  list-style: none;
  display: grid; gap: 3.2cqw;
  padding: 0 1cqw 2cqw;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.handset[data-phase="scan"] .demo__loader { opacity: 1; }
.demo__loader li {
  position: relative;
  padding-left: 8cqw;
  font-size: 3.9cqw; line-height: 1.25;
  color: var(--n7);
  opacity: 0.45;
}
.demo__loader li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 4.6cqw; height: 4.6cqw;
  margin-top: -2.3cqw;
  border-radius: 50%;
  border: 1.5px solid var(--n5);
  box-sizing: border-box;
}
.demo__loader li::after {
  content: '';
  position: absolute; left: 1.55cqw; top: 50%;
  width: 1.3cqw; height: 2.4cqw;
  margin-top: -1.6cqw;
  border: solid var(--on-accent);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0);
}
.demo__loader li:nth-child(1) { --t: 0.3s; }
.demo__loader li:nth-child(2) { --t: 1.05s; }
.demo__loader li:nth-child(3) { --t: 1.8s; }
.handset[data-phase="scan"] .demo__loader li { animation: lit 0.3s var(--ease) var(--t) forwards; }
.handset[data-phase="scan"] .demo__loader li::before { animation: litdot 0.3s var(--ease) var(--t) forwards; }
.handset[data-phase="scan"] .demo__loader li::after { animation: littick 0.3s var(--ease) calc(var(--t) + 0.1s) forwards; }
/* keep the rows ticked while the list fades out */
.handset[data-phase="match"] .demo__loader li { opacity: 1; color: var(--n9); }
.handset[data-phase="match"] .demo__loader li::before { background: var(--ember-500); border-color: var(--ember-500); }
.handset[data-phase="match"] .demo__loader li::after { transform: rotate(45deg) scale(1); }
@keyframes lit { to { opacity: 1; color: var(--n9); } }
@keyframes litdot { to { background: var(--ember-500); border-color: var(--ember-500); } }
@keyframes littick { to { transform: rotate(45deg) scale(1); } }

.demo__match {
  position: relative;
  padding: 4.4cqw 5cqw 4.6cqw;
  border-radius: 5.5cqw;
  background: rgba(23, 20, 15, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--ember-500);
  overflow: hidden;
  opacity: 0;
  transform: translateY(7cqw);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.handset[data-phase="match"] .demo__match,
.handset[data-phase="develop"] .demo__match,
.handset[data-phase="done"] .demo__match {
  opacity: 1; transform: none;
  animation: breathe 2.4s ease-in-out 0.6s infinite alternate;
}
@keyframes breathe {
  from { box-shadow: 0 0 0 rgba(255, 90, 44, 0); }
  to   { box-shadow: 0 0 7cqw rgba(255, 90, 44, 0.35); }
}
/* shimmer band while the try-on develops */
.demo__match::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 238, 225, 0.12), transparent);
  opacity: 0;
}
.handset[data-phase="develop"] .demo__match::after { opacity: 1; animation: shimmer 1.1s ease-in-out infinite; }
@keyframes shimmer { to { left: 120%; } }

.demo__matchtop { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; }
.demo__label {
  font: 700 2.8cqw/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-300);
}
.demo__shape { font-size: 3.1cqw; color: var(--n7); white-space: nowrap; }
.demo__shape b { color: var(--n9); font-weight: 600; }
.demo__cut {
  margin: 2cqw 0 1.2cqw;
  font-family: var(--display); font-weight: 600;
  font-size: 7.6cqw; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--n9);
}
.demo__more { font-size: 3.4cqw; color: var(--n7); }

/* ---------- Example picker under the phone ---------- */
.demo__dots { display: flex; gap: 4px; margin-top: 26px; }
.demo__pick {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; cursor: pointer;
  width: 40px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
}
.demo__pick i {
  position: relative; display: block;
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--hairline-strong);
  overflow: hidden;
}
.demo__pick i::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--ember-500);
  transform: scaleX(0); transform-origin: left;
}
.demo__pick.is-active i::after { animation: fill var(--cycle) linear forwards; }
.intro__demo.is-paused .demo__pick.is-active i::after { animation-play-state: paused; }
.intro__demo.is-static .demo__pick.is-active i::after { animation: none; transform: none; }
@keyframes fill { to { transform: none; } }
.demo__pick:hover i { background: var(--n5); }
.demo__pick:focus-visible { outline: 2px solid var(--ember-400); outline-offset: 0; }
.demo__credit { margin-top: 6px; font-size: 0.8rem; color: var(--n6); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}
.how__title {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.flow__art {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 26px;
  border-radius: var(--r-xl);
  background: radial-gradient(90% 80% at 50% 30%, var(--n2), var(--n1));
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  overflow: hidden;
}
.flow__title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  margin-bottom: 10px;
}
.flow__n { font-family: var(--display); font-weight: 700; color: var(--ember-500); }
.flow__text { color: var(--n7); max-width: 34ch; font-size: 1rem; line-height: 1.55; }

/* Step 1: four capture angles light up in turn */
.ring { width: 78%; height: auto; overflow: visible; }
.ring__track { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ring__seg {
  fill: none; stroke: var(--ember-500); stroke-width: 5; stroke-linecap: round;
  transition: stroke 0.35s var(--ease) calc(var(--i) * 0.55s + 0.2s);
}
.ring__label {
  font: 500 13px var(--body);
  fill: var(--n9);
  transition: fill 0.35s var(--ease) calc(var(--i) * 0.55s + 0.2s);
}
.ring__head path { fill: none; stroke: var(--n7); stroke-width: 2; stroke-linecap: round; }
.js .flow__item:not(.is-on) .ring__seg { stroke: var(--n4); }
.js .flow__item:not(.is-on) .ring__label { fill: var(--n6); }

/* Step 2: what the scan looks at */
.checks { list-style: none; width: 76%; display: grid; gap: clamp(16px, 2vw, 24px); }
.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px; row-gap: 9px;
  align-items: center;
}
.check__k { font-size: 0.98rem; font-weight: 500; color: var(--n8); }
.check__bar { grid-column: 1; grid-row: 2; height: 4px; border-radius: 4px; background: var(--n3); overflow: hidden; }
.check__fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ember-600), var(--ember-400));
  transform-origin: left;
  transition: transform 0.7s var(--ease) calc(var(--i) * 0.45s + 0.15s);
}
.check__tick {
  grid-column: 2; grid-row: 1 / span 2;
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ember-500);
  border: 1.5px solid var(--ember-500);
  transition: background 0.3s var(--ease) calc(var(--i) * 0.45s + 0.75s), border-color 0.3s var(--ease) calc(var(--i) * 0.45s + 0.75s);
}
.check__tick::after {
  content: '';
  position: absolute; left: 8px; top: 4px;
  width: 6px; height: 11px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease) calc(var(--i) * 0.45s + 0.8s);
}
.js .flow__item:not(.is-on) .check__fill { transform: scaleX(0); }
.js .flow__item:not(.is-on) .check__tick { background: transparent; border-color: var(--n4); }
.js .flow__item:not(.is-on) .check__tick::after { transform: rotate(45deg) scale(0); }

/* Step 3: drag to compare */
.flow__art--photo { place-items: stretch; }
.compare {
  position: absolute; inset: 0;
  --split: 50%;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  pointer-events: none;
}
.compare__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 2px; margin-left: -1px;
  background: var(--n9);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.compare__knob {
  position: absolute; left: 50%; top: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: var(--n9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.compare__knob::before, .compare__knob::after {
  content: '';
  position: absolute; top: 50%;
  width: 7px; height: 7px;
  margin-top: -4px;
  border: solid var(--n0);
  border-width: 0 0 2px 2px;
}
.compare__knob::before { left: 11px; transform: rotate(45deg); }
.compare__knob::after  { right: 11px; transform: rotate(-135deg); }
.compare__tag {
  position: absolute; top: 14px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 600;
  pointer-events: none;
}
.compare__tag--before { left: 14px; background: rgba(16, 14, 11, 0.72); color: var(--n8); }
.compare__tag--after  { right: 14px; background: var(--ember-500); color: var(--on-accent); }
/* keyboard control: the range is visually hidden, the knob shows its focus */
.compare__range {
  position: absolute; left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0; margin: 0;
  pointer-events: none;
}
.compare:has(.compare__range:focus-visible) .compare__knob { outline: 2px solid var(--ember-400); outline-offset: 3px; }

/* ============================================================
   CLOSING
   ============================================================ */
.outro {
  position: relative;
  text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(96px, 12vw, 170px);
  overflow: hidden;
}
.outro::before {
  content: '';
  position: absolute; left: 50%; top: 0;
  width: min(900px, 160vw); aspect-ratio: 1;
  transform: translate(-50%, -38%);
  background: radial-gradient(closest-side, rgba(255, 90, 44, 0.14), transparent);
  pointer-events: none;
  z-index: -1;
}
.outro__icon {
  width: 88px; height: 88px;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(255, 90, 44, 0.28), 0 0 0 1px var(--hairline);
}
.outro__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
  margin: 30px auto 16px;
}
.outro__sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--n8); margin-bottom: 36px; }

/* ============================================================
   DOCK (phone widths only)
   ============================================================ */
.dock { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 108px; }
  .intro__title { font-size: clamp(2.6rem, 8.2vw, 4.4rem); }
  .handset { --pw: clamp(232px, 62vw, 300px); }
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; gap: 56px; }
  .how__title { max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .intro { padding-top: 100px; padding-bottom: 40px; }
  .intro__sub { margin: 18px 0 30px; }
  .how { padding-top: 48px; }

  .dock {
    position: fixed; z-index: 90;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 11px;
    padding: 9px 9px 9px 11px;
    border-radius: 20px;
    background: rgba(23, 20, 15, 0.86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% + 30px));
    transition: transform 0.45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
  .dock__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; margin-right: auto; }
  .dock__text strong { font-family: var(--display); font-weight: 600; font-size: 1rem; }
  .dock__text span { font-size: 0.74rem; color: var(--n7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .footer { padding-bottom: calc(44px + 84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .dock__text span { display: none; }
}

/* ============================================================
   REDUCED MOTION: landing.js holds the demo on its last frame
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .demo__scan, .demo__sweep, .demo__mesh { display: none; }
  .demo__match, .demo__dot { animation: none !important; }
  .demo__pick.is-active i::after { animation: none; transform: none; }
}
