/* ===========================================================================
   Prompt Mega - design system  ·  "Refined Editorial"
   Warm paper surfaces, Schibsted Grotesk display + Hanken Grotesk body,
   deep teal + burnt clay accents. Flat fills, hairline rules, soft depth,
   staggered page-load reveal. No gradients, no glassmorphism, no purple.
   =========================================================================== */

:root {
  /* Surfaces (warm paper) */
  --bg:        #f7f3ea;
  --surface:   #fffdf8;
  --surface-2: #fbf8f1;
  --surface-3: #f0ece0;

  /* Ink / text */
  --ink:       #1c211d;
  --ink-soft:  #46514a;
  --muted:     #7b837b;

  /* Lines */
  --line:      #e4ddcd;
  --line-2:    #d4cbb6;

  /* Accent (teal) */
  --accent:        #0e6b62;
  --accent-hover:  #0b524b;
  --accent-press:  #093f39;
  --accent-soft:   #e3efec;
  --accent-line:   #b9d8d2;

  /* Secondary highlight (clay) */
  --clay:      #b5530f;
  --clay-soft: #f7e7d8;

  /* States */
  --danger:      #b42318;
  --danger-soft: #fbeae8;
  --ok:          #1a7f55;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 33, 29, .05);
  --shadow:    0 18px 40px -24px rgba(28, 33, 29, .30);
  --shadow-lg: 0 26px 60px -28px rgba(28, 33, 29, .34);

  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1; margin: 0 0 .5em;
  font-weight: 600; letter-spacing: -.018em;
  font-optical-sizing: auto;
}
h1 em, h2 em { font-style: normal; font-weight: 600; color: var(--accent); }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Page-load reveal ---------- */
@keyframes pm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 234, .86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-mark.small { width: 26px; height: 26px; font-size: .85rem; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav-settings { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); }
.nav-settings.key-set { border-color: var(--accent-line); color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: .16s ease;
  text-decoration: none; line-height: 1;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { background: var(--accent-press); transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-subtle { background: transparent; color: var(--ink-soft); border-color: transparent; padding: 10px 16px; }
.btn-subtle:hover { background: var(--surface-3); color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Generic blocks ---------- */
.site-main { min-height: 60vh; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay); flex: none; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 60px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); max-width: 16ch; letter-spacing: -.03em; }
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 15px; font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.badge svg { color: var(--accent); }

/* staggered reveal on the hero */
.hero-copy > * { opacity: 0; animation: pm-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .04s; }
.hero-copy > *:nth-child(2) { animation-delay: .11s; }
.hero-copy > *:nth-child(3) { animation-delay: .19s; }
.hero-copy > *:nth-child(4) { animation-delay: .27s; }
.hero-illustration { opacity: 0; animation: pm-rise .7s cubic-bezier(.2, .7, .2, 1) .26s forwards; }
.hero-badges { opacity: 0; animation: pm-rise .7s cubic-bezier(.2, .7, .2, 1) .36s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-illustration, .hero-badges { animation: none; opacity: 1; }
}

/* ---------- Generator grid / cards ---------- */
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gen-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: .2s ease; color: var(--ink);
}
.gen-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(14, 107, 98, .5); border-color: var(--accent); color: var(--ink); }
.gen-card.soon { opacity: .72; cursor: default; }
.gen-card.soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.gen-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.gen-icon svg { width: 26px; height: 26px; }
/* alternate every other card to clay for editorial rhythm */
.gen-card:nth-child(even) .gen-icon { background: var(--clay-soft); color: var(--clay); }
.gen-card:nth-child(even):hover { border-color: var(--clay); box-shadow: 0 22px 40px -26px rgba(181, 83, 15, .5); }
.gen-card:nth-child(even) .gen-cta { color: var(--clay); }
.gen-card h3 { font-size: 1.32rem; margin: 0; }
.gen-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; flex: 1; }
.gen-card .gen-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: .92rem; }
.tag {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--clay-soft); color: var(--clay); padding: 4px 9px; border-radius: 6px;
}

/* ---------- Steps / feature rows ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 26px; }
.step-num {
  display: block; width: auto; height: auto; margin: 0 0 6px;
  background: none; color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Generator form ---------- */
.gen-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; padding-bottom: 80px; }
.gen-main { min-width: 0; }

.field-group { margin-bottom: 14px; }
.field-group > summary, .group-head {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 18px 22px; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
}
.field-group > summary::-webkit-details-marker { display: none; }
.field-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.group-index {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 700; font-family: var(--font-display);
}
.group-chevron { margin-left: auto; color: var(--muted); transition: transform .2s; }
.field-group[open] .group-chevron { transform: rotate(180deg); }
.group-body { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
.group-body .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-top: 18px; }
.field label.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.field .req { color: var(--clay); margin-left: 2px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.field.span-2 { grid-column: 1 / -1; }

input[type="text"], textarea, select {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: .15s;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b837b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}

/* chips (multiselect) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; user-select: none;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft);
  font-size: .88rem; font-weight: 500; transition: .12s;
}
.chip:hover { border-color: var(--accent-line); color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.checked { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); font-weight: 600; }
.chip.checked::before { content: "✓"; font-weight: 700; }

/* radio pills */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft);
  font-size: .9rem; font-weight: 500;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill.checked { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Sidebar (sticky generate) ---------- */
.gen-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 22px; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.side-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 16px; }
.provider-line { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); }
.provider-line.ok { background: var(--accent-soft); color: var(--accent-hover); }
.provider-line.warn { background: var(--clay-soft); color: var(--clay); }
.provider-line .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: flex-start; margin-top: 5px; }
.provider-line-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.provider-line-model { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; opacity: .85; word-break: break-all; }
.provider-line.ok .dot { background: var(--ok); }
.provider-line.warn .dot { background: var(--clay); }

/* ---------- Result ---------- */
.result-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 80px; }
.result-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.result-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.result-toolbar .spacer { flex: 1; }
.result-prompt {
  margin: 0; padding: 26px 28px; white-space: pre-wrap; word-wrap: break-word;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--ink);
}

/* Rendered Markdown */
.result-prompt.md { white-space: normal; }
.result-prompt.md > :first-child { margin-top: 0; }
.result-prompt.md > :last-child { margin-bottom: 0; }
.result-prompt.md h1, .result-prompt.md h2, .result-prompt.md h3,
.result-prompt.md h4, .result-prompt.md h5, .result-prompt.md h6 {
  font-family: var(--font-display); line-height: 1.2; margin: 1.2em 0 .45em;
}
.result-prompt.md h1 { font-size: 1.5rem; }
.result-prompt.md h2 { font-size: 1.25rem; }
.result-prompt.md h3 { font-size: 1.08rem; }
.result-prompt.md h4 { font-size: 1rem; }
.result-prompt.md p { margin: 0 0 .9em; }
.result-prompt.md ul, .result-prompt.md ol { margin: 0 0 .9em; padding-left: 1.4em; }
.result-prompt.md li { margin-bottom: .35em; }
.result-prompt.md li::marker { color: var(--accent); }
.result-prompt.md strong { font-weight: 600; color: var(--ink); }
.result-prompt.md code {
  background: var(--surface-3); padding: .1em .36em; border-radius: 4px;
  font-size: .9em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.result-prompt.md pre.md-code {
  background: var(--surface-3); padding: 14px 16px; border-radius: var(--radius-sm);
  overflow: auto; margin: 0 0 .9em; white-space: pre;
}
.result-prompt.md pre.md-code code { background: none; padding: 0; }
.result-prompt.md blockquote {
  margin: 0 0 .9em; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent-line); color: var(--ink-soft);
}
.result-prompt.md hr { border: none; border-top: 1px solid var(--line); margin: 1.2em 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spec-recap { padding: 22px 24px; }
.spec-recap h3 { font-size: 1rem; }
.spec-recap dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .9rem; }
.spec-recap dt { color: var(--muted); font-weight: 500; }
.spec-recap dd { margin: 0; color: var(--ink-soft); }

/* ---------- Loading ---------- */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 80px 20px; text-align: center; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: var(--danger-soft); border-color: #f0c8c4; color: var(--danger); }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.alert strong { display: block; margin-bottom: 2px; }

/* ---------- Settings ---------- */
.settings-card { max-width: 640px; padding: 30px; }
.settings-card h2 { font-size: 1.4rem; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 4px; }
.radio-card {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; text-align: center; transition: .12s;
}
.radio-card:hover { border-color: var(--accent-line); }
.radio-card.checked { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc-name { font-weight: 600; font-size: .95rem; }
.radio-card .rc-sub { font-size: .78rem; color: var(--muted); }
.key-row { display: flex; gap: 10px; }
.key-row input { flex: 1; }
.test-result { font-size: .9rem; font-weight: 500; margin-top: 14px; padding: 0; min-height: 1.2em; }
.test-result:empty { display: none; }
.test-result.pending { color: var(--ink-soft); }
.test-result.ok { color: var(--ok); }
.test-result.err { color: var(--danger); }
.privacy-note { font-size: .85rem; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 18px; }
.privacy-note svg { color: var(--accent); vertical-align: -3px; margin-right: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Consent banner (Consent Mode v2) ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(28, 33, 29, .08);
}
.consent-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.consent-text { margin: 0; flex: 1; min-width: 240px; font-size: .9rem; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 600px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- About ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; color: var(--ink-soft); }
.prose li::marker { color: var(--accent); }
.prose p { color: var(--ink-soft); }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--ink); }
.faq-item p { margin: 0; }

/* ---------- Illustrations / two-column rows ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-illustration { display: block; width: 100%; max-width: 520px; height: auto; justify-self: end; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature .prose { max-width: none; }
.feature-illustration { display: block; width: 100%; max-width: 440px; height: auto; justify-self: center; }
.feature.reverse .feature-illustration { order: -1; }
.prose .eyebrow + h2 { margin-top: 6px; }
@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 30px; }
  .hero-illustration { justify-self: center; max-width: 560px; }
  .feature.reverse .feature-illustration { order: 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.footer-note { margin: 0; font-size: .85rem; color: var(--muted); max-width: 52ch; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); font-size: .9rem; }
.footer-disclaimer { margin: 0; padding: 18px 0 24px; font-size: .76rem; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .gen-layout { grid-template-columns: 1fr; }
  .gen-side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .radio-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 4px;
    display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .group-body .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 48px 0; }
}
