/* Landing only. Layout adapted from the Fosil waitlist site (2026 App Bencina/waitlist);
   colors mirror app/src/styles/tokens.css (light).
   Text styles follow cheaf.com/cl: a soft display serif for headings, Lexend for text.
   Cheaf's heading font (Sunday Bloom) is commercial, so Fraunces (OFL) stands in. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/lexend-latin.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --neutral-100: #ffffff;
  --neutral-200: #f7f7f7;
  --neutral-300: #e5e5e5;
  --neutral-500: #8f8f8f;
  --neutral-600: #707070;
  --neutral-800: #191919;
  /* One green for the whole waitlist page (requested 2026-10-18), plus a tint of it for light fills. */
  --green: #034123;
  --green-tint: #e6ece9;
  --red-600: #d50b0b;
  --font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* Type scale — every text on the page uses one of these.
     Headings share the hero's Fraunces 600 and 0.9 leading; sizes follow their roles.
     Text (Lexend): lede = supporting text under any title; body; small; caption. */
  /* Rem sizes preserve the reader's browser font preference. */
  --fs-hero: 6rem;
  --fs-title: 4.5rem;
  --fs-subtitle: 2rem;
  --fs-display: 9rem;
  --fs-lede: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --page: min(1320px, 94vw);
  --gutter: clamp(16px, 5vw, 40px);
  --header-h: 68px; /* header padding 24 + 16, logo 28; the hero slides up under it */
  --section-gap: clamp(40px, 8vw, 96px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-family);
  background: var(--neutral-100);
  color: var(--neutral-800);
  line-height: 1.5;
  font-size: var(--fs-body);
  overflow-x: hidden;
}
/* The page background: one pastel image pinned behind every section. A fixed layer
   rather than background-attachment: fixed, which iOS Safari ignores. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("page-bg.jpg") center / cover no-repeat;
}
a { color: inherit; text-underline-position: from-font; text-decoration-thickness: from-font; }
strong, b { font-weight: 600; }
p { text-wrap: pretty; }
.hero h1, .step h3, .intro-feature h3, .assistant h2, .compare-diff, .catalog h2, .faq h2, .closer h2, .share-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 0.9;
  font-variation-settings: "SOFT" 100;
}
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }

.skip-link { position: absolute; top: -100%; left: 16px; z-index: 100; padding: 8px 16px; border-radius: 4px; background: var(--neutral-800); color: var(--neutral-100); }
.skip-link:focus { top: 8px; }

/* ---- Header (sticky, flat, compact CTA) ---- */
/* Frosted glass, as sidehoe.chat's nav: the hero video shows through, blurred. */
.header {
  position: sticky; top: 0; z-index: 10; height: var(--header-h);
  display: flex; align-items: center; /* the logo sits in the vertical middle of the bar */
  background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
}
.header-inner { flex: 1; display: flex; align-items: center; justify-content: space-between; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.logo-link { display: block; border-radius: 4px; }
.logo { display: block; height: 28px; width: auto; color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--neutral-800); outline-offset: 2px; }

/* ---- Reveal-on-load ---- */
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal .75s cubic-bezier(.16, 1, .3, 1) both; }
.d1 { animation-delay: .05s; } .d3 { animation-delay: .34s; } .d4 { animation-delay: .4s; }
/* Hero title word by word: three verbs 50ms apart, then a longer beat before «bacán!». */
.hero-word { display: inline-block; animation: reveal .75s cubic-bezier(.16, 1, .3, 1) both; }
.hero-word:nth-child(1) { animation-delay: .1s; } .hero-word:nth-child(2) { animation-delay: .15s; }
.hero-word:nth-child(3) { animation-delay: .2s; } .hero-word:nth-child(4) { animation-delay: .28s; }

/* ---- Reveal-on-scroll (cards, FAQ, closer). Only hidden once landing.js
   has set .js-reveal, so the content stays visible if the script never runs. ---- */
.js-reveal .reveal-on-scroll {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(.16, 1, .3, 1), transform 600ms cubic-bezier(.16, 1, .3, 1);
}
.js-reveal .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---- Hero ---- */
/* Full-bleed: the hero spans the whole width; its content keeps the page column. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: none; margin: calc(-1 * var(--header-h)) 0 0; /* starts behind the header */
  min-height: 100vh; min-height: 100svh; /* fills the first screen; svh for mobile browser bars */
  padding: calc(64px + var(--header-h)) max(var(--gutter), calc((100% - var(--page)) / 2 + 40px)) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 32px; align-items: start; justify-items: center;
  background: var(--neutral-100);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("hero-poster.jpg") center / cover no-repeat;
}
.hero-bg, .hero::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 15%, transparent 50%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 15%, transparent 50%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.hero-copy { position: relative; z-index: 3; width: 100%; max-width: 1240px; min-width: 0; text-align: center; }
.hero h1 {
  max-width: none; margin: 0 auto 24px;
  font-size: var(--fs-hero); line-height: 0.9;
  text-wrap: balance;
}
.hero h1 .hero-brand { color: var(--green); }
/* Eyebrow chip above the hero title. */
.chip {
  display: inline-block; margin-bottom: 24px; padding: 6px 16px; line-height: 1.43; border-radius: 999px;
  background: var(--green-tint); color: var(--green); font-size: var(--fs-small); font-weight: 500;
}
.chip-flag { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; }
/* Supporting text under any title. */
.lede, .step p { max-width: 42ch; font-size: var(--fs-lede); line-height: 1.5; color: var(--neutral-600); text-wrap: pretty; }
/* On image backgrounds supporting text takes the block's own colour instead of the gray. */
.closer .lede, .hero .lede, .hero .hero-note { color: inherit; }
.hero .lede { max-width: 60ch; margin-inline: auto; }

/* ---- Hero 3D phone (same model as the Fosil waitlist) ---- */
.hero-visual { position: relative; z-index: 1; justify-self: center; width: 100%; max-width: clamp(300px, 40vw, 520px); }
.model-frame { position: relative; isolation: isolate; aspect-ratio: 3 / 4.15; }
.model-frame model-viewer {
  display: block; width: 100%; height: 100%; --poster-color: transparent;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.model-frame model-viewer.is-loaded { opacity: 1; transform: none; }
.model-frame model-viewer.is-entering { pointer-events: none; }
/* The upper arc is visible beside the phone from the first hero view. */
.hero-orbit { position: absolute; inset: 0; z-index: 0; touch-action: pan-y pinch-zoom; }
.hero-orbit[hidden] { display: none; }
.hero-orbit-dot { position: absolute; top: 0; left: 0; aspect-ratio: 1; pointer-events: none; }
.hero-orbit-dot img { display: block; width: 100%; height: 100%; object-fit: contain; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .hero-orbit { display: none; }
}
/* ---- Waitlist form: the Fosil waitlist component (pre-App Store-badge version, commit d2bf6417^) ---- */
.waitlist-form { max-width: 440px; }
.hero .waitlist-form { width: 100%; margin: 32px auto 0; }
.hero-note { max-width: 52ch; margin: 6px auto 0; font-size: var(--fs-caption); color: var(--neutral-600); }
.waitlist-form form { display: flex; }
.field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-500);
  border-radius: 100px;
  padding: 8px 8px 8px 16px;
  height: 56px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field:has(input:focus) {
  border-color: var(--neutral-800);
  box-shadow: 0 0 0 1px var(--neutral-800);
}
.field.is-invalid,
.field.is-invalid:focus-within {
  border-color: var(--red-600);
  box-shadow: 0 0 0 1px var(--red-600);
}
input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--neutral-800);
  font-family: inherit;
  font-size: var(--fs-body);
  letter-spacing: normal;
  height: 40px;
  min-width: 0;
  padding-right: 88px;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}
input[type="email"]::placeholder { color: var(--neutral-500); }
.submit-btn {
  position: absolute;
  /* 8px from the outer edge on every side: offsets start inside the field's 1px border. */
  right: 7px;
  top: 7px;
  display: grid;
  place-items: center;
  /* The hidden label stays wider than the 40px circle: keep the overflow even so the check centers. */
  justify-content: center;
  /* The label swap in landing.js measures width: auto; the page-wide allow-keywords would animate it. */
  interpolate-size: numeric-only;
  min-width: 40px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: normal;
  color: var(--neutral-100);
  background: var(--green);
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.06);
  transition: right 560ms cubic-bezier(0.2, 0, 0, 1), width 320ms cubic-bezier(0.2, 0, 0, 1), padding 240ms cubic-bezier(0.2, 0, 0, 1), background-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}
/* The two signup bars are 48px, with their 40px action inset by 4px. */
:where(.waitlist-form > form) > .field { height: 48px; padding-block: 3px; padding-right: 4px; }
:where(.waitlist-form > form) > .field > .submit-btn { top: 3px; right: 3px; }
.submit-label,
.submit-check {
  grid-area: 1 / 1;
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.submit-label {
  transition: opacity 120ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 120ms cubic-bezier(0.2, 0, 0, 1), transform 120ms cubic-bezier(0.2, 0, 0, 1);
}
.submit-btn.is-label-changing .submit-label {
  opacity: 0;
  transform: translateY(-2px);
  filter: blur(2px);
}
.submit-check {
  display: grid;
  place-items: center;
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}
.submit-check svg { width: 20px; height: 20px; }
.confirmation-copy {
  position: absolute;
  left: 63px;
  right: 16px;
  text-align: left;
  color: var(--neutral-800);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: normal;
  opacity: 0;
  transform: translateX(8px);
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1), transform 280ms cubic-bezier(0.2, 0, 0, 1), filter 280ms cubic-bezier(0.2, 0, 0, 1);
}
.field.is-confirmed input[type="email"] {
  opacity: 0;
  transform: translateX(-8px);
  filter: blur(4px);
  pointer-events: none;
}
.field.is-confirmed .submit-btn {
  right: calc(100% - 47px);
  width: 40px;
  padding-left: 0;
  padding-right: 0;
  opacity: 1;
}
.field.is-confirmed .submit-label {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}
.field.is-confirmed .submit-check {
  opacity: 1;
  scale: 1;
  filter: blur(0);
}
.field.is-confirmed.is-settled .confirmation-copy {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
@media (hover: hover) and (pointer: fine) {
  .submit-btn:hover { background: #022e19; /* --green, a step darker */ box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.06), 0px 2px 6px 0px rgba(0, 0, 0, 0.08); }
}
.submit-btn:active { transform: scale(0.96); box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.06); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.submit-btn:focus-visible { outline: 2px solid var(--neutral-800); outline-offset: 2px; }
input[type="email"]:focus-visible { outline: none; }
/* Returning actions keep a comfortable target while retaining caption typography. */
.waitlist-returning {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 12px 0;
  background: none;
  border: none;
  color: inherit;
  font-size: var(--fs-caption);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.waitlist-returning:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hero .waitlist-returning { display: flex; width: fit-content; min-height: 0; padding: 0; margin: 12px auto 0; }
.waitlist-form:has(.is-confirmed) .waitlist-returning { visibility: hidden; }

/* After a signup: the section's text and the form go; a back arrow and the share card take their place. */
.is-sharing > :not(.waitlist-form),
.is-sharing .waitlist-form form,
.is-sharing .waitlist-returning { display: none; }
/* Back answers a tap: no page-load entrance on the way back. */
.was-sharing > .reveal, .was-sharing .hero-word { animation: none; }
.share-view {
  text-align: left;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.share-card {
  padding: 24px 16px 16px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 24px;
  color: var(--neutral-800);
}
.share-btn.share-back {
  display: flex;
  justify-content: center;
  width: 40px;
  margin: 0 0 8px -8px; /* the arrow itself sits 16px above the card and lines up with its edge */
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.share-btn.share-back svg { width: 24px; height: 24px; }
.share-title { font-size: var(--fs-subtitle); text-align: center; text-wrap: balance; }
.share-position { color: var(--green); }
.share-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto;
  overflow-wrap: anywhere;
}
.share-referrals {
  margin: -8px 0 16px;
  font-size: var(--fs-small);
  text-align: center;
}
.share-position, .share-seats, .share-points, .follow-points { font-variant-numeric: tabular-nums; }
.share-referrals-count { font-variant-numeric: tabular-nums; color: var(--green); font-weight: 500; }
.share-section {
  margin-top: 8px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  border-radius: 16px;
}
.share-section summary {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 8px 8px;
}
.share-seats {
  flex: none;
  margin: 0 0 0 -8px; /* 8px from the title, inside the summary's 16px gap */
  padding: 0 8px;
  line-height: 2;
  font-size: var(--fs-caption);
}
.share-section .faq-chevron { margin-left: auto; }
.share-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green);
}
.share-icon svg { width: 20px; height: 20px; }
.share-section-body { padding: 8px 16px 16px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 100px;
  color: var(--neutral-800);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn:focus-visible { outline: 2px solid var(--neutral-800); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .share-btn:hover { background: var(--neutral-300); }
  .share-btn.share-back:hover { background: transparent; }
  .share-btn.follow-btn:hover { background: #022e19; /* --green, a step darker */ }
  .share-btn.follow-btn.is-done:hover { background: var(--green-tint); }
}
.follow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 16px;
}
.follow-row + .follow-row { margin-top: 8px; }
.follow-row > svg { flex: none; width: 24px; height: 24px; margin-right: 8px; }
.follow-text { flex: 1; min-width: 0; }
.follow-title { display: block; font-size: var(--fs-small); font-weight: 500; }
.follow-handle { display: block; overflow-wrap: anywhere; color: var(--neutral-600); font-size: var(--fs-caption); }
.follow-points { flex: none; margin-right: 8px; color: var(--green); font-size: var(--fs-small); font-weight: 500; }
.share-btn.follow-btn {
  flex: none;
  justify-content: center;
  min-width: 80px;
  background: var(--green);
  border-color: var(--green);
  color: var(--neutral-100);
}
.share-btn.follow-btn.is-done {
  background: var(--green-tint);
  border-color: var(--green-tint);
  color: var(--green);
}
.share-action { display: flex; flex-direction: column; gap: 8px; }
.share-action[hidden] { display: none; }
.testimonial textarea {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  outline: none;
  color: var(--neutral-800);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.5;
  resize: vertical;
}
.testimonial textarea:focus { border-color: var(--neutral-800); box-shadow: 0 0 0 1px var(--neutral-800); }
.share-action .form-error { width: 100%; text-align: left; }
.share-action .form-error:not(.is-visible) { display: none; }
.share-action .form-error.is-visible { margin-top: 0; }
.share-action .follow-btn { align-self: flex-end; }
.share-action .follow-btn:disabled { opacity: 0.6; cursor: default; }
.share-section .share-note { padding: 0; font-size: var(--fs-small); text-align: left; }
.share-section .share-done { padding: 0; color: var(--green); font-size: var(--fs-small); font-weight: 500; text-align: left; }
.share-link { margin-top: 16px; }
.share-link input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding-right: 104px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--neutral-800);
  font-family: inherit;
  font-size: var(--fs-body);
  text-align: left;
}
.share-link .submit-btn { min-width: 96px; }
/* Signup and share views: the page stays live; only the text column fades through. */
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }
::view-transition-old(waitlist-section) { animation: waitlist-out 120ms ease-out both; }
::view-transition-new(waitlist-section) { animation: waitlist-in 200ms cubic-bezier(.16, 1, .3, 1) 100ms both; }
@keyframes waitlist-out { to { opacity: 0; } }
@keyframes waitlist-in { from { opacity: 0; transform: translateY(8px); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--red-600);
  font-size: var(--fs-small);
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(2px);
  transition: max-height 240ms cubic-bezier(0.2, 0, 0, 1), margin-top 240ms cubic-bezier(0.2, 0, 0, 1), opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}
.form-error.is-visible {
  max-height: 48px;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .field, .field *, .form-error { transition-duration: 0.01ms !important; }
}

/* ---- Intro: centered statement with Deploy Finance's scroll-driven word reveal ---- */
.intro {
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  background: linear-gradient(to bottom, #fff 0, #fff calc(100% - 180px), rgba(255, 255, 255, 0) 100%);
}
.intro-stage { position: relative; display: grid; place-items: center; }
.intro-content { position: relative; z-index: 1; width: 100%; max-width: 1320px; }
.intro-text {
  max-width: none; margin: 0 auto;
  color: var(--neutral-800); text-align: center; text-wrap: pretty;
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
}
.intro-word { display: inline-block; }
.intro-text > p + p { margin-top: 0.5em; }
.intro-accent { color: var(--green); }
.intro-brand { white-space: nowrap; }
.intro-isologo { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; }
.intro-product-word { white-space: nowrap; }
.intro-products {
  display: inline-block; position: relative;
  width: 1.15em; height: 1.15em; vertical-align: -0.18em;
  border-radius: 0.25em; background: var(--neutral-100);
}
.intro-product {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0.06em; border-radius: inherit; object-fit: contain;
  opacity: 0; transform: translateY(0.12em) scale(0.94);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.intro-product.is-current { opacity: 1; transform: none; }
.intro-products.is-playing .intro-product.is-current {
  animation: intro-product-pop 440ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes intro-product-pop {
  from { opacity: 0; transform: translateY(0.12em) scale(0.9); }
  60% { opacity: 1; transform: translateY(0) scale(1.04); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-product { transition: none; transform: none; }
  .intro-products.is-playing .intro-product.is-current { animation: none; }
}
.intro.is-scroll-reveal {
  height: calc(100svh - var(--header-h) + var(--intro-scroll-distance));
  padding-block: 0;
}
.intro.is-scroll-reveal .intro-stage {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
}
/* Every section title: same size, same wrapping. */
.assistant h2, .compare-diff, .catalog h2, .faq h2, .closer h2 { font-size: var(--fs-title); text-wrap: balance; text-align: center; }

/* Pre-paywall features share a single slot below the pinned paragraph. */
.intro-features { max-width: 680px; margin: 64px auto 0; list-style: none; display: grid; gap: 16px; }
.intro-feature {
  display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px;
  text-align: left;
}
.intro-feature > img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.intro-feature h3 { font-size:1.5rem; text-wrap: balance; }
.intro-feature p { margin-top: 8px; font-size: var(--fs-body); color: var(--neutral-600); }
.intro-tiktok-word { white-space: nowrap; }
.intro-tiktok { display: inline-block; width: 1em; height: 1em; object-fit: contain; vertical-align: -0.14em; }
.intro.is-scroll-reveal .intro-features { position: absolute; top: calc(100% + 64px); left: 0; right: 0; margin: 0 auto; }
.intro.is-scroll-reveal .intro-feature { grid-area: 1 / 1; opacity: 0; }
@media (max-width: 720px) {
  .intro-feature { gap: 16px; padding: 20px; }
  .intro-feature > img { width: 40px; height: 40px; }
  .intro-feature h3 { font-size:1.125rem; }
  .intro-feature p { font-size: var(--fs-small); }
}

/* ---- Steps: numbered list beside a sticky phone (pattern from gotcha.catchy.fan) ---- */
.steps {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 64px;
  max-width: 1120px; margin: 288px auto 0; padding: 0 var(--gutter);
  overflow-x: clip; /* keeps the phone glow from widening the page; clip keeps sticky working */}
.steps-list { list-style: none; padding-bottom: 160px; }
.step { display: flex; gap: 24px; align-items: flex-start; min-height: 64vh; padding-top: 24vh; }
.step:first-child { padding-top: 8px; }
.step-num {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--neutral-100); font-size:1.5rem; font-weight: 600;
}
.step h3 { margin-bottom: 8px; font-size: var(--fs-subtitle); text-wrap: balance; }
.js-steps .step { transition: opacity 240ms ease; }
.js-steps .step:not(.is-active) { opacity: 0.4; }

.steps-device { position: relative; }
.steps-device::before {
  content: ""; position: absolute; inset: 8% -24%; z-index: -1;
  background: radial-gradient(closest-side, var(--green-tint), transparent); opacity: 0.8;
}
.steps-phone {
  position: sticky; top: 104px;
  width: 100%; max-width: calc((100svh - 152px) * 418 / 850);
  aspect-ratio: 418 / 850; margin: 0 auto;
}
.steps-phone-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.steps-screen { position: absolute; inset: 1.3% 3%; border-radius: 19% / 9%; overflow: hidden; background: var(--neutral-100); }
.screen {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  opacity: 0; transition: opacity 240ms ease;
}
.screen.is-active { opacity: 1; }
.step-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--neutral-100); opacity: 0; }
.step-video.is-ready { opacity: 1; }
.screen-mark { width: 96px; height: 96px; }
.screen-caption { font-size: var(--fs-body); font-weight: 500; color: var(--neutral-600); }
/* Narrow screens have no room beside the list: each step carries its own phone instead (shown at 860px). */
.step-phone { display: none; }

.tag {
  display: inline-block; margin-left: 8px; padding: 0 8px; line-height: 2; border-radius: 999px;
  background: var(--green-tint); color: var(--green); font-family: var(--font-family); font-size: var(--fs-caption); font-weight: 600; letter-spacing: normal; font-variation-settings: normal; vertical-align: 3px;
}

/* ---- Compare: the same basket as two receipts ---- */
.compare {
  max-width: 1120px; margin: 304px auto 0; padding: 64px var(--gutter);
  text-align: center;
}
/* The printer bodies stick out 24px on each side, so the gap includes them: 48px overlap + 40px air. */
.receipts { display: flex; justify-content: center; align-items: flex-start; gap: 88px; margin-top: 48px; padding: 0 24px; }
/* A receipt printer: a molded body with a status light, and a dark slit along its bottom edge.
   The paper sits behind the body and comes out of the slit. */
.printer { flex: 0 1 360px; min-width: 0; }
.printer-body {
  position: relative; z-index: 1; height: 80px; margin: 0 -24px;
  border-radius: 24px 24px 16px 16px;
  background: linear-gradient(#3b3b3b, #232323 56%, #161616);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}
.printer-body::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -4px; height: 8px; border-radius: 8px;
  background: #050505; box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.printer-brand {
  position: absolute; top: 24px; left: 32px;
  font-family: var(--font-display); font-size:1.25rem; line-height: 1; color: rgba(255, 255, 255, 0.4);
}
.printer-led {
  position: absolute; top: 32px; right: 32px; width: 8px; height: 8px; border-radius: 50%;
  background: #3cc14e; box-shadow: 0 0 8px rgba(60, 193, 78, 0.8);
}
/* Paper is narrower than the slit and starts behind it. */
.printer-feed { position: relative; margin: -4px 8px 0; padding-bottom: 16px; overflow: hidden; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.08)); }
.paper { position: relative; }
.receipt {
  position: relative; z-index: 1; padding: 40px 24px 0;
  /* Thermal paper, shaded where it leaves the slit. */
  background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04) 16px, transparent 48px), #fdfdfb;
  color: var(--neutral-800); text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-small); line-height: 1.5;
  /* Half of each perforation notch, cut out of the bottom corners (transparent, not painted). */
  -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 100%, #0000 98%, #000);
          mask-composite: intersect;
}
.receipt-store { font-size: var(--fs-lede); font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: 0.08em; }
.receipt-meta { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px dashed var(--neutral-300); text-align: center; color: var(--neutral-600); }
.receipt-lines { list-style: none; }
.receipt-lines li, .receipt-total { display: flex; justify-content: space-between; gap: 16px; }
.receipt-lines li { padding: 8px 0; }
.receipt-lines li > :last-child, .receipt-total > :last-child { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-total { margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--neutral-300); font-size: var(--fs-lede); font-weight: 600; }
/* Perforation with side notches, like the ticket's tear-off stub. */
.receipt-cut { position: relative; margin: 24px -24px 0; border-top: 2px dashed var(--neutral-300); }
.receipt-cut-hint {
  /* Sits just above the perforation, inside the paper (the notch mask clips anything below it). */
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  font-size: var(--fs-caption); line-height: 1.667; color: var(--neutral-600); white-space: nowrap;
  opacity: 0; transition: opacity 200ms ease-out;
}
.is-printed .receipt-cut-hint { opacity: 1; }
.paper:has(.receipt-stub.is-torn) .receipt-cut-hint { opacity: 0; }
/* The tear-off stub: its own strip of paper with the torn bottom edge, draggable once printed. */
.receipt-stub {
  position: relative; padding: 24px; background: #fdfdfb;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; transform-origin: 0 0;
  /* Other half of the notches at the top corners, and the torn edge at the bottom. */
  -webkit-mask:
    radial-gradient(circle 12px at 0 0, #0000 98%, #000),
    radial-gradient(circle 12px at 100% 0, #0000 98%, #000),
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  -webkit-mask-composite: source-in, source-in;
          mask:
    radial-gradient(circle 12px at 0 0, #0000 98%, #000),
    radial-gradient(circle 12px at 100% 0, #0000 98%, #000),
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask-composite: intersect;
}
.is-printed .receipt-stub { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.is-printed .receipt-stub.is-dragging { cursor: grabbing; }
.receipt-stub:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.tear-ready .receipt-cut { border-top-color: transparent; }
.receipt-fibres { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.receipt-fibres path { fill: none; stroke: #fdfdfb; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); }
/* Teaching nudge: a small downward tug, once (explanation, rare tier). */
@keyframes stub-nudge { 50% { transform: translateY(10px) rotate(0.5deg); } }
.receipt-stub.is-nudging { animation: stub-nudge 500ms cubic-bezier(0.77, 0, 0.175, 1); }
.is-printed .printer-feed { overflow: visible; }
/* Vector bars, so they stay crisp while the stub rotates during a drag. */
.receipt-barcode { display: block; width: calc(100% - 32px); height: 56px; margin: 0 16px; fill: var(--neutral-800); }
.receipt-foot { margin: 8px 0 8px; text-align: center; font-size: var(--fs-caption); color: var(--neutral-600); }
.receipt-stamp {
  position: absolute; right: 16px; bottom: 40px; padding: 0 16px; line-height: 1.715;
  border: 3px solid var(--green); border-radius: 8px; color: var(--green); background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display); font-size:1.75rem; font-weight: 600; transform: rotate(-12deg);
}
.compare-diff { max-width: 20ch; margin: 0 auto; }
.compare-diff strong { color: var(--green); font-weight: 600; }
.compare-note { max-width: 56ch; margin: 32px auto 0; font-size: var(--fs-small); color: var(--neutral-600); }
/* Printing (marketing, rare tier: delight + explanation). Starts when the receipts themselves are
   mostly on screen. A receipt printer feeds in bursts, so the paper moves in linear runs with short
   stops (keyframes are fine here: it runs once and is never re-triggered). Receipt 2 starts 400ms
   later. While paper moves, the body hums 1px and the light blinks; then the stamp lands. */
@keyframes paper-feed {
  0% { transform: translateY(-100%); }
  18% { transform: translateY(-80%); }
  24% { transform: translateY(-80%); }
  46% { transform: translateY(-50%); }
  52% { transform: translateY(-50%); }
  76% { transform: translateY(-18%); }
  82% { transform: translateY(-18%); }
  100% { transform: translateY(0); }
}
@keyframes printer-hum { to { transform: translateY(1px); } }
@keyframes printer-led { 50% { background: #ffa800; box-shadow: 0 0 8px rgba(255, 168, 0, 0.8); } }
.js-print .paper { transform: translateY(-100%); }
.js-print .receipts.is-printing .paper { animation: paper-feed 1800ms linear both; }
.js-print .receipts.is-printing .printer--high .paper { animation-delay: 400ms; }
.js-print .receipts.is-printing .printer-body { animation: printer-hum 80ms linear 22 alternate; }
.js-print .receipts.is-printing .printer--high .printer-body { animation-delay: 400ms; }
.js-print .receipts.is-printing .printer-led { animation: printer-led 300ms steps(1) 6; }
.js-print .receipts.is-printing .printer--high .printer-led { animation-delay: 400ms; }
.js-print .receipt-stamp {
  opacity: 0; transform: rotate(-12deg) scale(1.4);
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1) 1900ms, transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 1900ms;
}
.js-print .receipts.is-printing .receipt-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }

/* ---- Assistant: a scripted chat, stacked top to bottom (chip, title, text, prompts, chat, note) ---- */
.assistant { max-width: 720px; margin: 304px auto 0; padding: 0 var(--gutter); text-align: center; }
.assistant h2 { max-width: 16ch; margin: 0 auto 16px; }
.assistant .lede { margin: 0 auto; }
/* No frame: the conversation sits on the page. Bubbles follow Gotcha's Kody chat. */
.chat { max-width: 480px; min-height: 600px; margin: 48px auto 0; text-align: left; }
.chat-thread { display: flex; flex-direction: column; gap: 16px; }
.chat-msg {
  max-width: 85%; padding: 12px 16px; font-size: var(--fs-body); font-weight: 500; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.chat-msg--user { align-self: flex-end; border-radius: 24px 24px 8px 24px; background: var(--neutral-800); color: var(--neutral-100); }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-avatar { flex: none; width: 40px; height: 40px; }
.chat-stack { position: relative; display: grid; justify-items: start; }
.chat-msg--bot { max-width: none; border-radius: 24px 24px 24px 8px; background: var(--neutral-100); transform-origin: 0 100%; }
.chat-typing {
  position: absolute; left: 0; bottom: 0; display: inline-flex; gap: 4px; padding: 16px;
  border-radius: 24px 24px 24px 8px; background: var(--neutral-100); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: scale(0.7); transform-origin: 0 100%; pointer-events: none;
}
.chat-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-600); }
.chat-card { margin-left: 48px; padding: 16px; border: 1px solid var(--neutral-300); border-radius: 16px; background: var(--neutral-100); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.chat-card-title { margin-bottom: 16px; font-size: var(--fs-small); font-weight: 600; }
.chat-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.chat-store { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 0; border-radius: 16px; background: var(--neutral-200); color: var(--neutral-800); text-align: left; cursor: pointer; }
.chat-store[aria-pressed="true"] { background: var(--green-tint); box-shadow: inset 0 0 0 2px var(--green); }
.chat-store > span { font-size: var(--fs-small); }
.chat-store strong { font-size:1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.chat-store small { color: var(--green); font-size: var(--fs-caption); }
.chat-card-lines { list-style: none; }
.chat-card-lines li { display: grid; grid-template-columns: 48px minmax(0, 1fr) max-content; gap: 4px 16px; padding: 12px 0; font-size: var(--fs-small); align-items: center; }
.chat-card-lines li > img { grid-column: 1; grid-row: 1 / 3; width: 48px; height: 48px; object-fit: contain; }
.chat-product-name { grid-column: 2 / 4; grid-row: 1; font-weight: 500; }
.chat-unit-price { grid-column: 2; grid-row: 2; color: var(--neutral-600); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.chat-stepper { grid-column: 3; grid-row: 2; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px; border: 1px solid var(--neutral-300); border-radius: 999px; background: var(--neutral-100); }
.chat-stepper button { width: 28px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--neutral-800); font-size:1.125rem; cursor: pointer; }
.chat-stepper [data-quantity-value] { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.chat-applied-qty { display: none; grid-column: 3; grid-row: 2; color: var(--neutral-600); font-size: var(--fs-caption); }
.chat-thread.is-added .chat-stepper { display: none; }
.chat-thread.is-added .chat-applied-qty { display: inline; }
.chat-card-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--neutral-300); font-size: var(--fs-body); }
.chat-card-total strong { font-size:1.5rem; font-variant-numeric: tabular-nums; }
.chat-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.chat-btn {
  padding: 9.5px 16px; min-height: 40px; line-height: 1.5; border: 0; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
  background: var(--green); color: var(--neutral-100); transition: transform 120ms ease;
}
.chat-added-label { display: none; }
.chat-thread.is-added .chat-add-label { display: none; }
.chat-thread.is-added .chat-added-label { display: inline; }
.chat-add.is-pressing { transform: scale(0.96); }
@media (max-width: 420px) {
  .chat-card { margin-left: 0; }
  .chat-card-lines li { column-gap: 8px; }
  .chat-store strong { font-size:1.25rem; }
  .chat-card-actions { flex-wrap: wrap; }
}

/* The scripted chat, animated like Gotcha's Kody chat: each piece rises and fades in (no scale);
   the typing dots grow from 0.7 at the bubble's tail, bounce with Gotcha's gh-typing timing, then
   shrink back while the reply rises into the same spot. Played by landing.js; without it everything shows. */
.js-chat .chat-step {
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1), transform 450ms cubic-bezier(0.23, 1, 0.32, 1);
}
.js-chat .chat-step.is-shown { opacity: 1; transform: none; visibility: visible; }
.chat-typing { transition: opacity 200ms ease-out, transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.chat-typing.is-shown { opacity: 1; transform: scale(1); }
.chat-typing.is-shown i { animation: chat-typing 1s ease-in-out infinite; }
.chat-typing.is-shown i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing.is-shown i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---- Catalog: real product count + color-sorted photo strip (generated by build-catalog.mjs) ---- */
/* Full-bleed white band; the heading keeps the page column, the strip runs edge to edge. */
.catalog {
  --tile: 160px; --tile-gap: 16px;
  margin: 304px 0 0; padding: 64px 0;
  background: var(--neutral-100);
}
/* Centered stack: title on top, the big number below it. */
.catalog-head {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  margin-bottom: 48px; padding: 0 var(--gutter); text-align: center;
}
.catalog-head h2 { max-width: 14ch; margin: 0 auto; }
.catalog-count { text-align: center; font-size: var(--fs-body); font-weight: 500; color: var(--neutral-600); }
.catalog-count span {
  display: block; color: var(--green);
  font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100;
  font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
/* The old grid's rows (16; 12 on phones), colors sorted from top to bottom (build-catalog.mjs
   orders the tiles). The track holds the
   strip twice and slides left by exactly one copy (half the track plus half a gap), then
   starts over: a seamless loop. Constant motion: linear. Marketing, seen once: slow is fine. */
.catalog-marquee { overflow: hidden; }
.catalog-track { display: flex; gap: var(--tile-gap); width: max-content; animation: catalog-scroll 100s linear infinite; }
.catalog-grid {
  list-style: none; display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(16, var(--tile)); grid-auto-columns: var(--tile); gap: var(--tile-gap);
}
@keyframes catalog-scroll { to { transform: translateX(calc(-50% - var(--tile-gap) / 2)); } }
/* The strip never pauses: not on hover, and so not while the wheel scrolls the page past it. */
.tile { display: grid; place-items: center; aspect-ratio: 1; padding: 16px; border-radius: 16px; background: var(--neutral-100); }
.tile img { width: 100%; height: 100%; object-fit: contain; transition: transform 200ms ease; }
.js-reveal .tile img { opacity: 0; transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1), transform 200ms ease; }
/* Hover: a brief scale-up of the photo (not the tile, whose transform carries the reveal wave and
   its delays). Delight on a once-seen page; only where a real hover exists. */
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.08); }
}
.js-reveal .tile img.is-loaded { opacity: 1; }
/* The tiles fade and settle in once when the section is revealed. */
.js-reveal .catalog .tile {
  opacity: 0; transform: scale(0.96);
  transition: opacity 400ms cubic-bezier(.16, 1, .3, 1), transform 400ms cubic-bezier(.16, 1, .3, 1);
}
.js-reveal .catalog.is-visible .tile { opacity: 1; transform: none; }

/* ---- FAQ (accordion) ---- */
.faq { max-width: 720px; margin: 456px auto 0; padding: var(--section-gap) var(--gutter) clamp(64px, 12vw, 144px); }
.faq h2 { margin-bottom: 40px; text-align: center; }
.faq-list { border-top: 1px solid var(--neutral-300); }
details { border-bottom: 1px solid var(--neutral-300); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; font-size: var(--fs-body); font-weight: 500; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--neutral-600); transition: transform 250ms cubic-bezier(0.2, 0, 0, 1); }
details[open] .faq-chevron { transform: rotate(180deg); }
details p { max-width: 60ch; padding-bottom: 24px; font-size: var(--fs-body); color: var(--neutral-600); }
/* Browsers without ::details-content or interpolate-size keep the instant open. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 250ms cubic-bezier(0.2, 0, 0, 1), content-visibility 250ms allow-discrete;
  }
  details[open]::details-content { block-size: auto; }
}

/* ---- Closer ---- */
.closer {
  max-width: var(--page); margin: 152px auto 0;
  padding: clamp(96px, 16vw, 200px) var(--gutter);
  border-radius: 32px; color: var(--neutral-800); text-align: center;
  /* Dark text: the image is light where the text sits. Green grain-and-light image; the green underneath shows until it loads. */
  background: var(--green) url("closer-bg.jpg") center / cover no-repeat;
}
.closer h2 { max-width: 620px; margin: 0 auto 16px; }
.closer .lede { margin: 0 auto 40px; }
.closer .waitlist-form { margin: 0 auto; }
.closer .waitlist-form form { justify-content: center; }

/* ---- Brand band + footer ---- */
.brand-footer { max-width: var(--page); margin: 56px auto 0; padding: 0 var(--gutter); }
.brand-footer-logo { display: block; width: 100%; height: auto; color: var(--green); }
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--page); margin: 24px auto 0; padding: 0 var(--gutter) 24px;
  font-size: var(--fs-small); color: var(--neutral-600);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer a:hover { color: var(--neutral-800); }

@media (max-width: 1024px) {
  .catalog { --tile: 128px; }
}
@media (max-width: 720px) {
  .hero { padding: calc(40px + var(--header-h)) 16px 40px; }
  .share-section-body { padding: 8px; }
  .follow-row { padding-left: 8px; }
  .follow-row > svg, .follow-points { margin-right: 0; }
  :root { --fs-hero: 2.5rem; --fs-title: 2rem; --fs-subtitle: 1.5rem; --fs-display: 4rem; }
  .compare { padding: 40px 16px; }
  .receipts { flex-direction: column; align-items: center; gap: 24px; }
  .catalog { --tile: 88px; --tile-gap: 8px; padding: 40px 0; }
  .catalog-head { padding: 0 16px; }
  /* Phones keep the 12 rows the old grid had: the last four rows' tiles are dropped. */
  .catalog-grid { grid-template-rows: repeat(12, var(--tile)); }
  .tile.extra { display: none; }
  .tile { padding: 8px; border-radius: 8px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); row-gap: 12px; }
  .step > div { display: contents; }
  .step-num { grid-column: 1; grid-row: 1; }
  .step h3 { grid-column: 2; margin-bottom: 0; }
  .step p { grid-column: 1 / -1; max-width: none; font-size: var(--fs-body); }
  .step-phone { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; margin-top: 96px; }
  .steps-device { display: none; }
  .step, .step:first-child { min-height: 0; padding-top: 0; margin-bottom: 40px; flex-wrap: wrap; }
  .step > .step-phone { /* outranks the 720px `.step > div { display: contents }` */
    display: block; position: relative; flex-basis: 100%;
    width: 100%; max-width: 280px; aspect-ratio: 418 / 850; margin: 24px auto 0;
  }
  .js-steps .step:not(.is-active) { opacity: 1; }
  .hero-visual { max-width: clamp(260px, 76vw, 360px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-word { animation: none; }
  .faq-chevron { transition: none; }
  .model-frame model-viewer { transform: none; transition: opacity 200ms var(--ease-out); }
  details::details-content { transition: none; }
  details[open] p { animation: faq-fade 150ms ease-out; }
  .js-reveal .reveal-on-scroll { transform: none; transition: opacity 200ms ease-out; }
  .js-steps .step, .screen { transition-duration: 120ms; }
  .js-chat .chat-step { transform: none; transition: opacity 150ms ease-out; }
  .chat-typing.is-shown i { animation: none; }
  .js-reveal .catalog .tile { transform: none; transition: opacity 200ms ease-out; transition-delay: 0ms; }
  .js-reveal .tile img { transition-duration: 150ms; }
  .tile:hover img { transform: none; }
  /* Reduced motion: the strip stands still and scrolls by hand instead; the copy isn't needed. */
  .catalog-track { animation: none; }
  .catalog-marquee { overflow-x: auto; }
  .catalog-grid[aria-hidden="true"] { display: none; }
  .receipt-stub.is-nudging { animation: none; }
  /* Reduced motion: no paper movement or hum; the receipts fade in and the stamp fades on. */
  .js-print .paper { transform: none; opacity: 0; transition: opacity 200ms ease-out; }
  .js-print .receipts.is-printing .paper { opacity: 1; animation: none; }
  .js-print .receipts.is-printing .printer-body,
  .js-print .receipts.is-printing .printer-led { animation: none; }
  .js-print .receipt-stamp { transform: rotate(-12deg); transition: opacity 200ms ease-out 300ms; }
  .js-print .receipts.is-printing .receipt-stamp { transform: rotate(-12deg); }
}
@keyframes faq-fade { from { opacity: 0; } }
