/* ==========================================================================
   wisdomakinpelu.org — site stylesheet
   Tokens from wisdomakinpelu-theme-config-v2.json
   Layout: navy institutional frame (utility bar, header, footer) around a
   light page; WAMI = crimson, NWIEP = gold.
   ========================================================================== */

:root {
  --navy: #0B1B3D;          /* primary_navy */
  --navy-2: #132A5C;
  --navy-deep: #07122A;
  --crimson: #A81C24;       /* accent_crimson */
  --crimson-hover: #8E161D;
  --gold: #D4AF37;          /* secondary_gold */
  --gold-soft: #F4E7BC;
  --page: #F8FAFC;          /* background_light */
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --ink: #212529;           /* text_dark */
  --muted: #545E74;
  --line: #E2E8F0;          /* border_gray */
  --crimson-text: #A81C24;
  --gold-text: #8A6D12;     /* gold darkened for legible text on light */
  --on-frame: #F8FAFC;
  --on-frame-muted: #B6C2DA;
  --ok: #1F7A4D; --warn: #B7791F; --risk: #C2410C; --crit: #A81C24;

  --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Noto Sans Mono', ui-monospace, 'SFMono-Regular', monospace;
  --radius: 8px;
  --gutter: 1rem;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #080F20; --surface: #0F1B36; --surface-2: #142446;
    --ink: #E6EBF4; --muted: #A0ACC4; --line: #263658;
    --crimson-text: #E2646B; --gold-text: #E4C564; --gold-soft: #3A3218;
    --ok: #4ADE80; --warn: #FBBF24; --risk: #FB923C; --crit: #F87171;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-heading); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.text-crimson { color: var(--crimson-text); }
.text-gold { color: var(--gold); }
.text-gold-ink { color: var(--gold-text); }
.text-muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 6px; padding: .85rem 1.4rem; font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, filter .15s; line-height: 1.2; text-align: center; }
.btn-crimson { background: var(--crimson); color: #fff; }
.btn-crimson:hover { background: var(--crimson-hover); }
.btn-navy { background: var(--navy); color: #fff; border-color: rgba(212,175,55,.45); }
.btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link-arrow { font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Frame (header / footer) ---------- */
.frame { background: var(--navy); color: var(--on-frame); }
.frame-deep { background: var(--navy-deep); color: var(--on-frame); }
.on-frame-muted { color: var(--on-frame-muted); }
.seam { height: 4px; background: linear-gradient(90deg, var(--crimson) 0 50%, var(--gold) 50% 100%); }

.utility { font-size: .75rem; }
.utility .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .5rem; }
.utility .lines { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--on-frame-muted); }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--gold); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border: 2px solid var(--gold); border-radius: 6px; color: var(--gold); font-family: var(--font-heading); font-weight: 900; font-size: 1.05rem; }
.brand-name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2; }
.brand-url { display: block; font-size: .7rem; color: var(--on-frame-muted); letter-spacing: .03em; }
.nav-primary { display: none; align-items: center; gap: 1.6rem; font-family: var(--font-heading); font-weight: 600; font-size: .82rem; }
.nav-primary a { position: relative; text-decoration: none; }
.nav-primary a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: inherit; cursor: pointer; }
.nav-mobile { border-top: 1px solid rgba(255,255,255,.1); }
.nav-mobile .wrap { display: grid; gap: .25rem; padding-block: 1rem; font-family: var(--font-heading); font-weight: 600; }
.nav-mobile a:not(.btn) { padding-block: .65rem; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.nav-mobile a[aria-current="page"] { color: var(--gold); }
.nav-mobile .btn { margin-top: .75rem; }
@media (min-width: 640px) { .header-actions .btn { display: inline-flex; } }
@media (min-width: 1100px) { .nav-primary { display: flex; } .menu-btn, .nav-mobile { display: none !important; } }

/* ---------- Page heads ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { padding-block: 3.5rem 3rem; position: relative; }
.page-head h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin-top: .75rem; }
.page-head p.sub { margin-top: 1rem; max-width: 42rem; font-size: 1.08rem; color: var(--on-frame-muted); }
.crumb { font-size: .78rem; color: var(--on-frame-muted); }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--gold); }
.rings { position: absolute; right: -6rem; top: -6rem; width: 34rem; max-width: none; opacity: .06; pointer-events: none; }

.section { padding-block: 3.5rem; }
@media (min-width: 640px) { .section { padding-block: 5rem; } }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: .6rem; font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.015em; }
.section-head p { margin-top: .9rem; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero .wrap { display: grid; gap: 2.5rem; align-items: end; padding-block: 3.5rem 4rem; position: relative; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; padding-block: 5rem; } }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.025em; line-height: 1.05; margin-top: 1rem; }
.hero .intro { margin-top: 1.5rem; max-width: 38rem; font-size: 1.12rem; color: var(--on-frame-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.book-plate { min-width: 0; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 1.5rem; }
.book-plate .row { display: flex; gap: 1.25rem; margin-top: 1rem; }
.book-plate h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.book-plate p { margin-top: .5rem; font-size: .85rem; color: var(--on-frame-muted); }
.cover { flex-shrink: 0; width: 5.75rem; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--navy-2), var(--navy)); border: 1px solid rgba(212,175,55,.6); box-shadow: 0 12px 24px rgba(0,0,0,.35); display: flex; flex-direction: column; justify-content: space-between; padding: .5rem; color: #fff; }
.cover .bar { display: block; height: 4px; width: 2rem; background: var(--crimson); }
.cover .t { font-family: var(--font-heading); font-weight: 800; font-size: .56rem; line-height: 1.2; }
.cover .a { font-family: var(--font-heading); font-size: .45rem; letter-spacing: .2em; color: var(--gold); }
.cover.c-crimson .bar { background: var(--gold); }
.cover.c-crimson { background: linear-gradient(180deg, #7d151b, #4c0d11); }
.cover.c-gold { background: linear-gradient(180deg, #2a2410, #0B1B3D); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.25rem 0 0; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); font-size: .78rem; }
.facts div { background: #0f2349; padding: .75rem; }
.facts dt { color: var(--on-frame-muted); }
.facts dd { margin: .15rem 0 0; }
.facts .price { font-family: var(--font-heading); font-weight: 700; color: var(--gold); font-size: .95rem; }

/* ---------- Umbrella cards ---------- */
.umbrella-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .umbrella-grid { grid-template-columns: 1fr 1fr; } }
.umbrella { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 6rem; }
.umbrella .stripe { height: 6px; background: var(--crimson); }
.umbrella.nwiep .stripe { background: var(--gold); }
.umbrella .body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
@media (min-width: 640px) { .umbrella .body { padding: 2rem; } }
.umbrella .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.umbrella .mark { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--crimson-text); letter-spacing: -.02em; }
.umbrella h3 { margin-top: 1rem; font-weight: 800; font-size: 1.4rem; line-height: 1.3; }
.umbrella .motto { margin-top: .5rem; font-family: var(--font-heading); font-weight: 700; color: var(--crimson-text); }
.umbrella.nwiep .motto { color: var(--ink); }
.umbrella.nwiep .motto span { font-weight: 600; color: var(--muted); }
.umbrella .desc { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.dots { display: grid; gap: .5rem; margin-top: 1.25rem; font-size: .92rem; }
.dots li { display: flex; gap: .75rem; }
.dots li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; margin-top: .55rem; background: var(--crimson); }
.dots.gold li::before { background: var(--gold); }
.umbrella .actions { margin-top: auto; padding-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.umbrella .actions a:not(.btn) { font-size: .87rem; font-weight: 600; text-decoration: none; color: var(--crimson-text); }
.umbrella.nwiep .actions a:not(.btn) { color: var(--ink); }
.umbrella .actions a:not(.btn):hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid var(--gold); padding: .25rem .65rem; font-family: var(--font-heading); font-weight: 700; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.routes { margin-top: 2.5rem; display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .routes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .routes { grid-template-columns: repeat(4, 1fr); } }
.routes a { background: var(--surface); padding: 1.25rem; text-decoration: none; display: block; }
.routes a:hover { background: var(--surface-2); }
.routes .eyebrow { color: var(--crimson-text); }
.routes strong { display: block; margin-top: .35rem; font-family: var(--font-heading); }
.routes span.d { display: block; margin-top: .2rem; font-size: .85rem; color: var(--muted); }

/* ---------- Generic cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card h3 { font-size: 1.15rem; font-weight: 800; }
.card .k { margin-top: .5rem; }
.card p + p { margin-top: .75rem; }
.callout { border-left: 4px solid var(--gold); background: var(--surface); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.crimson { border-left-color: var(--crimson); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); font-size: .92rem; }
.notice svg { flex-shrink: 0; margin-top: .15rem; }

/* ---------- Booking ---------- */
.booking-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .booking-layout { grid-template-columns: 1fr 22rem; } }
.track-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track { position: relative; display: block; cursor: pointer; }
.track input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.track .inner { display: block; height: 100%; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.track:hover .inner { border-color: var(--muted); }
.track input:checked + .inner { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(168,28,36,.12); }
.track input[data-desk="nwiep"]:checked + .inner { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.track input:focus-visible + .inner { outline: 2px solid var(--gold); outline-offset: 2px; }
.track .num { font-family: var(--font-heading); font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson-text); }
.track input[data-desk="nwiep"] + .inner .num { color: var(--gold-text); }
.track .name { display: block; margin-top: .3rem; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; }
.track .aud { display: block; margin-top: .25rem; font-size: .82rem; color: var(--muted); }

.form { display: grid; gap: 1.25rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.5rem; margin: 0; min-width: 0; }
.fieldset legend { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; padding: 0 .4rem; margin-left: -.4rem; }
.fieldset .hint { color: var(--muted); font-size: .88rem; margin: .25rem 0 1.1rem; }
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .88rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,27,61,.15); }
@media (prefers-color-scheme: dark) { .input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); } }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--crit); }
.err { color: var(--crit); font-size: .8rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--crimson); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; cursor: pointer; background: var(--page); }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.route-card { position: sticky; top: 7rem; }
.route-card .card { padding: 1.5rem; }
.route-card .desk { margin-top: .5rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }
.route-card dl { margin: 1rem 0 0; display: grid; gap: .65rem; font-size: .88rem; }
.route-card dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.route-card dd { margin: .1rem 0 0; word-break: break-word; }
.route-card .topics { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.form-status { border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; }
.form-status.ok { background: rgba(31,122,77,.1); border: 1px solid var(--ok); }
.form-status.bad { background: rgba(168,28,36,.08); border: 1px solid var(--crit); }

/* ---------- Pricing ---------- */
.format-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .format-strip { grid-template-columns: repeat(5, 1fr); } }
.format-strip div { background: var(--surface); padding: 1rem 1.1rem; }
.format-strip .step { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.format-strip strong { display: block; font-family: var(--font-heading); margin-top: .2rem; }
.format-strip span.d { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }

.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; min-width: 0; position: relative; }
.tier.featured { border: 2px solid var(--crimson); }
.tier .flag { position: absolute; top: -.8rem; left: 1.5rem; background: var(--crimson); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 4px; }
.tier h3 { font-size: 1.3rem; font-weight: 800; }
.tier .for { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.tier .price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: .3rem; }
.tier .price b { font-family: var(--font-heading); font-weight: 800; font-size: 2.5rem; letter-spacing: -.02em; }
.tier .price span { color: var(--muted); font-size: .9rem; }
.tier ul { margin-top: 1.25rem; display: grid; gap: .6rem; font-size: .92rem; }
.tier li { display: flex; gap: .6rem; }
.tier li svg { flex-shrink: 0; margin-top: .25rem; color: var(--ok); }
.tier li.inherit { color: var(--muted); }
.tier .cta { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .75rem; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { font-family: var(--font-heading); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); }
.compare td.c { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--muted); }

details.faq { border-bottom: 1px solid var(--line); padding-block: 1rem; }
details.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--crimson-text); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin-top: .75rem; color: var(--muted); }

/* ---------- Store ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: .82rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.store-group + .store-group { margin-top: 3rem; }
.store-group h2 { font-size: 1.25rem; font-weight: 800; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.store-group h2 small { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.products { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.product .art { background: var(--surface-2); padding: 1.5rem; display: flex; justify-content: center; }
.product .art .cover { width: 6.5rem; }
.product .art .cover .t { font-size: .62rem; }
.product .art img { max-height: 10rem; width: auto; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.product .info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product .cat { color: var(--crimson-text); }
.product h3 { margin-top: .4rem; font-size: 1.02rem; font-weight: 800; line-height: 1.35; }
.product .subt { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.product .meta { margin-top: .75rem; font-size: .75rem; color: var(--muted); }
.product .buy { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product .price { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; }
.product.flagship { border: 2px solid var(--gold); }

/* ---------- Diagnostics ---------- */
.tool-tabs { display: grid; gap: .75rem; }
@media (min-width: 640px) { .tool-tabs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tool-tabs { grid-template-columns: repeat(4, 1fr); } }
.tool-tab { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; cursor: pointer; display: block; }
.tool-tab:hover { border-color: var(--muted); }
.tool-tab[aria-selected="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,27,61,.12); }
@media (prefers-color-scheme: dark) { .tool-tab[aria-selected="true"] { border-color: var(--gold); } }
.tool-tab .eyebrow { color: var(--crimson-text); }
.tool-tab strong { display: block; margin-top: .3rem; font-family: var(--font-heading); }
.tool-tab span.d { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.tool-panel { margin-top: 2rem; }
.tool-intro { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.privacy-seal { display: flex; gap: .85rem; align-items: flex-start; border: 1px solid var(--ok); background: rgba(31,122,77,.07); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .9rem; }
.privacy-seal svg { flex-shrink: 0; color: var(--ok); margin-top: .1rem; }
.scale-key { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .78rem; color: var(--muted); }
.area { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 1rem; overflow: hidden; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.area-head h3 { font-size: .98rem; font-weight: 800; }
.area-head .count { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.q { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: grid; gap: .75rem; }
.q:last-child { border-bottom: 0; }
@media (min-width: 900px) { .q { grid-template-columns: 1fr auto; align-items: center; } }
.q p { font-size: .95rem; }
.likert { display: flex; gap: .35rem; border: 0; padding: 0; margin: 0; }
.likert label { position: relative; }
.likert input { position: absolute; opacity: 0; }
.likert span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 6px; border: 1px solid var(--line); background: var(--page); font-family: var(--font-heading); font-weight: 700; font-size: .9rem; cursor: pointer; }
.likert input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.likert input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .likert input:checked + span { background: var(--gold); color: var(--navy); border-color: var(--gold); } }
.progress { position: sticky; bottom: 0; z-index: 20; margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; box-shadow: 0 -8px 24px rgba(11,27,61,.08); }
.progress .bar { flex: 1; min-width: 8rem; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.progress .txt { font-size: .85rem; color: var(--muted); }
.results { margin-top: 2rem; }
.score-head { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .score-head { grid-template-columns: auto 1fr; } }
.dial { width: 9rem; height: 9rem; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dial .val b { font-family: var(--font-heading); font-weight: 800; font-size: 2rem; line-height: 1; }
.dial .val small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }
.band { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .3rem .8rem; font-family: var(--font-heading); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.band.b-ok { background: var(--ok); } .band.b-warn { background: var(--warn); } .band.b-risk { background: var(--risk); } .band.b-crit { background: var(--crit); }
@media (prefers-color-scheme: dark) { .band { color: var(--navy-deep); } }
.area-bars { display: grid; gap: .65rem; margin-top: 1.5rem; }
.area-bar { display: grid; grid-template-columns: minmax(0, 12rem) 1fr 3rem; gap: .75rem; align-items: center; font-size: .85rem; }
@media (max-width: 520px) { .area-bar { grid-template-columns: 1fr 3rem; } .area-bar .track-bg { grid-column: 1 / -1; grid-row: 2; } }
.area-bar .track-bg { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.area-bar .track-bg i { display: block; height: 100%; border-radius: 99px; }
.area-bar .pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.i-ok { background: var(--ok); } .i-warn { background: var(--warn); } .i-risk { background: var(--risk); } .i-crit { background: var(--crit); }
.priorities { margin-top: 1.5rem; }
.priorities li { padding: .75rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer .wrap.main { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 1024px) { .site-footer .wrap.main { grid-template-columns: 1.1fr 2fr; } }
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; }
.footer-blurb { margin-top: 1rem; max-width: 26rem; font-size: .9rem; color: var(--on-frame-muted); }
.footer-nav { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-heading); font-weight: 600; font-size: .85rem; }
.footer-nav a { text-decoration: none; } .footer-nav a:hover { color: var(--gold); }
.contact-grid { display: grid; gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid > div { background: var(--navy); padding: 1.25rem; min-width: 0; }
.contact-grid .sub { margin-top: .25rem; font-size: .75rem; color: var(--on-frame-muted); }
.contact-grid .phone { display: block; margin-top: .75rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-grid .phone:hover, .contact-grid .mail a:hover { color: var(--gold); }
.contact-grid .local { font-size: .75rem; color: var(--on-frame-muted); font-variant-numeric: tabular-nums; }
.contact-grid .mail { margin-top: .75rem; display: grid; gap: .2rem; font-size: .8rem; word-break: break-word; }
.contact-grid .mail a { text-decoration: none; }
.contact-grid .mail a.dom { color: var(--on-frame-muted); }
.contact-grid .btn { margin-top: .9rem; }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.25rem; font-size: .75rem; color: var(--on-frame-muted); }
.footer-base a { text-decoration: none; } .footer-base a:hover { color: var(--gold); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.3rem; font-weight: 800; margin-top: 2.25rem; }
.prose p, .prose ul { margin-top: .9rem; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }

/* ---------- Print (diagnostic results) ---------- */
@media print {
  .utility, .site-header, .site-footer, .tool-tabs, .progress, .result-actions, .no-print, .page-head .rings { display: none !important; }
  body { background: #fff; color: #000; }
  .page-head { background: #fff !important; color: #000 !important; }
  .card, .area { break-inside: avoid; }
}

/* ---------- Reflections hub ---------- */
.tool-card { display: flex; flex-direction: column; padding: 1.75rem; }
.tool-card h2 { font-size: 1.35rem; font-weight: 800; }
.tool-card .upsell { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .92rem; }
.tool-card .btn-row + .upsell { margin-top: 1.5rem; }
.upsell-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.upsell a:not(.btn) { color: var(--crimson-text); }

/* ---------- Store extras ---------- */
.product .price.ext { font-size: .85rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.store-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .85rem; color: var(--muted); }
.store-links a { color: inherit; }
.store-links a:hover { color: var(--crimson-text); }
.policies a { white-space: nowrap; }
