/* Layout: two-column hero (choice + order panel | live document preview), then one
   renewal walkthrough that follows the physician/dentist choice, then FAQ. */
:root {
  --bg: #f3f6fa;          /* cool clinical white */
  --surface: #ffffff;     /* panels */
  --ink: #0f2540;         /* navy text: the trust colour */
  --muted: #536479;
  --rule: #d6dfea;
  --accent: #1d4f8f;      /* registry blue: actions */
  --accent-strong: #163d70;
  --accent-soft: #e5eef9;
  --stamp: #1d4f8f;       /* the "Issued" seal, in the same blue */
  --focus: #e0a42b;       /* warm focus ring, visible on blue */
  --doc-bg: #ffffff;      /* the report stays paper in both themes */
  --doc-ink: #0f2540;
  --doc-muted: #66768a;
  --doc-rule: #d6dfea;
  --doc-font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --typewriter: "Courier Prime", "Courier New", monospace;
  --radius: 12px;
  --radius-sm: 7px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a2b; --surface: #15243a; --ink: #e8eef6; --muted: #9fb0c6; --rule: #263a55;
    --accent: #7eb0ee; --accent-strong: #a3c7f3; --accent-soft: #1a3152; --stamp: #1d4f8f; --focus: #e0a42b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a2b; --surface: #15243a; --ink: #e8eef6; --muted: #9fb0c6; --rule: #263a55;
  --accent: #7eb0ee; --accent-strong: #a3c7f3; --accent-soft: #1a3152; --stamp: #1d4f8f; --focus: #e0a42b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.hidden { display: none !important; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.head-note { font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; padding-block: 28px 72px; }
.hero > * { min-width: 0; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 20px; max-width: 16ch; }

.tagline { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 44ch; }
.tagline strong { color: var(--ink); font-weight: 600; }

/* the one bold control: who are you */
.who { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; margin: 0 0 14px; max-width: 100%; }
.who button {
  font: inherit; font-weight: 600; font-size: 15px; border: 0; border-radius: 999px; padding: 9px 18px;
  background: none; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.who button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.who-line { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; min-height: 3.1em; }
.who-line strong { color: var(--ink); font-weight: 600; }

/* ---------- order panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; max-width: 560px; }
.panel h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.01em; }
.panel .hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.panel form { display: grid; }

label.field { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.row { display: flex; gap: 10px; }
.row > input { min-width: 0; }
input[type="text"], input[type="email"] {
  flex: 1; width: 100%; font: inherit; font-size: 18px; padding: 13px 14px;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
input::placeholder { color: var(--muted); opacity: 0.8; }
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.btn {
  font: inherit; font-weight: 600; font-size: 17px; border: 0; border-radius: var(--radius-sm);
  padding: 13px 20px; cursor: pointer; background: var(--accent); color: #fff; white-space: nowrap;
}
:root[data-theme="dark"] .btn { color: #0b1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0b1626; } }
.btn:hover { background: var(--accent-strong); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.block { width: 100%; padding: 15px 20px; display: block; text-align: center; text-decoration: none; }
.btn.quiet { background: none; color: var(--accent); padding: 6px 0; font-size: 15px; }
.btn.quiet:hover { background: none; text-decoration: underline; }

.status-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--stamp); font-size: 15px; margin: 12px 0 0; }
.note { background: var(--accent-soft); color: var(--ink); font-size: 14px; border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px 0 0; }

.results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.result {
  width: 100%; text-align: left; font: inherit; background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; color: var(--ink);
}
.result:hover { border-color: var(--accent); }
.result strong { display: block; font-size: 15px; line-height: 1.3; }
.result span { font-size: 14px; color: var(--muted); }

.confirm-box { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.confirm-box strong { display: block; line-height: 1.3; }
.confirm-box span { font-size: 14px; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 14px 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.price-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.price-line strong { color: var(--ink); font-size: 17px; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* product choice */
.choice { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.choice legend { font-size: 14px; font-weight: 600; margin: 0 0 8px; padding: 0; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.opt-name { font-weight: 600; line-height: 1.3; }
.opt-for { grid-column: 2 / 4; font-size: 14px; color: var(--muted); line-height: 1.4; }
.opt-price { font-weight: 700; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.opt:has(input:checked) .badge { background: var(--surface); }

/* documents & prices */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.doc-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.doc-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.doc-card .price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.doc-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.doc-card p { margin: 0; color: var(--muted); font-size: 15px; }
.doc-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink); font-size: 15px; display: grid; gap: 4px; }

/* ---------- the document preview ---------- */
.doc-stage { position: relative; }
.doc {
  position: relative; background: var(--doc-bg); color: var(--doc-ink);
  border: 1px solid var(--doc-rule); border-radius: 3px; padding: 32px 30px 40px;
  box-shadow: 0 24px 50px -30px rgba(10, 30, 35, 0.45);
  font: 14px/1.6 var(--typewriter);
}
.doc { font-family: var(--doc-font); overflow: hidden; }
.doc-meta { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--doc-ink); margin: 0 0 26px; text-align: right; }
.doc-head { margin: 0 0 28px; }
.doc-issuer { font: 700 15px/1.2 var(--font); letter-spacing: -0.01em; color: var(--doc-ink); border-left: 3px solid var(--doc-ink); padding-left: 10px; }
.doc-title { font: 600 26px/1.15 var(--font); letter-spacing: -0.01em; margin: 0 0 10px; }
.doc-asof { font-size: 12px; color: var(--doc-ink); margin: 0 0 22px; text-transform: none; overflow-wrap: anywhere; }
.doc dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); row-gap: 3px; column-gap: 16px; font-size: 12.5px; line-height: 1.45; }
.doc dt { font-weight: 600; color: var(--doc-ink); }
.doc dd { margin: 0; overflow-wrap: anywhere; }
.doc dd.filled, .doc-asof span.filled { animation: ink 0.5s ease-out; }
@keyframes ink { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.doc-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; font-size: 10.5px; color: var(--doc-muted); }
.watermark {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%) rotate(-24deg);
  font: 700 76px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--doc-ink); opacity: 0.06; pointer-events: none; white-space: nowrap;
}
.stamp {
  position: absolute; right: 26px; bottom: 30px; font: 700 18px/1 var(--font); color: var(--stamp);
  border: 3px double var(--stamp); border-radius: 999px; padding: 10px 16px;
  transform: rotate(-9deg); opacity: 0.85;
}
.stamp.hidden-stamp { opacity: 0; transform: rotate(-9deg) scale(1.6); }
.stamp.press { animation: press 0.42s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes press { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 0.85; transform: rotate(-9deg) scale(1); } }
.doc-caption { font-size: 13px; color: var(--muted); margin: 14px 2px 0; }

/* ---------- sections ---------- */
.band { border-top: 1px solid var(--rule); }
.band > .wrap { padding-block: 64px; }
h2.section-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; max-width: 24ch; }
.section-lede { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.steps li.ours::before { background: var(--accent); color: var(--surface); }
.steps h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps li.ours h3 { color: var(--accent); }
.source-note { font-size: 13px; color: var(--muted); margin: 28px 0 0; max-width: 70ch; }

.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq-list details p { color: var(--muted); margin: 10px 0 0; max-width: 64ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.site-foot .wrap { padding-block: 36px 48px; }
.site-foot p { margin: 0 0 6px; max-width: 70ch; }

/* ---------- order status page ---------- */
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.progress li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.progress .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); margin-top: 2px; display: grid; place-items: center; }
.progress li.done { color: var(--ink); }
.progress li.done .dot { background: var(--accent); border-color: var(--accent); }
.progress li.done .dot::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.progress li.active { color: var(--ink); font-weight: 600; }
.progress li.active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; }
  .doc-stage { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: 1fr; }
  .head-note { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .row { flex-direction: column; }
  .panel { padding: 18px; }
  .steps { grid-template-columns: 1fr; }
  .who button { padding: 9px 12px; font-size: 14px; }
  .doc { padding: 22px 16px 30px; }
  .doc dl { grid-template-columns: 1fr; row-gap: 0; }
  .doc dd { margin-bottom: 6px; }
  .watermark { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stamp.press { opacity: 0.85; transform: rotate(-9deg); }
}
