/* PepBloom site. Light only. Colors and type come from the app's src/constants/theme.ts. */
@font-face { font-family: Manrope; src: url(/fonts/manrope-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FBFBFC;
  --card: #FFFFFF;
  --ink: #0D0D12;
  --dim: #636366; /* 5.8:1 on bg */
  --faint: #717174; /* 4.7:1; don't go lighter for text */
  --line: rgba(13, 13, 18, 0.09);
  --field: #F2F2F5;
  --accent: #4F5BC4; /* lavender deep enough for text */
  --lav: #8F9BF2;
  --rose: #D484B4;
  --r-card: 1.375rem;
  --r-tile: 1rem;
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 1.5rem; }

/* ---------- header and footer ---------- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.top .brand img { height: 2.25rem; width: auto; }
.top nav { display: flex; gap: 1.75rem; }
.top nav a { color: var(--dim); font-weight: 500; font-size: 0.9375rem; text-decoration: none; padding-block: 0.5rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

.foot { margin-top: 6rem; padding-block: 2rem 3rem; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 3rem) 1px no-repeat; color: var(--faint); font-size: 0.875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 1.25rem; }
.foot nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p + p { margin-top: 0.25rem; }

/* ---------- shared bits ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.625rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 0.2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.go { font-weight: 600; text-decoration: none; }
.go:hover { text-decoration: underline; }

/* ---------- home ---------- */

.kicker { margin-bottom: 1rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: center; gap: 4rem; padding-block: 2.5rem 5.5rem; }
.hero h1 { font-size: 4.75rem; line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { background: linear-gradient(100deg, var(--accent), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.5rem; max-width: 32rem; color: var(--dim); font-size: 1.25rem; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.25rem; }
.note { color: var(--faint); font-size: 0.875rem; }
/* The Track screen with one soft glow behind it, like the app's hero. */
.hero .phone { justify-self: end; width: 100%; max-width: 18.5rem; height: auto; border-radius: 2.25rem; box-shadow: 0 2.5rem 5rem -1.5rem rgba(40, 34, 90, 0.5); }
.hero::after { content: ''; position: absolute; z-index: -1; top: 8%; right: 0; width: 32rem; height: 32rem; background: radial-gradient(closest-side at 40% 40%, rgba(143, 155, 242, 0.45), transparent), radial-gradient(closest-side at 65% 65%, rgba(212, 132, 180, 0.35), transparent); filter: blur(2.5rem); }

/* Three true facts under the CTA. */
.proof { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 0.9375rem; font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 0.625rem; }
.proof li::before { content: ''; flex: none; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: linear-gradient(135deg, var(--lav), var(--rose)); }
.proof a { text-decoration: none; }
.proof a:hover { text-decoration: underline; }

/* The one dark band: the App Store screenshots sit on the same night-indigo they were made on. */
.screens { padding-block: 5.5rem 6rem; background: radial-gradient(60rem 28rem at 50% 0, rgba(79, 91, 196, 0.35), transparent), #0D0D12; color: #fff; }
.screens .kicker { color: var(--lav); }
.screens h2, .feats h2, .faq h2, .end h2 { font-size: 3rem; letter-spacing: -0.04em; }
.screens .sub { margin-top: 1rem; color: rgba(255, 255, 255, 0.66); font-size: 1.125rem; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.shots img { width: 100%; height: auto; border-radius: 1.5rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2rem 4rem -1rem rgba(0, 0, 0, 0.6); }

.feats { padding-top: 6.5rem; }
.feats ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.feats li { padding-block: 2rem; border-top: 1px solid var(--line); }
.feats li > span { color: var(--accent); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.feats h3 { margin: 0.75rem 0 0.625rem; font-size: 1.375rem; }
.feats p { color: var(--dim); font-size: 1.0625rem; }
.feats .go { display: inline-block; margin-top: 0.75rem; }

.band { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; margin-top: 4rem; padding: 3rem; }
.band h2 { font-size: 1.75rem; }
.band p { max-width: 36rem; color: var(--dim); font-size: 1.0625rem; }
.band p + p { margin-top: 1rem; }

.faq { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; padding-top: 6.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--faint); font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40rem; padding-bottom: 1.5rem; color: var(--dim); font-size: 1.0625rem; }

.end { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-top: 7rem; text-align: center; }
.end .orb { width: 6rem; margin-bottom: 0.5rem; }

/* The app icon with one soft glow behind it: the app's hero recipe, on a light page. */
.orb { position: relative; isolation: isolate; aspect-ratio: 1; }
.orb::before { content: ''; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side at 42% 42%, rgba(143, 155, 242, 0.55), transparent), radial-gradient(closest-side at 62% 62%, rgba(212, 132, 180, 0.45), transparent); filter: blur(1.5rem); animation: breathe 4s ease-in-out infinite alternate; }
.orb img { width: 100%; height: 100%; border-radius: 22.5%; box-shadow: 0 1.25rem 2.5rem -1rem rgba(40, 34, 90, 0.45); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-0.3125rem); } }
@keyframes breathe { from { opacity: 0.8; } to { opacity: 1; } }

/* ---------- launch list ---------- */

.wl { width: 100%; max-width: 34rem; }
.wl fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.wl label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wl .row { display: flex; gap: 0.5rem; padding: 0.375rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); transition: border-color 0.2s; }
.wl .row:focus-within { border-color: var(--accent); }
.wl input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: none; color: var(--ink); font: 500 1.0625rem var(--font); outline: none; }
.wl input::placeholder { color: #A9A9AE; }
.wl .btn { flex: none; min-height: 3rem; border: 0; font-family: var(--font); cursor: pointer; }
.wl fieldset:disabled .btn { background: var(--faint); cursor: not-allowed; }
.wl .note { margin-top: 0.75rem; }
.end > p { max-width: 34rem; color: var(--dim); font-size: 1.125rem; }
.doc .wl { margin: 2rem 0; }
.doc .wl .note { margin: 0.75rem 0 0; font-size: 0.875rem; }

/* ---------- reading pages: policies, support ---------- */

.doc { max-width: 46rem; padding-top: 3rem; }
.doc h1 { margin-bottom: 1.5rem; font-size: 2.75rem; letter-spacing: -0.035em; }
.doc h2 { margin: 3rem 0 1rem; font-size: 1.5rem; }
.doc h3 { margin: 2rem 0 0.75rem; font-size: 1.1875rem; }
.doc p, .doc ul, .doc ol, .doc blockquote { margin: 0 0 1rem; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.65; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.375rem; }
.doc .lead { color: var(--dim); font-size: 1.1875rem; }
.doc .mail { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.doc .table { margin: 1.5rem 0; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.doc th { padding: 0 1rem 0.75rem 0; border-bottom: 1px solid rgba(13, 13, 18, 0.2); text-align: left; font-weight: 600; vertical-align: bottom; }
.doc td { padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- policies: contents column, summary box, numbered sections ---------- */

.legal { display: grid; grid-template-columns: 13rem minmax(0, 46rem); grid-template-rows: auto 1fr; column-gap: 4.5rem; justify-content: center; padding-top: 3rem; }
.legal > .doc { grid-column: 2; padding-top: 0; }
.legal h1 { margin: 1.75rem 0 0.75rem; }
.legal .cats a[aria-current] { background: var(--ink); color: #fff; }
.doc .meta { margin-bottom: 2rem; color: var(--dim); font-size: 0.9375rem; line-height: 1.6; }
.meta strong { color: var(--ink); font-weight: 600; }
.legal [id] { scroll-margin-top: 1.5rem; }
.legal article > h2 { margin-top: 2.75rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.summary { margin: 2rem 0 0.5rem; padding: 1.5rem 1.75rem 0.5rem; border: 1px solid rgba(79, 91, 196, 0.16); border-radius: var(--r-card); background: linear-gradient(135deg, rgba(143, 155, 242, 0.1), rgba(212, 132, 180, 0.08)); }
.doc .summary h2 { margin: 0 0 0.75rem; font-size: 1.125rem; }

.toc { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; padding-top: 0.875rem; }
.toc summary { margin-bottom: 0.75rem; color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; list-style: none; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 0.625rem; margin-left: -1px; padding: 0.3125rem 0 0.3125rem 1rem; border-left: 1px solid transparent; color: var(--dim); font-size: 0.875rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { border-left-color: var(--ink); color: var(--ink); }
.toc a span:first-child { flex: none; min-width: 1.125rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.toc strong { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { html:has(.legal) { scroll-behavior: smooth; } }

/* ---------- syringe-units converter ---------- */

.intro { max-width: 40rem; padding-block: 3rem 2rem; }
.intro h1 { font-size: 3rem; letter-spacing: -0.035em; }
.intro p { margin-top: 1rem; color: var(--dim); font-size: 1.1875rem; }
.intro .eyebrow { margin: 0 0 0.75rem; font-size: 0.875rem; }
.intro .formula { margin-top: 0.75rem; color: var(--ink); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.conv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.inputs { display: grid; gap: 1.25rem; padding: 1.75rem; }
.f { margin: 0; padding: 0; border: 0; min-width: 0; }
.f label, .f legend { display: block; margin-bottom: 0.5rem; padding: 0; color: var(--dim); font-size: 0.875rem; font-weight: 500; }
.box { display: flex; border: 1px solid transparent; border-radius: var(--r-tile); background: var(--field); transition: border-color 0.2s, background-color 0.2s; }
.box:focus-within { border-color: var(--accent); background: #fff; }
.box input { flex: 1; min-width: 0; padding: 1rem 1.125rem; border: 0; background: none; color: var(--ink); font: 500 1.5rem/1.2 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; outline: none; }
.box input::placeholder { color: #A9A9AE; }
.box select, .box .unit { display: flex; align-items: center; padding: 0 1.25rem 0 1rem; border: 0; border-left: 1px solid var(--line); border-radius: 0 var(--r-tile) var(--r-tile) 0; background: none; color: var(--dim); font: 500 1.0625rem var(--font); }
.box select { appearance: none; padding-right: 2.25rem; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23636366' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--field); }
.seg label { position: relative; display: grid; place-items: center; min-height: 3rem; margin: 0; border-radius: 999px; color: var(--dim); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg small { display: block; color: var(--faint); font-size: 0.75rem; font-weight: 500; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(13, 13, 18, 0.08), 0 0.25rem 0.75rem rgba(13, 13, 18, 0.06); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.f[hidden] { display: none; }

.side { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.say { padding-inline: 0.25rem; color: var(--dim); font-size: 0.9375rem; }
.result { position: relative; overflow: hidden; isolation: isolate; padding: 2rem 1.75rem 0; text-align: center; }
.result::before { content: ''; position: absolute; top: -9rem; left: 50%; z-index: -1; width: 20rem; height: 16rem; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(143, 155, 242, 0.22), transparent); }
.k { color: var(--dim); font-size: 0.875rem; font-weight: 500; }
.big { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.big b { font-size: 5rem; font-weight: 300; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.big span { color: var(--dim); font-size: 1.375rem; }
.result .sub { margin-top: 0.5rem; color: var(--dim); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.result.empty .big b { color: #C4C4C9; }
.result.bare { padding-bottom: 1.75rem; }
#syringe { width: 100%; height: 3.625rem; margin-top: 1.5rem; overflow: visible; }
#syringe text { fill: var(--faint); font: 500 0.6875rem var(--font); font-variant-numeric: tabular-nums; }
#syringe .fill { transform-box: fill-box; transform-origin: left center; }
#syringe .fill, #syringe .edge { transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.5rem -1.75rem 0; border-top: 1px solid var(--line); }
.stats div { padding: 1rem 0.5rem 1.25rem; }
.stats div + div { border-left: 1px solid var(--line); }
.stats .v { margin-bottom: 0.125rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.warn { display: grid; gap: 0.5rem; margin: 0; padding: 1rem 1.25rem 1rem 2.5rem; border: 1px solid #F0DDB6; border-radius: var(--r-tile); background: #FCF6EA; color: #6E4A10; font-size: 0.9375rem; }
.warn[hidden] { display: none; }
.warn li::marker { color: #C8922F; }

.how { max-width: 46rem; margin-top: 5rem; }
.how h2 { margin-bottom: 1rem; font-size: 1.75rem; }
.how p { color: var(--dim); font-size: 1.0625rem; }
.how p + p { margin-top: 0.75rem; }
.how h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1875rem; }
.how.callout { padding: 1.75rem; }
.how.callout h2 { font-size: 1.375rem; }
.how .src { margin: 0; padding-left: 1.25rem; color: var(--dim); }
.how .src li + li { margin-top: 0.5rem; }

.promo { display: flex; align-items: center; gap: 1.5rem; margin-top: 4rem; padding: 2rem 2.25rem; }
.promo img { width: 4rem; height: 4rem; border-radius: 22.5%; }
.promo div { flex: 1; }
.promo h2 { font-size: 1.375rem; }
.promo p { margin-top: 0.25rem; color: var(--dim); }

/* rotation chart and out-of-fridge date */
.box > select:only-child { flex: 1; min-width: 0; padding-block: 1rem; border-left: 0; border-radius: var(--r-tile); color: var(--ink); }
.box input[type="datetime-local"] { font-size: 1.125rem; }
.big.date b { font-size: 2.5rem; font-weight: 400; letter-spacing: -0.03em; }
.seg.sites { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-tile); }
.seg.sites label { border-radius: calc(var(--r-tile) - 0.25rem); }
#body { display: block; width: 100%; max-width: 15rem; height: auto; margin: 1rem auto 0; }
#body .part { fill: var(--field); }
#body .navel { fill: var(--faint); }
#body .zone circle { fill: #fff; stroke: var(--lav); stroke-width: 1.5; }
#body text { fill: var(--dim); font: 600 0.6875rem var(--font); text-anchor: middle; }
#body .side-l { text-anchor: start; }
#body .side-r { text-anchor: end; }
#body .zone.last circle { fill: var(--field); stroke: var(--faint); }
#body .zone.next circle { fill: var(--accent); stroke: var(--accent); }
#body .zone.next text { fill: #fff; }
.how table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.how th, .how td { padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.how thead th { font-weight: 600; }
.how .table { overflow-x: auto; }
.sheet td { min-width: 4.5rem; border-left: 1px solid var(--line); }

@media print {
  body:has(.sheet) :is(.top, .foot, .intro p:not(.formula), .inputs, .say, #sub, main > section:not(.intro, .sheet)) { display: none; }
  body:has(.sheet) .conv { display: block; }
  body:has(.sheet) .side { position: static; }
  body:has(.sheet) .result { box-shadow: none; padding: 0; }
  body:has(.sheet) .result::before { display: none; }
  body:has(.sheet) #body .zone circle { fill: #fff; stroke: #000; }
  body:has(.sheet) #body .zone text { fill: #000; }
  .sheet { margin-top: 1rem; break-inside: avoid; }
  .sheet th, .sheet td { height: 2rem; border: 1px solid #000; padding: 0.25rem 0.5rem; }
}

/* ---------- research pages: compounds, comparisons ---------- */

.eyebrow { font-size: 0.875rem; font-weight: 600; }
.doc .eyebrow { margin-bottom: 0.5rem; }
.eyebrow a { text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0 0; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card); }
.facts div { padding: 0.875rem 1rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 0.8125rem; font-weight: 500; }
.facts dd { margin: 0.125rem 0 0; font-weight: 600; line-height: 1.35; }
.facts a { text-decoration: none; }
.status { margin-top: 1rem; padding: 1.5rem 1.75rem; }
.doc .status h2 { margin: 0 0 0.375rem; font-size: 1.125rem; }
.doc .status p { margin: 0; color: var(--dim); }
.doc .status p + h2 { margin-top: 1.25rem; }
.doc .k { margin-bottom: 1rem; }
.doc .src { padding-left: 1.5rem; }
.doc .src li { font-size: 1rem; }
.src a { text-decoration: none; }
.src a:hover { text-decoration: underline; }
.src span { color: var(--faint); font-size: 0.875rem; white-space: nowrap; }
.doc .also { margin-top: 2.5rem; }
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cats a { padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--field); color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.cats a:hover { background: var(--line); }
.doc .list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.doc .list li { margin: 0; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.list a { font-weight: 600; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list span { display: block; margin-top: 0.125rem; color: var(--dim); font-size: 0.9375rem; line-height: 1.5; }
.doc .promo { flex-wrap: wrap; margin-top: 3.5rem; }
.doc .promo div { flex: 1 1 14rem; }
.doc .promo .go { white-space: nowrap; }
.doc .promo .btn { margin-left: 5.5rem; } /* the column is too narrow for one row, so it sits under the text */
.doc .promo h2 { margin: 0 0 0.375rem; font-size: 1.25rem; }

.doc.wide { max-width: 64rem; }
.doc .vs { table-layout: fixed; }
.doc .vs thead td { width: 10rem; }
.doc .vs thead th { font-size: 1.0625rem; }
.doc .vs tbody th { padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 600; }
.doc .vs ul, .doc .vs ol { margin: 0; padding-left: 1.125rem; }
.doc .vs li { font-size: 0.9375rem; line-height: 1.5; }
.vs .src span { display: block; }

/* ---------- phones ---------- */

@media (max-width: 55.99rem) {
  .wrap { padding-inline: 1.25rem; }
  .top .brand img { height: 1.875rem; }
  .top nav { gap: 1.25rem; }
  .foot { margin-top: 4rem; background-size: calc(100% - 2.5rem) 1px; }
  .foot nav { flex-direction: column; gap: 0; }
  .foot nav a { padding-block: 0.625rem; }

  .hero { grid-template-columns: 1fr; gap: 3rem; padding-block: 1.5rem 4rem; }
  .hero h1 { font-size: 3.25rem; }
  .hero .lead { margin-top: 1rem; font-size: 1.125rem; }
  .hero .cta { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 1.75rem; }
  .hero .note { text-align: center; }
  .hero .phone { justify-self: center; max-width: 17rem; border-radius: 1.875rem; }
  .hero::after { top: auto; bottom: 5%; right: 50%; width: 24rem; height: 24rem; transform: translateX(50%); }
  .proof { flex-direction: column; margin-top: 1.75rem; }
  .screens { padding-block: 4rem; }
  .screens h2, .feats h2, .faq h2, .end h2 { font-size: 2.25rem; }
  /* Phones swipe through the screens; the row bleeds to the screen edges. */
  .shots { display: flex; gap: 1rem; margin: 2.5rem -1.25rem 0; padding: 0 1.25rem 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
  .shots li { flex: 0 0 68%; scroll-snap-align: start; }
  .shots img { border-radius: 1.25rem; }
  .feats { padding-top: 4.5rem; }
  .feats ol { grid-template-columns: 1fr; margin-top: 2rem; }
  .feats li { padding-block: 1.5rem; }
  .feats h3 { font-size: 1.25rem; }
  .band { grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; padding: 1.75rem 1.5rem; }
  .band h2 { font-size: 1.5rem; }
  .faq { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 4.5rem; }
  .faq summary { font-size: 1.0625rem; }
  .end { padding-top: 5rem; }
  .end .btn { align-self: stretch; }
  .wl .row { flex-direction: column; border-radius: var(--r-tile); }
  .wl input { min-height: 3rem; }

  .doc { padding-top: 1.5rem; }
  .doc h1 { font-size: 2.125rem; }
  .doc h2 { margin-top: 2.5rem; font-size: 1.375rem; }
  .doc p, .doc li { font-size: 1rem; }

  .legal { display: block; padding-top: 1.5rem; }
  .legal article > h2 { margin-top: 2rem; padding-top: 2rem; }
  .summary { padding: 1.25rem 1.25rem 0.25rem; }
  .toc { position: static; max-height: none; margin-bottom: 1.75rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; margin: 0; padding: 0 1rem; color: var(--ink); font-size: 0.9375rem; letter-spacing: 0; text-transform: none; cursor: pointer; pointer-events: auto; }
  .toc summary::after { content: ''; width: 0.5rem; height: 0.5rem; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: translateY(-0.125rem) rotate(45deg); }
  .toc[open] summary::after { transform: translateY(0.125rem) rotate(-135deg); }
  .toc ul { padding: 0 0.5rem 0.5rem; border: 0; }
  .toc a { margin: 0; padding: 0.625rem 0.5rem; border: 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }

  .intro { padding-block: 1.5rem 1.5rem; }
  .intro h1 { font-size: 2.25rem; }
  .intro p { font-size: 1.0625rem; }
  .conv { grid-template-columns: 1fr; gap: 1rem; }
  .inputs { padding: 1.25rem; }
  .side { position: static; }
  .result { padding: 1.5rem 1.25rem 0; }
  .big b { font-size: 4rem; }
  .stats { margin-inline: -1.25rem; }
  .stats .v { font-size: 1rem; }
  .how { margin-top: 3.5rem; }
  .how h2 { font-size: 1.5rem; }
  .promo { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 3rem; padding: 1.5rem; }
  .doc .promo div { flex: none; }
  .doc .promo .btn { margin-left: 0; }
  .status { padding: 1.25rem; }
}

/* Policy tables stack into label/value rows on narrow screens. */
@media (max-width: 40rem) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  .doc td { padding: 0.25rem 0; border: 0; }
  .doc td::before { content: attr(data-label); display: block; color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
  .doc td:empty { display: none; }
  .doc .vs tbody th { display: block; width: auto; padding: 0 0 0.25rem; border: 0; font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}

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