:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --surface: #ffffff;
  --text: #13202e;
  --muted: #536274;
  --border: #d9e1ea;
  --primary: #0f2a43;
  --primary-text: #ffffff;
  --accent: #0d7f72;
  --accent-soft: #e3f4f1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #2f6fdb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 16px rgba(16, 32, 48, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1620;
    --bg-alt: #121e2a;
    --surface: #152230;
    --text: #e6edf4;
    --muted: #9db0c3;
    --border: #26384a;
    --primary: #3fc1b0;
    --primary-text: #08201c;
    --accent: #5fd3c3;
    --accent-soft: #143a36;
    --danger: #ff8a80;
    --danger-soft: #3a1b1b;
    --focus: #8ab4ff;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; margin: 0; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 550; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"]:not(.button) { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.button) { text-decoration: underline; text-underline-offset: 6px; }
.badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 6px 8px; cursor: pointer; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 0 16px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav .button { text-align: center; margin-top: 8px; }
}

/* Buttons */
.button {
  display: inline-block; background: var(--primary); color: var(--primary-text); border: 2px solid var(--primary);
  padding: 12px 22px; border-radius: 10px; font-family: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.12); }
.button:disabled { opacity: .6; cursor: wait; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button-ghost:hover { border-color: var(--accent); filter: none; }
.button-small { padding: 8px 14px; font-size: .95rem; }
.site-nav a.button { color: var(--primary-text); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.actions.center { justify-content: center; }
.text-link { font-weight: 600; }
.grid + p { margin-top: 20px; }

/* Sections */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { max-width: 860px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.page-head { padding: 56px 0 24px; }
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
@media (min-width: 720px) { .section { padding: 64px 0; } }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2em; color: var(--muted); }
.callout { border-color: var(--accent); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

.solution { display: grid; gap: 24px; }
@media (min-width: 860px) { .solution { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.facts dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 14px; }
.facts dd:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "âœ“"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* Form */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { color: var(--muted); font-size: .92rem; margin: -2px 0 8px; }
.field-error { color: var(--danger); font-size: .92rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; }
.checkbox label { font-weight: 400; margin: 0; }
.checkbox .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.notice-error { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
main { flex: 1 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: var(--bg-alt); }
.footer-inner { display: grid; gap: 24px; margin-bottom: 16px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; align-content: start; }
.site-footer nav a { color: var(--text); }
/* FDE SHOP page: link out to the live shop */
.shop-link-row { margin: 24px 0 8px; }
