/* The Centre Hub: dark only (the owner's call, 2026-10-10: the dark version reads best and a
   light mode adds nothing for this audience). Colours come from logo 3 (indigo to teal ring,
   coral centre) plus a blue between them, lightened for a dark background.
   WCAG 2.2 AA, checked by contrast ratio, not by eye (tools/check.mjs recomputes the pairs):
   body text 16.2:1, muted text at least 7.8:1, accent text at least 7.1:1, white on every button
   and gradient at least 5.6:1 (the gradient's teal end is darkened to #0a7470 for that; the
   logo's #11a5a0 gave white only 3.0:1), and dark text on the step numbers (white on coral was
   3.0:1). Decorative motion stops within five seconds (2.2.2 Pause, Stop, Hide) and is off for
   prefers-reduced-motion, except the orbits around the logo, which loop with no pause control: an
   accepted breach of 2.2.2 Pause, Stop, Hide (the owner's call, 2026-10-10), limited by turning
   them off entirely for prefers-reduced-motion; focus outlines are 3px coral (7.8:1) and the sticky header never
   covers a focused element (2.4.11). CSS only, because the CSP in _headers allows no scripts. */
:root {
  --bg: #0e1024;
  --surface: #161935;
  --tint: #121531;
  --band: #12152f;
  --text: #eceef8;
  --muted: #a9aecb;
  --line: #2a2e54;
  --indigo: #a3a1f5;
  --teal: #45d3c6;
  --coral: #f48a70;
  --blue: #7db3f2;
  --ink: #0e1024;
  --btn: linear-gradient(135deg, #3b3a8f, #245a9e 55%, #0a7470);
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 10px 30px rgb(0 0 0 / 0.25);
  --shadow-lift: 0 2px 6px rgb(0 0 0 / 0.4), 0 20px 44px rgb(0 0 0 / 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* The sticky header is about 4.5rem tall; anchors and focused elements land below it. */
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); overflow-x: clip; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.6rem 1rem; border-radius: 8px; background: var(--coral); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Header: sticky, translucent over the page. */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem)); background: rgb(14 16 36 / 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.12rem; }
.top nav { display: flex; gap: 0.4rem 1.25rem; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 0.25rem 0; transition: color 0.2s; }
.top nav a:hover { color: var(--text); }
.top nav a.cta { color: #fff; background: var(--btn); padding: 0.42rem 1.05rem; border-radius: 999px; }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.tint, .band { max-width: none; }
.tint { background: var(--tint); }
.band { background: var(--band); }
.inner { max-width: calc(1120px - 2.5rem); margin: 0 auto; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0.3rem 0 1.1rem; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 0.6rem; letter-spacing: -0.015em; line-height: 1.2; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; line-height: 1.3; }
.kicker { margin: 0 0 0.3rem; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); background: linear-gradient(90deg, var(--indigo), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-lead { color: var(--muted); max-width: 46rem; margin: 0 0 2.2rem; font-size: 1.05rem; }
.fine { color: var(--muted); font-size: 0.92rem; margin-top: 1.5rem; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 1120px; margin: 0 auto; padding: 4rem 1.25rem 3rem; }
.glow { position: absolute; inset: -20% -30% auto auto; width: 70%; height: 140%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgb(17 165 160 / 0.22), transparent 70%), radial-gradient(closest-side at 30% 70%, rgb(91 89 200 / 0.24), transparent 70%), radial-gradient(closest-side at 70% 30%, rgb(239 111 83 / 0.14), transparent 70%); filter: blur(10px); animation: drift 5s ease-out both; }
.eyebrow { color: var(--coral); font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.85rem; margin: 0; }
.grad { color: var(--teal); background: linear-gradient(90deg, var(--indigo), var(--teal) 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 38rem; }
.hero-art { position: relative; justify-self: center; width: min(340px, 72vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark { width: 82%; position: relative; z-index: 1; filter: drop-shadow(0 0 40px rgb(69 211 198 / 0.25)); animation: float 2.5s ease-in-out 2; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgb(69 211 198 / 0.45); animation: orbit 40s linear infinite; }
.orbit.o2 { inset: 12%; border-style: dotted; border-color: rgb(244 138 112 / 0.5); animation-duration: 28s; animation-direction: reverse; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 2.5rem; } .hero-art { order: -1; width: 170px; justify-self: center; } }

/* Buttons: white text on the darkened gradient is at least 5.6:1 along its whole length. */
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.75rem 1.45rem; border-radius: 999px; color: #fff; background: var(--btn); box-shadow: 0 8px 22px rgb(0 0 0 / 0.35); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 12px 28px rgb(10 116 112 / 0.4); }
.button.ghost { background: none; color: var(--indigo); border: 2px solid var(--indigo); box-shadow: none; }
.button.ghost:hover { background: rgb(163 161 245 / 0.1); filter: none; }
.button.big { font-size: 1.15rem; padding: 0.95rem 1.9rem; }
.button.light { background: #ffffff; color: #3b3a8f; }

/* Cards: each takes one accent colour for its top bar, icon chip and price line. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; }
.card { --accent: var(--indigo); --accent-raw: 163 161 245; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), rgb(var(--accent-raw) / 0.3)); }
.card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--accent-raw) / 0.14), transparent); transition: transform 0.4s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgb(var(--accent-raw) / 0.45); }
.card:hover::after { transform: scale(1.4); }
.c-indigo { --accent: var(--indigo); --accent-raw: 163 161 245; }
.c-teal { --accent: var(--teal); --accent-raw: 69 211 198; }
.c-coral { --accent: var(--coral); --accent-raw: 244 138 112; }
.c-blue { --accent: var(--blue); --accent-raw: 125 179 242; }
.icon { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; margin-bottom: 0.9rem; background: rgb(var(--accent-raw) / 0.14); color: var(--accent); }
.icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); }
.card .price { margin-top: 0.9rem; font-weight: 700; color: var(--accent); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.about-text p { color: var(--muted); }
.stats { display: grid; gap: 1rem; }
.stat { display: flex; align-items: center; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.stat .big { font-size: 2.4rem; font-weight: 800; line-height: 1; min-width: 4.2rem; color: var(--from); background: linear-gradient(135deg, var(--from), var(--to)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span:last-child { color: var(--muted); }
.s-indigo { --from: #a3a1f5; --to: #7db3f2; }
.s-teal { --from: #45d3c6; --to: #7db3f2; }
.s-coral { --from: #f48a70; --to: #f2a3c0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Steps: dark numbers on light gradients, at least 6.3:1. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.15rem; margin-top: 1.8rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.step p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; color: var(--ink); font-weight: 800; margin-bottom: 0.7rem; background: linear-gradient(135deg, #f48a70, #f2a3c0); }
.step:nth-child(2) .num { background: linear-gradient(135deg, #45d3c6, #7db3f2); }
.step:nth-child(3) .num { background: linear-gradient(135deg, #a3a1f5, #45d3c6); }

/* Contact: a gradient card; all its text is pure white for at least 5.6:1. */
.contact-card { text-align: center; color: #fff; border-radius: 24px; padding: 3.5rem 1.5rem; background: var(--btn); box-shadow: 0 20px 50px rgb(0 0 0 / 0.45); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: 6%; bottom: -80px; background: radial-gradient(closest-side, rgb(239 111 83 / 0.45), transparent); pointer-events: none; }
.contact-card h2 { color: #fff; }
.contact-card p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.contact-card .fine { color: #fff; }
/* The form sits on the gradient card: dark fields with a white 2px edge, so each field's boundary
   is at least 5.6:1 against the card (WCAG 1.4.11) and the typed text 16:1 against the field. */
.contact-form { max-width: 40rem; margin: 1.6rem auto 0; text-align: left; }
.contact-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.contact-form p, .contact-form .field { max-width: none; margin: 0 0 1rem; }
.contact-form .send { text-align: center; margin-top: 0.5rem; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: #fff; }
.contact-form .opt { font-weight: 400; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 2px solid #ffffff; border-radius: 10px; padding: 0.65rem 0.8rem; }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
/* The honeypot: off screen and out of the tab order, so only form-filling bots complete it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 3rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.foot a { display: inline-block; padding: 0.3rem 0; }
a:focus-visible, .skip:focus { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Motion: decorative animations end within five seconds, except the orbits, which loop (the
   accepted 2.2.2 breach above). */
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes drift { from { opacity: 0; transform: translate(4%, -6%) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
