/* Tattoolytics landing page
   Palette: pigment dusk (the app's dark accent family), lavender accent, Fitzpatrick ramp as data. */

:root {
  --dusk: #141230;
  --dusk-2: #1b1840;
  --dusk-3: #25215a;
  --line: rgba(161, 157, 246, 0.16);
  --line-strong: rgba(161, 157, 246, 0.32);

  --text: #eeedfb;
  --muted: #aeabd2;
  --faint: #8784b0;

  --lav: #a19df6;
  --lav-hi: #cdcaff;
  --indigo: #3f3ab8;
  --on-lav: #15143a;

  --crit: #f28c82;
  --adv: #e8b04e;
  --ok: #66cb9d;

  --paper: #ecebfa;
  --paper-2: #f7f7fd;
  --paper-text: #18163a;
  --paper-muted: #58557e;
  --paper-line: #d7d5f0;

  --wide: 125%;
  --r-device: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--dusk);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--lav-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--lav);
  color: var(--on-lav);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head { display: grid; gap: 18px; max-width: 34rem; }
.section-head--wide { max-width: 46rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-stretch: 112%;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--lav);
  color: var(--on-lav);
  box-shadow: 0 10px 30px -12px rgba(161, 157, 246, 0.8);
}
.btn--primary:hover { background: var(--lav-hi); }
.btn--ghost {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(161, 157, 246, 0.1); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 0.94rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav[data-scrolled] {
  background: rgba(20, 18, 48, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
/* On touch devices the blur would re-run over the animating canvas every frame. */
@media (hover: none), (pointer: coarse) {
  .nav[data-scrolled] {
    background: rgba(20, 18, 48, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-stretch: var(--wide);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand__mark { width: 30px; height: 30px; color: var(--lav); flex: none; }
.brand, .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .nav__inner { gap: 12px; }
  .brand { font-size: 0.94rem; gap: 8px; }
  .brand__mark { width: 26px; height: 26px; }
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
}

/* ---------- Device frame (CSS) ---------- */
/* iPad Pro 13" proportions: 281.6 × 215.5 mm body, 4:3 display, ~8.5 mm bezel. */

.device {
  position: relative;
  aspect-ratio: 2816 / 2155;
  width: 100%;
  border-radius: 6.4% / 8.35%;
  background: #060609;
  box-shadow:
    0 0 0 1.5px #45485a,
    0 0 0 3px #1c1d26,
    0 60px 120px -40px rgba(0, 0, 0, 0.85),
    0 0 160px -30px rgba(161, 157, 246, 0.28);
}
.device img {
  position: absolute;
  inset: 3.94% 3.02%;
  width: 93.96%;
  height: 92.12%;
  object-fit: cover;
  border-radius: 4.2% / 5.5%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.device img.is-on { opacity: 1; }
.device--tilt { transform: perspective(1800px) rotateY(-16deg) rotateX(6deg) rotateZ(1deg); }
.device--tilt img { opacity: 1; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 45%, rgba(63, 58, 184, 0.45), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(63, 58, 184, 0.25), transparent 70%),
    var(--dusk);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__canvas.is-live { opacity: 1; }
.hero__fallback {
  position: absolute;
  z-index: -1;
  right: -6%;
  top: 50%;
  width: min(62vw, 900px);
  transform: translateY(-50%);
  display: none;
}
.no-webgl .hero__fallback { display: block; }

.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 120px var(--gutter) 48px;
  pointer-events: none;
}
.hero__copy { max-width: 42rem; pointer-events: auto; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(161, 157, 246, 0.1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--lav-hi);
  font-size: 0.9rem;
}
.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lav-hi);
  box-shadow: 0 0 0 4px rgba(161, 157, 246, 0.25), 0 0 16px 2px var(--lav);
}

.hero__title {
  font-size: clamp(2.3rem, 0.9rem + 3.1vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 620;
}
@media (min-width: 600px) {
  .hero__title .line > span { white-space: nowrap; }
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }

.hero__lede {
  margin-top: 26px;
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) 34px;
}
.facts li {
  padding: 18px 22px 0 0;
  margin-right: 22px;
  border-top: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 0.93rem;
  line-height: 1.45;
}
.facts strong { display: block; color: var(--text); font-weight: 600; font-stretch: 112%; }

/* page-load choreography: the one orchestrated moment */
.js .hero__kicker,
.js .hero__lede,
.js .hero__actions,
.js .facts li { opacity: 0; transform: translateY(14px); }
.js .hero__title .line > span { transform: translateY(108%); }

.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1.1s var(--ease-out);
}
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.09s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: 0.18s; }
.is-ready .hero__kicker,
.is-ready .hero__lede,
.is-ready .hero__actions,
.is-ready .facts li {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}
.is-ready .hero__lede { transition-delay: 0.35s; }
.is-ready .hero__actions { transition-delay: 0.45s; }
.is-ready .facts li { transition-delay: 0.7s; }
.is-ready .facts li:nth-child(2) { transition-delay: 0.78s; }
.is-ready .facts li:nth-child(3) { transition-delay: 0.86s; }
.is-ready .facts li:nth-child(4) { transition-delay: 0.94s; }

@media (max-width: 900px) {
  .hero__inner { align-items: flex-start; padding-top: 104px; }
  /* room below the copy where the 3D iPad sits */
  .hero__inner { padding-bottom: calc(72vw + 24px); }
  .hero__fallback { top: auto; bottom: 180px; right: 50%; transform: translateX(50%); width: 86vw; }
  /* Only the band around the iPad gets a canvas: far fewer pixels to draw each frame. */
  .hero__canvas {
    top: auto;
    height: calc(72vw + 300px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
    mask-image: linear-gradient(to bottom, transparent, #000 18%);
  }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .facts li { margin-right: 14px; padding-right: 0; }
}

/* ---------- How it works (sticky story) ---------- */

.story { padding: clamp(96px, 12vw, 160px) 0 40px; }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
}
.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.step {
  position: relative;
  min-height: 62vh;
  padding: 0 0 0 58px;
  opacity: 0.34;
  transition: opacity 0.5s ease;
}
.step:last-child { min-height: 50vh; }
.step.is-active { opacity: 1; }
.step__n {
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--lav-hi);
  font-weight: 600;
  font-stretch: var(--wide);
  font-size: 0.95rem;
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.is-active .step__n { background: var(--lav); color: var(--on-lav); box-shadow: 0 0 24px -2px rgba(161, 157, 246, 0.7); }
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 27rem; }
.step__shot { display: none; }

.story__stage { position: relative; }
.story__sticky {
  position: sticky;
  top: calc(50vh - min(36vw, 520px) * 0.765 / 2 - 20px);
  padding-top: 20px;
}
.story__progress {
  height: 2px;
  margin: 34px auto 0;
  width: 40%;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.story__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lav);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.5s var(--ease-out);
}

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: 0; opacity: 1; margin-bottom: 56px; padding-left: 52px; }
  .step__shot {
    display: block;
    margin-top: 22px;
    border-radius: var(--r-md);
    box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Measurement ---------- */

.measure { padding: clamp(80px, 10vw, 140px) 0; }
.measure__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.specimen { margin: 0; position: sticky; top: 110px; }
.specimen svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.specimen figcaption { margin-top: 14px; color: var(--faint); font-size: 0.88rem; }

.specimen__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  background: var(--dusk-2);
}
.specimen__stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.specimen__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; }
.specimen__layer { clip-path: inset(0 0 100% 0); }
.specimen__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(161, 157, 246, 0.35) 88%, #edebff);
  opacity: 0;
}
.specimen__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.88rem);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
}
.specimen__tag b { font-weight: 650; font-stretch: 112%; }
.specimen__tag--card { left: 8%; top: 48%; }
.specimen__tag--tattoo { right: 5%; top: 6%; }
.dot--card { background: var(--ok); }
.dot--ink { background: var(--lav); }

.is-drawn .specimen__dim { opacity: 1; transition: opacity 0.6s ease 0.2s; }
.is-drawn .specimen__layer { clip-path: inset(0); transition: clip-path 1.5s cubic-bezier(0.45, 0.05, 0.35, 1) 0.2s; }
.is-drawn .specimen__scan { animation: scan 1.5s cubic-bezier(0.45, 0.05, 0.35, 1) 0.2s both; }
.is-drawn .specimen__tag { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s var(--ease-out); }
.is-drawn .specimen__tag--card { transition-delay: 1.5s; }
.is-drawn .specimen__tag--tattoo { transition-delay: 1.75s; }
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(655%); opacity: 0; }
}

.measure__copy { display: grid; gap: 48px; padding-top: 8px; }
.checks h3 { font-size: 1.2rem; }
.checks__intro { color: var(--muted); margin-top: 8px; }
.checks__cols { display: grid; gap: 28px; margin-top: 24px; }
.checks h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-stretch: 112%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.checks ul { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.checks b { color: var(--text); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--crit { background: var(--crit); }
.dot--adv { background: var(--adv); }

@media (max-width: 900px) {
  .measure__grid { grid-template-columns: 1fr; }
  .specimen { position: static; }
}

/* ---------- Kirby-Desai calculator (paper band) ---------- */

.score {
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 100px);
  background: var(--paper);
  color: var(--paper-text);
  color-scheme: light;
}
.score .section-head p { color: var(--paper-muted); }
.score :focus-visible { outline-color: var(--indigo); }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 56px;
  align-items: start;
}
.calc__inputs {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper-2);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--paper-line);
}
.field { border: 0; margin: 0; padding: 14px 0 18px; min-width: 0; }
.field + .field { border-top: 1px solid var(--paper-line); }
.field legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 600;
  font-stretch: 112%;
  font-size: 1rem;
}
.field legend span { font-weight: 400; font-stretch: 100%; color: var(--paper-muted); font-size: 0.9rem; margin-left: 6px; }
.field__hint { margin-top: 10px; color: var(--paper-muted); font-size: 0.9rem; min-height: 1.5em; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 440px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.swatch__chip {
  width: 100%;
  max-width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(24, 22, 58, 0.1);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.swatch__label { font-size: 0.82rem; color: var(--paper-muted); font-weight: 600; font-stretch: 112%; }
.swatch input:checked + .swatch__chip {
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--paper-2), 0 0 0 5px var(--indigo);
  transform: scale(1.06);
}
.swatch input:checked ~ .swatch__label { color: var(--indigo); }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--indigo); outline-offset: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--paper-line);
  font-size: 0.93rem;
  line-height: 1.25;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.chip em { font-style: normal; font-size: 0.8rem; color: var(--paper-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip:hover span { box-shadow: inset 0 0 0 1px #b4b1e6; }
.chip input:checked + span { background: var(--indigo); color: #fff; box-shadow: none; }
.chip input:checked + span em { color: #d6d4ff; }
.chip input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }

.calc__out { position: sticky; top: 100px; display: grid; gap: 14px; }
.calc__card {
  padding: 26px 26px 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(161, 157, 246, 0.25), transparent 60%),
    var(--dusk-2);
  color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(20, 18, 48, 0.6);
}
.calc__label { color: var(--lav-hi); font-weight: 600; font-size: 0.95rem; }
.calc__range {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  font-size: clamp(3.2rem, 2.2rem + 3vw, 4.6rem);
  font-weight: 600;
  font-stretch: var(--wide);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc__range small { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.track { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; min-height: 16px; }
.track i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lav);
  animation: pop 0.35s var(--ease-out) both;
}
.track i.pos { background: transparent; box-shadow: inset 0 0 0 1.5px var(--lav); }
@keyframes pop { from { transform: scale(0); } }

.track__legend { margin-top: 10px; color: var(--muted); font-size: 0.8rem; }
.k { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 0; }
.k--exp { background: var(--lav); }
.k--pos { box-shadow: inset 0 0 0 1.5px var(--lav); margin-left: 14px; }

.calc__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc__meta dt { color: var(--muted); font-size: 0.84rem; }
.calc__meta dd { margin: 2px 0 0; font-weight: 600; font-stretch: 112%; }

.calc__score {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--paper-line);
}
.calc__scorehead { display: flex; justify-content: space-between; align-items: baseline; }
.calc__scorehead p:first-child { font-weight: 600; font-stretch: 112%; }
.calc__total { font-size: 2rem; font-weight: 650; font-stretch: var(--wide); font-variant-numeric: tabular-nums; line-height: 1; }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 1fr auto 1.2em; align-items: center; gap: 12px; font-size: 0.9rem; }
.bars .segs { display: flex; gap: 3px; }
.bars .segs b { width: 16px; height: 6px; border-radius: 3px; background: var(--paper-line); transition: background-color 0.25s; }
.bars .segs b.on { background: var(--indigo); }
.bars .pts { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc__note { color: var(--paper-muted); font-size: 0.86rem; padding: 0 4px; }

.cite { margin-top: 36px; max-width: 52rem; color: var(--paper-muted); font-size: 0.84rem; }

@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { position: static; order: -1; }
}
@media (max-width: 520px) {
  .swatches { gap: 6px; }
  .calc__meta { grid-template-columns: 1fr; }
}

/* ---------- Clinic groups ---------- */

.groups { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }
.groups__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 64px;
}
.shots { position: relative; aspect-ratio: 1.36; }
.shots img {
  position: absolute;
  width: 82%;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.shots__back { right: 0; top: 0; opacity: 0.6; filter: saturate(0.8); }
.shots__front { left: 0; bottom: 0; }

.points { display: grid; gap: 0; margin: 0; }
.points div { padding: 20px 0; border-top: 1px solid var(--line); }
.points div:last-child { border-bottom: 1px solid var(--line); }
.points dt { font-weight: 600; font-stretch: 112%; font-size: 1.05rem; }
.points dd { margin: 6px 0 0; color: var(--muted); font-size: 0.97rem; }

@media (max-width: 900px) {
  .groups__grid { grid-template-columns: 1fr; }
}

/* ---------- Security ---------- */

.security {
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(50% 80% at 0% 50%, rgba(63, 58, 184, 0.22), transparent 70%),
    var(--dusk-2);
  border-block: 1px solid var(--line);
}
.security__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
}
.assurances {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
}
.assurances svg {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--lav);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.assurances circle { fill: var(--lav); stroke: none; }
.assurances h3 { font-size: 1.05rem; margin-bottom: 8px; }
.assurances p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 900px) {
  .security__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .assurances { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.pricing { padding: clamp(96px, 12vw, 150px) 0 clamp(48px, 6vw, 80px); }
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan--main {
  background: linear-gradient(160deg, rgba(161, 157, 246, 0.16), rgba(161, 157, 246, 0.04) 60%);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.plan h3 { font-size: 1.5rem; }
.plan__when { color: var(--lav-hi); margin-top: 4px; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; flex: 1; }
.plan li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--lav);
  border-bottom: 2px solid var(--lav);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
}

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

.faq { padding: clamp(64px, 8vw, 110px) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 80px);
}
.faq h2 { position: sticky; top: 110px; align-self: start; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-weight: 600;
  font-stretch: 112%;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--lav);
  transition: transform 0.3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 40rem; }

@media (max-width: 800px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
}

/* ---------- Demo ---------- */

.demo { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 150px); }
.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-device);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(161, 157, 246, 0.28), transparent 65%),
    radial-gradient(60% 70% at 0% 0%, rgba(63, 58, 184, 0.35), transparent 70%),
    var(--dusk-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.demo__copy h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); }
.demo__copy p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 30rem; }

.demo__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.demo__form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.demo__form input,
.demo__form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(20, 18, 48, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.demo__form input:focus,
.demo__form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lav); }
.demo__form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--crit); }
.demo__form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
/* Honeypot: hidden from people, filled in by form bots. */
.demo__form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo__status { grid-column: 1 / -1; color: var(--lav-hi); min-height: 1.6em; font-size: 0.95rem; }
.demo__status.is-error { color: var(--crit); }

@media (max-width: 860px) {
  .demo__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .demo__form { grid-template-columns: 1fr; }
}

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

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.88rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot__inner p:last-child { margin-left: auto; }
.brand--foot { font-size: 0.95rem; }
.brand--foot .brand__mark { width: 24px; height: 24px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
