/* ---------- Design tokens ---------- */
:root {
  --ink: #0F172A;          /* slate 900 — headings */
  --text: #334155;         /* slate 700 — body */
  --muted: #64748B;        /* slate 500 — small print (4.7:1 on white) */
  --line: #E2E8F0;         /* slate 200 — dividing lines */
  --tint: #F8FAFC;         /* slate 50 — quiet panels */
  --white: #FFFFFF;
  --accent: #2563EB;       /* electric blue — the only accent (5.2:1 on white) */
  --accent-hover: #1D4ED8;
  --accent-soft: #EFF6FF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 760px;
  --gutter: 16px;
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 10px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--white); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
  max-width: 1040px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo:hover { color: var(--ink); }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.hero { padding: 56px 0 64px; }
.hero h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); letter-spacing: -0.03em; max-width: 16ch; }
.hero-sub { margin: 20px 0 28px; font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero .btn { width: 100%; }
.small-print { margin-top: 12px; font-size: .9rem; color: var(--muted); }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }

.label {
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
h2.label { line-height: 1.4; }
.section h2:not(.label) { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: 16px; }
.lead { font-size: 1.1rem; max-width: 38em; }

/* How it works */
.steps { list-style: none; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; align-content: start; }
.step-num {
  grid-row: span 2;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: var(--accent);
}
.steps h3 { font-size: 1.1rem; margin: 5px 0 6px; }

/* Common questions — tap a question to open its answer */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 12px 16px;
  font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: var(--accent); border: 1.5px solid var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 16px 16px; }

/* Final call to action */
.cta h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.cta .lead { margin-bottom: 24px; }
.cta .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .92rem; color: var(--muted); }
.footer-inner { display: grid; gap: 12px; max-width: 1040px; }
.footer-company { color: var(--text); }
.footer-contact, .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Legal pages (privacy, terms, cookies) ---------- */
.legal-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: -0.025em; }
.legal-hero p:not(.eyebrow) { margin-top: 10px; color: var(--text); }
.legal-hero p.legal-updated { font-size: .9rem; color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.legal-body { padding: 32px 0 56px; }
.legal-card h2 { font-size: 1.35rem; margin: 0 0 12px; }
.legal-card h3 { font-size: 1.05rem; margin: 28px 0 6px; }
.legal-card > h3:first-child, .legal-section > h3:first-child { margin-top: 0; }
.legal-card p + p, .legal-card ul + p, .legal-card p + ul { margin-top: 12px; }
.legal-card ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.legal-intro { font-size: 1.05rem; }
.legal-section + .legal-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.legal-back { margin-top: 36px; }
.site-footer a[aria-current="page"] { color: var(--accent); font-weight: 600; }
/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; --header-h: 72px; }
  .hero { padding: 96px 0 88px; }
  .hero .btn, .cta .btn { width: auto; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 14px; }
  .steps h3 { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
