/* Parent Solution Circles
   Three candidate visual styles, switched with data-theme on <html>:
     calm  (default) — sage & sand, serif headings, soft rounded shapes
     clear           — muted blue & cream, sans headings, crisp NHS-like shapes
     warm            — terracotta & oat, rounded headings, extra-soft shapes
   System fonts only: no third-party font requests, nothing that sends visitor data elsewhere. */

/* ---------- Theme: Calm (default) ---------- */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --panel: #f3ece0;          /* alternating section background */
  --panel-strong: #e8dcc8;
  --primary: #3f6b5c;        /* buttons, icons */
  --primary-text: #335a4d;   /* links and small coloured text: AA on bg and panel */
  --primary-deep: #274539;   /* headings, dark banner */
  --primary-tint: #e3ece7;
  --primary-soft: #7fa493;
  --accent: #c9a97a;
  --text: #2b2b2b;
  --muted: #55524d;
  --line: #e2d9cb;
  --header-bg: rgba(250, 247, 242, 0.94);
  --banner-text: #dfe7e2;
  --todo: #fff3b0;

  --radius: 18px;
  --radius-sm: 10px;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 8px 24px rgba(43, 43, 43, 0.06);
  --max: 1080px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --head-weight: 600;
  --head-spacing: -0.01em;
}

/* ---------- Theme: Clear ---------- */
:root[data-theme="clear"] {
  --bg: #fbf9f4;
  --panel: #eef3f7;
  --panel-strong: #dce8f0;
  --primary: #2f5d7c;
  --primary-text: #2a5572;
  --primary-deep: #1d3a4f;
  --primary-tint: #e2edf4;
  --primary-soft: #7fa3bd;
  --accent: #e0b04c;
  --text: #24303a;
  --muted: #4c5763;
  --line: #d5dee6;
  --header-bg: #ffffff;
  --banner-text: #d9e5ee;

  --radius: 6px;
  --radius-sm: 4px;
  --btn-radius: 6px;
  --shadow: none;

  --font-head: var(--font-body);
  --head-weight: 700;
  --head-spacing: -0.02em;
}

/* ---------- Theme: Warm ---------- */
:root[data-theme="warm"] {
  --bg: #faf6f0;
  --panel: #f5ebe0;
  --panel-strong: #f1e2d3;
  --primary: #9a4a2e;
  --primary-text: #7e3a22;
  --primary-deep: #5c2a18;
  --primary-tint: #f6e6dc;
  --primary-soft: #d49a7c;
  --accent: #e6b35a;
  --text: #2e2622;
  --muted: #5a4d45;
  --line: #eadccd;
  --header-bg: rgba(250, 246, 240, 0.94);
  --banner-text: #f3e2d7;

  --radius: 28px;
  --radius-sm: 18px;
  --btn-radius: 999px;
  --shadow: 0 2px 4px rgba(92, 42, 24, 0.04), 0 12px 32px rgba(92, 42, 24, 0.08);

  --font-head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", var(--font-body);
  --head-weight: 700;
  --head-spacing: 0;
}

*,
*::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: 1.125rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.2;
  color: var(--primary-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--primary-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--primary-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--primary-deep); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* "Still in development" strip shown above the header while the site is a test version */
.dev-banner {
  background: var(--todo); color: #2b2b2b; text-align: center;
  padding: 10px 20px; font-size: 0.95rem; line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* Placeholder content still to be supplied — easy to spot while reviewing */
.todo { background: var(--todo); color: #2b2b2b; padding: 0 4px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem;
  color: var(--primary-deep); text-decoration: none; line-height: 1.2;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: var(--primary-text); text-decoration: underline; }
@media (max-width: 860px) { .site-nav { display: none; } .header-inner .btn { margin-left: auto; } }
@media (max-width: 480px) {
  .header-inner { gap: 12px; min-height: 60px; }
  .brand { font-size: 1rem; }
  .brand svg { width: 28px; height: 28px; }
  .hide-sm { display: none; }
}

/* Shared SVG artwork picks up the theme colours */
.art-bg { fill: var(--panel); }
.art-ring { fill: none; stroke: var(--panel-strong); }
.art-centre-outer { fill: var(--panel-strong); }
.art-centre { fill: var(--accent); }
.art-a { fill: var(--primary); }
.art-b { fill: var(--primary-soft); }
.logo-bg { fill: var(--primary-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--btn-radius); border: 2px solid var(--primary);
  background: var(--primary); color: #fff;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary-text); }
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary-text); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.1rem; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }
.section-alt { background: var(--panel); }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-text);
}
.section-intro { max-width: 680px; margin-bottom: 44px; }
.section-intro p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-tint); color: var(--primary-deep);
  padding: 6px 14px; border-radius: var(--btn-radius); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 22px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-kicker {
  font-size: 1.05rem; font-weight: 600; color: var(--primary-text);
  margin: 0 0 14px; letter-spacing: 0.01em;
}
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 1rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.hero-art { justify-self: center; width: 100%; max-width: 400px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* On phones the words and the register button come first; the artwork sits below */
  .hero-art { max-width: 200px; }
  .lead { font-size: 1.125rem; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }

.icon-dot {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-deep); margin-bottom: 16px;
}
.icon-dot svg { width: 24px; height: 24px; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits svg { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: 3px; }

.not-box { background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
.not-box ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font: var(--head-weight) 1.15rem var(--font-head);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps li { padding: 0 0 0 66px; min-height: 60px; }
}

/* ---------- Groups ---------- */
.group-card { display: flex; flex-direction: column; }
.group-card .age { font-size: 0.95rem; font-weight: 600; color: var(--primary-text); margin-bottom: 6px; }
.group-card .meta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--muted);
}
.topics-heading { margin-top: 56px; }

/* ---------- Topics ---------- */
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.topics li {
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: var(--btn-radius); font-size: 1rem;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.portrait {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--panel-strong); display: grid; place-items: center;
  color: var(--primary-deep); font: 600 2rem var(--font-head);
  border: 6px solid var(--surface); box-shadow: var(--shadow);
}
:root[data-theme="clear"] .portrait { border-radius: var(--radius); }
.credentials { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 1rem; }
.credentials li { display: flex; gap: 10px; }
.credentials svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 4px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 180px; }
}

/* ---------- Pilot banner ---------- */
.pilot-section { padding-top: 0; }
.pilot {
  background: var(--primary-deep); color: var(--banner-text);
  border-radius: var(--radius); padding: 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.pilot h2 { color: #fff; }
.pilot p { color: var(--banner-text); margin-bottom: 0; }
.pilot .btn { background: #fff; color: var(--primary-deep); border-color: #fff; }
.pilot .btn:hover { background: var(--panel-strong); border-color: var(--panel-strong); }
@media (max-width: 760px) { .pilot { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; color: var(--primary-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Register ---------- */
.register-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 48px; text-align: center; max-width: 760px; margin: 0 auto;
}
.register-card .btn { margin: 12px 0 20px; }
.reassure {
  display: flex; gap: 12px; text-align: left;
  background: var(--primary-tint); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 1rem; color: var(--primary-deep); margin: 24px 0 0;
}
.reassure p { margin: 0; }
.reassure svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.small { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 640px) { .register-card { padding: 32px 22px; } .register-card .btn { white-space: normal; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: 0.95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.footer-name { color: var(--primary-deep); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Prose (privacy page) ---------- */
.prose { padding: 56px 0 88px; }
.prose h1 { margin-bottom: 0.3em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.notice {
  background: var(--todo); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 1rem; margin: 20px 0 32px;
}
