/* Safe Steps public website — shared by index.html and privacy-policy.html.
   Colours come from the logo: sky blue, sunshine yellow, leaf green. */

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --text: #0f1f33;
  --text-2: #3d4f66;
  --muted: #6a7b90;
  --border: #dbe5f0;
  --blue: #1a6fd1;
  --blue-strong: #0f58b0;
  --blue-soft: #e3effd;
  --yellow: #f7b918;
  --yellow-soft: #fff4d4;
  --green: #4f9d1f;
  --green-soft: #e6f5dc;
  --red: #d8342c;
  --red-soft: #fde7e5;
  --road: #26303d;
  --shadow: 0 1px 2px rgba(15, 31, 51, 0.05), 0 8px 24px rgba(15, 31, 51, 0.06);
  --radius: 16px;
  --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320;
    --surface: #111c2c;
    --surface-2: #16233a;
    --text: #e8eef6;
    --text-2: #b7c4d4;
    --muted: #8595a9;
    --border: #22324a;
    --blue: #5aa2f2;
    --blue-strong: #7db6f5;
    --blue-soft: #15294a;
    --yellow: #f7c542;
    --yellow-soft: #33290d;
    --green: #7cc450;
    --green-soft: #17301a;
    --red: #f06a62;
    --red-soft: #3a1a1a;
    --road: #0a0f17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1320;
  --surface: #111c2c;
  --surface-2: #16233a;
  --text: #e8eef6;
  --text-2: #b7c4d4;
  --muted: #8595a9;
  --border: #22324a;
  --blue: #5aa2f2;
  --blue-strong: #7db6f5;
  --blue-soft: #15294a;
  --yellow: #f7c542;
  --yellow-soft: #33290d;
  --green: #7cc450;
  --green-soft: #17301a;
  --red: #f06a62;
  --red-soft: #3a1a1a;
  --road: #0a0f17;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-strong); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 46px; height: auto; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
@media (min-width: 900px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.975rem;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #06172e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06172e; } }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

/* ── Sections ───────────────────────────────────────────── */
section { scroll-margin-top: 84px; }
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 8px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.075rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
@media (min-width: 768px) { .hero { padding-top: 80px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.01em; }
.hero h1 .hl { color: var(--blue); }
.hero-lead { margin-top: 20px; font-size: 1.15rem; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--text-2); font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.hero-art { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.hero-art::before {
  content: ''; position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--yellow) 35%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-art img { position: relative; width: 100%; filter: drop-shadow(0 18px 30px rgba(15, 31, 51, 0.18)); }

/* The zebra crossing that closes the hero */
.zebra {
  margin-top: 56px; height: 64px; background: var(--road);
  background-image: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.92) 28px 64px);
  background-size: 100% 36px; background-repeat: no-repeat; background-position: center;
}
@media (min-width: 768px) { .zebra { margin-top: 72px; } }

/* ── Cards / grids ──────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.975rem; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
}
.icon-tile svg { width: 26px; height: 26px; }
.tile-blue { background: var(--blue-soft); color: var(--blue); }
.tile-yellow { background: var(--yellow-soft); color: #b07d00; }
:root[data-theme="dark"] .tile-yellow { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-yellow { color: var(--yellow); } }
.tile-green { background: var(--green-soft); color: var(--green); }
.tile-red { background: var(--red-soft); color: var(--red); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
:root[data-theme="dark"] .step-num { color: #06172e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-num { color: #06172e; } }

/* Journey route */
.route { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
@media (min-width: 768px) { .route { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.route li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
@media (min-width: 768px) {
  .route li { flex-direction: column; text-align: center; gap: 10px; position: relative; font-size: 0.95rem; }
  .route li:not(:last-child)::after {
    content: ''; position: absolute; top: 22px; left: calc(50% + 30px); right: calc(-50% + 30px);
    border-top: 3px dashed var(--border);
  }
}
.route .dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border); color: var(--blue);
}
.route .dot svg { width: 22px; height: 22px; }

.challenge { display: flex; flex-direction: column; }
.challenge-tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* Rubric */
.rubric-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .rubric-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.criteria li { display: flex; gap: 16px; align-items: flex-start; }
.criteria .pts {
  flex-shrink: 0; min-width: 58px; text-align: center; padding: 6px 8px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 0.9rem;
}
.criteria strong { display: block; color: var(--text); }
.criteria span { color: var(--text-2); font-size: 0.95rem; }

.grades { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.grades th, .grades td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.grades th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.grades tr:last-child td { border-bottom: 0; }
.grade-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; color: #fff;
}
.g-a { background: var(--green); } .g-b { background: var(--blue); } .g-c { background: #c98c00; } .g-d { background: var(--red); }
:root[data-theme="dark"] .grade-badge { color: #0b1320; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grade-badge { color: #0b1320; } }
.grades .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); font-weight: 600; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.check-green svg { color: var(--green); }
.check-red svg { color: var(--red); }

/* Privacy band */
.privacy-band {
  display: grid; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  border: 1px solid var(--border); border-radius: 24px; padding: 32px 24px;
}
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; padding: 48px; } }
.privacy-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 8px 0 14px; }
.privacy-band p { color: var(--text-2); }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.contact-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.contact-card a { display: block; font-weight: 600; font-size: 1.05rem; word-break: break-all; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.footer-links a { color: var(--text-2); }

/* ── Privacy policy page ────────────────────────────────── */
.policy-hero { padding: 48px 0 32px; }
.policy-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-top: 14px; }
.policy-hero p { margin-top: 14px; color: var(--text-2); max-width: 760px; }
.policy-hero .updated { font-size: 0.9rem; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: 0.8rem; font-weight: 700;
}
.pill svg { width: 16px; height: 16px; }

.policy-layout { display: grid; gap: 32px; padding-bottom: 72px; }
@media (min-width: 1024px) { .policy-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; } }
.toc { display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc-inner { position: sticky; top: 92px; }
.toc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a {
  display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 0.9rem;
}
.toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--muted); }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.policy-body {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 20px; display: grid; gap: 44px;
}
@media (min-width: 640px) { .policy-body { padding: 40px; } }
.policy-body h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-bottom: 14px; }
.policy-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.policy-body .prose { display: grid; gap: 14px; color: var(--text-2); font-size: 0.975rem; line-height: 1.75; }
.policy-body .prose strong { color: var(--text); }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before {
  content: ''; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.bullets.never li::before { background: var(--green); }
.data-group { border: 1px solid var(--border); background: var(--bg); border-radius: 14px; padding: 18px 20px; }
.data-group .why { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.data-group .why b { color: var(--text-2); }
.data-group .bullets { font-size: 0.925rem; }
.callout { border: 1px solid var(--border); background: var(--surface-2); border-radius: 14px; padding: 16px 18px; }

@media print {
  .site-header, .toc, .no-print, .zebra { display: none !important; }
  body { background: #fff; color: #000; }
  .policy-body { border: 0; padding: 0; }
  .policy-layout { display: block; }
  a { color: #000; }
}
