/*
Theme Name: EduAPI
Theme URI: https://eduapi.co.uk
Author: EduAPI
Author URI: https://eduapi.co.uk
Description: A clean, modern, business-focused theme for EduAPI — a UK education data platform providing fast, reliable API access to Ofsted and education datasets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduapi
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  /* Brand blue */
  --brand-50:  #eff5ff;
  --brand-100: #dbe7fe;
  --brand-200: #bfd3fe;
  --brand-300: #93b4fd;
  --brand-400: #6090fa;
  --brand-500: #3b6df6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* Ink / neutral */
  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-softer: #f1f5fb;
  --line: #e7ecf3;
  --line-strong: #d8e0ec;

  /* Surfaces & accents (flip in dark mode) */
  --surface: #ffffff;
  --surface-2: #f4f8ff;
  --header-bg: rgba(255, 255, 255, 0.82);
  --input-bg: #ffffff;
  --accent-soft-bg: var(--brand-50);
  --accent-soft-border: var(--brand-100);
  --accent-icon: var(--brand-700);
  --accent-text: var(--brand-700);
  --hero-a: #fbfdff;
  --hero-b: #ffffff;
  --media-a: #fbfdff;
  --media-b: #eef3fc;

  /* Code block */
  --code-bg: #0b1220;
  --code-surface: #0f1a30;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 30, 60, 0.18), 0 4px 10px -6px rgba(15, 30, 60, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 60, 0.28), 0 12px 24px -12px rgba(15, 30, 60, 0.12);
  --ring: 0 0 0 4px rgba(37, 99, 235, 0.15);

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

  --container: 1140px;
  --container-wide: 1240px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-icon); filter: brightness(1.08); }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.14;
  font-weight: 720;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.28rem; letter-spacing: -0.015em; }

p { color: var(--ink-600); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 76px); }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-500); }

.lead { font-size: 1.2rem; color: var(--ink-500); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.65); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink-800);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { color: var(--ink-900); border-color: var(--brand-300); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { color: var(--brand-700); background: var(--brand-50); }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { color: var(--brand-800); transform: translateY(-1px); }
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,0.16); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(37,99,235,0.7);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand span b { color: var(--brand-700); }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-600);
  font-weight: 550;
  font-size: 0.97rem;
}
.primary-nav a:hover { color: var(--ink-900); background: var(--bg-softer); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--brand-700); }

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

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink-800); }

@media (max-width: 940px) {
  .primary-nav, .header-actions .btn-demo-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 16px; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 24px 22px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: 12px 12px; border-radius: 10px; color: var(--ink-800); font-weight: 550; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .btn { margin-top: 14px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 100px);
  background:
    radial-gradient(1200px 420px at 82% -8%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(900px 380px at 8% 8%, rgba(59,109,246,0.07), transparent 55%),
    linear-gradient(180deg, var(--hero-a), var(--hero-b) 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-top: 22px; }
.hero .sub { margin-top: 22px; font-size: 1.2rem; color: var(--ink-500); max-width: 34ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-500); font-size: 0.92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--brand-600); }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 560;
  color: var(--ink-600);
  box-shadow: var(--shadow-xs);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,109,246,0.18); }

/* Hero illustration */
.hero-illustration { position: relative; }

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; color: var(--ink-500); }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft-bg);
  color: var(--accent-icon);
  border: 1px solid var(--accent-soft-border);
  margin-bottom: 18px;
}
.icon-badge svg { width: 23px; height: 23px; }

/* Access list */
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.access-item {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 560;
  color: var(--ink-800);
  box-shadow: var(--shadow-xs);
}
.access-item .tick {
  flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft-bg); color: var(--accent-icon);
  display: grid; place-items: center;
  border: 1px solid var(--accent-soft-border);
}
.access-item .tick svg { width: 15px; height: 15px; }
.soon-note {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--accent-soft-bg);
  border: 1px dashed var(--accent-soft-border);
  border-radius: var(--radius-full);
  color: var(--accent-text);
  font-weight: 560;
  font-size: 0.92rem;
}

/* Feature list (checklist) */
.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand-600); color: #fff; display: grid; place-items: center; margin-top: 1px;
}
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list strong { color: var(--ink-900); font-weight: 620; display: block; }
.feature-list span.desc { color: var(--ink-500); font-size: 0.96rem; }

/* Pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-weight: 550; font-size: 0.95rem; color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}
.pill svg { width: 17px; height: 17px; color: var(--brand-600); }

/* =========================================================================
   Code block
   ========================================================================= */
.code-window {
  border-radius: var(--radius);
  background: var(--code-bg);
  border: 1px solid #1c2942;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: var(--code-surface);
  border-bottom: 1px solid #1c2942;
}
.code-dots { display: flex; gap: 7px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-dots i:nth-child(1){ background:#ff5f56; } .code-dots i:nth-child(2){ background:#ffbd2e; } .code-dots i:nth-child(3){ background:#27c93f; }
.code-file { margin-left: 6px; color: #93a3bd; font-family: var(--font-mono); font-size: 0.8rem; }
.code-copy { margin-left: auto; color: #93a3bd; font-family: var(--font-mono); font-size: 0.76rem; }
.code-window pre {
  margin: 0; padding: 22px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: #cdd9ee;
}
.code-window code { font-family: inherit; }
.tok-key   { color: #7fb0ff; }
.tok-str   { color: #7ee0b8; }
.tok-num   { color: #ffcf8e; }
.tok-punc  { color: #6f83a6; }
.tok-meth  { color: #c9a4ff; font-weight: 600; }
.tok-path  { color: #7ee0b8; }
.tok-hdr   { color: #7fb0ff; }
.tok-cmt   { color: #5c6f92; font-style: italic; }

/* =========================================================================
   Steps (How it works)
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-xs);
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 720; font-size: 1.1rem;
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 8px 16px -8px rgba(37,99,235,0.7);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.98rem; color: var(--ink-500); }

/* =========================================================================
   Split / alternating feature rows
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse .split-media { order: 2; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.split .eyebrow + h2 { margin-top: 12px; }
.split p.intro { margin-top: 16px; font-size: 1.08rem; color: var(--ink-500); }
.split .feature-list { margin-top: 24px; }

.media-panel {
  background: linear-gradient(160deg, var(--media-a), var(--media-b));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--brand-300);
  box-shadow: 0 22px 48px -22px rgba(37,99,235,0.5);
  position: relative;
}
.price-card.featured::after {
  content: "Most popular";
  position: absolute; top: -12px; left: 26px;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: var(--radius-full);
  box-shadow: 0 8px 16px -8px rgba(37,99,235,0.7);
}
.price-name { font-size: 1.16rem; font-weight: 700; color: var(--ink-900); }
.price-desc { margin-top: 6px; font-size: 0.92rem; color: var(--ink-500); min-height: 40px; }
.price-value { margin-top: 18px; font-size: 1.5rem; font-weight: 760; color: var(--ink-900); letter-spacing: -0.02em; }
.price-value small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-400); letter-spacing: 0; margin-top: 2px; }
.price-card .feature-list { margin-top: 22px; margin-bottom: 26px; }
.price-card .feature-list li { font-size: 0.94rem; }
.price-card .feature-list .tick { width: 20px; height: 20px; background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border); color: var(--accent-icon); }
.price-card .feature-list .tick svg { width: 12px; height: 12px; }
.price-card .btn { margin-top: auto; }
.pricing-note {
  margin-top: 32px; text-align: center; color: var(--ink-500);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(150deg, var(--brand-700), var(--brand-900));
  color: #fff;
  padding: clamp(44px, 6vw, 68px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity:.5; pointer-events:none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 16px auto 0; position: relative; font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .feature-list { margin-top: 28px; }
.contact-cards { margin-top: 32px; display: grid; gap: 14px; }
.contact-line { display: flex; gap: 13px; align-items: center; color: var(--ink-700); font-weight: 550; }
.contact-line .icon-badge { margin-bottom: 0; width: 40px; height: 40px; }
.contact-line .icon-badge svg { width: 19px; height: 19px; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-800); margin-bottom: 7px; }
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 0.98rem;
  color: var(--ink-900);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--ring);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-600); }
.consent label { font-size: 0.88rem; color: var(--ink-500); font-weight: 450; line-height: 1.5; }
.form-alert {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  font-weight: 550; margin-bottom: 24px;
}
.form-alert svg { width: 22px; height: 22px; flex: none; color: #059669; }
.form-alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.form-alert.error svg { color: #dc2626; }
.field-error { display: block; color: #dc2626; font-size: 0.82rem; margin-top: 6px; font-weight: 550; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-xs);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 620; color: var(--ink-900); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-600); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-500); font-size: 0.98rem; }

/* =========================================================================
   Logos / stat strip
   ========================================================================= */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 780; color: var(--ink-900); letter-spacing: -0.03em; }
.stat .num b { color: var(--brand-600); }
.stat .label { color: var(--ink-500); font-size: 0.95rem; margin-top: 4px; }

/* =========================================================================
   Page hero (interior pages)
   ========================================================================= */
.page-hero {
  padding-top: clamp(52px, 7vw, 84px);
  padding-bottom: clamp(40px, 5vw, 60px);
  background:
    radial-gradient(900px 340px at 80% -20%, rgba(37,99,235,0.09), transparent 60%),
    linear-gradient(180deg, var(--hero-a), var(--hero-b));
  text-align: center;
}
.page-hero .container { max-width: 780px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 4.4vw, 3rem); }
.page-hero p { margin-top: 18px; font-size: 1.18rem; color: var(--ink-500); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-500); font-size: 0.95rem; max-width: 30ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-600);
  transition: all .15s ease;
}
.footer-social a:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-400); font-weight: 650; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--ink-600); font-size: 0.96rem; font-weight: 500; }
.footer-col a:hover { color: var(--brand-700); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--ink-400); font-size: 0.9rem;
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-500); }

/* =========================================================================
   Prose (legal pages)
   ========================================================================= */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-600); margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose a { text-decoration: underline; }

/* =========================================================================
   Utilities & animation
   ========================================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .sub { max-width: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
}

/* =========================================================================
   Cookie consent banner
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(440px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: cookie-in .35s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { padding: 22px 22px 20px; }
.cookie-text strong { display: block; color: var(--ink-900); font-size: 1.02rem; font-weight: 680; margin-bottom: 6px; }
.cookie-text p { color: var(--ink-500); font-size: 0.9rem; line-height: 1.55; }
.cookie-text a { color: var(--accent-text); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { flex: 1; padding: 11px 16px; font-size: 0.92rem; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* =========================================================================
   Theme toggle button
   ========================================================================= */
.theme-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent-soft-border); background: var(--bg-softer); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
.mobile-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); }
.mobile-theme span { font-weight: 550; color: var(--ink-700); }

/* =========================================================================
   Dark mode
   Applied when the user explicitly chooses dark (data-theme="dark"),
   OR when the OS prefers dark and the user hasn't overridden it.
   ========================================================================= */
:root[data-theme="dark"] {
  --bg: #0a1120;
  --bg-soft: #0d1626;
  --bg-softer: #121d31;
  --surface: #111c30;
  --surface-2: #0f1a2c;
  --header-bg: rgba(10, 17, 32, 0.72);
  --input-bg: #0f1a2c;
  --line: #1f2c44;
  --line-strong: #2a3a55;
  --ink-900: #f2f6fc;
  --ink-800: #e4ebf5;
  --ink-700: #c6d0e0;
  --ink-600: #a9b6ca;
  --ink-500: #8a98b0;
  --ink-400: #6a7890;
  --ink-300: #45546d;
  --accent-soft-bg: rgba(59, 109, 246, 0.16);
  --accent-soft-border: rgba(96, 144, 250, 0.32);
  --accent-icon: #7fb0ff;
  --accent-text: #8fbcff;
  --hero-a: #0c1526;
  --hero-b: #0a1120;
  --media-a: #10203a;
  --media-b: #0d1a30;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.65), 0 4px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 34px 64px -22px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a1120;
    --bg-soft: #0d1626;
    --bg-softer: #121d31;
    --surface: #111c30;
    --surface-2: #0f1a2c;
    --header-bg: rgba(10, 17, 32, 0.72);
    --input-bg: #0f1a2c;
    --line: #1f2c44;
    --line-strong: #2a3a55;
    --ink-900: #f2f6fc;
    --ink-800: #e4ebf5;
    --ink-700: #c6d0e0;
    --ink-600: #a9b6ca;
    --ink-500: #8a98b0;
    --ink-400: #6a7890;
    --ink-300: #45546d;
    --accent-soft-bg: rgba(59, 109, 246, 0.16);
    --accent-soft-border: rgba(96, 144, 250, 0.32);
    --accent-icon: #7fb0ff;
    --accent-text: #8fbcff;
    --hero-a: #0c1526;
    --hero-b: #0a1120;
    --media-a: #10203a;
    --media-b: #0d1a30;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.65), 0 4px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 34px 64px -22px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  }
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}
