/* anatoma.app — landing page. A soft blurred backdrop, liquid-chrome wavy badges, dot-matrix numerals and
   type set huge and cropped. One deliberate light look; every color is set here. Built by Tools/build_site.py. */
:root {
  color-scheme: light;
  --bg: #EEEAE7;
  --bg-soft: #E6E1DD;
  --panel: #DCD6D2;
  --ink: #1B1B1A;
  --ink-soft: #5E5A57;
  --ink-muted: #8C8682;
  --line: #D2CBC6;
  --white: #FFFFFF;
  --lime: #D9F40F;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --frame: min(1180px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior-y: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, fieldset, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.035em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 999px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: var(--frame); margin-inline: auto; }
.eyebrow { font-size: 14px; color: var(--ink-muted); letter-spacing: 0.01em; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 44ch; }
h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; }

/* Dot-matrix numerals: SVG dots, 1em tall. */
.dots { display: inline-block; height: 1em; vertical-align: -0.08em; overflow: visible; }

/* Header: floats over the hero. */
.top {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-left));
}
.brand img { width: 150px; height: auto; }
/* The nav: a quiet glass capsule. Barely there: a thin light edge and a little blur, no tint. */
.top nav {
  display: flex; align-items: center; gap: 0; padding: 3px; font-size: 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top nav a { padding: 7px 15px; border-radius: 999px; transition: background 0.2s ease; }
.top nav a:hover, .top nav a:focus-visible { background: rgba(255, 255, 255, 0.14); }
.top nav a { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18); }
.top nav a:hover { color: var(--white); }
.glass-pill, .store {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  color: var(--ink) !important; font-weight: 500;
}
.store .apple { width: 17px; height: 17px; fill: currentColor; }

/* Backdrop: the motion-blurred field behind hero and close. */
.backdrop { position: absolute; inset: -6%; z-index: -1; background: #CFC6C4 url(/media/backdrop.jpg) center / cover; filter: blur(6px) saturate(1.05); }
@media (prefers-reduced-motion: no-preference) {
  .backdrop { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(-2%) scale(1.04); } to { transform: translateX(2%) scale(1.08); } }
}

/* The chrome badge: a wavy outline filled with liquid metal that slowly turns. */
.badge { position: relative; aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; overflow: hidden;
  -webkit-mask: url(/media/scallop.svg) center / contain no-repeat; mask: url(/media/scallop.svg) center / contain no-repeat; }
.chrome { position: absolute; inset: -12%; z-index: -1; background: #8d8d90 url(/media/chrome.jpg) center / cover; filter: brightness(0.74) contrast(1.32) saturate(0); }
@media (prefers-reduced-motion: no-preference) {
  .chrome { animation: turn 70s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}
.badge-body { display: grid; justify-items: center; text-align: center; gap: 10px; color: var(--white); padding: 0 16%; }
.badge-label { font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.badge-number { font-size: clamp(48px, 7vw, 96px); line-height: 1; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25)); }
.badge-sub { font-size: clamp(13px, 1.15vw, 15px); color: rgba(255, 255, 255, 0.82); }
.meter { position: relative; width: min(220px, 80%); height: 2px; margin-top: 10px; background: rgba(255, 255, 255, 0.35); }
.meter span { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--white); }
.meter span::after { content: ""; position: absolute; right: -5px; top: -11px; border: 5px solid transparent; border-top: 7px solid var(--white); }

/* Hero */
/* Desktop: the promise on the left, the badge on the right, the name across the fold. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(780px, 100svh);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 4vw;
  padding: 110px max(32px, 6vw) calc(17vw + 30px); }
.hero-badge { width: min(500px, 100%); justify-self: center; }
.hero-words { order: -1; display: grid; justify-items: start; gap: 22px; max-width: 640px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 13px; letter-spacing: 0.01em;
  color: var(--white); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(217, 244, 15, 0.3); }
.hero h1 { font: 500 clamp(46px, 5.6vw, 84px)/0.96 var(--display); letter-spacing: -0.05em; color: var(--white); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.1); }
.hero h1 span { color: rgba(255, 255, 255, 0.64); }
.hero-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, 0.88); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.store.solid { background: var(--white); border-color: var(--white); color: #1B1B1A !important; box-shadow: 0 10px 30px rgba(20, 30, 20, 0.16); }
.hero-cta .soft-link { color: rgba(255, 255, 255, 0.9); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.hero-cta .soft-link:hover { color: var(--white); }
.giant {
  position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%);
  font: 500 clamp(110px, 24vw, 420px)/0.82 var(--display); letter-spacing: -0.055em; white-space: nowrap;
  color: var(--white); pointer-events: none; user-select: none;
}
.orb {
  position: absolute; z-index: 2; right: max(28px, 6vw); bottom: calc(10vw + 10px);
  width: clamp(76px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.16) 60%);
  border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 18px 40px rgba(40, 30, 30, 0.18), inset 0 -8px 20px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.3s ease;
}
.orb:hover { transform: translateY(-4px); }
.orb svg, .round svg { width: 38%; height: 38%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Counters, set like the app's: grey label above, dot numeral below. */
.counts { width: var(--frame); margin: 0 auto; padding: 96px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counts > div { display: grid; justify-items: center; gap: 18px; }
.count-label { font-size: 15px; color: var(--ink-muted); }
.counts .dots { font-size: clamp(52px, 6vw, 84px); }

/* Atlas */
.atlas { padding: 120px 0 40px; display: grid; gap: 64px; }
.intro { display: grid; gap: 18px; max-width: 760px; }
.moves { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.moves li { display: grid; gap: 22px; align-content: start; }
.badge.mini { width: 132px; }
.badge.mini .ill { width: 50%; aspect-ratio: 1; }
.moves h3 { font-size: 26px; margin-bottom: 6px; }
.moves p { color: var(--ink-soft); max-width: 32ch; }
.ill { display: block; background: var(--white); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ill.ink { background: var(--ink); }

/* Organs */
.organs { padding: 140px 0 40px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.organ-badge { width: min(500px, 100%); justify-self: center; }
.organ-badge .badge-body { gap: 12px; }
.hero-organ { width: clamp(120px, 15vw, 190px); aspect-ratio: 1; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)); }
.organ-words { display: grid; gap: 20px; }
.organ-words .eyebrow .dots { font-size: 1.05em; color: var(--ink); }
.organ-row { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.organ-row li { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.organ-row .ill { width: 100%; max-width: 92px; aspect-ratio: 1; padding: 0; border-radius: 50%;
  -webkit-mask-size: 58%; mask-size: 58%; }
.organ-row li::before { content: none; }
.organ-row li { position: relative; }
.organ-row li > .ill { box-shadow: none; }

/* Review: a soft rounded panel like the app's bottom sheet. */
.review { padding: 140px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.review-words { display: grid; gap: 20px; }
.panel { background: var(--panel); border-radius: 44px; padding: clamp(24px, 3.4vw, 40px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 15px; }
.round { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.5); }
.quiz fieldset { border: 0; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
.quiz legend { font: 400 clamp(26px, 2.8vw, 36px)/1.08 var(--display); letter-spacing: -0.03em; margin-bottom: 14px; padding: 0; }
.quiz label { position: relative; display: block; padding: 14px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.quiz label:hover { background: rgba(255, 255, 255, 0.85); }
.quiz input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.quiz label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz:has(input:checked) label { opacity: 0.5; }
.quiz:has(input:checked) label.right { opacity: 1; background: var(--ink); color: var(--white); }
.verdict { display: flex; align-items: center; gap: 18px; margin-top: 20px; min-height: 52px; visibility: hidden; }
.quiz:has(input:checked) .verdict { visibility: visible; }
.roots { font-size: 40px; flex: none; }
.verdict p { color: var(--ink-soft); font-size: 15px; }

/* Close: the backdrop again, the price in a chrome badge, a second cropped word. */
.get { position: relative; isolation: isolate; overflow: hidden; margin-top: 160px; min-height: max(780px, 96svh);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 80px max(32px, 6vw) 18vw; }
.price-badge { width: min(460px, 100%); justify-self: center; }
.price-badge .badge-number { font-size: clamp(40px, 5.4vw, 76px); }
.get-words { display: grid; gap: 18px; justify-items: start; }
.get-words .eyebrow { color: rgba(255, 255, 255, 0.82); }
.get-words h2 { color: var(--white); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18); }

/* Facts */
.facts { padding: 110px 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts h3 { font-size: 22px; margin-bottom: 8px; }
.facts p { color: var(--ink-soft); font-size: 15.5px; }

/* Footer */
.foot { padding: 60px 0 40px; margin-top: 60px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.foot nav a:hover { color: var(--ink); }


/* Live physiology, tried on yourself: three experiment cards, each with one glass disc to tap or hold. */
.live { padding: 140px 0 40px; display: grid; gap: 56px; }
.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.test { position: relative; overflow: hidden; border-radius: 28px; padding: 24px; min-height: 580px; color: var(--white);
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 20px; background: #1B1B1A center / cover; }
.reflex-test { background-image: url(/media/washes/sage.jpg); }
.breath-test { background-image: url(/media/washes/meadow.jpg); }
.test-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.test-step { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.test-num { display: flex; align-items: baseline; gap: 6px; font-size: 44px; line-height: 1; }
.test-num span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.test-words h3 { font-size: 28px; line-height: 1.05; margin-bottom: 8px; }
.test-say { color: rgba(255, 255, 255, 0.86); font-size: 15.5px; line-height: 1.45; min-height: 4.4em; }
.test-app { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.74); }
.test-app i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(217, 244, 15, 0.25); transform: translateY(-1px); }

/* The disc: glass over the card, the anatomy in white, a label underneath. */
.tap { position: relative; justify-self: center; align-self: center; width: min(230px, 80%); aspect-ratio: 1; padding: 0; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 12px; font: inherit; color: var(--white); cursor: pointer;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.07) 62%);
  border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2), inset 0 -10px 24px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: transform 0.18s cubic-bezier(.34, 1.4, .5, 1); }
.tap:active { transform: scale(0.96); }
.tap:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 50%; }
.tap::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; pointer-events: none; }
.tap-art { width: 92px; aspect-ratio: 1; }
.tap-label { font-size: 14px; color: rgba(255, 255, 255, 0.9); }

/* 02: dimmed while you wait, lime the instant it's time. No easing on the switch, so it's fair. */
.reflex-test[data-state="wait"] .tap { background: rgba(27, 27, 26, 0.22); border-color: rgba(255, 255, 255, 0.25); }
.reflex-test[data-state="wait"] .tap-art { opacity: 0.35; }
.reflex-test[data-state="go"] .tap { background: var(--lime); border-color: var(--lime); color: #1B1B1A; box-shadow: 0 0 0 10px rgba(217, 244, 15, 0.22), 0 24px 60px rgba(0, 0, 0, 0.2); }
.reflex-test[data-state="go"] .tap-art { background: #1B1B1A; }
.reflex-test[data-state="go"] .tap-label { color: #1B1B1A; font-weight: 600; font-size: 18px; }
/* 03: the lungs stay full and a lime ring holds while you do. */
.breath-test[data-state="holding"] .tap { transform: scale(1.05); background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12) 62%); }
.breath-test[data-state="holding"] .tap::after { opacity: 1; }
.breath-test[data-state="holding"] .tap-art { transform: scale(1.1); }

@media (prefers-reduced-motion: no-preference) {
  .tap.hit::after { animation: ripple 0.7s ease-out; }
  .pulse-test:not([data-state="beating"]) .tap.hit .tap-art { animation: thump 0.3s ease-out; }
  .pulse-test[data-state="beating"] .tap-art { animation: heartbeat var(--beat, 0.83s) ease-out infinite; }
  .pulse-test[data-state="beating"] .tap::after { animation: ripple var(--beat, 0.83s) ease-out infinite; }
  .breath-test:not([data-state="holding"]) .tap-art { animation: breathe 4.3s ease-in-out infinite; }   /* 14 breaths a minute */
  .breath-test .tap-art { transition: transform 0.6s cubic-bezier(.34, 1.2, .5, 1); }
  .reflex-test[data-state="wait"] .tap-label { animation: hush 1.1s ease-in-out infinite alternate; }
  @keyframes ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
  @keyframes thump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
  @keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(0.98); } 36% { transform: scale(1.06); } 50% { transform: scale(1); } }
  @keyframes breathe { 0%, 100% { transform: scale(0.94); } 45% { transform: scale(1.05); } }
  @keyframes hush { from { opacity: 1; } to { opacity: 0.5; } }
}

/* Tablet */
@media (max-width: 960px) {
  .tests { grid-template-columns: 1fr; }
  .test { min-height: 0; }
  /* The opening stacks and centers: the promise first, then the badge, then the name. */
  .hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; min-height: 100svh; padding: 110px 28px calc(24vw + 30px); }
  .hero-words { justify-items: center; }
  .hero-cta { justify-content: center; }
  .hero-badge { width: min(86vw, 40svh, 460px); margin: auto; }
  .orb { width: 64px; right: 18px; bottom: calc(24vw + 26px); }
  .counts { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .moves { grid-template-columns: 1fr; gap: 36px; }
  .moves li { grid-template-columns: 120px 1fr; align-items: center; gap: 24px; }
  .badge.mini { width: 120px; }
  .organs, .review { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; padding-top: 110px; justify-items: center; text-align: center; }
  .get-words { justify-items: center; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --frame: calc(100% - 36px); }
  body { font-size: 16px; }
  .top { padding-top: 16px; }
  .top nav a:not(.glass-pill) { display: none; }
  .brand img { width: 128px; }
  .lede { font-size: 17px; }
  .hero { padding: 88px 20px calc(25vw + 24px); gap: 24px; }
  .hero-words { gap: 16px; }
  .hero-badge { width: min(80vw, 36svh, 380px); }
  .hero h1 { font-size: clamp(40px, 11.6vw, 54px); }
  .hero-lede { font-size: 17px; }
  .chip { font-size: 12.5px; }
  .giant { font-size: 31vw; }
  .orb { width: 56px; right: 14px; bottom: calc(25vw + 26px); }
  .counts { padding-top: 64px; }
  .atlas, .organs, .review, .live { padding-top: 88px; }
  .test { border-radius: 24px; padding: 22px; gap: 18px; }
  .test-num { font-size: 38px; }
  .tap { width: min(200px, 66%); }
  .tap-art { width: 76px; }
  .moves li { grid-template-columns: 88px 1fr; gap: 18px; }
  .badge.mini { width: 88px; }
  .moves h3 { font-size: 22px; }
  .organ-row { gap: 6px; }
  .panel { border-radius: 30px; }
  .get { margin-top: 100px; padding-inline: 20px; padding-bottom: 34vw; min-height: 0; }
  .price-badge { width: 84vw; }
  .facts { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
