/* =========================================================================
   Neuroviq — shared design system
   Extracted from the approved neuroviq-home-prototype.html.
   Every page on the site links this one file — do not fork/copy these
   rules per page. Extend this file instead so the whole site stays
   visually consistent.
   ========================================================================= */

/* ---------- Self-hosted fonts (latin subset, variable) ----------
   Files, sources and licences: assets/fonts/README.txt */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Colour tokens ----------
   Light site. Pages are white; charcoal appears only in sections marked
   .on-dark (home hero, closing call-to-action bands). No dark mode.
   Raw palette first, then semantic tokens that components use. Components
   must only use the semantic tokens so a scope class can re-theme a section. */

:root {
  /* raw palette */
  --white: #FFFFFF;
  --ink: #15191F;
  --blue: #0060FF;
  --blue-hover: #0050D6;
  --lime: #C3FF5C;
  --muted: #485263;
  --muted-dark: #A9B0BB;
  --surface-light: #F3F5F8;
  --line-light: #DDE1E7;
  --line-dark: rgba(255, 255, 255, 0.16);
  --surface-dark: rgba(255, 255, 255, 0.06);

  /* semantic tokens (light page defaults) */
  --bg: var(--white);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --surface: var(--surface-light);
  --line: var(--line-light);
  --accent: var(--blue);          /* links, eyebrows, icons, interactive blue */
  --accent-hover: var(--blue-hover);
  --focus: var(--blue);
  --btn-bg: var(--blue);
  --btn-bg-hover: var(--blue-hover);
  --btn-fg: var(--white);
  --ghost-border: var(--ink);

  color-scheme: light;
}

/* Charcoal section scope: home hero and closing call-to-action bands only.
   Blue on charcoal is only about 3.5:1, so --accent becomes lime here and
   blue is kept for button fills (white text on blue). */
.on-dark {
  --bg: var(--ink);
  --fg: var(--white);
  --fg-muted: var(--muted-dark);
  --line: var(--line-dark);
  --surface: var(--surface-dark);
  --accent: var(--lime);
  --accent-hover: var(--white);
  --focus: var(--lime);
  --ghost-border: color-mix(in srgb, var(--white) 55%, transparent);
  background: var(--bg);
  color: var(--fg);
}

/* Blue section scope. Defined now for a later prompt; not applied to any
   element yet. --fg-muted is pure white because a dimmer white fails
   contrast on blue. */
.on-blue {
  --bg: var(--blue);
  --fg: var(--white);
  --fg-muted: var(--white);
  --line: color-mix(in srgb, var(--white) 40%, transparent);
  --surface: color-mix(in srgb, var(--white) 12%, transparent);
  --accent: var(--white);
  --accent-hover: var(--white);
  --focus: var(--white);
  --btn-bg: var(--white);
  --btn-bg-hover: var(--surface-light);
  --btn-fg: var(--ink);
  --ghost-border: var(--white);
  background: var(--bg);
  color: var(--fg);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Visible keyboard focus states (QA requirement): one ring for the whole
   site, colour comes from the section scope (blue, lime on charcoal, white
   on blue). */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

/* Logo: SVG sprite (assets/brand/brand.svg). Icon alone below 640px, lockup
   from 640px up. Colour comes from currentColor: ink in header and footer,
   white inside any .on-dark ancestor (via --fg). */
.brand-icon,
.brand-lockup {
  flex-shrink: 0;
  color: var(--fg);
}
.brand-icon { display: block; height: 26px; width: auto; aspect-ratio: 586 / 402; }
.brand-lockup { display: none; height: 21px; width: auto; aspect-ratio: 3834 / 406; }

@media (min-width: 640px) {
  .brand-icon { display: none; }
  .brand-lockup { display: block; }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

nav a:hover { color: var(--fg); }
nav a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ghost-border);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--fg);
  margin: 0 auto;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 32px 28px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--fg-muted);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { width: 100%; }
/* The menu's link colour rules above must not recolour the button inside it. */
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover { color: var(--btn-fg); }
/* ...and its link layout rules must not strip the button's padding and centring. */
.mobile-nav a.btn { display: inline-flex; padding: 12px 24px; font-size: 14.5px; font-weight: 600; }

/* ---------- Hero (home only) ---------- */

.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.on-dark .eyebrow .dot { box-shadow: 0 0 8px var(--accent); }

.hero h1 {
  font-size: 47px;
  max-width: 620px;
  margin-bottom: 24px;
}

.hero p.lede {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { flex-shrink: 0; color: var(--accent); }

.hero-tag { text-align: right; }

/* ---------- Page hero (About / How It Works / What We Offer / Pricing / Contact / Blog) ---------- */

.page-hero {
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner { max-width: 720px; position: relative; }

.page-hero h1 { font-size: 40px; margin-bottom: 20px; }

.page-hero p.lede {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 8px;
}

.page-hero .hero-actions { margin-top: 28px; margin-bottom: 0; }

/* ---------- Phone mockup (lives in the charcoal hero) ---------- */

.phone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  max-width: 340px;
  margin-left: auto;
}

.phone-screen {
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
}

.phone-topbar {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.phone-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.phone-topbar-text .name { font-size: 13.5px; font-weight: 600; }
.phone-topbar-text .status { font-size: 11.5px; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.phone-topbar-text .status .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.phone-body {
  padding: 18px 14px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s ease forwards;
}

.bubble.in {
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  animation-delay: 0.3s;
}
.bubble.out {
  background: var(--lime);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 500;
  animation-delay: 1.3s;
}
.bubble.out.second { animation-delay: 2.3s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.bubble-time {
  font-size: 10px;
  color: var(--fg-muted);
  align-self: flex-end;
  margin-top: -6px;
  opacity: 0;
  animation: rise 0.5s ease forwards;
  animation-delay: 2.8s;
}

/* ---------- Section shared ---------- */

section { padding: 100px 0; }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--fg-muted);
  font-size: 16px;
}

/* ---------- How it works / steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 26px 36px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.step h3, .step h4 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Why This Matters Now (stats band) ---------- */

.why-matters .section-head { max-width: 640px; margin-bottom: 48px; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 48px 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-fact {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 14px;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 260px;
}

.why-matters .closing-copy {
  max-width: 680px;
  color: var(--fg-muted);
  font-size: 16px;
}
.why-matters .closing-copy p { margin-bottom: 16px; }
.why-matters .closing-copy p:last-child { margin-bottom: 0; }
.why-matters .closing-copy strong { color: var(--fg); font-weight: 600; }

/* ---------- Check list (credibility points, pricing factors — non-sequential) ---------- */

.check-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--fg);
}

.check-list li:nth-child(even) { background: var(--surface); }

.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ---------- FAQ accordion (Pricing) ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq-question:hover { color: var(--accent); }

.faq-chevron { flex-shrink: 0; color: var(--accent); transition: transform 0.18s ease; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 4px 24px; }
.faq-answer p { color: var(--fg-muted); font-size: 15px; max-width: 640px; }
.faq-answer[hidden] { display: none; }

/* ---------- Body copy blocks (About, Pricing intro, etc.) ---------- */

.prose { max-width: 680px; }
.prose p {
  color: var(--fg-muted);
  font-size: 16px;
  margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }

.pull-line {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--fg);
  max-width: 640px;
  margin-top: 40px;
}

/* ---------- Eyebrow-style tag (Home hero label) ---------- */

.example-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* ---------- Offer cards (What We Offer page) ---------- */

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 34px;
  background: var(--bg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.offer-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.offer-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.offer-card-text { flex: 1; min-width: 260px; }

.live-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--lime);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.offer-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.offer-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.offer-card-heading h3 { margin-bottom: 0; }

.offer-card-text h3 { font-size: 20px; margin-bottom: 10px; }
.offer-card-text p { color: var(--fg-muted); font-size: 15px; max-width: 520px; }
.offer-note { color: var(--accent); font-size: 13.5px; font-style: italic; margin-top: 8px; }
.offer-card-main > .btn { flex-shrink: 0; transition: all 0.18s ease; }

.offer-panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.offer-panel[hidden] { display: none; }

/* ---------- Contact box (CTA banner, reused across pages) ---------- */

.contact-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
}

.contact-box h2 { font-size: 30px; margin-bottom: 14px; }
.contact-box p { color: var(--fg-muted); font-size: 15.5px; max-width: 420px; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-actions .btn { width: 100%; }

/* ---------- Contact page: details + form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.contact-details h2 { font-size: 26px; margin-bottom: 18px; }
.contact-details p { color: var(--fg-muted); font-size: 15.5px; margin-bottom: 28px; max-width: 420px; }

.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.detail-row:last-of-type { border-bottom: 1px solid var(--line); }
.detail-row svg { flex-shrink: 0; color: var(--accent); }
.detail-row a { color: var(--fg); }
.detail-row a:hover { color: var(--accent); }

.whatsapp-cta {
  margin-top: 28px;
  margin-bottom: 16px;
  display: inline-flex;
  gap: 10px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  background: var(--surface);
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--fg-muted);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--fg);
  transition: border-color 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-muted); }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }

/* Spam trap: never shown to visitors (Netlify honeypot, see contact.html). */
.hp-field { display: none; }

/* Inline validation (js/main.js). The message text carries the meaning; the
   heavier ink border is a second cue so colour is never the only signal. */
.field-error {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-width: 2px;
  border-color: var(--fg);
  padding: 11px 13px;
}

.form-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--accent);
  margin-top: 18px;
}
.form-success.show { display: block; }

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px 30px;
  background: var(--bg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.blog-card .eyebrow { margin-bottom: 14px; }
.blog-card h3 { font-size: 19px; margin-bottom: 12px; }
.blog-card p { color: var(--fg-muted); font-size: 14.5px; margin-bottom: 20px; flex-grow: 1; }
.blog-card .read-more { font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.article {
  max-width: 680px;
  margin: 0 auto;
}
.article .eyebrow { margin-bottom: 18px; }
.article h1 { font-size: 34px; margin-bottom: 18px; }
.article .byline { font-size: 13.5px; color: var(--fg-muted); margin-bottom: 44px; }
.article .lede-copy { font-size: 17px; color: var(--fg-muted); margin-bottom: 32px; }
.article .placeholder-note {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 24px;
  font-size: 14.5px;
  color: var(--fg-muted);
  font-style: italic;
}
.article-body h2 { font-size: 22px; margin: 40px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--fg-muted); font-size: 16px; margin-bottom: 20px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { color: var(--fg-muted); font-size: 16px; margin-bottom: 12px; }
.article-body li::marker { color: var(--accent); }
.article-body li:last-child { margin-bottom: 0; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--accent-hover); }
.article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-muted);
  margin-bottom: 40px;
}
.article .back-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12.5px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-muted); }
.footer-col a:hover { color: var(--accent); }

/* "Cookie settings" is a button (it opens the consent banner) but reads as one of
   the footer links beside it: same font, size, colour, hover colour and focus ring. */
.footer-col .footer-link-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--fg-muted);
  text-align: left;
  cursor: pointer;
}
.footer-col .footer-link-btn:hover { color: var(--accent); }
/* The existing rule that sizes list items without a link to 14px would make this
   item shorter than its neighbours; keep its line box the same as theirs. */
.footer-col li:has(.footer-link-btn) { font-size: inherit; }
.footer-col li:not(:has(a)) { font-size: 14px; color: var(--fg-muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  transition: border-color 0.15s ease;
}
.social-row a:hover { border-color: var(--accent); }

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px -10px color-mix(in srgb, var(--ink) 30%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p { font-size: 13.5px; color: var(--fg-muted); flex: 1 1 260px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent-hover); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .hero-tag { text-align: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .other-item { grid-template-columns: 1fr; gap: 10px; }
  .contact-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr; gap: 0; }
  .stat-fact { max-width: none; }
  .stats-band > .stat { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .stats-band > .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stats-band > .stat:first-child { padding-top: 0; }
  .offer-card { padding: 26px 24px; }
  nav ul { display: none; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .contact-box { padding: 32px 22px; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .offer-card-main > .btn { width: 100%; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* =========================================================================
   Home restructure (3b)
   Hero, stats, example conversation, diagnostic band, offers index.
   Tokens only; the offers behaviour lives in js/home.js.
   ========================================================================= */

.home-sec { padding-block: clamp(64px, 9vw, 112px); }
.home-sec-flush { padding-top: 0; }

/* Hero: text only for now, left aligned in a single column */
#hero { padding-block: clamp(80px, 11vw, 136px); }
#hero .hero-grid { grid-template-columns: minmax(0, 1fr); }

/* Why now: stacked rows on mobile, three columns with thin dividers from 900px */
#why .section-head { margin-bottom: 0; }
#why .stats-band {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
#why .stat { padding: 28px 0; border-bottom: 1px solid var(--line); }
#why .stat-label a { color: var(--accent); text-decoration: underline; }
#why .stat-label a:hover { color: var(--accent-hover); }
@media (min-width: 900px) {
  #why .stats-band { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  #why .stat { padding: 8px 32px 8px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  #why .stat:first-child { padding-left: 0; border-left: 0; }
}

/* Example conversation: copy left, light phone right */
.chat-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .chat-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 96px; }
}
.chat-txt h2 { font-size: 32px; margin-bottom: 16px; }
.chat-txt p { color: var(--fg-muted); font-size: 17px; max-width: 34ch; margin-bottom: 28px; }
.chat-mock { width: 100%; max-width: 360px; justify-self: center; }
.chat-mock .example-tag { margin-bottom: 12px; }
#chat .phone {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
}
#chat .phone-screen { border-radius: 0; }
#chat .phone-topbar { background: var(--surface); }
#chat .bubble.in { background: var(--surface); color: var(--fg); }
#chat .bubble.out { background: var(--btn-bg); color: var(--btn-fg); }

/* Diagnostic band (uses the .on-blue scope) */
.diag-band { padding-block: 44px; }
.diag-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.diag-inner h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; max-width: 24ch; }
.on-blue .live-pill {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--lime);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 99px;
}
.on-blue .btn-primary { background: var(--lime); color: var(--ink); }
.on-blue .btn-primary:hover { background: color-mix(in srgb, var(--lime) 82%, var(--white)); }

/* Offers index */
.offers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.offers-head h2 { font-size: 32px; }
.offers-all { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: underline; }
.offers-all:hover { color: var(--accent-hover); }
.offers-index { display: grid; margin-top: 36px; }
@media (min-width: 900px) {
  .offers-index { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
}
.olist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.orow { border-bottom: 1px solid var(--line); position: relative; }
.orow > button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 22px 16px 22px 20px;
  position: relative;
  overflow: hidden;
}
.orow > button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.orow > button::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.orow.on > button::after { transform: scaleY(1); }
.oname {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
}
.oname .live-badge { margin-bottom: 0; }
.orow.on .oname { color: var(--accent); }
.odesc { display: block; margin-top: 6px; color: var(--fg-muted); font-size: 16px; max-width: 46ch; }
@media (hover: hover) and (pointer: fine) {
  .orow > button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
  }
  .orow > button:hover::before { opacity: 1; }
}

.panelSlot { min-width: 0; position: relative; }
.panel { padding: 6px 0 26px 20px; }
@media (min-width: 900px) {
  .panelSlot .panel {
    padding: 22px 0 0;
    position: absolute;
    left: 0; right: 0; top: 0;
    transition: top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}
.osteplist { list-style: none; margin: 0; padding: 0; position: relative; }
.osteplist::before,
.osteplist::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; }
.osteplist::before { background: var(--line); }
.osteplist::after { background: var(--accent); transform: scaleY(0); transform-origin: top; }
.panel.draw .osteplist::after { animation: ostep-grow 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes ostep-grow { to { transform: scaleY(1); } }
.ostep { position: relative; padding: 0 0 22px 36px; }
.ostep:last-child { padding-bottom: 0; }
.ostep::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
}
.panel.draw .ostep::before { animation: ostep-lit 0.3s forwards; }
.panel.draw .ostep:nth-child(1)::before { animation-delay: 0.05s; }
.panel.draw .ostep:nth-child(2)::before { animation-delay: 0.35s; }
.panel.draw .ostep:nth-child(3)::before { animation-delay: 0.65s; }
.panel.draw .ostep:nth-child(4)::before { animation-delay: 0.95s; }
@keyframes ostep-lit { to { background: var(--accent); border-color: var(--accent); } }
.ostep h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: normal; }
.ostep p { margin-top: 4px; color: var(--fg-muted); font-size: 15.5px; }

/* Reduced motion: nothing animates; the step line is fully drawn at once */
@media (prefers-reduced-motion: reduce) {
  .panelSlot .panel { transition: none; }
  .orow > button::after,
  .orow > button::before { transition: none; }
  .osteplist::after { transform: scaleY(1); }
  .ostep::before { background: var(--accent); border-color: var(--accent); }
  .panel.draw .osteplist::after,
  .panel.draw .ostep::before { animation: none; }
  #chat .bubble { animation: none; opacity: 1; transform: none; }
}
