/* Smile.Clinic — design tokens
   Film #172033 ink · Porcelain #F6F7F4 page · Enamel #ECE3CF surface
   Gum #C2405A action · Gum-soft #F6D9DE · Savings #187A60 */
:root {
  --film: #172033;
  --film-2: #2b3650;
  --porcelain: #f6f7f4;
  --paper: #ffffff;
  --enamel: #ece3cf;
  --enamel-2: #f4efe3;
  --gum: #c2405a;
  --gum-dark: #a3304a;
  --gum-soft: #f6d9de;
  --savings: #187a60;
  --savings-soft: #dcefe8;
  --line: #d9dcd6;
  --muted: #5b6375;
  --ink: var(--film);
  --bg: var(--porcelain);
  --surface: var(--paper);
  --radius-s: 6px;
  --radius-m: 12px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem);
  --wrap: 72rem;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #2747c9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0ec;
    --bg: #121a2a;
    --surface: #1b2438;
    --line: #34405a;
    --muted: #a9b1c2;
    --enamel-2: #222c42;
    --gum-soft: #3a2230;
    --savings-soft: #183a33;
    --focus: 0 0 0 3px #121a2a, 0 0 0 6px #8fa6ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 var(--step-0)/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gum); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); max-width: 22ch; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--paper); color: var(--film); padding: 0.6rem 1rem; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.fine { font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.lede { font-size: var(--step-1); max-width: 60ch; color: var(--ink); }
.kicker { font-size: var(--step--1); color: var(--gum); font-weight: 700; margin-bottom: 0.4rem; }
.textlink { display: inline-block; margin-top: 0.75rem; font-size: var(--step--1); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* top bar — required on every page */
.topbar { background: var(--film); color: #fff; font-size: var(--step--1); text-align: center; padding: 0.45rem 1rem; }
.topbar a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); }
.topbar a:hover { color: var(--gum-soft); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.brand b { color: var(--gum); font-weight: 400; }
.brand-mark { width: 2rem; height: 2rem; color: var(--ink); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 0.5rem 0.7rem; text-decoration: none; border-radius: var(--radius-s); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gum); border-radius: 0; }
.head-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .main-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 480px) { .head-actions .btn-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 700 var(--step-0)/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn-primary { background: var(--gum); color: #fff; }
.btn-primary:hover { background: var(--gum-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* breadcrumbs */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs a { color: var(--muted); }
.crumbs > * + *::before { content: "/"; margin-right: 0.35rem; color: var(--line); }

/* page heroes */
.page-hero { padding: 2.25rem 0 1.25rem; }
.page-hero h1 { max-width: 26ch; }
.byline { font-size: var(--step--1); color: var(--muted); }
.block { padding: 2.25rem 0; }
.block + .block { border-top: 1px solid var(--line); }
main > .block:first-of-type { border-top: 0; }

/* HOME hero: copy + receipt */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: start; padding: 3rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.2rem); max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--muted); }
.hero-facts li { padding-left: 1.4rem; position: relative; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.65rem; height: 0.35rem; border-left: 2px solid var(--savings); border-bottom: 2px solid var(--savings); transform: rotate(-45deg); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; } }

/* RECEIPT — the signature element */
.receipt {
  --perf: radial-gradient(circle at 8px 0, transparent 7px, var(--paper) 7.5px);
  position: relative;
  background: var(--paper);
  color: var(--film);
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 1px 0 #e7e9e4, 0 18px 40px -22px rgba(23, 32, 51, 0.45);
  transform: rotate(-0.6deg);
}
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--perf); background-size: 16px 14px; background-repeat: repeat-x; }
.receipt::before { top: -13px; transform: rotate(180deg); }
.receipt::after { bottom: -13px; }
.has-calc .receipt, .calc-page .receipt { transform: none; }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed #c9ccc4; padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.rc-title { font-family: var(--serif); font-size: 1.35rem; }
.rc-no { font-size: var(--step--1); color: #5b6375; }
.rc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 0.8rem; margin-bottom: 1rem; }
.rc-field { display: flex; flex-direction: column; gap: 0.2rem; }
.rc-wide { grid-column: 1 / -1; }
.rc-field label { font-size: 0.8rem; color: #5b6375; }
.rc-field select, .rc-field input { font: inherit; font-size: 0.98rem; padding: 0.5rem 0.6rem; border: 1px solid #c9ccc4; border-radius: var(--radius-s); background: #fbfbf9; color: var(--film); width: 100%; }
.rc-lines { list-style: none; margin: 0; padding: 0.4rem 0; border-top: 1px solid #e3e5df; }
.rc-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0; border-bottom: 1px dotted #d3d6ce; margin: 0; font-size: 0.97rem; }
.rc-lines li span:first-child { color: #3c4558; }
.rc-lines li small { display: block; color: #6b7385; font-size: 0.8rem; }
.rc-lines li span:last-child { white-space: nowrap; font-weight: 700; }
.rc-total { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 2px solid var(--film); }
.rc-total span { display: block; font-size: 0.82rem; color: #5b6375; }
.rc-total strong { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; }
.rc-keep { margin: 0.9rem 0 0.25rem; padding: 0.7rem 0.85rem; background: var(--savings-soft); color: #0f4f3e; border-radius: var(--radius-s); font-weight: 700; }
@media (prefers-color-scheme: dark) { .rc-keep { background: #dcefe8; } }
.rc-keep.loss { background: #fbe3e7; color: #8a2238; }
.rc-note { font-size: 0.82rem; color: #5b6375; margin: 0.4rem 0 1rem; min-height: 1em; }
.rc-cta { width: 100%; }
.receipt.printing .rc-lines li { animation: print 0.34s ease-out both; }
.receipt.printing .rc-lines li:nth-child(2) { animation-delay: 0.12s; }
.receipt.printing .rc-lines li:nth-child(3) { animation-delay: 0.24s; }
.receipt.printing .rc-lines li:nth-child(4) { animation-delay: 0.36s; }
.receipt.printing .rc-lines li:nth-child(5) { animation-delay: 0.48s; }
.receipt.printing .rc-total, .receipt.printing .rc-keep { animation: print 0.4s ease-out 0.6s both; }
@keyframes print { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-4px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.tally { animation: tally 0.5s ease-out; }
@keyframes tally { 0% { background: #fff3b0; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .receipt.printing .rc-lines li, .receipt.printing .rc-total, .receipt.printing .rc-keep, .tally { animation: none; } .receipt { transform: none; } }

/* shade guide navigation */
.shade-guide { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.6rem; }
.shade-guide li { margin: 0; }
.shade-guide a { display: flex; align-items: flex-end; min-height: 9.5rem; padding: 0.8rem 0.7rem 1.1rem; background: var(--shade); color: var(--film); text-decoration: none; border-radius: 10px 10px 46% 46% / 10px 10px 30% 30%; border: 1px solid rgba(23, 32, 51, 0.12); font-size: 0.95rem; line-height: 1.25; transition: transform 0.15s; }
.shade-guide a:hover { transform: translateY(-3px); color: var(--film); }
.shade-guide a span { font-weight: 700; }
@media (max-width: 900px) { .shade-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .shade-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shade-guide a { min-height: 6.5rem; } }
@media (prefers-reduced-motion: reduce) { .shade-guide a { transition: none; } }

/* steps (real sequences only) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; max-width: 52rem; }
.steps > li { counter-increment: s; position: relative; padding: 0.15rem 0 0.15rem 3.2rem; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-weight: 700; font-size: 0.95rem; }
.steps.how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: none; }
.steps.compact > li { padding-left: 2.6rem; }
.steps.compact > li::before { width: 1.8rem; height: 1.8rem; font-size: 0.85rem; }
@media (max-width: 800px) { .steps.how { grid-template-columns: 1fr; gap: 1rem; } }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0 0.75rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; font-size: var(--step--1); color: var(--muted); padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--step--1); color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 700; }
td.num { white-space: nowrap; }
td.src { font-size: var(--step--1); color: var(--muted); }
.native { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.unit { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.price-table.index td { font-size: 0.95rem; }
.mini-table th, .mini-table td { padding: 0.45rem 0.6rem; }

/* short answer + aside */
.answer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 1rem; }
.short-answer { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gum); padding: 0.4rem 1.25rem; border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.short-answer div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.short-answer div:last-child { border-bottom: 0; }
.short-answer dt { font-weight: 700; }
.short-answer dd { margin: 0; }
.quote-aside { background: var(--film); color: #fff; padding: 1.5rem; border-radius: var(--radius-m); position: sticky; top: 5.5rem; }
.quote-aside h2 { font-size: var(--step-2); }
.quote-aside a:not(.btn) { color: #fff; }
@media (max-width: 860px) { .answer-grid { grid-template-columns: 1fr; } .quote-aside { position: static; } .short-answer div { grid-template-columns: 1fr; gap: 0.2rem; } }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.75rem; font-size: var(--step-2); }
.prose.legal h2 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; }
.guide section + section { margin-top: 0.5rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.two-col h2 { font-size: var(--step-2); }
ul.ticks, ul.crosses { list-style: none; padding: 0; }
ul.ticks li, ul.crosses li { position: relative; padding-left: 1.6rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--savings); border-bottom: 2px solid var(--savings); transform: rotate(-45deg); }
ul.crosses li::before, ul.crosses li::after { content: ""; position: absolute; left: 0.15rem; top: 0.75em; width: 0.8rem; height: 2px; background: var(--gum); transform: rotate(45deg); }
ul.crosses li::after { transform: rotate(-45deg); }
.flag-box { background: var(--gum-soft); padding: 1.25rem 1.5rem; border-radius: var(--radius-m); }
.flag-box h2 { color: var(--gum-dark); }
@media (prefers-color-scheme: dark) { .flag-box h2 { color: #ffb3c1; } }
.callout { background: var(--enamel-2); border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--radius-m); max-width: 52rem; }
.qlist { max-width: 60ch; }
.cities div { padding: 0.4rem 0; }
.cities dt { font-weight: 700; }
.cities dd { margin: 0 0 0.3rem; }

/* lists of links */
.t-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.t-list li { margin: 0; border-bottom: 1px solid var(--line); }
.t-list a { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr) auto; gap: 1.25rem; padding: 1rem 0.25rem; text-decoration: none; align-items: baseline; }
.t-list a:hover .t-name { color: var(--gum); }
.t-name { font-family: var(--serif); font-size: var(--step-1); }
.t-desc { color: var(--muted); }
.t-price { font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .t-list a { grid-template-columns: 1fr; gap: 0.2rem; } }
.related, .dest-list { list-style: none; padding: 0; margin: 0; }
.related li { display: flex; flex-direction: column; padding: 0.55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.related li a { font-weight: 700; }
.related li span { color: var(--muted); font-size: var(--step--1); }
.dest-list li { margin: 0; border-bottom: 1px solid var(--line); }
.dest-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; text-decoration: none; }
.dest-list .t-name { font-family: var(--sans); font-size: var(--step-0); font-weight: 700; }
.dest-list .t-price { font-weight: 400; color: var(--muted); }
.community { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.community li { margin: 0; border-right: 1px solid var(--line); }
.community li:last-child { border-right: 0; }
.community a { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1rem 1.1rem 0; text-decoration: none; height: 100%; }
.community li + li a { padding-left: 1rem; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr 1fr; } .community li { border-right: 0; border-bottom: 1px solid var(--line); } .community li a { padding-left: 0 !important; } }
.tiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tiers li { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); }
.tiers.roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiers .t-price { color: var(--gum); }
@media (max-width: 860px) { .tiers, .tiers.roles { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); max-width: 52rem; }
.faq summary { cursor: pointer; padding: 0.9rem 2rem 0.9rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 0.9rem; margin: 0; max-width: 64ch; }

/* CTA panel */
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--film); color: #fff; padding: 2rem 2.25rem; border-radius: var(--radius-m); margin-block: 2.5rem; }
.cta-panel h2 { font-size: var(--step-3); margin-bottom: 0.25rem; }
.cta-panel p { margin: 0; color: #d6dbe6; max-width: 52ch; }
@media (max-width: 720px) { .cta-panel { flex-direction: column; align-items: flex-start; padding: 1.5rem; } }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 0.75rem; }
@media (max-width: 860px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }
.video { margin: 0; }
.video-facade, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video-facade .play { position: absolute; left: 50%; top: 50%; width: 4rem; height: 2.8rem; margin: -1.4rem 0 0 -2rem; background: var(--gum); border-radius: 12px; }
.video-facade .play::after { content: ""; position: absolute; left: 1.65rem; top: 0.8rem; border-style: solid; border-width: 0.6rem 0 0.6rem 1rem; border-color: transparent transparent transparent #fff; }
.video figcaption { font-size: var(--step--1); padding-top: 0.5rem; }
.video figcaption a { display: block; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.chip-btn { font: inherit; font-size: var(--step--1); padding: 0.45rem 0.9rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* news + tip */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list > li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.news-list > li > a { font-weight: 700; text-decoration: none; }
.news-list > li > a:hover { text-decoration: underline; }
.news-list .meta { display: block; font-size: var(--step--1); color: var(--muted); }
.news-list .empty ul { margin-top: 0.4rem; }
.tip-box { background: var(--enamel); color: var(--film); padding: 1.5rem; border-radius: 10px 10px 40% 40% / 10px 10px 18% 18%; }
.tip-box p[data-tip-big] { font-family: var(--serif); font-size: var(--step-2); line-height: 1.3; }
.tip-box .fine { color: #4a5263; }

/* forms */
.form { display: grid; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; }
.panel h2 { font-size: var(--step-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; font-size: 0.97rem; }
.req { color: var(--gum); }
.hint { font-size: var(--step--1); color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid #b9beb4; border-radius: var(--radius-s); padding: 0.65rem 0.75rem; width: 100%; min-height: 2.9rem; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #2747c9; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--gum); }
.field .err { color: var(--gum-dark); font-size: var(--step--1); }
@media (prefers-color-scheme: dark) { .field .err { color: #ffb3c1; } }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 1.2rem; height: 1.2rem; min-height: 0; margin-top: 0.2rem; flex: none; accent-color: var(--gum); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 0.5rem 0.95rem; border: 1.5px solid #b9beb4; border-radius: 999px; cursor: pointer; background: var(--bg); }
.chip input:checked + span { background: var(--film); color: #fff; border-color: var(--film); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
@media (prefers-color-scheme: dark) { .chip input:checked + span { background: var(--gum); border-color: var(--gum); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-status { min-height: 1.2em; margin: 0; font-weight: 700; }
.form-status.ok { color: var(--savings); }
.form-status.bad { color: var(--gum-dark); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
legend { font-family: var(--serif); font-size: var(--step-2); padding: 0; margin-bottom: 0.75rem; }
.form-done { background: var(--savings-soft); border-radius: var(--radius-m); padding: 1.5rem; }

/* quote funnel */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.75rem; }
.progress { height: 6px; background: var(--enamel); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--gum); transition: width 0.25s; }
.step-count { font-size: var(--step--1); color: var(--muted); margin: 0; }
.estimate { border: 2px dashed #c9ccc4; border-radius: var(--radius-s); padding: 1rem; display: none; }
.estimate.on { display: block; }
.estimate strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); display: block; }
.quote-side h2 { font-size: var(--step-1); font-family: var(--sans); font-weight: 700; margin-top: 1.25rem; }

/* tools */
.calc-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding: 1rem 0 2.5rem; }
@media (max-width: 900px) { .calc-page { grid-template-columns: 1fr; } }
.result .score { font-family: var(--serif); font-size: var(--step-4); line-height: 1; margin-bottom: 0.5rem; }
.result dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 700; }
.result .big { font-family: var(--serif); font-size: var(--step-3); }
.band { padding: 0.6rem 0.8rem; border-radius: var(--radius-s); font-weight: 700; }
.band.ok { background: var(--savings-soft); }
.band.mid { background: var(--enamel); color: var(--film); }
.band.bad { background: var(--gum-soft); }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { border-bottom: 1px solid var(--line); margin: 0; }
.checklist label { display: flex; gap: 0.75rem; padding: 0.7rem 0; cursor: pointer; }
.checklist input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; margin-top: 0.15rem; accent-color: var(--savings); }
.quiz { display: grid; gap: 1.75rem; }
.quiz-q legend { font-size: var(--step-1); }
.qn { display: block; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.quiz-result { margin-top: 2rem; }
.quiz-result ol { padding-left: 1.2em; }
.quiz-result li { margin-bottom: 1rem; }
.compare-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .compare-pick { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--film); color: #dfe3ec; margin-top: 3rem; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.foot-col h2 { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: #fff; margin-bottom: 0.6rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; color: #fff; }
.foot-brand .tip { font-size: var(--step--1); color: #b8c0d2; border-left: 2px solid var(--gum); padding-left: 0.75rem; }
.foot-legal { border-top: 1px solid #34405a; margin-top: 2rem; padding-top: 1.25rem; font-size: var(--step--1); color: #b8c0d2; }
.foot-legal p { max-width: 90ch; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* slide-in + cookie + search */
.slidein, .cookie { position: fixed; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(23, 32, 51, 0.5); border-radius: var(--radius-m); padding: 1rem 1.1rem; }
.slidein { right: 1rem; bottom: 1rem; width: min(22rem, calc(100% - 2rem)); }
.slidein p, .cookie p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.slidein-actions, .cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie { left: 1rem; bottom: 1rem; width: min(30rem, calc(100% - 2rem)); }
.cookie:not([hidden]) ~ .slidein { bottom: 9rem; }
.search { width: min(40rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem; background: var(--surface); color: var(--ink); }
.search::backdrop { background: rgba(23, 32, 51, 0.55); }
.search-form { display: flex; gap: 0.5rem; }
.search-results { list-style: none; padding: 0; margin: 0.75rem 0 0; max-height: 60vh; overflow: auto; }
.search-results li { margin: 0; border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: 0.6rem 0.25rem; text-decoration: none; }
.search-results span { display: block; font-size: var(--step--1); color: var(--muted); }

@media print { .topbar, .site-header, .site-footer, .slidein, .cookie, .cta-panel, .quote-aside { display: none !important; } }
