/* Public price pages (/prices/*), rendered by services/api/price-pages/render.js.
   Brand tokens match public/landing.html. */
:root {
  --blue: #7B9EC1; --blue-deep: #324860; --footer-bg: #324860;
  --pink: #FDB8D0; --pink-deep: #C43C6E;
  --paper: #FAF9FB; --surface: #FFFFFF; --ink: #232B36; --muted: #7C8798; --line: #E7E9EE;
  --good: #1E8E5A; --bad: #C2453B; --wa: #25D366;
  --radius: 14px; --radius-sm: 9px;
  --btn-primary-bg: #324860; --btn-primary-text: #FFFFFF;
  --pill-bg: #FDB8D0; --pill-text: #C43C6E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181F; --surface: #1C2129; --ink: #EDEFF2; --muted: #8D97A8; --line: #2A303A;
    --blue: #9FBEDD; --blue-deep: #BFD5EA; --pink-deep: #FF9EC0; --good: #4CBE86; --bad: #F08A80;
    --pill-bg: #4A2536; --pill-text: #FF9EC0;
    --btn-primary-bg: #BFD5EA; --btn-primary-text: #14181F;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .bum { color: var(--blue-deep); } .brand .bargains { color: var(--pink-deep); }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav-links a { text-decoration: none; } .nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 760px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-deep); }
.btn-wa { background: var(--wa); color: #08361b; }
.btn-wa picture { display: flex; }
.btn-wa .wa-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 10px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 800; }
h2 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.5; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stack { display: grid; gap: 20px; }
section { margin: 28px 0; }
.two { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* answer box */
.answer { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: color-mix(in srgb, var(--good) 9%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--good) 35%, transparent); border-radius: var(--radius); padding: 22px; }
.answer .logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.answer .k { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--good); }
.answer .big { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.answer .big small { font-size: 16px; font-weight: 700; color: var(--muted); }
.answer .meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.answer .actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 720px) { .answer { grid-template-columns: auto 1fr; } .answer .actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }

/* estimated saving */
.est { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--pink) 22%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--pink-deep) 45%, transparent); }
.est-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--pink-deep); }
.est-k { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--pink-deep); }
.est-main { font-size: 16px; font-weight: 600; margin-top: 2px; line-height: 1.35; }
.est-main b { font-weight: 800; }
.est-fine { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* shop table */
.tbl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tbl-head h2 { margin: 0; }
.date-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); }
.date-badge.today { color: var(--good); background: color-mix(in srgb, var(--good) 10%, var(--surface)); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
table.rt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 0 10px 10px; }
.rt td { padding: 12px 10px; border-top: 1px solid var(--line); }
.rt td.r, .rt th.r { text-align: right; }
.rt .who { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rt .who img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.rt .shop-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.rt .shop-link i { font-size: 13px; color: var(--muted); opacity: .6; }
.rt .shop-link:hover { text-decoration: underline; } .rt .shop-link:hover i { opacity: 1; color: var(--ink); }
.rt tr.win td { background: color-mix(in srgb, var(--good) 7%, transparent); }
.rt tr.win .unit, .rt .unit.good { color: var(--good); }
.rt .unit { font-weight: 800; }
.rt .diff { color: var(--bad); font-size: 13px; font-weight: 700; }
.rt .na { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
@media (max-width: 640px) { .rt .hide-sm, .hide-sm { display: none; } }

/* chart */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--muted); font-family: inherit; }
.chart .grid { stroke: var(--line); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }

/* signup / member card */
.signup-card { background: color-mix(in srgb, var(--pink) 22%, var(--surface)); border: none; }
.signup-card h2 { margin-bottom: 4px; }
.su-in { width: 100%; margin-top: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.su-opt { margin-top: 12px; } .su-opt summary { cursor: pointer; font-weight: 700; font-size: 14px; } .su-opt summary span { color: var(--muted); font-weight: 600; }
.su-prefs { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr; gap: 8px; margin: 10px 0 0; }
.su-prefs label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.su-prefs select { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 520px) { .su-prefs { grid-template-columns: 1fr 1fr; } .su-prefs label:first-child { grid-column: 1 / -1; } }
.su-btn { width: 100%; margin-top: 12px; }
.su-err { color: var(--bad); font-size: 13.5px; font-weight: 700; margin: 10px 0 0; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.chip.on { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: transparent; }
.chip small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.on small { color: inherit; opacity: .75; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.faq p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; font-size: 14.5px; }

/* brand page */
.brand-head { display: flex; gap: 18px; align-items: center; margin-top: 6px; }
.brand-head img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }

/* hub board */
.board { overflow-x: auto; }
.board table { border-collapse: separate; border-spacing: 6px; width: 100%; min-width: 640px; }
.board th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; text-align: center; padding: 4px; }
.board th.rowh { text-align: left; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.board th.rowh a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.board th.rowh a:hover { text-decoration: underline; }
.board th.rowh img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.board td a, .board td .empty { display: block; text-decoration: none; border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.board td a:hover { border-color: var(--blue-deep); }
.board td b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.board td span { font-size: 11px; color: var(--muted); font-weight: 700; }
.board td .best { background: color-mix(in srgb, var(--good) 14%, var(--surface)); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.board td .best b { color: var(--good); }
.board td .empty { color: var(--muted); padding: 18px 6px; }
.gaps .sub { margin: -8px 0 8px; }
.gaps .g { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.gaps .g:first-of-type { border-top: none; }
.gaps .rank { width: 28px; height: 28px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-text); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.gaps .what { flex: 1; font-weight: 700; font-size: 14.5px; }
.gaps .what small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.gaps .pct { font-weight: 800; color: var(--bad); font-size: 18px; }

footer { background: var(--footer-bg); color: #fff; padding: 36px 0; margin-top: 48px; font-size: 13px; }
footer p { margin: 0; color: color-mix(in srgb, #fff 65%, transparent); line-height: 1.7; }
footer strong { color: color-mix(in srgb, #fff 85%, transparent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.foot-links a { color: color-mix(in srgb, #fff 88%, transparent); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--pink); }

/* /prices: "Find your nappy" search (suggestions wired in public/js/price-pages.js) */
.nappy-search { position: relative; margin-top: 18px; }
.ns-title { display: block; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.ns-wrap { position: relative; }
.ns-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.ns-wrap input { width: 100%; padding: 15px 16px 15px 46px; border-radius: 999px; border: 2px solid var(--blue-deep); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; }
.ns-suggest { position: absolute; left: 22px; right: 22px; z-index: 30; list-style: none; margin: 8px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }
.ns-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 14.5px; }
.ns-suggest a:hover, .ns-suggest a:focus { background: color-mix(in srgb, var(--blue) 12%, transparent); outline: none; }
.ns-suggest span { color: var(--good); font-weight: 800; white-space: nowrap; }
.ns-none { padding: 11px 12px; color: var(--muted); font-size: 14px; }
.ns-popular { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.board-hint { margin: 26px 0 -10px; color: var(--muted); font-size: 15px; }
.board td a { transition: transform .12s ease, box-shadow .12s ease; }
.board td a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(50,72,96,.5); }
.board td .cell-cta { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--blue-deep); text-transform: uppercase; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .board td a, .board td a:hover { transition: none; transform: none; } }
