/* ==========================================================================
   base.css: design tokens, reset, type, buttons, layout helpers
   Shared by every page.
   ========================================================================== */

:root {
  --navy: #15213b;          /* headings, buttons, dark band */
  --navy-2: #24314d;
  --text: #2b3445;          /* body copy */
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;       /* alternate section background */
  --peach: #ffe2b8;         /* highlight behind words / labels */
  --green: #1f7a5a;         /* links, progress, kicker */
  --red: #c0352b;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .14);
  --wrap: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* word highlight, e.g. "actually pay off" */
.hl { background: var(--peach); border-radius: 8px; padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, .opt:focus-visible, .entry-toggle:focus-visible {
  outline: 3px solid #7aa7ff; outline-offset: 2px;
}

.text-link { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

/* ---------- site header ---------- */
.site-header { border-bottom: 1px solid var(--line-2); background: #fff; position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 17px; color: var(--navy); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo .hl { border-radius: 5px; padding: 1px 5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 28px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { font-size: 14px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-underline-offset: 3px; }

/* "No cookies, no tracking" notice (once per browser) */
.storage-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 380px;
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; font-size: 13.5px; color: var(--text);
}
.storage-notice a { color: var(--navy); font-weight: 600; }
.storage-notice .btn { flex: none; }
@media (max-width: 560px) { .storage-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* demo-mode notice (only shown while Google Sheets isn't connected) */
.demo-note { background: #fff7e8; border-bottom: 1px solid #f3dfb8; color: #7a5410; font-size: 13px; text-align: center; padding: 7px 16px; }
.demo-note[hidden] { display: none; }

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav a:not(.btn) { display: none; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
