/* Web.Works design system
   Ultramarine registry console: one bold surface (the console), everything else quiet.
   Type: Archivo variable — width axis carries the voice (125 for display, 100 for text). */

:root {
  --ultra: #2335e8;
  --ultra-deep: #1824b3;
  --ultra-soft: #e8eafd;
  --ink: #0f1a3a;
  --ink-2: #414a6b;
  --ink-3: #6b7392;
  --mist: #f3f5fb;
  --line: #dadfee;
  --paper: #ffffff;
  --sun: #ffd84a;
  --ok: #0c7f49;
  --ok-soft: #e3f5ec;
  --warn: #a35f00;
  --warn-soft: #fff1d6;
  --bad: #bf2a3a;
  --bad-soft: #fde8ea;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 22px;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --step-6: clamp(2.6rem, 6.2vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper); font-variation-settings: "wdth" 100;
  font-feature-settings: "tnum" 0;
}
img, svg, video, iframe { max-width: 100%; }
a { color: var(--ultra); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ultra-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); font-variation-settings: "wdth" 118; font-weight: 800; }
h2 { font-size: var(--step-3); font-variation-settings: "wdth" 112; font-weight: 750; }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 104; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 40rem; }

/* ---------- top contact bar (required on every page) */
.topbar { background: var(--ink); color: #dfe3f3; font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem 1.25rem; padding: .45rem 0; text-align: center; }
.topbar a { color: var(--sun); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff3b8; }
.topbar-links { display: flex; gap: .5rem; }
.topbar .topbar-btn { color: #fff; background: var(--ultra); border-radius: 999px; padding: .18rem .8rem; font-weight: 650; line-height: 1.5; }
.topbar .topbar-btn:hover { background: var(--sun); color: var(--ink); text-decoration: none; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font-weight: 850; font-size: 1.45rem; letter-spacing: -0.03em; font-variation-settings: "wdth" 125; }
.logo:hover { color: var(--ink); }
.logo i { display: inline-block; width: .3em; height: .3em; background: var(--ultra); margin: 0 .08em; transform: translateY(-.02em); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: var(--radius-s); font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ultra); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.nav .btn { margin-left: .5rem; color: #fff; }
.nav .btn:hover { background: var(--ultra-deep); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: .4rem .7rem; font: inherit; font-weight: 600; color: var(--ink); }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ultra); padding-left: .75rem; }
  .nav .btn { margin: .75rem 0 0; text-align: center; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ultra); color: #fff; border: 0; border-radius: 999px; padding: .72rem 1.3rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--ultra-deep); color: #fff; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffe57d; color: var(--ink); }
.btn-small { padding: .42rem .85rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ---------- the console (home hero + tool heads) */
.console { background: var(--ultra); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.console::after { /* zone-file grid: the registry the console reads from */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.console > .wrap { position: relative; z-index: 1; }
.console h1 { font-size: var(--step-6); font-variation-settings: "wdth" 125; font-weight: 850; letter-spacing: -0.035em; line-height: .98; max-width: 15ch; margin-bottom: .35em; }
.console .lede { color: #dfe3ff; }
.console a { color: #fff; }
.console-form { display: flex; gap: .5rem; margin-top: 1.75rem; max-width: 52rem; background: #fff; border-radius: var(--radius-l); padding: .45rem; box-shadow: 0 18px 40px -18px rgba(5, 10, 60, .55); }
.console-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 700; font-variation-settings: "wdth" 115; color: var(--ink); padding: .5rem .9rem; letter-spacing: -0.01em; }
.console-form input::placeholder { color: #9aa1bd; font-weight: 600; }
.console-form input:focus { outline: none; }
.console-form:focus-within { box-shadow: 0 0 0 3px var(--sun), 0 18px 40px -18px rgba(5, 10, 60, .55); }
.console-form .btn { border-radius: calc(var(--radius-l) - 6px); padding-inline: 1.6rem; font-size: 1.05rem; }
.console-hints { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: #cfd5ff; font-size: var(--step--1); }
.console-hints button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .3rem .75rem; font: inherit; cursor: pointer; }
.console-hints button:hover { background: rgba(255,255,255,.22); }
.console-out { margin-top: 1.5rem; max-width: 52rem; }
.console .breadcrumbs, .console .breadcrumbs a { color: #dfe3ff; }
.console-small h1 { font-size: var(--step-5); max-width: 22ch; }
.console-small { padding: clamp(2rem, 4vw, 3.2rem) 0; }

/* ---------- record card (RDAP/DNS output) */
.record { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(15, 26, 58, .45); }
.record + .record { margin-top: .75rem; }
.record-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.record-name { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -0.02em; word-break: break-all; }
.record dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .35rem 1.25rem; margin: 0; }
.record dt { color: var(--ink-3); font-size: var(--step--1); padding-top: .15rem; }
.record dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.record .actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.record pre { background: var(--mist); padding: .9rem; border-radius: var(--radius-s); overflow: auto; font-size: .8rem; max-height: 22rem; }
@media (max-width: 560px) { .record dl { grid-template-columns: 1fr; } .record dt { padding-top: .5rem; } }

/* ---------- status pill: every domain on the site is a live object */
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .7rem .28rem .6rem; border-radius: 999px; font-size: var(--step--1); font-weight: 650; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status.info { background: var(--ultra-soft); color: var(--ultra-deep); }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ultra); color: var(--ultra-deep); }
.chip .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); }
.chip.ok .dot { background: var(--ok); } .chip.bad .dot { background: var(--bad); } .chip.warn .dot { background: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #e6e9f6; }
.section-ink a { color: var(--sun); }
.section-ink .muted { color: #a9b0cc; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--ink-3); }
.section-ink .section-head p { color: #a9b0cc; }
.page-head { padding: clamp(2rem, 4vw, 3.25rem) 0 1.25rem; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.breadcrumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: .75rem; }
.breadcrumbs a { color: var(--ink-3); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; background: #fff; }
.panel h3 { margin-bottom: .35em; }
.panel p:last-child { margin-bottom: 0; }
.panel-ultra { background: var(--ultra); color: #fff; border-color: var(--ultra); }
.panel-ultra a { color: #fff; }
.panel-sun { background: #fff8db; border-color: #f3df8e; }

/* ---------- tool directory: a registry listing, not a card kit */
.directory { border-top: 2px solid var(--ink); }
.directory a { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr auto; gap: 1.25rem; align-items: baseline; padding: 1.05rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.directory a:hover { background: var(--mist); }
.directory a:hover strong { color: var(--ultra); }
.directory strong { font-size: var(--step-1); font-variation-settings: "wdth" 112; font-weight: 750; }
.directory span { color: var(--ink-2); }
.directory em { font-style: normal; font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 720px) { .directory a { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- feed lists */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.feed li:first-child { padding-top: 0; }
.feed a.t { font-weight: 650; color: var(--ink); text-decoration: none; font-size: 1.05rem; line-height: 1.35; }
.feed a.t:hover { color: var(--ultra); text-decoration: underline; }
.feed .meta { font-size: var(--step--1); color: var(--ink-3); margin-top: .2rem; }
.feed p { margin: .35rem 0 0; color: var(--ink-2); font-size: .97rem; }
.section-ink .feed li { border-color: #2a3560; }
.section-ink .feed a.t { color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .38rem .9rem; font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- video */
.video { display: block; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink) center / cover no-repeat; cursor: pointer; border: 0; width: 100%; padding: 0; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(15, 26, 58, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.yt:hover::after { background-color: var(--ultra); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { font-size: 1.02rem; margin: .65rem 0 .2rem; font-variation-settings: "wdth" 100; }
.video .meta { font-size: var(--step--1); color: var(--ink-3); }

/* ---------- forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .96rem; display: block; margin-bottom: .3rem; }
.hint { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--step--1); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c3c9de; border-radius: var(--radius-s); padding: .65rem .8rem; line-height: 1.4;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ultra); box-shadow: 0 0 0 3px var(--ultra-soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ultra); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .9rem 1rem; border-radius: var(--radius-s); font-weight: 550; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.bad { background: var(--bad-soft); color: var(--bad); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; font-weight: 400; background: #fff; }
.choice strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.choice input:checked + span { border-color: var(--ultra); box-shadow: 0 0 0 2px var(--ultra); background: var(--ultra-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: var(--step-1); margin-bottom: .75rem; padding: 0; }

/* stepper — the lead funnel is a real sequence, so it is numbered */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; counter-reset: s; }
.steps li { flex: 1; counter-increment: s; font-size: var(--step--1); color: var(--ink-3); padding-top: .65rem; border-top: 4px solid var(--line); }
.steps li::before { content: counter(s) ". "; font-weight: 700; }
.steps li.on { color: var(--ink); border-color: var(--ultra); font-weight: 650; }
.steps li.done { border-color: var(--ink); }
.step[hidden] { display: none; }

/* ---------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: auto !important; }
  table.stack thead { display: none; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: .55rem 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: .2rem .8rem; }
}

/* ---------- prose (guides, legal) */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--ultra); background: var(--mist); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose table { margin: 1.25rem 0; }
.prose .table-wrap table { margin: 0; }
.prose code { background: var(--mist); padding: .1rem .35rem; border-radius: 4px; font-size: .92em; }
.prose pre { background: var(--ink); color: #e6e9f6; padding: 1rem; border-radius: var(--radius-s); overflow: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc ol { margin: .25rem 0 0; }
.aside-sticky { position: sticky; top: 92px; }

/* ---------- stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stats div { padding: 1rem 1rem 1rem 0; }
.stats b { display: block; font-size: var(--step-3); font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- meter */
.meter { height: .65rem; background: var(--mist); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ultra); border-radius: 999px; }
.score-big { font-size: var(--step-6); font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .75rem 1rem; font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ultra); }
.tab-panel[hidden] { display: none; }

/* ---------- checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: .75rem; padding: .7rem 0; font-weight: 400; cursor: pointer; margin: 0; }
.checklist input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ok); flex: none; }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ok); }

/* ---------- details / faq */
details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 700; color: var(--ultra); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-top: .6rem; color: var(--ink-2); }

/* ---------- tiers */
.tier { display: flex; flex-direction: column; }
.tier .price { font-size: var(--step-3); font-weight: 800; font-variation-settings: "wdth" 115; margin: .25rem 0 .75rem; }
.tier .price small { font-size: var(--step--1); font-weight: 500; color: var(--ink-3); }
.tier ul { padding-left: 1.1rem; margin: 0 0 1.25rem; color: var(--ink-2); flex: 1; }
.tier .btn { align-self: flex-start; }
.tier.featured { border: 2px solid var(--ultra); }

/* ---------- footer */
.site-footer { background: var(--ink); color: #c9cfe6; padding: 3.25rem 0 2rem; margin-top: 0; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; font-variation-settings: "wdth" 110; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: .4rem 0; }
.site-footer .logo { color: #fff; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2a3560; font-size: var(--step--1); color: #9aa2c4; display: grid; gap: .4rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- cookie notice */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 34rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 20px 50px -20px rgba(15,26,58,.5); font-size: .94rem; }
.cookie p { margin: 0 0 .7rem; }

/* ---------- misc */
.badge { display: inline-block; font-size: var(--step--1); font-weight: 650; padding: .15rem .55rem; border-radius: var(--radius-s); background: var(--mist); color: var(--ink-2); }
.notice { border-left: 4px solid var(--sun); background: #fffbea; padding: .9rem 1.1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-enter { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.empty { padding: 2rem; text-align: center; color: var(--ink-3); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }
.brief-date { font-size: var(--step-5); font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -0.035em; line-height: 1; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
@media print { .topbar, .site-header, .site-footer, .cookie, .no-print { display: none !important; } body { font-size: 12pt; } }
