/* CheckNuh website — same palette and type as the app (lib/theme.ts):
   gold on ink over parchment, the platform's own heavy system sans. */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --sunk: #F3F0E7;
  --wash: #F5E9C8;
  --ink: #1C1810;
  --ink-soft: #6B6455;
  --line: #E6E2D6;
  --gold: #E8B400;
  --gold-strong: #8F6300;
  --on-gold: #1C1810;
  --band: #1C1810;
  --on-band: #F6F2E6;
  --on-band-soft: #BDB49C;
  --ok: #2E7D32;
  --ok-soft: #E8F5E9;
  --bad: #B3261E;
  --bad-soft: #FDECEA;
  --shadow: 0 1px 2px rgba(28, 24, 16, 0.05), 0 10px 30px -14px rgba(28, 24, 16, 0.22);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120C; --surface: #1F1A11; --sunk: #191510; --wash: #2C2413; --ink: #F4EFE3; --ink-soft: #B4AA90;
    --line: #382F20; --gold: #F2C233; --gold-strong: #F2C233; --on-gold: #1C1810; --band: #0E0C08; --on-band: #F6F2E6; --on-band-soft: #A99F86;
    --ok: #7BD584; --ok-soft: #1C301E; --bad: #F28B7D; --bad-soft: #3A1E1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15120C; --surface: #1F1A11; --sunk: #191510; --wash: #2C2413; --ink: #F4EFE3; --ink-soft: #B4AA90;
  --line: #382F20; --gold: #F2C233; --gold-strong: #F2C233; --on-gold: #1C1810; --band: #0E0C08; --on-band: #F6F2E6; --on-band-soft: #A99F86;
  --ok: #7BD584; --ok-soft: #1C301E; --bad: #F28B7D; --bad-soft: #3A1E1A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 14px; }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.fine { font-size: 0.86rem; color: var(--ink-soft); }

/* ---- Logo (mirrors lib/components/CheckNuhMark.tsx) ---- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--ink); }
.logo svg { width: 100%; height: auto; }
.logo .word { display: flex; align-items: center; gap: 5px; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1; }
.logo .nuh { background: var(--ink); color: var(--gold); border-radius: 4px; padding: 2px 5px 1px; }
.logo .arrow { color: var(--ink); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #F2C233; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink-soft); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Header ---- */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.site-head .logo { width: 112px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sunk); }
.nav a[aria-current="page"] { background: var(--wash); }
.nav .btn { margin-left: 6px; }
.nav a.btn-ink, .nav a.btn-ink:hover { color: var(--bg); background: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { margin: auto; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---- Mobile "get the app" strip ---- */
.app-strip { display: none; align-items: center; gap: 12px; padding: 10px 16px; background: var(--band); color: var(--on-band); }
.app-strip.show { display: flex; }
.app-strip img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-strip .txt { flex: 1; min-width: 0; font-size: 0.86rem; line-height: 1.3; }
.app-strip strong { display: block; font-size: 0.95rem; }
.app-strip .close { background: none; border: 0; color: var(--on-band-soft); font-size: 1.4rem; line-height: 1; padding: 6px; cursor: pointer; }

/* ---- Sections ---- */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Home hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 .line { display: block; }
.hero h1 .gold { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); }
.hero .stack > * + * { margin-top: 22px; }
.hero-tagline { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em; color: var(--ink-soft); }
.phone { position: relative; width: min(320px, 78vw); margin-inline: auto; border-radius: 42px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -28px rgba(28, 24, 16, 0.55); }
.phone img { border-radius: 33px; width: 100%; }
.phone::before { content: ""; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 45%, transparent), transparent); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(280px, 72vw); }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--sunk); }
.page-hero .stack > * + * { margin-top: 16px; }
.crumbs { font-size: 0.85rem; color: var(--ink-soft); }
.crumbs a { color: inherit; }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--wash); color: var(--ink); display: grid; place-items: center; }
.tile p { color: var(--ink-soft); }

/* Audience split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.panel { border-radius: 26px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.panel.light { background: var(--surface); border: 1px solid var(--line); }
.panel.dark { background: var(--band); color: var(--on-band); }
.panel.dark h2, .panel.dark h3 { color: var(--on-band); }
.panel.dark .muted, .panel.dark p { color: var(--on-band-soft); }
.panel.dark .gold-text { color: var(--gold); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1810' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { display: block; }
.panel.dark .checks strong { color: var(--on-band); }

/* Steps — a real sequence, so numbered */
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 900; }
.steps li p { color: var(--ink-soft); font-size: 0.96rem; }
.steps .where { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-strong); }

/* Plans */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--gold); color: var(--on-gold); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .name { font-weight: 900; font-size: 1.3rem; }
.price { display: flex; align-items: baseline; gap: 6px; font-weight: 900; font-size: 2.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.plan .rate { background: var(--wash); border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 0.95rem; }
.plan .checks { flex: 1; }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Band (dark call-to-action) */
.band { background: var(--band); color: var(--on-band); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 22px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.band h2 { color: var(--on-band); }
.band p { color: var(--on-band-soft); }
.band .gold-text { color: var(--gold); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* Store badges — dormant until the real links are set in config.js */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 16px 8px 12px; border-radius: 14px; background: #000; color: #fff; border: 1px solid #3a3a3a; text-decoration: none; position: relative; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .t { display: grid; line-height: 1.1; }
.store .t small { font-size: 0.68rem; opacity: 0.8; }
.store .t span { font-size: 1.08rem; font-weight: 700; }
.store[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.store .soon { position: absolute; top: -9px; right: -8px; background: var(--gold); color: var(--on-gold); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-strong); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.auth { max-width: 460px; margin-inline: auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: 0.92rem; }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); }
.field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical; }
.field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
fieldset.field legend { font-weight: 800; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
fieldset.field .check-row { margin-bottom: 8px; font-weight: 400; font-size: 0.94rem; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth.removal { max-width: 560px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 16px; font-size: 0.94rem; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.code-input { letter-spacing: 0.5em; font-family: var(--mono); font-size: 1.4rem !important; text-align: center; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 0.94rem; margin-bottom: 16px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--wash); color: var(--ink); }
[hidden] { display: none !important; }

/* ---- Photo Studio ---- */
.studio { display: grid; gap: 22px; }
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; min-height: 230px; padding: 28px; border: 2.5px dashed color-mix(in srgb, var(--gold) 70%, var(--line)); border-radius: 24px; background: var(--surface); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.drop.over { background: var(--wash); border-color: var(--gold); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .big { font-weight: 900; font-size: 1.25rem; }
.drop .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--wash); display: grid; place-items: center; margin-inline: auto; }
.meter { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.25s ease; }
.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shot .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; font-size: 0.78rem; }
.shot .meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.shot .del { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(28, 24, 16, 0.75); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.shot .state { position: absolute; top: 8px; left: 8px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); }
.shot .state.done { background: var(--ok); color: #fff; }
.shot.uploading img { opacity: 0.45; }
.shot.failed { border-color: var(--bad); }
.shot .bar { position: absolute; left: 10px; right: 10px; bottom: 44px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sunk); font-size: 0.82rem; font-weight: 700; }
.empty { text-align: center; padding: 36px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 18px; }

/* ---- Handoff dialog ---- */
dialog.handoff { border: 0; padding: 0; border-radius: 26px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
dialog.handoff::backdrop { background: rgba(14, 12, 8, 0.6); }
.handoff .in { padding: 30px 26px 26px; display: grid; gap: 16px; }
.handoff .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sunk); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.handoff .saved { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 0.92rem; }

/* ---- Consent ---- */
.consent { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.consent p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---- Legal pages ---- */
.legal { padding-block: 40px 90px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal .meta { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.callout { background: var(--wash); border-radius: 16px; padding: 16px 18px; margin: 22px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 22px 0; }
.toc ol { margin: 8px 0 0; columns: 2 220px; display: block; }
.toc li { margin-bottom: 6px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; }
.tablewrap table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.94rem; }
.tablewrap th, .tablewrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap th { background: var(--sunk); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.tag.gone { background: var(--bad-soft); color: var(--bad); }
.tag.kept { background: var(--wash); color: var(--ink); }
.warn { background: var(--bad-soft); color: var(--ink); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.doc-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-foot { background: var(--band); color: var(--on-band-soft); padding-block: 56px 28px; margin-top: 0; }
.site-foot .cols { display: grid; gap: 32px; grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 1080px) { .site-foot .cols { grid-template-columns: repeat(3, 1fr); } .site-foot .cols > :first-child { grid-column: 1 / -1; } }
.site-foot .logo { width: 128px; color: var(--on-band); }
.site-foot .logo .arrow { color: var(--gold); }
.site-foot .logo .nuh { background: var(--gold); color: var(--ink); }
.site-foot h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-band); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-band-soft); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .tag-line { margin-top: 14px; max-width: 32ch; font-size: 0.92rem; }
.site-foot .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
.site-foot .bottom > span:last-child { max-width: 62ch; }
.site-foot .bottom a { text-decoration: underline; text-underline-offset: 2px; }
.site-foot .link-btn { color: var(--on-band-soft); }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

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

/* Legal page pieces carried over from the original pages */
.legal-eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-top: 6px; }
.toc-title { font-weight: 800; }
.law { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 18px 0; background: var(--surface); }
.law .tag { justify-self: start; background: var(--ink); color: var(--gold); }
.private { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; padding: 12px 16px; margin: 14px 0; }
.no-track { display: inline-block; margin: 0 8px 8px 0; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.84rem; font-weight: 700; }
.path-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 14px 0; }
.path-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.path-card h3 { margin-top: 4px; }
.mono { font-family: var(--mono); }

/* ---- Search (home hero + /search), shaped like the app's search bar ---- */
.searchbar { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; padding: 8px 8px 8px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.searchbar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent), var(--shadow); }
.searchbar svg.lead { flex: none; color: var(--ink-soft); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.08rem; padding: 10px 0; outline: none; }
.searchbar input::placeholder { color: var(--ink-soft); }
.searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.searchbar button { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; cursor: pointer; }
.searchbar button:hover { background: #F2C233; }
.popular { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.chip:hover { border-color: var(--gold); }
.sort { margin: 14px 0 18px; }
.sort button { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.results { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.results[aria-busy="true"] { min-height: 200px; }
.result { all: unset; box-sizing: border-box; display: flex; flex-direction: column; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.result:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.result:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.result-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; }
.result-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* IN = sold on CheckNuh (verified blue), EX = another store's listing. Same as the app. */
.result-img .origin { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; line-height: 1.2; }
.result-img .origin.in { background: #0095F6; }
.result-img .origin.ex { background: #5B6573; }
.result-img .flag { position: absolute; top: 10px; left: 10px; background: var(--ok); color: #fff; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.result-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.result-name { font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-price { font-weight: 900; font-size: 1.12rem; color: var(--gold-strong); font-variant-numeric: tabular-nums; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.result-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-source { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-weight: 700; color: var(--ink); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .results { grid-template-columns: 1fr 1fr; gap: 10px; } .result-body { padding: 10px; } .searchbar { padding-left: 16px; } .searchbar button { width: 48px; height: 48px; } }
.result, .result-body { min-width: 0; }
.result-img.empty::after { content: ""; width: 38%; aspect-ratio: 1; opacity: 0.12; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1810' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m21 16-5-5-9 8'/%3E%3C/svg%3E") center / contain no-repeat; }
.result-body { grid-template-columns: minmax(0, 1fr); }
.result-meta > span:first-child { min-width: 0; }
@media (max-width: 520px) { .result-meta { flex-direction: column; align-items: flex-start; gap: 6px; } .result-source { max-width: 100%; } .sort { gap: 8px; } }
.result-visit { font-size: 0.8rem; font-weight: 800; color: var(--gold-strong); }

/* ---- Price guides (/prices, /prices/<product>) ---- */
.guide-group { display: grid; gap: 12px; }
.guide-group h2 { font-size: 1.15rem; }
.guide-chips .chip { min-height: 36px; font-size: 0.9rem; }
.price-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.price-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.price-stat .label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.price-stat .value { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-stat .value.low { color: var(--gold-strong); }
.guide-updated { font-size: 0.85rem; color: var(--ink-soft); }
.guide-section + .guide-section { margin-top: 36px; }
a.result { text-decoration: none; color: inherit; }

/* Home pricing tiles link to their plan on /plans. */
.tile-link { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile-link:focus-visible { outline: 3px solid var(--gold, currentColor); outline-offset: 3px; }
.tile-link .tile-more { font-weight: 700; color: var(--ink); margin-top: 4px; }
.plan[id] { scroll-margin-top: 110px; }
@media (prefers-reduced-motion: reduce) { .tile-link, .tile-link:hover { transition: none; transform: none; } }

/* Social sign-in (account.js). Each button follows its provider's own
   button style: Google white, Apple black, Yahoo purple. */
.social { display: grid; gap: 10px; margin-top: 18px; }
.social .or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.social .or::before, .social .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.social-btn[hidden] { display: none; }
.social-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.social-btn:disabled { opacity: .6; cursor: progress; }
.social-btn.google { background: #fff; color: #1f1f1f; border-color: #747775; }
.social-btn.apple { background: #000; color: #fff; }
.social-btn.yahoo { background: #6001d2; color: #fff; }
.social-ico { width: 20px; height: 20px; flex: none; }
.yahoo-ico { display: grid; place-items: center; font-weight: 800; font-size: .9rem; line-height: 1; }
.social .fine { margin-top: 4px; }
/* Apple's dark-background style is the white button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .social-btn.apple { background: #fff; color: #000; }
  :root:not([data-theme="light"]) .social-btn.google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
}
:root[data-theme="dark"] .social-btn.apple { background: #fff; color: #000; }
:root[data-theme="dark"] .social-btn.google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
