/* Evident marketing site. Palette and type follow the app (DESIGN.md, AP tokens). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: fallback;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: fallback;
}
/* Metric-matched fallbacks so a late font swap does not move the layout. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia Bold"), local("Georgia");
  size-adjust: 97%;
  ascent-override: 92%;
  descent-override: 22%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 103%;
  ascent-override: 95%;
  descent-override: 25%;
}

:root {
  color-scheme: dark;
  --espresso: #0d0b0a;
  --surface: #1f1a16;
  --surface-hi: #2b2118;
  --bone: #f5f0e3;
  --bronze: #d1ab75;
  --gold: #f5d694;
  --subtle: rgba(245, 240, 227, 0.62);
  --faint: rgba(245, 240, 227, 0.54);
  --hair: rgba(245, 240, 227, 0.08);
  --green: #75c78f;
  --cool: #66a8bd;
  --clay: #db8c66;
  --amber: #bd804d;
  --ember: #e06b57;
  --gold-foil: linear-gradient(180deg, #fff3cb 0%, #f5d694 45%, #cd9a4e 100%);
  --display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1180px;
  --section: clamp(88px, 12vw, 160px);
  --r-card: 18px;
  --r-btn: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--bone); color: var(--espresso); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Ground: espresso, a drifting bronze glow, film grain. Same idea as APBackground. */
.ground { position: fixed; inset: 0; z-index: -2; background: var(--espresso); overflow: hidden; pointer-events: none; }
.ground::before, .ground::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform;
}
.ground::before {
  width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(209, 171, 117, 0.16), rgba(209, 171, 117, 0));
  animation: glowA 38s ease-in-out infinite alternate;
}
.ground::after {
  width: 60vmax; height: 60vmax; right: -25vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(205, 154, 78, 0.12), rgba(205, 154, 78, 0));
  animation: glowB 46s ease-in-out infinite alternate;
}
@keyframes glowA { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(18vmax, 14vmax, 0); } }
@keyframes glowB { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-16vmax, -12vmax, 0); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Type */
.kicker {
  font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.9rem + 4.6vw, 6.25rem); }
h2 { font-size: clamp(2.15rem, 1.45rem + 2.7vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
h1 em, h2 em, .foil {
  font-style: italic; font-family: var(--display);
  background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--subtle); margin: 18px 0 0; max-width: 34em; text-wrap: pretty; }
.lede strong { color: var(--bone); font-weight: 600; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.top-inner, .bar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { width: 120px; height: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--bone); color: var(--espresso); font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; letter-spacing: -0.01em; transition: transform 0.18s var(--ease-out), background 0.18s;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.97); }
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; transform: translateY(-110%); transition: transform 0.35s var(--ease-out);
  background: rgba(13, 11, 10, 0.72); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.bar.is-on { transform: translateY(0); }

/* Store CTA */
.store { display: inline-block; line-height: 0; border-radius: 9px; transition: transform 0.18s var(--ease-out); }
.store img { width: 176px; height: 59px; }
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(0.98); }
.store-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--subtle); }
.store-note b { color: var(--bone); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; vertical-align: -2px; }
.stars svg { width: 14px; height: 14px; fill: var(--gold); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--subtle); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--bronze); }
.trust li:first-child::before { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(112px, 16vw, 168px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 9em; }
.hero .lede { max-width: 30em; }
.hero-cta { margin-top: 32px; }
.hero-phone { justify-self: center; position: relative; }
.hero-phone .device { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
.hero-phone::before {
  content: ""; position: absolute; inset: 8% -18% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(209, 171, 117, 0.22), rgba(209, 171, 117, 0));
  filter: blur(30px);
}
@media (min-width: 900px) {
  .hero { padding-bottom: clamp(48px, 6vw, 80px); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
  .hero-phone { justify-self: end; margin-right: clamp(0px, 3vw, 40px); }
}

/* Device frame: iPhone proportions, titanium edge, black bezel, real screenshot inside. */
.device {
  --w: min(300px, 76vw);
  width: var(--w); padding: calc(var(--w) * 0.03); position: relative;
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(150deg, #5a544c 0%, #2a2623 22%, #1a1714 48%, #35302b 76%, #171412 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #0a0908,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 18px 30px -18px rgba(0, 0, 0, 0.7);
}
.device.lg { --w: min(380px, 78vw); }
.device.sm { --w: min(260px, 70vw); }
.device .screen {
  position: relative; overflow: hidden; background: #000; aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.135);
  isolation: isolate;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.device .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.device .keys { position: absolute; inset: 0; pointer-events: none; }
.device .keys i {
  position: absolute; width: calc(var(--w) * 0.012); border-radius: 2px;
  background: linear-gradient(90deg, #4c463f, #221e1b);
}
.device .keys .k1 { left: calc(var(--w) * -0.012); top: 17%; height: 3.3%; }
.device .keys .k2 { left: calc(var(--w) * -0.012); top: 23.5%; height: 6.2%; }
.device .keys .k3 { left: calc(var(--w) * -0.012); top: 31%; height: 6.2%; }
.device .keys .k4 { right: calc(var(--w) * -0.012); top: 26%; height: 9.5%; background: linear-gradient(270deg, #4c463f, #221e1b); }

/* Hero picker: the real card band from three captures, drifting slowly under the real chrome. */
.picker-band { position: absolute; left: 0; width: 100%; overflow: hidden; z-index: 2; }
.device .screen .picker-band img { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; object-fit: fill; animation: drift 26s ease-in-out infinite; will-change: transform; }
@keyframes drift {
  0%   { transform: translate3d(var(--x2), 0, 0); }
  28%  { transform: translate3d(var(--x3), 0, 0); }
  40%  { transform: translate3d(var(--x3), 0, 0); }
  68%  { transform: translate3d(var(--x1), 0, 0); }
  80%  { transform: translate3d(var(--x1), 0, 0); }
  100% { transform: translate3d(var(--x2), 0, 0); }
}

/* Sections */
.section { position: relative; padding: var(--section) 0 0; }
.section-head { max-width: 40em; }
.split { display: grid; gap: 44px; align-items: center; margin-top: clamp(36px, 5vw, 64px); }
.split .device { justify-self: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split.flip > .split-phone { order: 2; }
  .split-phone { justify-self: center; }
}

/* Cards: APCard. Surface fill, lit top edge, soft shadow. */
.card {
  position: relative; background: var(--surface); border-radius: var(--r-card); padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.card.hero-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface-hi), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(245, 214, 148, 0.75), rgba(245, 214, 148, 0.05) 65%, rgba(245, 214, 148, 0)) border-box;
  box-shadow: 0 30px 60px -30px rgba(209, 171, 117, 0.35), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.card-kicker { font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 10px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.card-sub { margin: 4px 0 0; color: var(--subtle); font-size: 0.92rem; }
.rows { list-style: none; margin: 18px 0 0; padding: 0; background: rgba(13, 11, 10, 0.4); border-radius: 14px; overflow: hidden; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; font-size: 0.95rem; }
.rows li + li { border-top: 1px solid rgba(245, 240, 227, 0.06); }
.rows li span:last-child { color: var(--subtle); font-size: 0.86rem; text-align: right; }
.rows li b { font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: rgba(13, 11, 10, 0.4); border-radius: 14px; padding: 14px 12px 12px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; }
.stat .v small { font-family: var(--body); font-weight: 600; font-size: 0.8rem; color: var(--subtle); margin-left: 3px; letter-spacing: 0; }
.stat .l { margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.stat .v.gold { color: var(--gold); }

/* Assembling plan card */
.assemble .rows li, .assemble .stat, .assemble .card-title, .assemble .card-sub, .assemble .card-kicker {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.assemble.is-in .rows li, .assemble.is-in .stat, .assemble.is-in .card-title, .assemble.is-in .card-sub, .assemble.is-in .card-kicker { opacity: 1; transform: none; }
.check { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--gold); opacity: 0; transform: scale(0.6); transition: opacity 0.35s, transform 0.45s var(--ease-out); transition-delay: calc(var(--d, 0ms) + 350ms); }
.assemble.is-in .check { opacity: 1; transform: none; }
.rows li .check + span { margin-left: 10px; }

/* Pick the body: horizontal row. Native snap scroll by default; JS pins and scrubs it on wide screens. */
.pick { padding-top: var(--section); }
.pick-stage { margin-top: clamp(28px, 4vw, 48px); }
.pick-track {
  display: flex; gap: 14px; list-style: none; margin: 0; padding: 4px var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pick-track::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 auto; width: clamp(236px, 66vw, 300px); scroll-snap-align: center; }
.pcard figure {
  margin: 0; position: relative; aspect-ratio: 0.62; border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 50px -30px rgba(0, 0, 0, 0.8);
  isolation: isolate;
}
.pcard picture { position: absolute; inset: 0; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: translate(calc(var(--tx, 0%) + var(--px, 0%)), var(--ty, 0%)) scale(var(--s, 1)); transform-origin: center; will-change: transform; }
.pcard figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.85) 100%);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}
.pcard figcaption strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.015em; line-height: 1.05; }
.pcard figcaption span { display: block; font-size: 0.9rem; color: rgba(245, 240, 227, 0.85); margin-top: 4px; }
.pcard .group { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); background: rgba(13, 11, 10, 0.55); padding: 6px 9px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pick-lead { flex: 0 0 auto; width: min(320px, 80vw); display: none; align-self: center; padding-right: 24px; }
.pick-lead p { margin: 0; color: var(--subtle); font-size: 1.05rem; }
.pick-hint { display: flex; align-items: center; gap: 10px; margin: 6px var(--gutter) 0; color: var(--faint); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pick-hint svg { width: 22px; height: 12px; stroke: var(--bronze); fill: none; stroke-width: 1.5; }
@media (min-width: 900px) {
  .pick.is-pinned { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
  .pick.is-pinned .pick-stage { margin-top: clamp(24px, 3vh, 40px); }
  .pick.is-pinned .pick-track { overflow: visible; scroll-snap-type: none; padding: 8px 0 8px max(var(--gutter), calc((100% - var(--max)) / 2)); gap: 18px; will-change: transform; }
  .pick.is-pinned .pick-viewport { overflow: hidden; }
  .pick.is-pinned .pcard { width: clamp(260px, 22vw, 320px); }
  .pick.is-pinned .pick-lead { display: block; }
  .pick.is-pinned .pick-hint { display: none; }
  .pick.is-pinned .pcard img { transition: none; }
}

/* Walk in knowing: the earned moment */
.set-card .exercise { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.set-card .meta { color: var(--subtle); font-size: 0.86rem; margin-top: 2px; }
.weight { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.weight .n { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.weight .u { font-size: 1.1rem; color: var(--subtle); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(245, 214, 148, 0.13); border: 1px solid rgba(245, 214, 148, 0.3); color: var(--gold);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; position: relative; overflow: hidden;
  opacity: 0; transform: scale(0.85) translateY(6px);
}
.chip svg { width: 16px; height: 16px; }
.chip.is-in { animation: popIn 0.55s var(--ease-out) forwards; }
.chip.is-in::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 248, 226, 0) 0%, rgba(255, 248, 226, 0.55) 50%, rgba(255, 248, 226, 0) 100%);
  transform: skewX(-18deg); animation: glint 1.1s ease-in-out 0.55s 1 forwards;
}
@keyframes popIn { 0% { opacity: 0; transform: scale(0.85) translateY(6px); } 60% { opacity: 1; transform: scale(1.04) translateY(0); } 100% { opacity: 1; transform: none; } }
@keyframes glint { from { left: -40%; } to { left: 140%; } }
.targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.target { min-width: 0; background: rgba(13, 11, 10, 0.4); border-radius: 12px; padding: 12px; }
.target .l { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.target .v { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-top: 4px; letter-spacing: -0.02em; line-height: 1; }
.target .v small { font-family: var(--body); font-size: 0.78rem; font-weight: 600; color: var(--subtle); margin-left: 3px; }

/* Eat: the ring and macros */
.eat-card { display: grid; gap: 22px; }
.ring-wrap { display: grid; place-items: center; position: relative; margin: 6px auto 0; width: min(260px, 70%); }
.ring { width: 100%; height: auto; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(245, 240, 227, 0.08); stroke-width: 14; }
.ring .fill { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center .v { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: lining-nums tabular-nums; }
.ring-center .l { color: var(--subtle); font-size: 0.8rem; margin-top: 6px; }
.macros { display: grid; gap: 12px; }
.macro { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.9rem; }
.macro .mbar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(245, 240, 227, 0.08); overflow: hidden; }
.macro .mbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--tint); transform-origin: left; }
.macro.protein { --tint: var(--gold); }
.macro.carbs { --tint: var(--clay); }
.macro.fat { --tint: var(--amber); }
.macro .name { font-weight: 600; }
.macro .amt { color: var(--subtle); font-variant-numeric: tabular-nums; }

/* See it happen: compare slider + rank */
.proof-grid { display: grid; gap: 22px; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: stretch; }
  .proof-side { display: flex; flex-direction: column; }
  .weight-card { flex: 1 1 auto; display: flex; flex-direction: column; }
  .weight-card .curve { margin-top: auto; padding-top: 14px; }
}
.compare {
  position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 536 / 879; max-height: 78vh; width: 100%; margin: 0 auto;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
@media (min-width: 900px) { .compare { width: auto; height: min(80vh, 760px); max-height: none; margin: 0; } }
.compare picture, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bone); box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); pointer-events: none; }
.compare .knob {
  position: absolute; top: 50%; left: clamp(27px, var(--pos), calc(100% - 27px)); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--bone); color: var(--espresso); display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 #fff;
}
.compare .knob svg { width: 22px; height: 22px; }
.compare .tag { position: absolute; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(13, 11, 10, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; pointer-events: none; }
.compare .tag.b { left: 14px; }
.compare .tag.a { right: 14px; color: var(--gold); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; z-index: 3;
}
.compare input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.compare input[type="range"]::-moz-range-thumb { width: 60px; height: 100%; border: 0; }
.compare:has(input:focus-visible) .knob { outline: 2px solid var(--gold); outline-offset: 3px; }
.compare .hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: rgba(13, 11, 10, 0.65); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); pointer-events: none; transition: opacity 0.4s; }
.compare.is-used .hint { opacity: 0; }
.proof-side { display: grid; gap: 22px; }
.rank-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.rank-card .emblem { width: 112px; height: 112px; border-radius: 22px; overflow: hidden; position: relative; }
.rank-card .emblem img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%); }
.rank-card .emblem::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -60%; width: 40%; transform: skewX(-18deg);
  background: linear-gradient(100deg, rgba(255, 248, 226, 0) 0%, rgba(255, 248, 226, 0.5) 50%, rgba(255, 248, 226, 0) 100%);
  opacity: 0;
}
.rank-card.is-in .emblem::after { opacity: 1; animation: glint 1.2s ease-in-out 0.3s 1 forwards; }
.rank-card .name { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.015em; line-height: 1; }
.rank-card .name span { color: var(--gold); }
.weight-card .curve { width: 100%; height: auto; margin-top: 8px; }
.weight-card .curve path { fill: none; stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.weight-card .curve .area { fill: url(#wg); stroke: none; }
.weight-card .curve circle { fill: var(--bone); }
.weight-card .delta { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.weight-card .delta b { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.weight-card .delta span { color: var(--subtle); font-size: 0.9rem; }

/* Social proof */
.proof-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.proof-strip .big-stars { display: inline-flex; gap: 4px; }
.proof-strip .big-stars svg { width: 22px; height: 22px; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(245, 214, 148, 0.35)); }
.proof-strip .score { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1; }
.proof-strip .where { color: var(--subtle); font-size: 0.95rem; }
.reviews { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { display: flex; flex-direction: column; gap: 10px; }
.review .stars svg { width: 15px; height: 15px; }
.review h3 { font-size: 1.15rem; }
.review p { margin: 0; color: var(--subtle); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.review .who { font-size: 0.82rem; color: var(--faint); letter-spacing: 0.02em; }
.review.rating { align-items: flex-start; justify-content: center; }
.review.rating .score { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.review.rating .score small { font-family: var(--body); font-size: 1rem; color: var(--subtle); font-weight: 600; letter-spacing: 0; margin-left: 2px; }

/* Closing CTA */
.closing { text-align: center; padding-top: var(--section); }
.closing h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); }
.closing .lede { margin-inline: auto; }
.closing .hero-cta { display: flex; flex-direction: column; align-items: center; }

/* FAQ */
.faq { padding-top: var(--section); }
.faq-list { margin-top: 28px; border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 22px; height: 22px; color: var(--bronze); transition: transform 0.3s var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list .a { padding: 0 0 22px; color: var(--subtle); max-width: 40em; }
.faq-list .a p { margin: 0; }
.faq-list .a a { color: var(--bronze); }
@media (min-width: 900px) { .faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; } .faq-list { margin-top: 6px; } }

/* Footer */
.footer { margin-top: var(--section); border-top: 1px solid var(--hair); padding: 40px 0 44px; color: var(--subtle); font-size: 0.88rem; }
.footer-grid { display: grid; gap: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--bone); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .legal { font-size: 0.76rem; color: var(--faint); max-width: 60em; margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: auto 1fr; align-items: center; } .footer nav { justify-content: flex-end; } .footer .legal { grid-column: 1 / -1; } }

/* Reveal helpers (objects only; text stays put). Initial hidden states only apply once JS is running. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.no-js .assemble .rows li, .no-js .assemble .stat, .no-js .assemble .card-title, .no-js .assemble .card-sub, .no-js .assemble .card-kicker, .no-js .check, .no-js .chip { opacity: 1; transform: none; }
.no-js .macro .mbar i { width: var(--w); }
.no-js .ring .fill { stroke-dashoffset: 0; }
.no-js .pick-hint { display: flex; }

/* Closing fan of real screens */
.fan { --fw: min(230px, 46vw); position: relative; margin: clamp(40px, 6vw, 72px) auto 0; max-width: 900px; height: calc(var(--fw) * 1.95); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.fan .device { --w: var(--fw); position: absolute; top: calc(var(--fw) * 0.16); left: 50%; transform-origin: 50% 110%; }
.fan .f1 { transform: translateX(-50%) translateX(calc(var(--w) * -0.78)) rotate(-9deg); z-index: 1; }
.fan .f2 { transform: translateX(-50%) translateY(calc(var(--w) * -0.12)); z-index: 3; }
.fan .f3 { transform: translateX(-50%) translateX(calc(var(--w) * 0.78)) rotate(9deg); z-index: 2; }
@media (max-width: 759px) { .fan { margin-inline: calc(-1 * var(--gutter)); } } /* bleed to the screen edge, not the gutter */
@media (min-width: 760px) { .fan { --fw: 250px; } }
.photo-card .card-sub { margin-top: 6px; }

/* Inner pages */
.page { padding: clamp(120px, 16vw, 168px) 0 0; }
.page .prose { max-width: 42em; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.prose h2 { font-size: 1.45rem; margin-top: 44px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--subtle); line-height: 1.65; }
.prose p strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--bronze); }
.prose .updated { font-size: 0.85rem; color: var(--faint); margin-top: 12px; }
.prose .summary { background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; margin-top: 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.prose .summary p { margin: 0; color: var(--bone); }
.mailto { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; height: 54px; padding: 0 22px; border-radius: var(--r-btn); background: var(--bone); color: var(--espresso); font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.prose a.mailto { color: var(--espresso); }
.mailto:hover { background: #fff; }
.notfound { min-height: 70vh; display: grid; align-content: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .ground::before, .ground::after, .hero-phone .device, .picker-band img { animation: none !important; }
  .picker-band img { transform: translate3d(var(--x2), 0, 0); }
  .reveal, .js .reveal, .assemble .rows li, .assemble .stat, .assemble .card-title, .assemble .card-sub, .assemble .card-kicker, .check { opacity: 1; transform: none; transition: none; }
  .chip, .chip.is-in { opacity: 1; transform: none; animation: none; }
  .chip.is-in::after, .rank-card.is-in .emblem::after { animation: none; opacity: 0; }
  .ring .fill { stroke-dashoffset: var(--target); }
  .macro .mbar i { width: var(--w); }
  .pill, .store { transition: none; }
}
