/* Site - trust-forward editorial design system.
   Ported from the Design/Site-prototype.html mockup. */

:root {
  --ground: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #20242b;
  --ink-soft: #4b515c;
  --muted: #6a7180;
  --faint: #9aa1ac;
  --border: #e8e3d8;
  --accent: #1c8f5a;
  --accent-ink: #123f2f;
  --accent-tint: #e9f4ee;
  --accent-line: #b7ddc9;
  --gold: #a9752a;
  --gold-ink: #8a5a17;
  --gold-tint: #f4ead6;
  --ring-track: #e5dfd2;
  --danger: #b3403a;
  --danger-tint: #fbebea;
  --shadow: 0 1px 2px rgba(31,29,23,.05), 0 18px 44px -24px rgba(31,29,23,.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191a1d;
    --surface: #232529;
    --surface-2: #1f2023;
    --ink: #e9e6df;
    --ink-soft: #bcc1c8;
    --muted: #969ba4;
    --faint: #6d727a;
    --border: #34363c;
    --accent: #2ba86e;
    --accent-ink: #94e4ba;
    --accent-tint: #16352a;
    --accent-line: #2f5c48;
    --gold: #cc9a4d;
    --gold-ink: #e0b878;
    --gold-tint: #38301f;
    --ring-track: #3a3c42;
    --danger: #e08983;
    --danger-tint: #3a201f;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 18px 44px -24px rgba(0,0,0,.65);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Libre Franklin', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

.topbar {
  height: 68px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--ink); }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { font-size: 14px; color: var(--ink-soft); font-weight: 450; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 720px) { .topnav a { display: none; } }

.btn {
  font-size: 15px; font-weight: 600; border-radius: 10px; padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; white-space: nowrap; transition: transform .04s ease, filter .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.link-btn { background: none; border: 0; font-size: 14px; color: var(--muted); cursor: pointer; padding: 0; }
.link-in { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.link-in:hover { text-decoration: underline; }

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

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input, .sel {
  font-family: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); width: 100%;
}
.input:focus, .sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field-error { font-size: 13px; color: var(--danger); }
.input.input-invalid, .sel.input-invalid { border-color: var(--danger); }
.validation-summary { background: var(--danger-tint); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--danger); }
.validation-summary ul { margin: 0; padding-left: 18px; }

.wizard-step[hidden] { display: none; }
.wizard-step + .wizard-step { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.wizard-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.slider-row { display: flex; flex-direction: column; gap: 14px; }
.slider-scale { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--ring-track); outline: none; }
.slider-scale::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.slider-scale::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); }
.slider-value { display: flex; align-items: baseline; gap: 8px; }
.slider-value .num { width: auto; height: auto; border-radius: 0; background: none; padding: 0; font-family: 'Newsreader', serif; font-size: 40px; font-weight: 600; color: var(--ink); }

.progress { flex: 1; height: 6px; border-radius: 999px; background: var(--ring-track); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .45s cubic-bezier(.4,0,.2,1); }

.pill-trust { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }

.mono {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center; font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; flex-shrink: 0;
}
.ring { width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ring-track) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.facts > div { background: var(--surface); padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }

.num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

.spinner { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ring-track); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.step-line { opacity: 0; animation: rise .55s ease forwards; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: spin 2s linear infinite; }
  .step-line { animation: none; opacity: 1; }
  .btn:active { transform: none; }
}

.ftr { background: var(--surface); border-top: 1px solid var(--border); margin-top: 24px; }
.ftr .wrap { padding: 56px 0 40px; }
.ftr-top { display: flex; flex-wrap: wrap; gap: 40px 72px; justify-content: space-between; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 36px 60px; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; min-width: 104px; }
.ftr-col h4 { font-family: 'Libre Franklin', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0; }
.ftr-col a { font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.ftr-col a:hover { color: var(--ink); text-decoration: none; }
.ftr-bar { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; }

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.prose h2 { font-size: 21px; margin-top: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.prose li { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 600; }

.h1 { font-size: clamp(34px, 6vw, 54px); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; gap: 22px; } }
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .rev-grid { grid-template-columns: 1fr; } }
