/* Ancizar Serif (SIL OFL 1.1, licence alongside the file): display face for headings. */
@font-face {
  font-family: "Ancizar Serif";
  src: url("assets/fonts/ancizar-serif/AncizarSerif-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17201D;
  --ink-soft: #333E3A;
  --muted: #6B7772;
  --mist: #E2E6E3;
  --surface: #F6F6F3;
  --white: #FFFFFF;
  --sage: #58675D;
  --sage-dark: #4A574F;
  --sage-soft: #A7B89F;
  --sage-wash: #F6F8F5;
  --cream: #F6E3D9;
  --rose: #C98288;
  --rose-dark: #B56B72;
  --surface-soft: #EEF2EC;
  --display: "Ancizar Serif", Georgia, "Times New Roman", serif;
  --border: var(--mist);
  --shadow: none;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}

.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header-sticky { position: sticky; top: 0; }
:target, #join { scroll-margin-top: 6rem; }

.brand { display: inline-flex; }
.brand img { width: 11.5rem; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.primary-nav > a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-nav > a:not(.button):hover { color: var(--ink); }

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { background: var(--sage-dark); }
.button-small { min-height: 2.65rem; padding: 0.65rem 1.1rem; font-size: 0.92rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
  background: var(--surface);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.hero h1,
.section h2,
.principles h2,
.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero h1 { font-size: clamp(3.2rem, 5.2vw, 5rem); text-wrap: balance; }
.hero h1 .h1-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .h1-line > span { display: block; }
.hero h1 .h1-accent { color: var(--sage); }

.hero-lead {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-list { min-height: 5rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 1.5rem; }
.trust-list span { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.trust-list span::before { content: ""; position: absolute; left: 0; top: 0.63em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--sage); }

.section { padding: clamp(5.5rem, 9vw, 8rem) 0; }
.section-intro { max-width: 46rem; }
.section h2 { font-size: clamp(2.55rem, 4.7vw, 4.45rem); }
.section-intro > p:last-child { max-width: 42rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.section-soft { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.feature-card { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--border); border-top: 3px solid var(--sage); border-radius: var(--radius-lg); background: var(--white); }
.feature-card h3 { margin: 0 0 0.6rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 400; line-height: 1.2; }
.feature-card p { margin: 0; color: var(--muted); }

/* Waitlist forms */
.button-primary { color: var(--white); background: var(--rose); font-size: 1.02rem; font-weight: 650; }
.button-primary:hover { background: var(--rose-dark); }
.button-primary.button-small { font-size: 0.95rem; }
.button:disabled { cursor: progress; opacity: 0.7; }
.hero-actions { margin-top: 2.2rem; }
.hero-devices { width: 100%; height: auto; }
.waitlist-form { max-width: 40rem; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 0.35rem; }
.field > span { color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.field:has(> :required) > span::after {
  content: "*" / "";
  margin-inline-start: 0.25em;
}
.field input { width: 100%; min-height: 3.15rem; padding: 0.7rem 0.9rem; color: var(--ink); border: 1px solid var(--sage-soft); border-radius: var(--radius-md); background: var(--white); font: inherit; }
.field input:focus-visible { outline: 3px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.82rem; }
.form-note a { color: inherit; text-underline-offset: 0.2em; }
.form-status { margin: 0.6rem 0 0; font-size: 0.92rem; font-weight: 650; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--rose-dark); }
.waitlist-form.is-complete .form-fields,
.waitlist-form.is-complete .button,
.waitlist-form.is-complete .form-note { display: none; }
.waitlist-form.is-complete .form-status { margin: 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--sage); color: var(--ink); background: var(--sage-wash); font-size: 1.05rem; }
.waitlist-form-light .field > span { color: var(--white); }
.waitlist-form-light .form-note { color: var(--mist); }
.waitlist-form-light .form-status[data-state="error"] { color: var(--cream); }

/* The patient journey. Without site.js the tabs are hidden and every step is shown in turn. */
.journey { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.journey-tabs { display: none; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.js .journey-tabs { display: grid; }
.journey-tabs button { position: relative; display: flex; align-items: baseline; gap: 0.6rem; padding: 1rem 0.25rem; color: var(--muted); border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; cursor: pointer; }
.journey-tabs button span { color: var(--sage-soft); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; }
.journey-tabs button:hover { color: var(--ink); }
.journey-tabs button[aria-selected="true"] { color: var(--ink); }
.journey-tabs button[aria-selected="true"] span { color: var(--rose-dark); }
.journey-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.journey-step[hidden] { display: none; }
.journey-roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.journey-roles span { padding: 0.2rem 0.65rem; color: var(--sage-dark); background: var(--surface-soft); border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.journey-step h3 { margin: 1rem 0 0.8rem; color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; }
.journey-copy > p:not(.journey-roles) { margin: 0; color: var(--muted); font-size: 1.05rem; }
.journey-copy ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.journey-copy li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; color: var(--ink-soft); font-weight: 600; }
.journey-copy li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); }
.shot { margin: 0; overflow: hidden; border: 1px solid var(--mist); border-radius: 8px; background: var(--white); }
.shot-bar { display: flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-bottom: 1px solid var(--mist); color: var(--muted); font-size: 0.74rem; font-weight: 650; }
.shot-bar::before { content: ""; width: 0.6rem; height: 0.6rem; margin-right: 0.6rem; border-radius: 50%; background: var(--sage); }
.shot-screen { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--sage-wash); }
.shot-screen video, .shot-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-switch { display: none; gap: 0.3rem; margin-left: auto; }
.js .shot-switch { display: inline-flex; }
.shot-switch button { padding: 0.15rem 0.6rem; color: var(--muted); border: 1px solid var(--mist); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.shot-switch button:hover { color: var(--ink); border-color: var(--sage-soft); }
.shot-switch button[aria-pressed="true"] { color: var(--white); border-color: var(--sage); background: var(--sage); }
.shot-view { position: absolute; inset: 0; }
.shot-view[hidden] { display: none; }
.shot-placeholder { padding: 0 1.5rem; color: var(--muted); font-size: 0.9rem; font-weight: 650; text-align: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0 0 1.35rem; max-width: 40rem; color: var(--muted); }

/* Final call to action */
.cta-band { padding: clamp(5rem, 8vw, 7rem) 0; color: var(--white); background: var(--sage); }
.cta-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.cta-band h2 { margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(2.6rem, 4.8vw, 4.2rem); font-weight: 400; line-height: 1.08; }
.cta-band .cta-grid > div > p:last-child { margin: 1.4rem 0 0; color: var(--mist); font-size: 1.1rem; }

/* Scroll reveal: only hidden when site.js is running, so the page reads without it. */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 600ms ease, transform 600ms ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.principles { color: var(--white); background: var(--sage); }
.principles-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.principles h2 { color: var(--white); font-size: clamp(2.6rem, 4.8vw, 4.5rem); }
.principle-list { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.principle-list article { display: grid; grid-template-columns: 2.3rem 1fr; gap: 1.15rem; padding: 1.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.principle-list article > span { color: var(--cream); font-size: 0.72rem; font-weight: 800; }
.principle-list h3 { margin: 0; font-size: 1.05rem; }
.principle-list p { margin: 0.35rem 0 0; color: var(--mist); font-size: 0.93rem; }

.site-footer { padding: 3.3rem 0; border-top: 1px solid var(--border); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: start; }
.footer-brand img { width: 9rem; height: auto; }
.footer-brand p { margin: 0.55rem 0 0; color: var(--muted); font-family: var(--display); font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.35rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; font-weight: 700; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.76rem; }

/* Legal pages */
.legal-header { position: sticky; top: 0; backdrop-filter: blur(14px); }
.legal-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 3.5rem; background: var(--surface); }
.legal-hero .shell { max-width: 760px; }
.legal-hero h1 { max-width: 800px; font-size: clamp(3rem, 6vw, 5.2rem); }
.legal-hero .updated { margin: 1.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.draft-notice { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--sage-soft); border-radius: var(--radius-md); color: var(--ink); background: var(--sage-wash); font-size: 0.9rem; }
.draft-notice strong { display: block; margin-bottom: 0.15rem; }
.legal-layout { max-width: 900px; display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4rem; align-items: start; padding: 3.5rem 0 6rem; }
.legal-layout-single { max-width: 760px; grid-template-columns: minmax(0, 1fr); }
.legal-content { min-width: 0; }
.legal-content > p:first-child { margin-top: 0; font-size: 1.07rem; }
.legal-content section { scroll-margin-top: 7.5rem; padding-top: 1.25rem; }
.legal-content h2 { margin: 2.2rem 0 0.75rem; color: var(--ink); font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1.25; }
.legal-content h3 { margin: 1.5rem 0 0.4rem; color: var(--ink); font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li + li { margin-top: 0.42rem; }
.legal-content a { color: var(--sage); text-underline-offset: 0.2em; }
.legal-content a:hover { color: var(--sage-dark); }
.placeholder { padding: 0.04rem 0.25rem; color: var(--ink); background: var(--surface-soft); border-radius: 0.2rem; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 44rem; }
  .trust-list { padding-block: 1.4rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .journey-step { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .header-inner { min-height: 4.7rem; align-items: center; }
  .brand img { width: 8.8rem; }
  .primary-nav { gap: 0.8rem; }
  .primary-nav > a:not(.button) { display: none; }
  .hero { padding-top: 4.2rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .trust-list { grid-template-columns: 1fr; gap: 0.65rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .journey-tabs button { flex-direction: column; gap: 0.1rem; font-size: 0.92rem; }
  .form-fields { grid-template-columns: 1fr; }
  .waitlist-form .button { width: 100%; }
  .primary-nav .button-small { min-height: 2.4rem; padding: 0.5rem 0.85rem; font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-direction: column; gap: 0.65rem; }
  .copyright { grid-column: 1; }
}

/* Motion. Each animation says something about the product: the hero line settles from frantic to
   calm, the journey tabs fill as the patient moves through the visit, and the feature icons act
   out what the feature does. Everything ends on the static design and is off for reduced motion. */
::selection { color: var(--ink); background: var(--cream); }

.site-header { transition: box-shadow 200ms ease; }
.header-inner { transition: min-height 240ms ease; }
.site-header.is-scrolled .header-inner { min-height: 4.4rem; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rose); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.primary-nav > a[data-spy] { position: relative; padding: 0.35rem 0; transition: color 160ms ease; }
.primary-nav > a[data-spy]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 260ms ease; }
.primary-nav > a[data-spy][aria-current] { color: var(--ink); }
.primary-nav > a[data-spy][aria-current]::after, .primary-nav > a[data-spy]:hover::after { transform: scaleX(1); }

.button-primary::after { content: "\2192"; display: inline-block; width: 0; margin-left: 0; overflow: hidden; opacity: 0; transition: width 200ms ease, margin-left 200ms ease, opacity 200ms ease; }
.button-primary:hover::after, .button-primary:focus-visible::after { width: 1em; margin-left: 0.45rem; opacity: 1; }
.button:active { transform: translateY(1px); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }
.button-quiet { gap: 0.6rem; padding-inline: 0.2rem; color: var(--ink); border: 0; background: none; font: inherit; font-weight: 650; cursor: pointer; }
.button-quiet:hover { color: var(--sage-dark); background: none; }
.button-quiet svg { width: 2.1rem; height: 2.1rem; }
.button-quiet circle { fill: none; stroke: var(--sage); stroke-width: 1.4; transition: fill 200ms ease; }
.button-quiet path { fill: var(--sage); transition: fill 200ms ease; }
.button-quiet:hover circle { fill: var(--sage); }
.button-quiet:hover path { fill: var(--white); }
.button-quiet span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.film-open { display: none; }
.js .film-open { display: inline-flex; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(1.1rem); } }
@keyframes line-up { from { transform: translateY(110%); } }
.hero h1 .h1-line > span { animation: line-up 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both; }
.hero h1 .h1-accent > span { animation-delay: 300ms; }
.hero-lead { animation: rise 800ms ease 560ms both; }
.hero-actions { animation: rise 800ms ease 700ms both; }
.hero-visual { position: relative; animation: rise 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 320ms both; }
.hero-visual .hero-devices { transform: perspective(1400px) rotateX(calc(var(--py, 0) * -2deg)) rotateY(calc(var(--px, 0) * 2.5deg)); transition: transform 500ms ease-out; }

.smooth-line { display: block; width: min(100%, 24rem); height: 2.2rem; margin-top: 0.9rem; overflow: visible; }
.smooth-line path { fill: none; stroke: var(--sage-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }

.hero-chips { margin: 0; padding: 0; list-style: none; }
.hero-chips li { position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.85rem 0.42rem 0.45rem; color: var(--ink); border: 1px solid var(--mist); border-radius: 999px; background: var(--white); font-size: 0.8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; translate: calc(var(--px, 0) * var(--depth) * 1px) calc(var(--py, 0) * var(--depth) * 1px); transition: translate 500ms ease-out; animation: chip-in 600ms cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--d) both; }
.hero-chips i { position: relative; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--sage); }
.hero-chips i::after { content: ""; position: absolute; left: 0.4rem; top: 0.24rem; width: 0.36rem; height: 0.62rem; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(42deg); animation: tick-in 300ms ease calc(var(--d) + 350ms) both; }
@keyframes chip-in { from { opacity: 0; scale: 0.82; } }
@keyframes tick-in { from { opacity: 0; transform: rotate(42deg) scale(0.3); } }

/* Journey: the selected tab's underline fills, and the steps already passed stay marked. */
.journey-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 320ms ease, background-color 320ms ease; }
.journey-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.journey-tabs button.is-done::after { transform: scaleX(1); background: var(--sage-soft); }
.journey.is-touring .journey-tabs button[aria-selected="true"]::after { transition: none; animation: tour-fill 8s linear both; }
.journey.is-touring:hover .journey-tabs button::after, .journey.is-paused .journey-tabs button::after { animation-play-state: paused; }
@keyframes tour-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .journey-step:not([hidden]) .journey-copy > * { animation: rise 520ms ease both; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(2) { animation-delay: 70ms; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(3) { animation-delay: 140ms; }
.js .journey-step:not([hidden]) .journey-copy > :nth-child(4) { animation-delay: 210ms; }
.js .journey-step:not([hidden]) .shot { animation: shot-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes shot-in { from { opacity: 0; transform: translateX(1.5rem) scale(0.985); } }
.shot-view:not([hidden]) { animation: view-in 400ms ease both; }
@keyframes view-in { from { opacity: 0; } }

/* Feature cards: the icon draws itself when the card arrives, then acts out the feature. */
.feature-card, .js .feature-card.reveal { transition: opacity 600ms ease calc(var(--i, 0) * 70ms), transform 600ms ease calc(var(--i, 0) * 70ms), border-color 200ms ease; }
.feature-card:hover { border-color: var(--sage-soft); border-top-color: var(--rose); }
.feature-icon { display: block; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; overflow: visible; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon .thick { stroke-width: 2.8; }
.js .feature-icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1000ms ease calc(var(--i, 0) * 70ms + 250ms); }
.js .is-visible .feature-icon .draw { stroke-dashoffset: 0; }
.feature-icon .bar { stroke: none; fill: var(--sage-soft); transform-box: fill-box; transform-origin: 50% 100%; }
.feature-icon .bar.accent { fill: var(--rose); }
.is-playing .icon-stock .bar.accent { animation: restock 1500ms cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes restock { 0%, 25% { transform: scaleY(1); fill: var(--rose); } 70%, 100% { transform: scaleY(2.2); fill: var(--sage-soft); } }
.icon-scan .accent { stroke: var(--rose); stroke-width: 2; opacity: 0; }
.is-playing .icon-scan .accent { animation: scan 1500ms ease-in-out both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-10px); } 15%, 85% { opacity: 1; } 50% { transform: translateY(10px); } 100% { opacity: 0; transform: translateY(-10px); } }
.icon-ledger .accent path { stroke-dasharray: 1; }
.is-playing .icon-ledger .accent path { animation: write 500ms ease both; }
.is-playing .icon-ledger .accent path:nth-child(2) { animation-delay: 380ms; }
.is-playing .icon-ledger .accent path:nth-child(3) { animation-delay: 760ms; }
@keyframes write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.icon-receipt .accent circle { stroke: none; fill: var(--sage); transform-box: fill-box; transform-origin: center; }
.icon-receipt .accent path { stroke: var(--white); stroke-width: 2; stroke-dasharray: 1; }
.is-playing .icon-receipt .accent circle { animation: pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.is-playing .icon-receipt .accent path { animation: write 400ms ease 350ms both; }
@keyframes pop { from { transform: scale(0); } }
.icon-roster .accent rect { stroke: none; fill: var(--sage-soft); }
.icon-roster .accent rect:nth-child(2), .icon-roster .accent rect:nth-child(4) { fill: var(--sage); }
.is-playing .icon-roster .accent rect { animation: rise-cell 400ms ease both; }
.is-playing .icon-roster .accent rect:nth-child(2) { animation-delay: 120ms; }
.is-playing .icon-roster .accent rect:nth-child(3) { animation-delay: 240ms; }
.is-playing .icon-roster .accent rect:nth-child(4) { animation-delay: 360ms; }
.is-playing .icon-roster .accent rect:nth-child(5) { animation-delay: 480ms; }
@keyframes rise-cell { from { opacity: 0; transform: translateY(3px); } }
.is-playing .icon-import .accent { animation: drop-in 900ms cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-9px); } }

/* Principles: each rule draws across as its principle arrives. */
.principle-list { position: relative; }
.principle-list article { position: relative; border-bottom-color: transparent; }
.principle-list article::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(255, 255, 255, 0.18); transform-origin: left; transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 70ms + 150ms); }
.js .principle-list article.reveal:not(.is-visible)::after { transform: scaleX(0); }

/* FAQ: the plus turns into a minus; site.js eases the answer open and closed. */
.faq-list details { overflow: hidden; }
.faq-list summary { transition: color 160ms ease; }
.faq-list summary:hover { color: var(--sage-dark); }
.faq-list summary::after { content: ""; flex: none; width: 0.9rem; height: 0.9rem; margin-top: 0.35rem; background: linear-gradient(var(--sage), var(--sage)) center / 100% 2px no-repeat, linear-gradient(var(--sage), var(--sage)) center / 2px 100% no-repeat; transition: transform 300ms ease, background-size 300ms ease; }
.faq-list details[open] summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.faq-list details.is-closing summary::after { background-size: 100% 2px, 2px 100%; transform: none; }

/* Waitlist form */
.field input { transition: border-color 160ms ease, background-color 160ms ease; }
.field input:hover { border-color: var(--sage); }
.waitlist-form.is-complete .form-status { position: relative; display: flex; align-items: center; gap: 1rem; animation: rise 600ms ease both; }
.form-tick { flex: none; width: 2.6rem; height: 2.6rem; overflow: visible; }
.form-tick circle { fill: var(--sage); transform-box: fill-box; transform-origin: center; animation: pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.4) 150ms both; }
.form-tick path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: write 450ms ease 500ms both; }
.form-tick .spark { fill: var(--rose); stroke: none; transform-box: fill-box; transform-origin: center; animation: spark 800ms cubic-bezier(0.2, 0.8, 0.3, 1) 450ms both; }
.form-tick .spark:nth-of-type(even) { fill: var(--sage-soft); }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }

/* Launch film dialog */
.film-dialog { width: min(92vw, 1120px); padding: 0; border: 0; border-radius: 8px; overflow: visible; background: var(--ink); }
.film-dialog::backdrop { background: rgba(23, 32, 29, 0.82); }
.film-dialog[open] { animation: film-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.film-dialog[open]::backdrop { animation: view-in 300ms ease both; }
@keyframes film-in { from { opacity: 0; transform: translateY(1rem) scale(0.97); } }
.film-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: var(--ink); }
.film-close { position: absolute; right: 0; top: -2.6rem; padding: 0.35rem 0.2rem; color: var(--white); border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.film-close:hover { text-decoration: underline; text-underline-offset: 0.25em; }

@media (max-width: 680px) {
  .hero-chips li { font-size: 0.68rem; padding: 0.3rem 0.6rem 0.3rem 0.3rem; }
  .hero-chips li:nth-child(2) { top: 14%; right: 0; }
  .hero-chips li:nth-child(3) { display: none; }
  .hero-chips i { width: 1rem; height: 1rem; }
  .hero-chips i::after { left: 0.32rem; top: 0.18rem; width: 0.3rem; height: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

@media print {
  .site-header, .site-footer, .draft-notice { display: none; }
  .legal-hero { padding: 0 0 1rem; background: none; }
  .legal-layout { display: block; padding: 0; }
  .legal-content section { break-inside: avoid-page; }
  body { font-size: 10.5pt; }
}
