/* Spenlow website — no external resources, no cookies, no analytics. */

:root {
  color-scheme: light;

  --blue: #1A56DB;
  --blue-hover: #1447b8;
  --coral: #D64545;
  --emerald: #10B981;
  --amber: #F59E0B;

  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F6;
  --tint: #EFF4FE;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --border: #E5E7EB;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --measure: 68ch;
  --page: 1080px;

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --blue: #8AB0FA;
    --blue-hover: #A6C4FC;
    --coral: #F08A8A;
    --emerald: #4ADE9F;
    --amber: #FBBF4C;

    --bg: #0E1116;
    --surface: #161A21;
    --surface-alt: #1C222B;
    --tint: #182234;
    --text: #E8EAEE;
    --text-secondary: #AEB6C2;
    --text-tertiary: #8B94A3;
    --border: #262D38;
  }
}

* { box-sizing: border-box; }

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

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

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

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

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  display: block;
  width: 28px;
  height: 28px;
}

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-left: 22px;
}
nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--blue); }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 380px at 50% -160px, var(--tint), transparent 70%),
    var(--bg);
}

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 20ch;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 12px;
}

.hero .fineprint {
  font-size: 15px;
  color: var(--text-tertiary);
  max-width: 60ch;
  margin: 22px 0 0;
}

/* ---------- sections ---------- */

section { padding: 62px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 10px;
}

h3 {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.section-lede {
  color: var(--text-secondary);
  max-width: var(--measure);
  margin: 0 0 34px;
}

p { max-width: var(--measure); }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  word-break: break-all;
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* ---------- callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.callout > :first-child { margin-top: 0; }

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  max-width: var(--measure);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
}

.checks li.warn::before { background: var(--amber); }
.checks li strong { color: var(--text); font-weight: 600; }

/* ---------- policy pages ---------- */

.doc { padding: 52px 0 76px; }

.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 10px; }

.updated {
  color: var(--text-tertiary);
  font-size: 15px;
  margin: 0 0 30px;
}

.doc h2 {
  font-size: 1.3rem;
  margin: 44px 0 12px;
  padding-top: 6px;
}

.doc h3 { margin: 26px 0 6px; }

.doc p, .doc li { color: var(--text-secondary); }
.doc strong { color: var(--text); font-weight: 600; }

.doc ul { max-width: var(--measure); padding-left: 22px; }
.doc li { margin-bottom: 7px; }

.doc .intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 8px;
}
.doc .intro p { margin: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 30px 0 8px;
}
.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 10px;
  padding: 0;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 34px;
  font-size: 15px;
}
.toc li { margin-bottom: 5px; break-inside: avoid; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
  font-size: 15px;
  color: var(--text-tertiary);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}

footer.site nav a { margin-right: 20px; }
footer.site p { margin: 0; max-width: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 54px 0 46px; }
  section { padding: 48px 0; }
  .callout { padding: 24px; }
  .toc ol { columns: 1; }
  nav.site a { margin-left: 16px; }
}

.mt { margin-top: 26px; }
