/* Clover landing — styles reproduced from Figma "Landing — v3 Final" (node 54:7808).
   Plain CSS, no external resources. Headings use self-hosted Montserrat Bold
   (latin subset, SIL OFL 1.1 — see assets/fonts/OFL.txt). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors (Figma variables) */
  --text-primary: #000000;
  --text-invert: #ffffff;
  /* Figma Text/Secondary is rgba(0,0,0,.40) (contrast 2.8:1 on white).
     Darkened to .56 so body copy passes WCAG AA (4.6:1 on white, 4.2:1 on #f5f5f5 at 16px+). */
  --text-secondary: rgba(0, 0, 0, 0.56);
  --bg-primary: #ffffff;
  --bg-primary-invert: #000000;
  --bg-secondary-invert: rgba(0, 0, 0, 0.08);
  --bg-tertiary-invert: rgba(0, 0, 0, 0.04);
  --bg-tertiary: rgba(255, 255, 255, 0.04);
  --bg-section: #f5f5f5;

  /* Hero background overlay (Figma: white gradient over photo) */
  --hero-overlay: linear-gradient(180deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.55) 45%,
      #ffffff 82%,
      #ffffff 100%);

  /* Type */
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  /* Figma: H1, section titles, card titles, privacy title = Montserrat Bold (700). */
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  /* Radii */
  --radius-pill: 100px;
  --radius-badge: 8px;
  --radius-card: 32px;
  --radius-block: 40px;

  /* Layout */
  --content-max: 1280px;
  --gutter: 80px;
  --section-pad: 120px;

  /* Hero visual scale (1 = Figma desktop) */
  --stage-scale: 1;

  /* How the "How it works" panel rises over the hero bottom */
  --how-overlap: 40px;
  --how-radius: var(--radius-block);

  /* Motion tokens (transitions-polish scale; only the ones used here) */
  --duration-stagger: 40ms;   /* per-item stagger offset */
  --duration-micro: 80ms;     /* large-item stagger */
  --duration-quick: 150ms;    /* press in, color hover in */
  --duration-fast: 250ms;     /* card hover in */
  --duration-medium: 350ms;   /* card hover out */
  --duration-slow: 400ms;     /* panel-like reveal (phone, docs, cards, privacy block), button release */
  --duration-very-slow: 500ms; /* text reveal (hero copy, section title) */
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1);
  --distance-micro: 4px;      /* card hover lift */
  --distance-small: 6px;      /* FAQ answer entrance */
  --distance-medium: 12px;    /* text reveal, card / block reveal */
  --distance-large: 30px;     /* one-off phone entrance */
  --scale-large: 0.96;        /* floating documents settle-in */
  --scale-small: 0.98;        /* button press */

  /* Motion roles (zeroed under prefers-reduced-motion: reduce -> opacity only).
     No blur on entrances: WebKit can leave animated-filter text rasterized soft. */
  --motion-text-y: var(--distance-medium);
  --motion-panel-y: var(--distance-medium);
  --motion-phone-y: var(--distance-large);
  --motion-doc-scale: var(--scale-large);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-primary-invert);
  color: var(--text-invert);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.03em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  /* Hover/press out: softer and springier than the way in. */
  transition:
    background-color var(--duration-medium) var(--ease-smooth-out),
    transform var(--duration-slow) var(--ease-bounce-strong);
}

@media (hover: hover) {
  .button:hover {
    background: #2a2a2a;
    transition:
      background-color var(--duration-quick) var(--ease-smooth-out),
      transform var(--duration-slow) var(--ease-bounce-strong);
  }
}

.button:active {
  transform: scale(var(--scale-small));
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out);
}

.button:focus-visible {
  border-radius: var(--radius-pill);
}

.button--small {
  min-height: 44px;
  padding: 12px 22px 11px;
}

.button--large {
  padding: 17.5px 32px;
}

/* ---------- Header ---------- */

/* The header stays pinned. Over the hero it is transparent; once the page scrolls
   (.is-scrolled, set by a small script) it gets a frosted background and a hairline. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px var(--gutter);
  transition:
    background-color var(--duration-medium) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out),
    padding var(--duration-medium) var(--ease-smooth-out);
}

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--bg-secondary-invert);
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    padding var(--duration-fast) var(--ease-smooth-out);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.96);
  }
}

html {
  scroll-padding-top: 88px;
}

.logo-link {
  display: inline-block;
  border-radius: 6px;
}

.logo {
  width: 117px;
  height: 48px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px; /* header height */
  padding-bottom: var(--how-overlap); /* hidden under the rising panel, keeps the visible phone crop unchanged */
  background-color: #dbe9f3;
  background-image: var(--hero-overlay), url("assets/hero-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 64px 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: var(--radius-badge);
  background: var(--bg-tertiary-invert);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.02em;
}

.hero__title {
  max-width: 900px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 1.2rem + 4.6vw, 76px);
  font-weight: 700;
  line-height: 1.066;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 640px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

/* Visual stage: a 1440 x 678 canvas (Figma hero y = 590…1268), scaled on smaller screens.
   Starts 44px above the end of the text block (the phone's drop-shadow room). */
.hero__visual {
  position: relative;
  height: calc(678px * var(--stage-scale));
  margin-top: calc(-44px * var(--stage-scale));
}

.hero__stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 678px;
  transform: translateX(-50%) scale(var(--stage-scale));
  transform-origin: top center;
}

.hero__stage img {
  position: absolute;
  max-width: none;
}

.hero__phone {
  left: 509px;
  top: 44px;
  width: 422px;
  height: 634px;
  z-index: 1;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.14));
}

.hero__doc--lab {
  left: 132.28px;
  top: 11.39px;
  width: 462.2px;
  height: 439.68px;
}

.hero__doc--ultrasound {
  left: 250px;
  top: 514px;
  width: 214.5px;
  height: 208px;
}

.hero__doc--xray {
  left: 1060px;
  top: 84px;
  width: 199.29px;
  height: 231px;
}

.hero__doc--letter {
  left: 1080.55px;
  top: 424px;
  width: 224.16px;
  height: 269.61px;
}

/* ---------- How it works ---------- */

/* The grey section is a rounded panel that rises over the hero bottom, so the phone
   tucks under a rounded edge instead of being cut by a flat seam. */
.how {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--how-overlap));
  border-radius: var(--how-radius);
  background: var(--bg-section);
  /* Same hairline and soft shadow on both edges, so the panel reads as closed. */
  box-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.05), 0 -12px 32px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.04);
  padding: var(--section-pad) var(--gutter);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 51px;
  letter-spacing: -0.02em;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--content-max);
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding-top: 36px;
  border: 1px solid var(--bg-secondary-invert);
  border-radius: var(--radius-card);
  background: var(--bg-primary);
  transition: transform var(--duration-medium) var(--ease-smooth-out);
}

@media (hover: hover) {
  .step:hover {
    transform: translateY(calc(-1 * var(--distance-micro)));
    transition: transform var(--duration-fast) var(--ease-smooth-out);
  }
}

.step__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 36px;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px; /* Figma: 4px spacer between two 12px gaps */
  border-radius: 18px;
  background: var(--bg-primary-invert);
  color: var(--text-invert);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.step__text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.03em;
}

.step__grow {
  flex: 1 0 0;
}

.step__visual {
  width: 100%;
  height: auto;
  aspect-ratio: 409 / 360;
  object-fit: cover;
}

/* ---------- Privacy & limits ---------- */

.privacy {
  padding: var(--section-pad) var(--gutter) 0;
}

.privacy__block {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px;
  border-radius: var(--radius-block);
  background: var(--bg-primary-invert);
  color: var(--text-invert);
}

.privacy__title {
  flex: 0 0 380px;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 47px;
  letter-spacing: -0.02em;
}

.privacy__items {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.privacy__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy__label {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.03em;
}

.privacy__text {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.privacy__divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--bg-tertiary);
}

/* ---------- FAQ ---------- */

.faq {
  padding: var(--section-pad) var(--gutter) 0;
}

.faq__list {
  max-width: 880px;
  margin: 56px auto 0;
  border-top: 1px solid var(--bg-secondary-invert);
}

.faq__item {
  border-bottom: 1px solid var(--bg-secondary-invert);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.faq__question:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Plus that turns into a minus when the answer is open. */
.faq__icon {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary-invert);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--text-primary);
  transition: rotate var(--duration-fast) var(--ease-smooth-out);
}

.faq__icon::after {
  rotate: 90deg;
}

.faq__item[open] .faq__icon::after {
  rotate: 0deg;
}

.faq__answer {
  max-width: 760px;
  padding: 0 52px 28px 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 27px;
  letter-spacing: -0.01em;
}

.faq__answer a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ open/close: the answer is always in the HTML; this only animates its height
   and a small fade. Browsers without ::details-content just open instantly.
   Open uses --duration-fast, close the shorter --duration-quick (open/close asymmetry). */
@supports selector(::details-content) {
  .faq__list {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--duration-quick) var(--ease-smooth-out),
      content-visibility var(--duration-quick) allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
    transition:
      block-size var(--duration-fast) var(--ease-smooth-out),
      content-visibility var(--duration-fast) allow-discrete;
  }

  .faq__answer {
    opacity: 1;
    translate: 0 calc(-1 * var(--distance-small));
    transition:
      opacity var(--duration-quick) var(--ease-smooth-out),
      translate var(--duration-quick) var(--ease-smooth-out);
  }

  .faq__item[open] .faq__answer {
    opacity: 1;
    translate: none;
    transition:
      opacity var(--duration-fast) var(--ease-smooth-out) var(--duration-stagger),
      translate var(--duration-fast) var(--ease-smooth-out) var(--duration-stagger);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header.is-scrolled {
    transition: none;
  }

  .faq__item::details-content,
  .faq__item[open]::details-content,
  .faq__answer,
  .faq__item[open] .faq__answer {
    transition: none;
    translate: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 96px var(--gutter) 56px;
  text-align: center;
}

.site-footer .logo {
  width: 93.6px;
  height: 38.4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .footer-link--underlined {
  text-decoration: underline;
}

.copyright {
  color: var(--text-secondary);
}

/* ---------- Legal page (privacy.html) ---------- */

.legal-main {
  min-height: 50vh;
  padding: 48px 20px 24px;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.01em;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 1.2rem + 2.6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 21px;
}

.legal h2 {
  margin-top: 48px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 16px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
  :root {
    --gutter: 40px;
    --stage-scale: 0.86;
  }
}

@media (max-width: 1023px) {
  :root {
    --section-pad: 96px;
    --stage-scale: 0.8;
  }

  .steps {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
  }

  .privacy__block {
    flex-direction: column;
    gap: 32px;
    padding: 48px;
  }

  .privacy__title {
    flex: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-pad: 72px;
    --stage-scale: 0.68;
    --how-overlap: 32px;
    --how-radius: var(--radius-card);
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header .logo {
    width: 88px;
    height: 36px;
  }

  .button--small {
    padding: 9px 18px 8px;
    font-size: 15px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero__content {
    gap: 20px;
    padding: 40px var(--gutter) 48px;
  }

  .hero__lede {
    font-size: 17px;
    line-height: 24px;
  }

  .button--large {
    padding: 16px 28px;
  }

  /* Floating documents would crowd the phone on narrow screens. */
  .hero__doc {
    display: none;
  }

  .how {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 36px;
    line-height: 40px;
  }

  .steps {
    margin-top: 36px;
    gap: 16px;
  }

  .step {
    padding-top: 28px;
  }

  .step__copy {
    padding: 0 24px;
  }

  .step__number {
    margin-bottom: 8px;
  }

  .privacy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__title {
    font-size: 34px;
  }

  .faq {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq__list {
    margin-top: 32px;
  }

  .faq__question {
    padding: 20px 0;
  }

  .faq__question h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .faq__answer {
    padding-right: 0;
    font-size: 17px;
    line-height: 25px;
  }

  .privacy__block {
    padding: 36px 24px;
    border-radius: var(--radius-card);
  }

  .privacy__title {
    font-size: 32px;
    line-height: 36px;
  }

  .privacy__text {
    font-size: 17px;
    line-height: 25px;
  }

  .site-footer {
    padding-top: 64px;
    padding-bottom: 40px;
  }
}

/* ---------- Motion ----------
   Progressive enhancement: content stays visible even if animation frames or
   IntersectionObserver callbacks are suspended in a background browser window. */

@keyframes enter-text {
  from {
    opacity: 1;
    translate: 0 var(--motion-text-y);
  }
}

@keyframes enter-phone {
  from {
    opacity: 1;
    translate: 0 var(--motion-phone-y);
  }
}

@keyframes enter-doc {
  from {
    opacity: 1;
    scale: var(--motion-doc-scale);
  }
}


/* Hero load: badge -> H1 -> subtitle -> CTA at --duration-micro steps (few large items),
   then the phone one --duration-stagger later (280ms total), documents settle with it. */
.js .hero__content > * {
  animation: enter-text var(--duration-very-slow) var(--ease-in-out) both;
  animation-delay: calc(var(--i, 0) * var(--duration-micro));
}

.js .hero__title { --i: 1; }
.js .hero__lede { --i: 2; }
.js .hero__content > .button { --i: 3; }

.js .hero__phone {
  animation: enter-phone var(--duration-slow) var(--ease-smooth-out) both;
  animation-delay: calc(3 * var(--duration-micro) + var(--duration-stagger));
}

.hero__doc--lab { --d: 0; }
.hero__doc--ultrasound { --d: 1; }
.hero__doc--xray { --d: 2; }
.hero__doc--letter { --d: 3; }

/* Documents settle once; no continuous motion or pause control is needed. */
.js .hero__doc {
  animation: enter-doc var(--duration-slow) var(--ease-smooth-out) calc(3 * var(--duration-micro) + (var(--d) + 1) * var(--duration-stagger)) both;
}

/* Scroll reveal (assets/site.js adds .is-visible once). */
.js [data-reveal] {
  opacity: 1;
  translate: 0 var(--motion-panel-y);
  transition:
    opacity var(--duration-slow) var(--ease-smooth-out),
    translate var(--duration-slow) var(--ease-smooth-out),
    transform var(--duration-medium) var(--ease-smooth-out);
  transition-delay: calc(var(--i, 0) * var(--duration-micro)), calc(var(--i, 0) * var(--duration-micro)), 0s;
}

.js .section-title[data-reveal] {
  translate: 0 var(--motion-text-y);
  transition:
    opacity var(--duration-very-slow) var(--ease-in-out),
    translate var(--duration-very-slow) var(--ease-in-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* Cards in one row stagger after the title (80/160/240ms); stacked cards reveal on their own. */
.step:nth-child(1) { --i: 1; }
.step:nth-child(2) { --i: 2; }
.step:nth-child(3) { --i: 3; }

@media (max-width: 1023px) {
  .step { --i: 0; }
}

/* Card hover keeps its in/out asymmetry while the reveal lanes stay on the element. */
@media (hover: hover) {
  .js .step[data-reveal]:hover {
    transition:
      opacity var(--duration-slow) var(--ease-smooth-out),
      translate var(--duration-slow) var(--ease-smooth-out),
      transform var(--duration-fast) var(--ease-smooth-out);
    transition-delay: 0s;
  }
}

/* Reduced motion: entrances and scroll movement are disabled. */
@media (prefers-reduced-motion: reduce) {
  .js .hero__content > *,
  .js .hero__phone,
  .js .hero__doc { animation: none; }
  .js [data-reveal] { translate: none; transition: none; }

  :root {
    --motion-text-y: 0px;
    --motion-panel-y: 0px;
    --motion-phone-y: 0px;
    --motion-doc-scale: 1;
  }

  .button,
  .button:active,
  .step,
  .step:hover {
    transform: none;
  }

  .button {
    transition: background-color var(--duration-quick) var(--ease-smooth-out);
  }
}


/* HTML chat illustration: real text lets the quote stay readable and editable.
   Local illustration roles preserve the warm palette and proportional card layout. */
.step__visual--chat {
  --chat-surface: rgba(255, 255, 255, 0.86);
  --chat-glass: rgba(255, 255, 255, 0.42);
  --chat-glass-edge: rgba(255, 255, 255, 0.75);
  --chat-bubble-tail: 8px;
  background: #f7d5be url("assets/step-ask-bg.webp") center / cover no-repeat;
  display: flex;
  padding: 6% 8% 5.5%;
  container-type: inline-size;
}
.chat-example { display: flex; flex-direction: column; width: 100%; font-size: clamp(13px, 4.3cqw, 19px); line-height: 1.3; letter-spacing: -0.02em; }
.chat-example p { margin: 0; }
.chat-example__question { margin: auto 0 0 25% !important; padding: 0.75em 1em; border-radius: 1.3em 1.3em var(--chat-bubble-tail) 1.3em; background: var(--chat-surface); }
.chat-example__reply { display: flex; align-items: center; gap: 0.55em; margin-top: 1.4em; }
.chat-example__reply img { flex: 0 0 2em; width: 2em; height: 2em; }
.chat-example__reply p { padding: 0.75em 1em; border: 1px solid var(--chat-glass-edge); border-radius: 1.3em 1.3em 1.3em var(--chat-bubble-tail); background: var(--chat-glass); }
.chat-example__action { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 0.5em 0 0 2.55em !important; padding: 0.65em 1em; border: 1px solid var(--chat-glass-edge); border-radius: var(--radius-pill); background: var(--chat-glass); font-weight: 600; }
.chat-example__action span { font-weight: 400; opacity: 0.45; }
.chat-example__composer { display: flex; align-items: center; gap: 0.5em; margin-top: auto; padding: 0.25em 0.75em 0.25em 0.25em; border: 1px solid var(--chat-glass-edge); border-radius: var(--radius-pill); background: var(--chat-glass); }
.chat-example__plus { position: relative; flex: 0 0 2.25em; height: 2.25em; border-radius: 50%; background: #000; }
.chat-example__plus::before, .chat-example__plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 0.95em; height: 2px; border-radius: 1px; background: #fff; translate: -50% -50%; }
.chat-example__plus::after { rotate: 90deg; }
.chat-example__placeholder { flex: 1; text-align: center; opacity: 0.8; }
.chat-example__mic { flex: 0 0 1.4em; width: 1.4em; height: 1.4em; }
