/* Psycho — a measuring instrument in cream, ink, navy.
   Reference caliber: qoves.com. Full-bleed atmospheric hero,
   liquid glass surfaces, slate-gradient cards fading to white,
   light grotesk display, mono data labels, scroll reveals.
   Radius rule: interactive elements are pills; surfaces are 18-24px. */

:root {
  --cream: #F6F2E5;
  --cream-deep: #ECE7D8;
  --surface: #FDFBF4;
  --white: #FFFFFF;
  --ink: #3A3A3A;
  --ink-soft: #6E6A5E;
  --ink-faint: #938F81;
  --navy: #005795;
  --navy-deep: #003F6B;
  --sky: #7FB2D8;
  --sky-soft: #9CC4E2;
  /* deep slate-navy stage (qoves' atmosphere, in Psycho's key) */
  --deep-1: #101E28;
  --deep-2: #1C3646;
  --deep-3: #33536A;
  --line: rgba(58, 58, 58, 0.13);
  --line-soft: rgba(58, 58, 58, 0.07);
  --line-faint: rgba(58, 58, 58, 0.04);
  --cream-line: rgba(246, 242, 229, 0.16);
  --shadow-sm: 0 1px 2px rgba(16, 30, 40, 0.05);
  --shadow: 0 2px 4px rgba(16, 30, 40, 0.04), 0 28px 70px -30px rgba(16, 30, 40, 0.35);
  --shadow-lift: 0 4px 10px rgba(16, 30, 40, 0.05), 0 40px 90px -34px rgba(16, 30, 40, 0.45);
  --shadow-navy: 0 14px 38px -14px rgba(0, 87, 149, 0.55);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --font-sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --edge: clamp(1.25rem, 5vw, 2.75rem);
  --shell: 1140px;
  --pad-y: clamp(4rem, 7.5vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0 0 0.55em; font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(2.15rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.24rem; font-weight: 500; letter-spacing: -0.018em; line-height: 1.24; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 500; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  margin: 0 0 1.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- Scroll reveal ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.will-reveal.revealed { opacity: 1; transform: none; }

/* ---------- Liquid glass nav ---------- */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px var(--edge) 0;
  pointer-events: none;
}
.glass {
  background: rgba(250, 247, 238, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 44px -18px rgba(16, 30, 40, 0.4);
}
.nav {
  pointer-events: auto;
  width: min(var(--shell), 100%);
  height: 62px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 10px 0 24px;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  transition: color 0.35s ease;
}
.nav-brand:hover { text-decoration: none; }
.nav-glyph {
  display: inline-flex;
  width: 26px;
  color: var(--navy);
  transition: color 0.35s ease;
}
.nav-glyph svg { width: 100%; height: auto; display: block; }
.nav-links { display: flex; gap: 2.1rem; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 0.35rem; flex: 1; justify-content: flex-end; }
.nav-account {
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-account:hover { color: var(--ink); background: rgba(58, 58, 58, 0.05); text-decoration: none; }
.cta-nav {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, background 0.25s ease, color 0.25s ease;
}
.cta-nav:hover { background: #242424; text-decoration: none; }
.cta-nav:active { transform: scale(0.97); }

/* nav over the dark hero: fully transparent, light text; the glass pill
   only materializes once scrolled onto cream sections */
:is(.page-home, .page-dash) .nav:not(.scrolled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-brand { color: var(--cream); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-links a { color: rgba(246, 242, 229, 0.72); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-links a:hover { color: var(--cream); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-account { color: rgba(246, 242, 229, 0.72); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-account:hover { color: var(--cream); background: rgba(246, 242, 229, 0.08); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .cta-nav { background: var(--cream); color: var(--deep-1); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .cta-nav:hover { background: var(--white); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-glyph { color: var(--cream); }
:is(.page-home, .page-dash) .nav:not(.scrolled) .nav-toggle span { background: var(--cream); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav-toggle span { width: 19px; height: 1.5px; background: var(--ink); transition: transform 0.22s ease, background 0.35s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav-sheet {
  pointer-events: auto;
  width: min(var(--shell), 100%);
  margin-top: 8px;
  border-radius: 24px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a { color: var(--ink); padding: 0.8rem 1rem; border-radius: 14px; font-size: 1rem; }
.nav-sheet a:hover { background: rgba(58, 58, 58, 0.05); text-decoration: none; }
.nav-sheet-rule { height: 1px; background: var(--line); margin: 0.4rem 0.6rem; }
.nav-sheet-cta { color: var(--navy) !important; font-weight: 500; }

/* ---------- Section scaffold ---------- */

main { display: block; }
section { padding: var(--pad-y) var(--edge); }
.section-inner { max-width: var(--shell); margin: 0 auto; }

/* dark atmospheric band (hero, science, final) */
.band-dark {
  position: relative;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(0, 87, 149, 0.4) 0%, rgba(0, 87, 149, 0) 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(127, 178, 216, 0.14) 0%, rgba(127, 178, 216, 0) 60%),
    linear-gradient(168deg, var(--deep-1) 0%, var(--deep-2) 48%, var(--deep-3) 120%);
  overflow: hidden;
}
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  opacity: 0.05;
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h1, .band-dark h2 { color: var(--cream); }
.band-dark .eyebrow { color: var(--sky-soft); }

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

.hero {
  min-height: min(88svh, 820px);
  display: flex;
  flex-direction: column;
  padding: clamp(5.75rem, 12vh, 8.5rem) var(--edge) 0;
  background:
    linear-gradient(90deg, rgba(11, 19, 26, 0.9) 0%, rgba(11, 19, 26, 0.55) 42%, rgba(11, 19, 26, 0.08) 72%, rgba(11, 19, 26, 0.3) 100%),
    linear-gradient(0deg, rgba(11, 19, 26, 0.82) 0%, rgba(11, 19, 26, 0) 34%),
    url("/hero.jpg") 68% center / cover no-repeat,
    var(--deep-1);
}
.hero-inner {
  width: min(var(--shell), 100%);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.hero h1 { letter-spacing: -0.042em; margin-bottom: 0; }
.hero h1 .muted { color: rgba(246, 242, 229, 0.44); }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  color: rgba(246, 242, 229, 0.72);
  margin: 1.7rem 0 2.6rem;
  max-width: 42ch;
}
.hero-ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* staged entrance for hero copy */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero-visual { animation: riseIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

/* primary CTA: cream pill on dark, navy pill on light */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--cream);
  color: var(--deep-1);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 40px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.cta-primary:hover { background: var(--white); text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 22px 50px -16px rgba(0, 0, 0, 0.6); }
.cta-primary:active { transform: translateY(0) scale(0.99); }
.on-light .cta-primary, form .cta-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-navy);
}
.on-light .cta-primary:hover, form .cta-primary:hover { background: var(--navy-deep); }

/* ghost CTA: liquid glass pill */
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 229, 0.28);
  background: rgba(246, 242, 229, 0.09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.cta-ghost:hover { background: rgba(246, 242, 229, 0.16); border-color: rgba(246, 242, 229, 0.45); text-decoration: none; transform: translateY(-2px); }
.on-light .cta-ghost {
  color: var(--ink);
  border-color: rgba(58, 58, 58, 0.22);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.on-light .cta-ghost:hover { background: rgba(255, 255, 255, 0.8); border-color: rgba(58, 58, 58, 0.4); }

/* hero foot: hairline stat strip on the dark stage */
.hero-stats {
  width: min(var(--shell), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cream-line);
  padding: 1.8rem 0 2.4rem;
  animation: riseIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.hero-stat { padding: 0 2.2rem; border-left: 1px solid var(--cream-line); }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat .mono { color: var(--sky-soft); }
.hero-stat h3 { font-size: 1rem; font-weight: 500; margin: 0.7rem 0 0.25rem; letter-spacing: -0.01em; color: var(--cream); }
.hero-stat p { font-size: 0.88rem; color: rgba(246, 242, 229, 0.6); margin: 0; }

/* ---------- Report card — liquid glass on dark ---------- */

.report-card {
  border-radius: 24px;
  padding: 1.8rem 1.9rem;
  max-width: 27.5rem;
  margin-left: auto;
  width: 100%;
  background: linear-gradient(165deg, rgba(246, 242, 229, 0.15) 0%, rgba(246, 242, 229, 0.06) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(246, 242, 229, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 34px 80px -28px rgba(0, 0, 0, 0.6);
  color: var(--cream);
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(246, 242, 229, 0.16);
  color: rgba(246, 242, 229, 0.55);
}
.report-id { color: var(--sky-soft); }
.report-score { display: flex; align-items: center; gap: 1.8rem; padding: 1.5rem 0 1.4rem; }
.score-block { display: flex; flex-direction: column; }
.score-num { font-size: 3rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--cream); }
.score-potential .score-num { color: var(--sky-soft); }
.score-label { color: rgba(246, 242, 229, 0.5); margin-top: 0.55rem; }
.score-arrow { font-size: 1.3rem; color: rgba(246, 242, 229, 0.45); }
.report-traits { display: flex; flex-direction: column; gap: 0.9rem; padding-bottom: 1.35rem; }
.trait {
  display: grid;
  grid-template-columns: 1fr 84px 48px;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.86rem;
}
.trait > span:first-child { color: rgba(246, 242, 229, 0.78); }
.trait .mono { text-align: right; color: var(--sky-soft); font-size: 0.66rem; }
.trait-bar { height: 3px; border-radius: 999px; background: rgba(246, 242, 229, 0.16); overflow: hidden; }
.trait-bar i { display: block; height: 100%; background: var(--sky); border-radius: 999px; }
.report-verdict { border-top: 1px solid rgba(246, 242, 229, 0.16); padding-top: 1.15rem; }
.report-verdict .mono { color: var(--sky-soft); }
.report-verdict p { font-size: 0.89rem; margin: 0.55rem 0 0; color: rgba(246, 242, 229, 0.66); line-height: 1.55; }

/* light-surface variant (sample section, dashboards) */
.report-card.on-cream {
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.16) 0%, var(--white) 55%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.report-card.on-cream .report-head { border-bottom-color: var(--line-soft); color: var(--ink-faint); }
.report-card.on-cream .report-id { color: var(--navy); }
.report-card.on-cream .score-num { color: var(--ink); }
.report-card.on-cream .score-potential .score-num { color: var(--navy); }
.report-card.on-cream .score-label { color: var(--ink-faint); }
.report-card.on-cream .trait > span:first-child { color: var(--ink-soft); }
.report-card.on-cream .trait .mono { color: var(--navy); }
.report-card.on-cream .trait-bar { background: rgba(0, 87, 149, 0.12); }
.report-card.on-cream .trait-bar i { background: var(--navy); }
.report-card.on-cream .report-verdict { border-top-color: var(--line-soft); }
.report-card.on-cream .report-verdict .mono { color: var(--navy); }
.report-card.on-cream .report-verdict p { color: var(--ink-soft); }

/* ---------- Measured (bento with slate-gradient cards) ---------- */

.measured { background: var(--cream); }
.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.m-cell {
  border-radius: 20px;
  padding: 2.1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.17) 0%, var(--white) 62%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.m-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.m-cell h3 { margin-bottom: 0.7rem; }
.m-cell p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; max-width: 44ch; }
.m-large { grid-column: span 2; }
.m-navy {
  background:
    radial-gradient(110% 100% at 85% -10%, rgba(127, 178, 216, 0.35) 0%, rgba(127, 178, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: rgba(255, 255, 255, 0.14);
}
.m-navy h3 { color: var(--cream); }
.m-navy p { color: rgba(246, 242, 229, 0.82); }
.m-meter { grid-column: span 2; }
.m-ticks {
  position: absolute;
  right: 2.1rem;
  top: 2.1rem;
  display: flex;
  gap: 7px;
}
.m-ticks i { width: 1.5px; height: 18px; background: rgba(58, 58, 58, 0.18); }
.m-ticks i:nth-child(4n) { height: 26px; background: var(--navy); }
.meter { position: relative; margin-top: 1.5rem; height: 4px; border-radius: 999px; background: rgba(0, 87, 149, 0.12); }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-deep), var(--navy)); }
.meter-now { position: absolute; left: 62%; top: 13px; transform: translateX(-50%); color: var(--ink); }
.meter-max { position: absolute; right: 0; top: 13px; color: var(--ink-faint); }

/* ---------- How it works (numbered visual tiles) ---------- */

.how-head { text-align: center; }
.how-head .section-lead { margin: 0 auto; }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-top: 2.6rem;
}
.proc h3 { font-size: 1.34rem; margin: 1.4rem 0 0.5rem; }
.proc p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.proc-visual {
  position: relative;
  aspect-ratio: 1 / 1.45;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.proc-num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  font-size: 0.62rem;
}
.proc-v-slate {
  color: var(--cream);
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(0, 87, 149, 0.45) 0%, rgba(0, 87, 149, 0) 60%),
    linear-gradient(165deg, var(--deep-1) 0%, var(--deep-2) 55%, var(--deep-3) 130%);
}
.proc-v-light {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.22) 0%, var(--white) 70%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  align-items: flex-start;
  padding: 3rem 1.5rem 1.4rem;
}
.proc-v-light .proc-num { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.9); color: var(--navy); }
.proc-v-navy {
  color: var(--cream);
  background:
    radial-gradient(110% 100% at 85% -10%, rgba(127, 178, 216, 0.4) 0%, rgba(127, 178, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.proc-v-cream {
  color: var(--ink);
  background:
    radial-gradient(90% 80% at 20% 100%, rgba(0, 87, 149, 0.1) 0%, rgba(0, 87, 149, 0) 60%),
    var(--cream-deep);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.proc-v-cream .proc-num { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.9); color: var(--navy); }

/* tile 1: photo slots */
.proc-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; width: 100%; }
.proc-slot { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.proc-slot i {
  width: 100%;
  aspect-ratio: 3 / 4.6;
  border: 1.5px dashed rgba(246, 242, 229, 0.4);
  border-radius: 10px;
  background: rgba(246, 242, 229, 0.06);
}
.proc-slot b { font-weight: 500; font-size: 0.52rem; color: rgba(246, 242, 229, 0.7); }

/* tile 2: mini measurement */
.proc-mini { width: 100%; }
.proc-mini-label { display: block; color: var(--ink-soft); font-size: 0.54rem; margin-bottom: 0.5rem; }
.proc-mini .range-ends { margin-top: 0.5rem; margin-bottom: 0.6rem; font-size: 0.72rem; }
.proc-mini .range-ends:last-child { margin-bottom: 0; }

/* dense micro readout rows (tiles 2 and 3) */
.proc-micro { margin-top: 0.5rem; border-top: 1px solid var(--line-soft); }
.pm-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.33rem 0;
  border-bottom: 1px solid var(--line-faint);
}
.pm-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-row .mono { flex: 1; font-size: 0.52rem; color: var(--ink-soft); }
.pm-row b { font-weight: 500; font-size: 0.78rem; letter-spacing: -0.01em; white-space: nowrap; min-width: 3.1rem; text-align: right; }
.pm-dots { display: inline-flex; gap: 3px; }
.pm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 87, 149, 0.16); }
.pm-dots i.on { background: var(--navy); }
.proc-micro-dark { width: 100%; border-top-color: rgba(246, 242, 229, 0.16); }
.proc-micro-dark .pm-row { border-bottom-color: rgba(246, 242, 229, 0.09); }
.proc-micro-dark .pm-row .mono { color: var(--sky-soft); }
.proc-micro-dark .pm-row b { color: var(--cream); }

/* tile 3: ceiling ring on navy */
.proc-v-navy { flex-direction: column; gap: 1.1rem; }
.proc-ring { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.proc-v-navy .ring { width: 88px; height: 88px; }
.proc-v-navy .ring-track { stroke: rgba(246, 242, 229, 0.2); }
.proc-v-navy .ring-fill { stroke: var(--cream); }
.proc-v-navy .ring-num { color: var(--cream); }
.proc-ring-label { font-size: 0.54rem; color: var(--sky-soft); letter-spacing: 0.14em; }

/* tile 4: protocol chips */
.proc-chips { list-style: none; margin: 0; padding: 2.4rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; width: 100%; }
.proc-chips li {
  position: relative;
  padding: 0.6rem 0.9rem 0.6rem 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 0.6rem;
  color: var(--ink);
  letter-spacing: 0.12em;
}
.proc-chips li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 8px;
  height: 4px;
  margin-top: -3px;
  border-left: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
}

/* legacy list steps (kept for reference pages) */
.steps { list-style: none; margin: 3rem 0 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: rgba(0, 87, 149, 0.35);
  line-height: 1;
  font-family: var(--font-sans);
}
.step-body h3 { margin-bottom: 0.5rem; }
.step-body p { color: var(--ink-soft); margin: 0; max-width: 56ch; }

/* ---------- Sample report ---------- */

.sample {
  background:
    radial-gradient(80% 90% at 15% 20%, rgba(0, 87, 149, 0.07) 0%, rgba(0, 87, 149, 0) 60%),
    var(--cream-deep);
}
.sample-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.sample .report-card { margin-left: 0; margin-right: auto; }
.sample-copy p { color: var(--ink-soft); }

/* ---------- Instrument panels (report vocabulary from the iOS app) ---------- */

.sample-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}
.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 0.4em; max-width: 40ch; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.panel {
  border-radius: 20px;
  padding: 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.14) 0%, var(--white) 55%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.panel-label { color: var(--ink-faint); margin-bottom: 1.5rem; }
.panel-note { font-size: 0.85rem; color: var(--ink-soft); margin: auto 0 0; padding-top: 1.2rem; line-height: 1.55; }
.panel h3 { margin-bottom: 0.3rem; }

/* score ring */
.ring-row { display: flex; align-items: center; gap: 1.5rem; }
.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-track { fill: none; stroke: rgba(0, 87, 149, 0.12); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--navy); stroke-width: 7; stroke-linecap: round; }
.ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
}
.ring-bars { flex: 1; display: flex; flex-direction: column; gap: 0.85rem; }
.rb { display: grid; grid-template-columns: 4.6rem 1fr 1.6rem; align-items: center; gap: 0.7rem; }
.rb > .mono:first-child { color: var(--ink-soft); font-size: 0.6rem; }
.rb-bar { height: 3px; border-radius: 999px; background: rgba(0, 87, 149, 0.12); overflow: hidden; }
.rb-bar i { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.rb-val { text-align: right; color: var(--ink); font-size: 0.66rem; }

/* current vs ceiling range */
.range-block { margin-bottom: 1.3rem; }
.range-name { display: block; color: var(--ink-soft); font-size: 0.6rem; margin-bottom: 0.85rem; }
.range-track { position: relative; height: 4px; border-radius: 999px; background: rgba(0, 87, 149, 0.12); }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--navy); border-radius: 999px; }
.range-dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(16, 30, 40, 0.3);
}
.range-tick {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 15px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  border-radius: 1px;
}
.range-ends { display: flex; justify-content: space-between; margin-top: 0.7rem; font-size: 0.86rem; color: var(--ink-soft); }

/* segmented classification scale */
.scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.scale .seg { display: flex; flex-direction: column; gap: 0.5rem; }
.scale .seg i { height: 6px; border-radius: 999px; background: rgba(0, 87, 149, 0.12); }
.scale .seg .mono { font-size: 0.52rem; color: var(--ink-faint); letter-spacing: 0.06em; text-align: center; }
.scale .seg.active i { background: var(--navy); }
.scale .seg.active .mono { color: var(--navy); }
.scale-read { display: flex; align-items: baseline; gap: 1.1rem; margin-top: 1.4rem; }
.scale-val { font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.scale-val small { font-size: 1.1rem; color: var(--ink-faint); }
.scale-read .panel-note { padding-top: 0; margin: 0; }

/* key-value rows */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv:last-of-type { border-bottom: 0; }
.kv .mono { color: var(--ink-soft); font-size: 0.62rem; }
.kv b { font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; }
.kv-tight { padding: 0.6rem 0; }
.kv-tight b { font-size: 0.98rem; }

/* sparkline */
.spark { margin-bottom: 0.8rem; }
.spark svg { width: 100%; height: 64px; display: block; }
.spark-base { stroke: rgba(58, 58, 58, 0.2); stroke-width: 1; stroke-dasharray: 3 4; }
.spark-line { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.spark-dots circle { fill: var(--sky); }

/* kv value with faint ideal */
.kv-val { display: flex; align-items: baseline; gap: 0.6rem; }
.kv-val b { font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; }
.kv-val i { font-style: normal; color: var(--ink-faint); font-size: 0.58rem; }

/* radar chart */
.radar svg { width: 100%; max-width: 15.5rem; margin: 0 auto; display: block; }
.radar-grid { fill: none; stroke: rgba(58, 58, 58, 0.12); stroke-width: 1; }
.radar-axes line { stroke: rgba(58, 58, 58, 0.08); stroke-width: 1; }
.radar-value { fill: rgba(0, 87, 149, 0.13); stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.radar-dots circle { fill: var(--navy); }
.radar-labels text {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  fill: var(--ink-soft);
}

/* weekly bars */
.bars7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 64px;
}
.bars7 b { display: block; background: var(--navy); border-radius: 3px 3px 2px 2px; min-height: 2px; }
.bars7-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 0.45rem 0 0.9rem;
  font-size: 0.52rem;
  color: var(--ink-faint);
  text-align: center;
}

/* priority prescription */
.panel-priority {
  background:
    radial-gradient(110% 100% at 85% -10%, rgba(127, 178, 216, 0.3) 0%, rgba(127, 178, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: rgba(255, 255, 255, 0.14);
}
.panel-priority .panel-label { color: var(--sky-soft); }
.panel-priority h3 { color: var(--cream); }
.panel-priority .panel-note { color: rgba(246, 242, 229, 0.75); margin: 0; padding-top: 0.2rem; }
.rx { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.rx li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(246, 242, 229, 0.9);
  border-top: 1px solid rgba(246, 242, 229, 0.14);
}
.rx li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--sky-soft);
  border-bottom: 1.5px solid var(--sky-soft);
  transform: rotate(-45deg);
}

/* report manifest */
.manifest { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.manifest-head {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  padding: 1rem 0.2rem 0.9rem;
  color: var(--ink-faint);
  font-size: 0.6rem;
}
.manifest-head span:nth-child(2) { display: none; }
.manifest-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0.2rem;
  border-top: 1px solid var(--line-soft);
}
.manifest-num { color: var(--navy); }
.manifest-row div { display: flex; flex-direction: column; gap: 0.15rem; }
.manifest-row b { font-weight: 500; font-size: 1.02rem; letter-spacing: -0.015em; }
.manifest-row div span { font-size: 0.88rem; color: var(--ink-soft); }
.manifest-count { text-align: right; color: var(--ink-soft); }

/* ---------- Science (dark band) ---------- */

.science-inner { max-width: 46rem; }
.science-inner p { font-size: 1.12rem; color: rgba(246, 242, 229, 0.74); }
.science-sig { color: var(--sky-soft); margin-top: 2.6rem; }

/* ---------- Evidence (tabbed citation cards) ---------- */

.evidence { background: var(--cream); }
.evidence .section-lead { margin-bottom: 2.6rem; }
.ev-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.2rem;
}
.ev-tab {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.ev-tab:hover { color: var(--ink); }
.ev-tab.active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 18px -8px rgba(16, 30, 40, 0.5);
}
.ev-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.ev-panel[hidden] { display: none; }
.ev-card {
  display: flex;
  flex-direction: column;
  min-height: 19rem;
  border-radius: 20px;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.12) 0%, var(--white) 55%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.ev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ev-card h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.ev-card h3 em { font-style: normal; color: var(--ink-faint); }
.ev-card > p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; max-width: 34ch; }
.ev-cite {
  margin-top: auto !important;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: none;
}
.ev-lever {
  margin-top: 1.1rem;
  border-radius: 22px;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  color: var(--cream);
  background:
    radial-gradient(110% 120% at 88% -15%, rgba(127, 178, 216, 0.32) 0%, rgba(127, 178, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-navy);
}
.ev-lever .panel-label { color: var(--sky-soft); display: block; }
.ev-lever h3 { color: var(--cream); font-size: 1.65rem; font-weight: 400; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.ev-lever-copy p { color: rgba(246, 242, 229, 0.78); font-size: 0.97rem; margin: 0; max-width: 48ch; }
.ev-lever-cites { list-style: none; margin: 0; padding: 0; }
.ev-lever-cites li {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(246, 242, 229, 0.7);
  padding: 0.85rem 0;
  border-top: 1px solid rgba(246, 242, 229, 0.14);
}
.ev-lever-cites li:first-child { border-top: 0; padding-top: 0; }
.ev-lever-cites li:last-child { padding-bottom: 0; }
.ev-lever-cites b {
  display: block;
  color: var(--sky-soft);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ev-close {
  margin: 2.6rem 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

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

.pricing {
  background:
    radial-gradient(70% 80% at 85% 15%, rgba(0, 87, 149, 0.06) 0%, rgba(0, 87, 149, 0) 55%),
    var(--cream);
}
.pricing .section-inner { display: grid; justify-items: center; text-align: center; }
.price-card {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.15) 0%, var(--white) 48%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lift);
  max-width: 37rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 3.2rem);
  text-align: left;
}
.price-head h2 { margin-bottom: 0.6rem; }
.price-line { display: flex; align-items: baseline; gap: 0.7rem; margin: 1.5rem 0 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-soft); }
.price { font-size: 3.2rem; font-weight: 300; letter-spacing: -0.05em; }
.price-note { color: var(--ink-faint); font-size: 0.95rem; }
.price-includes { list-style: none; margin: 0 0 2.3rem; padding: 0; }
.price-includes li {
  padding: 0.6rem 0 0.6rem 1.9rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.price-includes li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
}
.cta-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 1.05rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-navy);
  transition: background 0.2s ease, transform 0.18s ease;
}
.cta-price:hover { background: var(--navy-deep); text-decoration: none; transform: translateY(-2px); }
.cta-price:active { transform: scale(0.99); }
.price-fine { font-size: 0.82rem; color: var(--ink-faint); text-align: center; margin: 1.1rem 0 0; }

/* ---------- App band ---------- */

.app-band { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.app-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.app-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.35em; }
.app-copy p:last-child { color: rgba(246, 242, 229, 0.68); margin: 0; }
.app-copy .eyebrow { margin-bottom: 1.1rem; }

/* ---------- FAQ (category sidebar + accordion) ---------- */

.faqs { background: var(--surface); }
.faqs-head { text-align: center; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.faq-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.h2-muted { color: var(--ink-faint); }
.faqs-sub { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.faqs-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-cats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.faq-cat {
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  padding: 0.6rem 0 0.6rem 1.2rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-faint);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.faq-cat:hover { color: var(--ink); }
.faq-cat.active { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.faq-group[hidden] { display: none; }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list details:first-child { border-top: 1px solid var(--line-soft); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  position: relative;
  transition: color 0.18s ease;
}
.faq-list summary:hover { color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  background:
    linear-gradient(var(--ink-faint), var(--ink-faint)) center/11px 1.5px no-repeat,
    linear-gradient(var(--ink-faint), var(--ink-faint)) center/1.5px 11px no-repeat;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { color: var(--ink-soft); padding: 0 0 1.5rem; margin: 0; max-width: 62ch; }

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

.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) var(--edge); background: var(--cream); }
.footer-inner { max-width: var(--shell); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; letter-spacing: 0.18em; font-size: 0.8rem; }
.footer-line { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.footer-links { margin-left: auto; display: flex; gap: 1.6rem; font-size: 0.9rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: var(--ink-faint); font-size: 0.8rem; margin: 0.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-faint); }

/* ---------- Auth ---------- */

.page-auth {
  background:
    radial-gradient(90% 70% at 80% -10%, rgba(0, 87, 149, 0.1) 0%, rgba(0, 87, 149, 0) 55%),
    var(--cream-deep);
}
.page-auth main { min-height: 100dvh; display: grid; place-items: center; padding: 6rem 1.5rem 3rem; }
.page-auth .nav-wrap, .page-auth .footer { display: none; }
.auth-card {
  width: min(26.5rem, 100%);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.14) 0%, var(--white) 42%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.9rem, 4vw, 2.7rem);
}
.auth-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 500; letter-spacing: 0.18em; font-size: 0.78rem; margin-bottom: 1.9rem; }
.auth-brand:hover { text-decoration: none; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -0.03em; margin-bottom: 0.4rem; font-weight: 400; }
.auth-sub { color: var(--ink-soft); font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; margin-top: 1.6rem; }
.auth-form label, .sub-form label, .stat-grid label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.05rem 0 0.4rem;
  display: block;
}
.auth-form input, .sub-form input:not([type="file"]), .sub-form select, .sub-form textarea, .admin-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: rgba(246, 242, 229, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-form input:focus, .sub-form input:focus, .sub-form select:focus, .sub-form textarea:focus, .admin-form textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 87, 149, 0.12);
}
.form-hint { font-size: 0.8rem; color: var(--ink-faint); margin: 0.4rem 0 0; }
.form-error { color: #A03123; font-size: 0.88rem; margin: 1rem 0 0; }
.cta-auth {
  margin-top: 1.7rem;
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.92rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-navy);
  transition: background 0.2s ease, transform 0.18s ease;
}
.cta-auth:hover { background: var(--navy-deep); transform: translateY(-1px); }
.cta-auth:active { transform: scale(0.99); }
.cta-auth[disabled] { opacity: 0.55; cursor: wait; }
.auth-alt { font-size: 0.9rem; color: var(--ink-soft); margin: 1.7rem 0 0; text-align: center; }

/* ---------- Dashboard ---------- */

.page-dash {
  background:
    radial-gradient(80% 50% at 75% -5%, rgba(0, 87, 149, 0.08) 0%, rgba(0, 87, 149, 0) 55%),
    var(--cream-deep);
}
.page-dash main { min-height: 100dvh; }
.dash { padding-top: 1.3rem; padding-bottom: 5rem; }
.dash-shell { max-width: var(--shell); margin: 0 auto; }
.dash-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.linklike { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0.5rem 0.9rem; border-radius: 999px; transition: background 0.18s ease, color 0.18s ease; }
.linklike:hover { background: rgba(58, 58, 58, 0.05); color: var(--ink); }

/* welcome band: full-bleed dark stage behind the transparent nav, like the hero */
.dash-hero {
  padding: clamp(7.5rem, 13vw, 9rem) var(--edge) clamp(2.4rem, 4.5vw, 3.2rem);
}
.dw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }
.dw-head .eyebrow { margin-bottom: 0; }
.dash-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.038em;
  margin-bottom: 0.35em;
}
.dw-sub { color: rgba(246, 242, 229, 0.68); margin: 0; font-size: 1.02rem; }
.dw-link { color: rgba(246, 242, 229, 0.65); font-size: 0.88rem; }
.dw-link:hover { color: var(--cream); background: rgba(246, 242, 229, 0.08); text-decoration: none; }
a.dw-link { padding: 0.5rem 0.9rem; border-radius: 999px; transition: background 0.18s ease, color 0.18s ease; }
.dash-hero .timeline { margin: 2.2rem 0 0.4rem; }
.dash-hero .timeline li { color: rgba(246, 242, 229, 0.45); }
.dash-hero .timeline li::before { background: rgba(246, 242, 229, 0.2); }
.dash-hero .timeline li.done { color: var(--sky-soft); }
.dash-hero .timeline li.done::before { background: var(--sky); }
.dash-hero .t-dot { background: transparent; border-color: rgba(246, 242, 229, 0.35); }
.dash-hero .timeline li.done .t-dot { background: var(--sky); border-color: var(--sky); }

/* two-column body: main + rail */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.2rem;
  align-items: start;
  margin-top: 1.2rem;
}
.dash-rail { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 96px; }
.rail-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.13) 0%, var(--white) 50%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.rail-label { display: block; font-size: 0.6rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.rail-label-action { color: var(--navy); }
.rail-card h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.rail-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.rail-card .price-fine { margin: 0.8rem 0 0; text-align: center; }
.rail-cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.9rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-navy);
  transition: background 0.2s ease, transform 0.18s ease;
}
.rail-cta:hover { background: var(--navy-deep); text-decoration: none; transform: translateY(-1px); }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-bottom: 0.9rem; }
.rail-head h3 { margin: 0; }
.rail-chip {
  font-size: 0.58rem;
  color: var(--navy);
  border: 1px solid rgba(0, 87, 149, 0.25);
  background: rgba(0, 87, 149, 0.06);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  white-space: nowrap;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-faint);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.check-dot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
}
.check-list li.done { color: var(--ink); }
.check-list li.done .check-dot { background: var(--navy); border-color: var(--navy); }
.check-list li.done .check-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5.5px;
  width: 7px;
  height: 3.5px;
  border-left: 1.6px solid var(--cream);
  border-bottom: 1.6px solid var(--cream);
  transform: rotate(-45deg);
}
.rail-app {
  display: block;
  border-radius: 20px;
  padding: 1.6rem;
  color: var(--cream);
  background:
    radial-gradient(110% 100% at 85% -10%, rgba(127, 178, 216, 0.35) 0%, rgba(127, 178, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-navy);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.rail-app:hover { transform: translateY(-3px); text-decoration: none; }
.rail-app .mono { display: block; font-size: 0.58rem; color: var(--sky-soft); margin-bottom: 0.7rem; }
.rail-app b { display: block; font-weight: 400; font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.rail-app-cta { font-size: 0.9rem; font-weight: 500; color: var(--cream); }

/* locked protocol rows */
.lock-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.lock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-faint);
}
.lock-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 87, 149, 0.07);
  color: var(--navy);
}
.lock-ico svg { width: 15px; height: 15px; }
.lock-body { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.lock-body b { font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }
.lock-blur { font-style: normal; font-size: 0.84rem; color: var(--ink-soft); filter: blur(4px); user-select: none; }
.lock-state { font-size: 0.56rem; color: var(--ink-faint); }
.dash-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.13) 0%, var(--white) 40%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 1.4rem;
}
.dash-card h2 { font-size: 1.55rem; letter-spacing: -0.025em; font-weight: 400; }
.dash-sub { color: var(--ink-soft); font-size: 0.98rem; }
.dash-card form .cta-primary { margin-top: 1.4rem; }
.dash-empty { text-align: left; }

.timeline { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 1.5rem; }
.timeline li {
  flex: 1;
  position: relative;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--line);
}
.timeline li.done { color: var(--navy); }
.timeline li.done::before { background: var(--navy); }
.t-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 1.5px solid var(--line);
}
.timeline li.done .t-dot { background: var(--navy); border-color: var(--navy); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.4rem 0; }
.photo-slot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 8rem;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  background: rgba(246, 242, 229, 0.4);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sub-form label.photo-slot { display: flex; margin: 0; font-family: var(--font-sans); text-transform: none; letter-spacing: normal; }
.photo-slot:hover { border-color: var(--navy); background: rgba(0, 87, 149, 0.04); }
.photo-slot.filled { border-style: solid; border-color: var(--navy); background: rgba(0, 87, 149, 0.05); }
.photo-slot input { display: none; }
.photo-slot .mono { color: var(--navy); }
.photo-state { font-size: 0.82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.1rem; margin-bottom: 0.4rem; }
.sub-form textarea { resize: vertical; }
.sub-form .cta-auth { width: 100%; }
.sub-form .price-fine { text-align: left; }

.report-shell {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(114, 142, 158, 0.13) 0%, var(--white) 30%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 1.4rem;
}
.report-shell-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.1rem;
  margin-bottom: 1.8rem;
}
.report-shell h3 { margin-top: 1.8rem; letter-spacing: -0.02em; }
.report-shell h3:first-child { margin-top: 0; }
.report-shell p { color: var(--ink-soft); }
.dash-again { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0 0.4rem; }
.dash-again p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.dash-again .cta-ghost { color: var(--ink); border-color: rgba(58, 58, 58, 0.22); background: rgba(255, 255, 255, 0.55); }
.dash-again .cta-ghost:hover { background: var(--white); border-color: rgba(58, 58, 58, 0.4); }

/* ---------- Admin ---------- */

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th { text-align: left; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0.8rem 0.8rem; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 0.95rem 0.8rem; border-bottom: 1px solid var(--line-soft); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td.mono { color: var(--ink-soft); }
.badge { display: inline-block; font-size: 0.64rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--cream-deep); color: var(--ink-soft); }
.badge-delivered { background: var(--navy); color: var(--cream); }
.badge-submitted, .badge-in_review { background: rgba(0, 87, 149, 0.13); color: var(--navy-deep); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0; }
.admin-stats dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--navy); }
.admin-stats dd { margin: 0.3rem 0 0; font-size: 0.98rem; }
.admin-photos { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.admin-photos a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-photos a:hover { border-color: var(--navy); background: var(--white); text-decoration: none; }
.admin-form textarea { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; }
.admin-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.admin-actions .cta-primary, .admin-actions .cta-ghost { font-size: 0.95rem; }
.admin-actions .cta-ghost { color: var(--ink); border-color: rgba(58, 58, 58, 0.22); background: rgba(255, 255, 255, 0.55); }
.admin-actions .cta-ghost:hover { background: var(--white); border-color: rgba(58, 58, 58, 0.4); }

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

@media (max-width: 960px) {
  .hero-inner, .sample-split { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .sample-head { grid-template-columns: 1fr; align-items: start; gap: 0.5rem; margin-bottom: 2.2rem; }
  .ev-lever { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .hero {
    background:
      linear-gradient(180deg, rgba(11, 19, 26, 0.42) 0%, rgba(11, 19, 26, 0.68) 55%, rgba(11, 19, 26, 0.95) 100%),
      linear-gradient(90deg, rgba(11, 19, 26, 0.5) 0%, rgba(11, 19, 26, 0.2) 100%),
      url("/hero.jpg") 85% center / cover no-repeat,
      var(--deep-1);
  }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; align-items: end; }
  .report-card { margin-left: 0; }
  .measure-grid { grid-template-columns: 1fr 1fr; }
  .m-large, .m-meter { grid-column: span 2; }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions { display: none; }
  .nav-brand { flex: 1; }
  .nav-toggle { display: flex; }
  .step { grid-template-columns: 76px 1fr; gap: 1.4rem; }
  .step-num { font-size: 1.7rem; }
  .stat-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-rail { position: static; order: -1; }
  .ev-tabs {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ev-tabs::-webkit-scrollbar { display: none; }
  .ev-card { min-height: 15rem; }
  .faqs-body { grid-template-columns: 1fr; gap: 1.6rem; }
  .faq-cats {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .faq-cats::-webkit-scrollbar { display: none; }
  .faq-cat {
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px;
    padding: 0.6rem 1rem 0.8rem;
  }
  .faq-cat.active { border-left: 0; border-bottom-color: var(--ink); }
  /* condensed science band on small screens */
  .science-long { display: none; }
  .science-inner p { font-size: 1.02rem; }
  /* centered footer on small screens */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
  .footer-links { margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 0.9rem 1.5rem; }
  .footer-copy { text-align: center; padding-top: 1.2rem; margin-top: 0.2rem; }
}
@media (max-width: 620px) {
  /* Mobile hero: photo owns the top band, text sits on solid dark below it.
     No overlap, no scrim fights. */
  .hero {
    min-height: auto;
    padding-top: min(42svh, 390px);
    background:
      linear-gradient(
        180deg,
        rgba(11, 19, 26, 0.22) 0,
        rgba(11, 19, 26, 0.1) calc(min(42svh, 390px) - 170px),
        rgba(11, 19, 26, 0.92) calc(min(42svh, 390px) - 30px),
        var(--deep-1) min(42svh, 390px)
      ),
      url("/hero.jpg") top center / auto min(48svh, 440px) no-repeat,
      var(--deep-1);
  }
  .hero .eyebrow { display: none; }
  .hero-inner { gap: 2rem; padding-bottom: 1.4rem; align-items: start; }
  .hero-sub { margin: 1rem 0 1.5rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem 0 1.7rem; }
  .hero-stat { border-left: 0; padding: 0; }
  .hero-stat h3 { margin-top: 0.35rem; }
}
@media (max-width: 620px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-aux { display: none; }
  .proc-grid { grid-template-columns: 1fr; }
  /* tiles hug their content in single-column flow */
  .proc-visual { aspect-ratio: auto; min-height: 15rem; }
  .proc-v-slate, .proc-v-navy { padding-top: 3rem; padding-bottom: 2.2rem; }
  .proc-v-light { padding-bottom: 1.6rem; }
  .proc-chips { padding-top: 1rem; }
  .manifest-head, .manifest-row { grid-template-columns: 3rem 1fr auto; gap: 0.9rem; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: 1fr; }
  .m-large, .m-meter { grid-column: span 1; }
  .admin-stats { grid-template-columns: 1fr; }
  .hero-ctas { gap: 0.8rem; }
}
