/* AI Benar Advisory: civic ledger design.
   Tokens first, then layout, then components. No frameworks, no external requests. */
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f7f8f6; --surface: #ffffff; --band: #eef1ee; --ink: #15231f; --muted: #52615b; --line: #dbe2dd;
  --ledger: #1b5e4f; --ledger-ink: #ffffff; --brass: #c9a227; --brass-soft: #f3ead0; --focus: #c9a227;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(2.1rem, 4.2vw, 3.3rem);
  --radius: 14px; --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1714; --surface: #15201c; --band: #121c18; --ink: #ecf2ef; --muted: #a3b3ac; --line: #26342e;
    --ledger: #63c3a9; --ledger-ink: #0b1511; --brass: #e2c15a; --brass-soft: #2c2816; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--ledger); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; max-width: 18ch; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 20; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band { background: var(--band); }
.section-lede { color: var(--muted); max-width: 62ch; margin: .6rem 0 2rem; }
.fine { color: var(--muted); font-size: .92rem; max-width: 70ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem; border: 2px solid var(--ledger); border-radius: 12px; background: var(--ledger); color: var(--ledger-ink); font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: color-mix(in srgb, var(--ledger) 88%, var(--ink)); }
.btn.ghost { background: transparent; color: var(--ledger); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ledger) 8%, transparent); }
.btn.small { min-height: 40px; padding: 0 1rem; font-size: .95rem; }
.btn.block { width: 100%; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--serif); }
.brand img { border-radius: 9px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 600; }
nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
nav a:not(.btn):hover { color: var(--ledger); text-decoration: underline; }
.menu { display: none; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.bits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .bits { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.outcomes { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .85rem; max-width: 54ch; }
.outcomes li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.outcomes li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--ledger); box-shadow: 3px 3px 0 0 var(--brass-soft); }
.outcomes b { color: var(--ink); }
.trust { margin-top: 1.1rem; color: var(--muted); font-size: .95rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 52ch; margin-top: 1.2rem; }
.proof { list-style: none; padding: 0; margin: -0.8rem 0 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; }
.proof li { display: flex; align-items: baseline; gap: .6rem; color: var(--muted); }
.proof b { font: 700 1.35rem/1 var(--serif); color: var(--ink); min-width: 2.4ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The check: the one bold element */
.check { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px color-mix(in srgb, var(--ledger) 55%, transparent); }
.check::before { content: "§"; position: absolute; right: 1.3rem; top: .6rem; font: 700 3.2rem/1 var(--serif); color: var(--brass); opacity: .9; }
.check h2 { font-size: 1.45rem; padding-right: 2.5rem; }
.check-sub { color: var(--muted); font-size: .95rem; margin: .4rem 0 1.1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
legend { display: flex; gap: .55rem; align-items: baseline; font-weight: 700; margin-bottom: .6rem; padding: 0; }
.qn { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .85rem/1 var(--sans); flex: none; transform: translateY(-1px); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 600; background: var(--surface); transition: border-color .12s, background-color .12s; }
.chips input:hover + span { border-color: var(--ledger); }
.chips input:checked + span { border-color: var(--ledger); background: color-mix(in srgb, var(--ledger) 12%, var(--surface)); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-error { color: #a33a2a; font-weight: 600; margin-top: .7rem; }
.result { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.result:focus { outline: none; }
.result h3 { font-size: 1.2rem; }
.result .next { margin: .4rem 0 1rem; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .6rem; }
@keyframes rule-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rules li { animation: rule-in .32s ease-out both; animation-delay: calc(var(--i, 0) * 55ms); }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; padding: .7rem .85rem; border-radius: 12px; background: var(--band); }
.rules .tag { grid-row: span 2; align-self: start; font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.rules .tag.soon { background: var(--brass); color: #1d1a0c; }
.rules .tag.voluntary { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.rules b { font-weight: 700; }
.rules small { color: var(--muted); font-size: .92rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.4rem; position: relative; }
.timeline li { position: relative; padding-top: 1.3rem; border-top: 3px solid var(--ledger); display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ledger); }
.timeline li.past { border-top-color: color-mix(in srgb, var(--ledger) 45%, var(--line)); }
.timeline li.past::before { background: var(--ledger); border-color: var(--ledger); }
.timeline li.next::before { background: var(--brass); border-color: var(--brass); }
.timeline li.next { border-top-color: var(--brass); }
.timeline time { font: 700 1.1rem/1.2 var(--serif); }
.timeline .tl-next { font-weight: 700; font-size: .88rem; color: #7F6B20; /* WCAG AA: 4.58:1 on the timeline background */ }
.timeline b { font-size: .95rem; color: var(--ledger); }
.timeline span { color: var(--muted); font-size: .97rem; }
#deadlines .fine { margin-top: 2rem; }

/* Price list */
.pricelist { display: grid; border-top: 1px solid var(--line); }
.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.price p { color: var(--muted); max-width: 64ch; margin-top: .35rem; }
.price.featured { position: relative; padding-left: 1.2rem; }
.price.featured::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 4px; border-radius: 4px; background: var(--brass); }
.cost { text-align: right; display: grid; gap: .15rem; margin: 0 !important; }
.cost b { font: 700 1.3rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.cost span { color: var(--muted); font-size: .92rem; }
#services .fine { margin-top: 1.4rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: s; display: grid; gap: .45rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ledger); color: var(--ledger-ink); font: 700 1.1rem/1 var(--serif); margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* Tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.tool { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.tool img { border-radius: 14px; }
.tool .tool-sub { font-weight: 700; color: var(--ink); margin: .1rem 0 0; }
.tool p { color: var(--muted); margin: .35rem 0 .6rem; }
.tool a { font-weight: 700; }

/* About */
.about { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait { margin: 0; position: sticky; top: 92px; }
.portrait img { width: 100%; height: auto; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 10px 10px 0 0 var(--brass-soft); }
.about-lede { font-size: 1.15rem; max-width: 60ch; margin-top: 1rem; }
.strands { margin: 1.8rem 0 0; display: grid; gap: 1.3rem; }
.strands div { display: grid; grid-template-columns: 12rem 1fr; gap: .3rem 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.strands dt { font: 600 1.05rem/1.35 var(--serif); }
.strands dd { margin: 0; color: var(--muted); max-width: 62ch; }
/* footnote marker */
.fn { line-height: 0; margin-left: .05em; } .fn a { text-decoration: none; color: inherit; font-weight: 600; padding: 0 .1em; } .fn a:hover, .fn a:focus-visible { text-decoration: underline; }
.footnote { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; border-left: 3px solid var(--brass); padding-left: 1.4rem; }
.facts b { display: block; font: 600 1.05rem/1.3 var(--serif); }
.facts li { color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 1.6rem; }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 600 1.12rem/1.4 var(--serif); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: .9rem; font: 400 1.6rem/1 var(--sans); color: var(--ledger); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 1.2rem; color: var(--muted); max-width: 66ch; }

/* Contact and footer */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--ledger); color: var(--ledger-ink); }
.contact h2, .contact p { color: var(--ledger-ink); }
.contact .fine { color: color-mix(in srgb, var(--ledger-ink) 78%, transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.contact-grid > div > p { margin-top: .7rem; max-width: 52ch; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.contact .btn { background: var(--ledger-ink); color: var(--ledger); border-color: var(--ledger-ink); }
.contact .btn.ghost { background: transparent; color: var(--ledger-ink); }
.contact .btn:focus-visible { outline-color: var(--brass); }
.site-foot { padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.foot-row { display: grid; gap: .5rem; color: var(--muted); font-size: .92rem; }

/* Private stats view */
.stats { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 55%, transparent); padding: 1rem; }
.stats-card { width: min(440px, 100%); background: var(--surface); border-radius: 18px; padding: 1.6rem; display: grid; gap: .8rem; }
.stats dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: .4rem 0 .6rem; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font: 700 1.15rem/1.2 var(--serif); text-align: right; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .about, .contact-grid, .tools { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 320px; }
  .strands div { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu { display: inline-flex; align-items: center; }
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  nav ul.open { display: flex; }
  nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  nav li .btn { margin-top: .8rem; width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .cost { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-head, .check, .contact-actions, .stats { display: none !important; } body { background: #fff; } }
@media (prefers-color-scheme: dark) { .timeline .tl-next { color: color-mix(in srgb, var(--brass) 70%, var(--ink)); } }

/* ===================== AI rules check: step-by-step quiz ===================== */
.q-head { display: grid; gap: .35rem; }
.q-steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: .7rem 0 .2rem; counter-reset: s; }
.q-steps li { flex: 1; display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: .55rem; border-top: 3px solid var(--line); transition: border-color .2s, color .2s; min-width: 0; }
.q-steps li span { flex: none; display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1.5px solid var(--line); font-size: .75rem; }
.q-steps li.on { color: var(--ink); border-top-color: var(--ledger); }
.q-steps li.on span { background: var(--ledger); border-color: var(--ledger); color: var(--ledger-ink); }
.q-steps li.done { border-top-color: color-mix(in srgb, var(--ledger) 45%, var(--line)); }
.q-steps li.done span { border-color: var(--ledger); color: var(--ledger); }
.q-body { margin-top: 1rem; }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-step legend { font: 600 1.12rem/1.35 var(--serif); padding: 0; margin-bottom: .85rem; outline: none; }
.q-step legend small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--muted); margin-top: .15rem; }
.q-group + .q-group { margin-top: .9rem; }
.q-ghead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.q-ghead span { font-weight: 700; font-size: .88rem; }
.q-link { background: none; border: 0; padding: .2rem .1rem; font: 600 .82rem var(--sans); color: var(--ledger); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.q-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.q-opt { position: relative; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-opt > span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; transition: border-color .15s, background .15s, color .15s; }
.q-opt > span b { font-weight: 600; }
.q-opt > span::before { content: ""; flex: none; width: .95rem; height: .95rem; border-radius: 4px; border: 1.5px solid var(--muted); transition: inherit; }
.q-opt input[type=radio] + span::before { border-radius: 50%; }
.q-opt:hover > span { border-color: var(--ledger); }
.q-opt input:checked + span { border-color: var(--ledger); background: color-mix(in srgb, var(--ledger) 10%, var(--surface)); }
.q-opt input:checked + span::before { background: var(--ledger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--ledger); }
.q-opt input[type=radio]:checked + span::before { background: var(--surface); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 10px var(--ledger); }
.q-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-cards { display: grid; gap: .5rem; }
.q-card > span { display: grid; grid-template-columns: auto 1fr; align-items: start; border-radius: 12px; padding: .7rem .9rem; width: 100%; }
.q-card > span::before { margin-top: .2rem; grid-row: span 2; }
.q-card > span small { grid-column: 2; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.q-count { min-height: 1.3em; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.q-foot { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.q-foot #qNext { margin-left: auto; }
.q-hint { margin: 0; font-size: .85rem; font-weight: 600; color: #9c3b1f; flex: 1; }
.q-lang { display: inline-flex; gap: .25rem; justify-self: start; background: var(--band); border-radius: 999px; padding: .2rem; margin-bottom: .3rem; }
.q-lang button { border: 0; background: none; border-radius: 999px; padding: .3rem .7rem; font: 600 .8rem var(--sans); color: var(--muted); cursor: pointer; }
.q-lang button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.q-preview { margin: .2rem 0 0; padding: .45rem .7rem; border-radius: 8px; background: var(--brass-soft); color: #4d3f10; font-size: .82rem; font-weight: 600; }
.q-res-head h3 { margin: 0; }
.q-sum { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .7rem 0 0; }
.q-sum li { font-size: .82rem; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.q-sum li b { color: var(--ink); }
.q-sum .s-now { background: var(--ledger); border-color: var(--ledger); color: var(--ledger-ink); }
.q-sum .s-now b { color: var(--ledger-ink); }
.q-sum .s-coming { background: var(--brass-soft); border-color: transparent; color: #4d3f10; }
.q-sum .s-coming b { color: #4d3f10; }
.q-note { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.q-place { margin-top: 1.1rem; }
.q-place h4 { font: 600 1rem/1.3 var(--serif); margin: 0 0 .35rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.rules .tag.t-now { background: var(--ledger); color: var(--ledger-ink); }
.rules .tag.t-coming { background: var(--brass); color: #1d1a0c; }
.rules .tag.t-check { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.rules .tag.t-guide { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.q-actions { margin-top: 1.2rem; display: grid; gap: .5rem; }
.q-row { display: flex; gap: .5rem; } .q-row .btn { flex: 1; }
@media (prefers-color-scheme: dark) { .q-hint { color: #f0a58a; } .q-preview, .q-sum .s-coming { background: var(--brass); color: #1d1a0c; } .q-sum .s-coming b { color: #1d1a0c; } }
@media (prefers-reduced-motion: no-preference) { .q-step { animation: qIn .22s ease; } @keyframes qIn { from { opacity: 0; transform: translateY(4px); } } }
.coverage { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .9rem 0 0; font-size: .9rem; color: var(--muted); max-width: 60ch; }
.coverage b { color: var(--ink); font-weight: 600; margin-right: .3rem; }
.q .q-step legend { display: block; width: 100%; } .q .q-step legend small { display: block; }

/* Back to top: bottom right, a 48px target, above the footer, clear of page content */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px) + 16px); bottom: max(16px, env(safe-area-inset-bottom, 0px) + 16px); z-index: 20; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ledger); border: 1px solid var(--line); box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); text-decoration: none; transition: transform .15s, background .15s; }
.to-top:hover { background: var(--ledger); color: var(--ledger-ink); }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.to-top[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .to-top:not([hidden]) { animation: toTopIn .2s ease; } @keyframes toTopIn { from { opacity: 0; transform: translateY(6px); } } }
.foot-links { margin-top: .4rem; font-size: .9rem; }
@media print { .to-top { display: none !important; } }

/* the featured service: the gold bar is explained by a visible label, not colour alone */
.tag-start { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .12rem .55rem; border-radius: 999px; background: var(--brass-soft); color: #4d3f10; font: 700 .72rem/1.4 var(--sans); letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .tag-start { background: var(--brass); color: #1d1a0c; } }
