/* The selling home page and /go (preview first: website/preview/). Loads after styles.css and uses its tokens.
   The star: .showcase, a phone that morphs between real screens (landing.js). */

/* ---- Hero ---- */
.l-hero { padding: 20px 0 48px; overflow-x: hidden; overflow-x: clip; }
.l-hero .wrap { display: grid; gap: 36px; align-items: center; }
.l-hero h1 { font-size: clamp(2.2rem, 8.4vw, 4.1rem); max-width: 13ch; }
.l-hero h1 em, .go-hero h1 em { font-style: normal; color: var(--accent); }
.l-hero .lede { margin: 14px 0 0; color: var(--fg); font-size: 1.125rem; line-height: 1.5; }
.l-hero .waitlist { margin-top: 20px; }
.l-hero .cta-row { margin-top: 22px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.proof-row { gap: 6px 18px; }
.proof-row li { display: inline-flex; align-items: center; gap: 7px; font-size: .9375rem; font-weight: 500; color: var(--fg); }
.proof-row li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.proof-row a { color: inherit; }
/* Beside the hero badge: what you keep, said plainly (HeyCatch D3.4 / the Owner, 2026-11-21). */
.badge-promises { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-width: 24rem; font-size: .875rem; line-height: 1.4; color: var(--grey); }
.badge-promises a { color: inherit; }
.proof-band { margin-bottom: 8px; }
.proof-band p + p { margin-top: 10px; }
.proof-band h3 { margin: 24px 0 6px; }
@media (min-width: 880px) {
  .l-hero { padding: 24px 0 72px; }
  .l-hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}

/* Store badge placeholder: a plain line until launch, then the real badge (data-store-only) takes its place. */
.closing .soon { margin: 0; font-size: .9375rem; font-weight: 500; color: #e1ede5; }

/* ---- Showcase: the star ---- */
.showcase { --dwell: 5200ms; --dir: 1; position: relative; display: grid; gap: 18px; justify-items: center; }
.sc-stage { position: relative; width: min(300px, 78vw); }
/* A soft glow behind the phone that takes each screen's tone. */
.sc-stage::before {
  content: ""; position: absolute; inset: 8% -18% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sc-tone, var(--tint-mint)), transparent);
  filter: blur(8px); transition: background .8s ease;
}
.showcase[data-tone="butter"] { --sc-tone: var(--tint-butter); }
.showcase[data-tone="blush"] { --sc-tone: var(--tint-blush); }
.showcase[data-tone="lilac"] { --sc-tone: var(--tint-lilac); }
.showcase[data-tone="mint"] { --sc-tone: var(--tint-mint); }
.sc-phone {
  position: relative; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #2c3a35, #141c19); box-shadow: var(--shadow-card), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.sc-screens { position: relative; aspect-ratio: 600 / 1304; container-type: inline-size; border-radius: 36px; overflow: hidden; background: var(--bg); isolation: isolate; }
.sc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none; pointer-events: none; }
.sc-slide.is-on { opacity: 1; z-index: 2; }
/* Without JS: the first screen only. */
.showcase:not(.is-live) .sc-slide:first-child { opacity: 1; }
.showcase:not(.is-live) .sc-controls { display: none; }
/* The fade: the new screen fades in over the old one (the old stays solid beneath until the new has landed, so
   the phone is never empty), then the old one is dropped. Opacity only, so it stays on the compositor. */
@media (prefers-reduced-motion: no-preference) {
  .sc-slide { transition: opacity 0s linear .42s; }
  .sc-slide.is-on { transition: opacity .4s ease; }
  .sc-slide.was-on { opacity: 1; z-index: 1; }
  /* While a screen plays, it eases in toward the spotlight (compositor only). */
  .sc-slide img { transform-origin: var(--ox, 50%) var(--oy, 40%); }
  .sc-slide.is-on img { animation: sc-push var(--dwell) cubic-bezier(.3, 0, .2, 1) both; }
  .showcase.is-paused .sc-slide.is-on img { animation-play-state: paused; }
  .sc-phone { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .sc-phone:active { transform: scale(.985); }
}
/* The spotlight: a ring that glides to the part of each screen that matters. Its box is the element's own box,
   measured on the screenshot (data-spot: x, y, w, h in % of the image, radius in cqw), so it scales with the phone.
   Colour per screen (data-ring) is picked for 3:1 or better against the pixels around the element.
   ::before is the cut-out: a light scrim over the rest of the screen with a soft edge. ::after is the sheen. */
.sc-ring {
  --rc: var(--accent-dark); --rh: rgba(255, 255, 255, .85); --r: 2.3cqw; --t: 1.1cqw;
  position: absolute; z-index: 3; pointer-events: none; opacity: 0; border-radius: var(--r);
  box-shadow: 0 0 0 var(--t) var(--rc), 0 0 0 calc(var(--t) + .7cqw) var(--rh);
}
.sc-dim {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0; border-radius: calc(var(--r, 2.3cqw) + 4.5cqw); margin: -4.5cqw; padding: 4.5cqw; box-sizing: content-box;
  box-shadow: 0 0 0 999px rgba(20, 28, 25, .15), inset 0 0 3cqw 1.2cqw rgba(20, 28, 25, .15);
}
.sc-ring { z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
  .sc-ring, .sc-dim {
    transition: left .7s cubic-bezier(.2, .7, .2, 1), top .7s cubic-bezier(.2, .7, .2, 1), width .7s cubic-bezier(.2, .7, .2, 1),
      height .7s cubic-bezier(.2, .7, .2, 1), border-radius .7s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease, opacity .4s ease;
  }
  /* One slow light sweep along the ring per screen; landing.js re-adds .is-sheen on each slide. */
  .sc-ring.is-sheen::after {
    content: ""; position: absolute; inset: calc(var(--t) * -1); padding: var(--t); border-radius: calc(var(--r) + var(--t));
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: sc-sheen 2.2s cubic-bezier(.4, 0, .2, 1) .55s 1 both;
  }
}
@keyframes sc-sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes sc-push { from { transform: scale(1); } to { transform: scale(1.045); } }

/* Captions under the phone, one per screen (visual only; the tabs and alt text carry the words for screen readers). */
.sc-caps { position: relative; height: 66px; margin-top: 14px; }
.sc-cap { position: absolute; inset: 0; text-align: center; font-size: .9375rem; line-height: 1.4; color: var(--fg); opacity: 0; transition: opacity .3s ease; }
.sc-cap b { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; display: block; }
.sc-cap.is-on { opacity: 1; transition-delay: .12s; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabs: story bars with a label; the active one fills while it plays. */
.sc-controls { display: flex; align-items: flex-start; gap: 8px; width: min(520px, 100%); }
.sc-tabs { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; flex: 1; }
.sc-tab {
  display: grid; gap: 8px; padding: 10px 2px 6px; min-height: 44px; border: 0; background: none; cursor: pointer;
  font: 600 .6875rem/1.2 var(--font-body); color: var(--grey); text-align: left; letter-spacing: .01em;
  transition: color .2s ease, transform .12s ease;
}
.sc-tab:active { transform: scale(.96); }
.sc-tab[aria-selected="true"] { color: var(--accent); }
.sc-tab:hover { color: var(--fg); }
.sc-bar { display: block; height: 4px; border-radius: 4px; background: rgba(35, 48, 44, .14); overflow: hidden; transition: transform .25s ease; }
.sc-tab[aria-selected="true"] .sc-bar { transform: scaleY(1.5); }
.sc-tab.is-done .sc-bar i { transform: scaleX(1); opacity: .45; }
.sc-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.sc-tab[aria-selected="true"] .sc-bar i { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .sc-tab[aria-selected="true"] .sc-bar i { animation: sc-fill var(--dwell) linear both; }
  .showcase.is-paused .sc-tab[aria-selected="true"] .sc-bar i { animation-play-state: paused; }
}
@keyframes sc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-label { display: none; font-size: .75rem; }
@media (min-width: 360px) { .sc-label { display: block; } }
/* Pause and play: the dwell draws itself as a ring around the button, and the icons cross-fade. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.sc-toggle {
  --p: 0; position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1turn), var(--bg-2) 0); color: var(--fg); transition: transform .12s ease;
}
.sc-toggle::before { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--surface); transition: background-color .15s ease; }
.sc-toggle:active { transform: scale(.94); }
.sc-toggle:active::before { background: var(--accent-tint); }
.sc-toggle svg { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; transition: opacity .18s ease, transform .18s ease; }
.sc-toggle .i-play, .sc-toggle[aria-pressed="true"] .i-pause { opacity: 0; transform: scale(.6); }
.sc-toggle[aria-pressed="true"] .i-play { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .sc-toggle[aria-pressed="false"] { animation: sc-dwell var(--dwell) linear both; }
  .showcase.is-paused .sc-toggle { animation-play-state: paused; }
}
@keyframes sc-dwell { from { --p: 0; } to { --p: 1; } }
@media (prefers-reduced-motion: reduce) { .sc-toggle { display: none; } }
@media (min-width: 880px) { .sc-stage { width: 290px; } }

/* ---- USP sections ---- */
.usps { display: grid; gap: 20px; padding-bottom: 24px; }
.usp {
  display: grid; gap: 28px; align-items: center; background: rgba(255, 255, 255, .62);
  border-radius: var(--r-leaf); padding: 32px 22px;
}
.usp[data-tint="mint"] { background: color-mix(in srgb, var(--tint-mint) 55%, #fff); }
.usp[data-tint="butter"] { background: color-mix(in srgb, var(--tint-butter) 55%, #fff); }
.usp[data-tint="lilac"] { background: color-mix(in srgb, var(--tint-lilac) 55%, #fff); }
.usp[data-tint="blush"] { background: color-mix(in srgb, var(--tint-blush) 55%, #fff); }
.usp-kicker { display: inline-block; font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; }
.usp h2 { max-width: 18ch; }
.usp .pain { margin: 14px 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--fg); font-style: italic; }
.usp .ticks { margin-top: 18px; }
.usp .cta-row { margin-top: 22px; }
.usp-media { justify-self: center; width: min(260px, 70vw); }
/* Same bezel as the showcase phone. */
.usp-media .shot { margin: 9px; border-radius: 36px; box-shadow: 0 0 0 9px #1f2a26, 0 0 0 10.5px rgba(255, 255, 255, .1), var(--shadow-card); }
.usp-vs { margin-top: 18px; font-size: .9375rem; color: var(--grey); }
@media (min-width: 880px) {
  .usp { grid-template-columns: 1.2fr .8fr; gap: 56px; padding: 56px 64px; }
  .usp:nth-child(even) > :first-child { order: 2; }
  .usp-media { width: 280px; }
  .usp-solo { grid-template-columns: 1fr; }
  .usp-solo > div { max-width: 64ch; }
}

/* ---- Objections ---- */
.faq { padding: 40px 0 24px; }
.faq h2 { margin-bottom: 18px; }
.faq details {
  background: var(--surface); border-radius: var(--r-med); margin-bottom: 10px; box-shadow: 0 1px 0 var(--bg-2);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; min-height: 44px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; font-size: 1.0625rem; line-height: 1.55; max-width: 46rem; }

/* ---- /go: the App Store badge first, the tour right under it ---- */
.go-hero { padding: 20px var(--gutter) 40px; display: grid; gap: 28px; overflow-x: hidden; overflow-x: clip; }
.go-hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.go-hero .store-badge { margin-top: 18px; }
.go-hero .lede { margin-top: 18px; color: var(--fg); }
.go-hero .ticks { margin-top: 18px; }
.go-hero .go-proof { margin-top: 14px; font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
@media (min-width: 880px) and (max-height: 920px) { .go-hero .sc-stage { width: 260px; } }
@media (min-width: 880px) { .go-hero { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 48px; } }

/* Before launch the hero's store and web-app links are both hidden; drop their empty row. */
body[data-store-live="false"][data-webapp-live="false"] .l-hero .cta-row { display: none; }
