/* ═══════════════════════════════════════════════════════════════════════
   Is That Natural? — Allergen Calculator
   The isthatnatural.com v3 design system (itn-child/assets/itn.css):
   Geist for text, Instrument Serif italic for the accent word, Geist Mono
   for figures; paper / ink / green / lime tokens, light and dark; pill
   buttons and chips; the Natural Node mark.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("fonts/geist-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #0B0F0C; --ink-2: #151A16; --paper: #F6F7F4; --surface: #FFFFFF; --line: #E3E6E0; --line-2: #CFD4CB;
  --muted: #6B7280; --faint: #9CA3AF;
  --green: #16A34A; --green-deep: #15803D; --green-soft: #E7F7EC; --lime: #A3E635;
  --t-petro: #64748B; --t-mostp: #F97316; --t-half: #EAB308; --t-mostn: #84CC16; --t-nat: #16A34A;
  --red: #DC2626; --red-ink: #B91C1C;
  --sans: Geist, "Inter Tight", Inter, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px; --r-s: 8px;
  --shadow: 0 1px 2px rgba(11,15,12,.04), 0 12px 40px -16px rgba(11,15,12,.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F4F1; --ink-2: #E5E7E2; --paper: #0B0F0C; --surface: #121713; --line: #22291F; --line-2: #2E3729;
    --muted: #9CA3AF; --faint: #6B7280; --green: #4ADE80; --green-deep: #22C55E; --green-soft: #0F2A18;
    --t-petro: #94A3B8; --t-mostp: #FB923C; --t-half: #FACC15; --t-mostn: #A3E635; --t-nat: #4ADE80;
    --red: #F87171; --red-ink: #FCA5A5;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px -16px rgba(0,0,0,.6);
  }
}

/* ── reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.55; font-size: 15px;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; font-weight: 600; }
h1 em, h2 em, h3 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap, .page { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow, .section-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.section-label a:hover { color: var(--ink); }

/* ── nav ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--paper) 80%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.035em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; color: var(--ink); }
.brand em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: -.01em; }
.brand-app { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--line-2); padding-left: 12px; margin-left: 4px; line-height: 1.3; }
.links { display: flex; align-items: center; gap: 4px; }
/* ink, as rendered on the site: there `body.itn a{color:inherit}` outranks `.links a{color:var(--muted)}` */
.links a, .links button { font: 500 13.5px/1.4 var(--sans); color: var(--ink); padding: 7px 12px; border-radius: 99px; transition: .15s; background: none; border: 0; cursor: pointer; }
.links a:hover, .links a.on, .links button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.links form { display: contents; }
.links .nav-cta { margin-left: 8px; color: var(--paper); background: var(--ink); }
.links .nav-cta:hover { color: var(--paper); background: var(--ink); transform: translateY(-1px); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-right: -8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .22s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── flash messages ───────────────────────────────────────────────── */
.flashes { padding-top: 16px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-s); font-size: 14px; font-weight: 500; margin-bottom: 8px;
  border: 1px solid; }
.flash svg { flex: none; margin-top: 2px; }
.flash.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green-deep); }
.flash.error { background: color-mix(in srgb, var(--t-mostp) 12%, var(--surface)); border-color: color-mix(in srgb, var(--t-mostp) 35%, transparent); color: var(--ink); }

/* ── buttons & chips ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13.5px/1.2 var(--sans); padding: 10px 18px;
  border-radius: 99px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: .15s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.lime, .btn-lime { background: var(--lime); color: #0B0F0C; border-color: var(--lime); }
.btn-green { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-danger { background: transparent; color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 13px 22px; font-size: 14px; }
.btn-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-bar .spacer { flex: 1; }
.chip, .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; line-height: 1.4; background: var(--surface); }
.chip::before, .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; }
.chip.nat, .pill-green { --c: var(--t-nat); color: var(--green-deep); border-color: color-mix(in srgb, var(--t-nat) 35%, transparent); }
.chip.petro, .pill-slate { --c: var(--t-petro); color: #475569; }
.chip.mostp, .pill-amber { --c: var(--t-mostp); color: #C2410C; border-color: color-mix(in srgb, var(--t-mostp) 30%, transparent); }
.chip.bad, .pill-red { --c: var(--red); color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.pill-ink { --c: var(--ink); color: var(--ink); }
@media (prefers-color-scheme: dark) { .chip.petro, .pill-slate { color: #CBD5E1; } .chip.mostp, .pill-amber { color: #FDBA74; } }

/* ── landing ──────────────────────────────────────────────────────── */
.home-hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
  background: radial-gradient(60% 55% at 70% 20%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%); pointer-events: none; }
.home-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: end; }
.home-hero h1 { font-size: clamp(3rem, 6.2vw, 5.2rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin: 18px 0 22px; }
.home-hero .lede { font-size: 17px; color: var(--muted); max-width: 520px; }
.home-hero .btn-bar { margin-top: 32px; }
.home-side { display: grid; gap: 12px; }
.big { font-family: var(--mono); font-size: 44px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.dist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.dist div { font-size: 11px; color: var(--muted); line-height: 1.3; }
.dist b { display: block; font-family: var(--mono); font-size: 22px; color: var(--ink); font-weight: 500; }
.sample-row { display: grid; grid-template-columns: 1fr auto 104px; align-items: center; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.sample-row .chip { justify-self: end; }
.sample-row .mono { text-align: right; }
.sample-row .mono { font-size: 13px; }
.sample-row:first-of-type { border-top: 0; }
.tiers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tiers .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.tiers div.t { padding: 18px 16px; border-right: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.tiers div.t:last-child { border-right: 0; }
.tiers small { display: block; font-family: var(--mono); font-weight: 400; color: var(--faint); font-size: 11px; margin-top: 2px; }
.tiers i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--dot); }
.sec { padding: 80px 0; }
.sec.tight { padding-top: 0; }
.t { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 6px; }
.t em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.how { background: #0B0F0C; color: #F6F7F4; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.how h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.how p { color: rgba(246,247,244,.62); margin-top: 14px; font-size: 15px; }
.how .btn { margin-top: 26px; background: var(--lime); border-color: var(--lime); color: #0B0F0C; }
.how .eyebrow { color: rgba(246,247,244,.45); }
.frag { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px; }
.frag h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; display: flex; justify-content: space-between; gap: 12px; }
.frag h3 span { font-family: var(--mono); color: var(--lime); }
.frag table { width: 100%; font-size: 12.5px; border-collapse: collapse; color: rgba(246,247,244,.75); margin-top: 14px; }
.frag td { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.frag td:last-child { text-align: right; font-family: var(--mono); }
.frag td.lime { color: var(--lime); }
.cta { padding: 0 0 40px; }
.cta .card { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 44px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }

/* ── app pages ────────────────────────────────────────────────────── */
.page-head { padding: 56px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 14px; }
.page-head .sub { font-size: 16px; color: var(--muted); max-width: 680px; }
.block { padding: 32px 0; border-top: 1px solid var(--line); }
.block:last-child { padding-bottom: 72px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.block-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.block-head .hint { font-size: 13px; color: var(--muted); }
.text-link { font-size: 13.5px; font-weight: 600; color: var(--green-deep); display: inline-flex; gap: 5px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin-bottom: 14px; max-width: 760px; }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin: 4px 0 12px; }
.prose h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin: 22px 0 6px; }
.prose ul { list-style: none; margin: 0 0 16px; max-width: 760px; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--t-mostn); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .help a, .sub a, .alt-link a, .notice a, .flash a, .empty a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.formula-card { font-family: var(--mono); font-size: 14px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; max-width: 760px; margin: 6px 0 18px; }

/* ── cards, stats, callouts ───────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-k { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.stat-v { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat-v small { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.stat-v.green { color: var(--green-deep); }
.callout, .declare-box { background: var(--green-soft); border-left: 3px solid var(--green); padding: 18px 22px; border-radius: 0 12px 12px 0; font-size: 14.5px; line-height: 1.65; margin-top: 18px; }
.declare-box .k { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }
.declare-box .v { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.declare-alt { margin-top: 10px; font-size: 13px; color: var(--muted); }
.copy-btn { font: 600 11.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--green-deep); background: var(--surface); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-s); padding: 13px 16px; font-size: 13.5px; line-height: 1.6; }
.notice svg { flex: none; margin-top: 3px; }
.notice.warn { background: color-mix(in srgb, var(--t-half) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t-half) 40%, transparent); color: var(--ink); }
.notice.warn svg { color: #A16207; }
.notice.info { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.notice + .notice { margin-top: 8px; }
.notes { list-style: none; margin-top: 14px; display: grid; gap: 8px; max-width: 860px; }
.notes p { font-size: 13px; line-height: 1.6; color: var(--muted); padding-left: 18px; position: relative; }
.notes p::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

/* ── tables (ingredient table) ────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 0 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.tbl tbody tr.link-row { cursor: pointer; transition: background .12s; }
.tbl tbody tr.link-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.tbl td.name { font-weight: 600; letter-spacing: -.01em; }
.tbl td.name a:hover { color: var(--green-deep); }
.tbl .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tbl .num { text-align: right; font-family: var(--mono); font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th.num { font-family: var(--sans); font-size: 11px; font-weight: 600; }
.tbl .cas { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tbl .cas .more { font-size: 11px; color: var(--faint); margin-left: 4px; }
.tbl tr.group-row td { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 18px 0 8px; }
.tbl tr.declared td.name { color: var(--green-deep); }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions a, .tbl .actions button { font: 500 12.5px var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 4px 7px; }
.tbl .actions a:hover, .tbl .actions button:hover { color: var(--ink); }
.tbl .actions form { display: inline; }
.empty { padding: 36px 0; color: var(--muted); font-size: 14.5px; }
.below { color: var(--faint); font-size: 12.5px; }

/* ── forms (score-a-formula) ──────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.fg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fg.span-2 { grid-column: span 2; }
.fg.full { grid-column: 1 / -1; }
label, .lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
label .muted, .lbl .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.help { font-size: 12.5px; color: var(--faint); line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 10px 14px; font: 400 14px/1.4 var(--sans); outline: 0; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
input.bad { border-color: var(--t-mostp); background: color-mix(in srgb, var(--t-mostp) 6%, var(--surface)); }
input.filled { border-color: color-mix(in srgb, var(--green) 45%, var(--line-2)); }
textarea { resize: vertical; min-height: 88px; border-radius: var(--r); padding: 14px 16px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239CA3AF' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { display: block; position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.opt:hover { border-color: var(--faint); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-bottom: 2px; }
.opt-desc { display: block; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.opt:has(input:checked) { background: var(--ink); border-color: var(--ink); }
.opt:has(input:checked) .opt-name { color: var(--paper); }
.opt:has(input:checked) .opt-desc { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.check input { margin-top: 3px; accent-color: var(--green-deep); width: 16px; height: 16px; flex: none; }
.check .help { display: block; margin-top: 2px; }
.sticky-bar { position: sticky; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 24px; }

/* ── auth (two panels) ────────────────────────────────────────────── */
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; padding: 64px 0 80px; align-items: start; }
.left-panel h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 16px; }
.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 40px; }
.right-panel .card { padding: 30px 32px; }
.right-panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 4px; }
.right-panel .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.privacy-note { font-size: 12px; color: var(--faint); text-align: center; }
.alt-link { font-size: 13.5px; color: var(--muted); }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step-left { display: flex; flex-direction: column; align-items: center; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--ink); color: var(--paper); font: 500 12px var(--mono); display: flex; align-items: center; justify-content: center; }
.step-line { width: 1px; flex: 1; background: var(--line-2); margin: 6px 0; }
.step:last-child .step-line { display: none; }
.step-body { padding-top: 5px; }
.step-body h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.step-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.trust-strip { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.trust-item svg { color: var(--green); flex: none; }

/* ── calculator ───────────────────────────────────────────────────── */
.comp-row td { padding: 8px 8px 8px 0 !important; border-bottom: 0 !important; }
.comp-row td.idx { width: 36px; font: 500 12.5px var(--mono); color: var(--faint); }
.comp-row td.pct { width: 170px; }
.comp-row td.rm { width: 40px; text-align: right; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; }
.icon-btn:hover { color: var(--red-ink); border-color: var(--line); }
.total-line { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.total-line strong { font: 500 16px var(--mono); color: var(--ink); }
.total-line.over strong { color: var(--red-ink); }
.pct-wrap { position: relative; }
.pct-wrap::after { content: "%"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--faint); pointer-events: none; }
.pct-wrap input { padding-right: 30px; }
details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
details.more > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font: 400 18px var(--mono); color: var(--faint); }
details.more[open] > summary::after { content: "–"; }
details.more > summary .muted { font-weight: 400; font-size: 13.5px; }
details.more > .inner { padding: 0 20px 20px; }

/* ── material form ────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; border-radius: 99px; padding-left: 18px; }
.toolbar .count { font-size: 13px; color: var(--muted); margin-left: auto; }
.val-input { width: 130px; }
.tag-51 { display: none; font: 500 10px var(--mono); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
tr.ext-only .tag-51 { display: inline-block; }
.hide-ext tr.ext-only { display: none; }
.paste-box textarea { font-family: var(--mono); font-size: 13px; min-height: 150px; }
.paste-result { font-size: 13.5px; margin-top: 10px; color: var(--muted); display: grid; gap: 4px; }
.paste-result strong { color: var(--ink); font-weight: 600; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 13px; margin-top: 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-links a { margin-left: 18px; }
.foot-links a:first-child { margin-left: 0; }
.foot-links a:hover { color: var(--ink); }

/* ── error page ───────────────────────────────────────────────────── */
.err-page { padding: 96px 0; max-width: 620px; }
.err-page h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 14px; }
.err-page p { color: var(--muted); margin-bottom: 26px; font-size: 16px; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1000px) { .brand-app { display: none; } }
@media (max-width: 900px) {
  .home-hero .wrap, .how, .page-split, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .home-hero { padding: 64px 0 48px; }
  .how { padding: 36px; }
  .tiers .wrap { grid-template-columns: 1fr 1fr 1fr; }
  .tiers div.t { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .page-split { gap: 32px; padding: 40px 0 56px; }
}
@media (max-width: 780px) {
  .wrap, .page { padding: 0 18px; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 14px; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.07); }
  .nav.open .links { display: flex; }
  .links a, .links button { padding: 10px 14px; font-size: 14px; border-radius: 8px; text-align: left; }
  .links .nav-cta { margin: 6px 0 0; text-align: center; border-radius: 8px; justify-content: center; }
  .burger { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tiers .wrap { grid-template-columns: 1fr 1fr; }
  .cta .card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .form-grid, .form-grid.two, .opts { grid-template-columns: 1fr; }
  .fg.span-2 { grid-column: auto; }
  .stat-v { font-size: 28px; }
}
@media print { .nav, .foot, .sticky-bar, .flashes { display: none; } }
.err-code { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ── IFRA ─────────────────────────────────────────────────────────── */
.ifra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.ifra-grid label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifra-grid input { font-family: var(--mono); font-size: 13.5px; }
.paste-box > summary::-webkit-details-marker { display: none; }
.ifra-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 0 12px 12px 0; padding: 16px 20px; border-left: 3px solid; margin-bottom: 18px; }
.ifra-band .k { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ifra-band .v { font-size: 15px; font-weight: 500; margin-top: 2px; }
.ifra-band.pass { background: var(--green-soft); border-color: var(--green); }
.ifra-band.pass .k { color: var(--green-deep); }
.ifra-band.fail { background: color-mix(in srgb, var(--red) 9%, var(--surface)); border-color: var(--red); }
.ifra-band.fail .k { color: var(--red-ink); }
.ifra-band.incomplete { background: color-mix(in srgb, var(--t-half) 14%, var(--surface)); border-color: var(--t-half); }
.ifra-band.incomplete .k { color: #A16207; }
.ifra-band .share { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.share-bar { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.share-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--t-nat); }
.share-bar i.over { background: var(--red); }
.share-bar i.near { background: var(--t-half); }
.disclaimer-line { margin-top: 18px; font-size: 12.5px; color: var(--faint); max-width: 860px; }
