/* =====================================================================
   iLeads Ltd - marketing site stylesheet
   Single stylesheet, organised by section. Design system uses CSS
   custom properties. Palette sampled from the iLeads logo: pink dot,
   sky and purple capsules, and the deep indigo-blue overlap (primary).
   Design language: hairline borders over shadows, asymmetric layouts,
   small-caps micro-labels, restrained colour.
   ===================================================================== */

/* -------------------------------------------------- Design tokens */
:root {
  /* Brand colours (from logo) */
  --pink:          #EC5A9E;
  --sky:           #48BFE8;
  --purple:        #B197D4;
  --primary:       #3E5BC9;
  --primary-dark:  #2E45A0;
  --primary-darker:#233680;

  /* Neutrals */
  --ink:           #14192B;   /* headings, dark section bg base */
  --ink-2:         #10152A;
  --body:          #4A5266;
  --muted:         #6E7688;
  --faint:         #9AA1B2;
  --line:          #E6E8EF;   /* hairlines */
  --line-dark:     rgba(255,255,255,.10);
  --surface:       #FFFFFF;
  --surface-2:     #FAFAFC;
  --surface-3:     #F3F4F9;
  --footer-bg:     #3B404A;   /* grey footer */

  /* Accent */
  --accent:        var(--pink);
  --green:         #12B76A;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px; --r-lg: 14px; --r-xl: 20px;

  /* Shadows - used sparingly */
  --sh-sm: 0 1px 2px rgba(20,25,43,.05);
  --sh-md: 0 2px 6px rgba(20,25,43,.05), 0 12px 32px rgba(20,25,43,.07);
  --sh-lg: 0 4px 12px rgba(20,25,43,.06), 0 24px 64px rgba(20,25,43,.10);

  /* Layout */
  --maxw: 1160px;
  --nav-h: 72px;
}

/* -------------------------------------------------- Reset / base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(62,91,201,.16); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* -------------------------------------------------- Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
p  { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--body); line-height: 1.65; }

/* Small-caps micro label */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.label--brand { color: var(--primary); }
.label__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; }

/* Ghost index numerals */
.index {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  color: var(--faint); font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------- Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section   { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--dark {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(62,91,201,.22), transparent 55%),
    var(--ink-2);
  border-block: 1px solid var(--ink-2);
}
.section--dark h2 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.66); }
.section--dark .label { color: var(--sky); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--flush { margin-bottom: 0; }
.section-head h2 { margin-top: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); }

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(20,25,43,.18);
}
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: #D5D9E4;
}
.btn--ghost:hover { border-color: #B9BFD0; background: var(--surface-2); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,25,43,.2); }
.btn--white:hover { background: #F2F4FA; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* Text link with arrow */
.tlink { font-weight: 600; font-size: .95rem; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.tlink:hover { color: var(--primary-dark); }

/* -------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 32px; width: auto; display: block; }
.brand__logo--white { filter: brightness(0) invert(1); }
.nav__links { display: flex; align-items: center; gap: var(--sp-6); }
.nav__links a {
  color: var(--body); font-weight: 500; font-size: .93rem;
  padding: 4px 0; position: relative; transition: color .15s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--ink); transition: right .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 0; }
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* -------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) 0; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 50% at 88% 0%, rgba(72,191,232,.10), transparent 65%),
    radial-gradient(38% 46% at 70% 20%, rgba(62,91,201,.07), transparent 60%),
    linear-gradient(180deg, #FDFDFE 0%, #FFFFFF 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
/* Grid items default to min-width:auto, so a nowrap descendant (the feed's
   meta lines) sets a floor wider than a phone and the column overflows the
   container. Letting them shrink is what makes 1fr actually mean 1fr. */
.hero__grid > * { min-width: 0; }
.hero h1 { margin-top: var(--sp-5); max-width: 560px; }
.hero .lead { margin-top: var(--sp-5); max-width: 520px; }
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-7); }

/* Live lead feed panel */
.feed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.feed__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.feed__title { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feed__live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--green); }
.feed__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,183,106,.35); } 50% { box-shadow: 0 0 0 5px rgba(18,183,106,0); } }
.feed__row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.feed__row:last-child { border-bottom: 0; }
.feed__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.feed__who { min-width: 0; }
.feed__name { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.feed__meta { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__chip {
  margin-left: auto; flex: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 100px;
}
.chip--new       { background: rgba(72,191,232,.14);  color: #0E7CA6; }
.chip--qualified { background: rgba(18,183,106,.12);  color: #067647; }
.chip--delivered { background: rgba(62,91,201,.12);   color: var(--primary-dark); }

/* Stat rule under hero */
.statrow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 88px);
}
.stat { padding: var(--sp-6) var(--sp-5) var(--sp-7) 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: var(--sp-6); }
.stat__num {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* -------------------------------------------------- Split section (Why iLeads) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.split__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.split__intro h2 { margin-top: var(--sp-4); }
.split__intro p { margin-top: var(--sp-4); }

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}
.row h3 { margin-bottom: 8px; }
.row p { font-size: .96rem; max-width: 46ch; }

/* -------------------------------------------------- Dark capabilities grid */
.caps { display: grid; grid-template-columns: 1fr 1fr; }
.cap {
  padding: var(--sp-7) var(--sp-6) var(--sp-7) 0;
  border-top: 1px solid var(--line-dark);
}
.cap:nth-child(even) { padding-left: var(--sp-7); border-left: 1px solid var(--line-dark); }
.cap .index { color: rgba(255,255,255,.34); }
.cap h3 { color: #fff; margin-top: var(--sp-4); }
.cap p { color: rgba(255,255,255,.62); font-size: .95rem; margin-top: 10px; max-width: 44ch; }

/* -------------------------------------------------- Solutions */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.solution {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.solution:hover { border-color: #C9CFE2; box-shadow: var(--sh-md); }
.solution .index { display: block; }
.solution h3 { font-size: 1.22rem; margin-top: var(--sp-5); }
.solution p { font-size: .96rem; margin-top: var(--sp-3); }
.solution .tags { margin-top: var(--sp-4); }
.solution .tlink { margin-top: auto; padding-top: var(--sp-5); }

/* -------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: var(--sp-6) var(--sp-5) 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: var(--sp-6); }
.step__ghost {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em;
  color: #E4E7F0; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: var(--sp-4); }
.step p { font-size: .93rem; margin-top: 8px; }

/* -------------------------------------------------- Trust */
.trust-points { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--sp-4) var(--sp-8); margin-top: var(--sp-6); }
@media (max-width: 460px) { .trust-points { grid-template-columns: 1fr; } }
.trust-point { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.trust-point svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.testimonial {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  background: #fff;
}
.testimonial__quote { font-size: 1.02rem; color: var(--ink); line-height: 1.55; font-weight: 500; letter-spacing: -.01em; }
.testimonial__by { margin-top: auto; padding-top: var(--sp-5); color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* -------------------------------------------------- Industries */
.tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.tag {
  padding: 8px 16px; border-radius: 100px;
  background: var(--surface-3); border: 1px solid transparent;
  font-weight: 500; font-size: .9rem; color: var(--body);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tag:hover { background: #fff; border-color: var(--line); color: var(--ink); }

/* Industries split layout */
.industries { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.industries h2 { margin-top: var(--sp-4); }
.industries .lead { margin-top: var(--sp-4); }

/* -------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5.5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-band__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 90% at 92% 8%, rgba(72,191,232,.25), transparent 60%),
    radial-gradient(40% 80% at 70% 100%, rgba(236,90,158,.14), transparent 60%),
    linear-gradient(120deg, var(--primary-darker), var(--primary-dark));
}
.cta-band h2 { color: #fff; max-width: 480px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 460px; margin-top: var(--sp-3); font-size: 1.02rem; }

/* -------------------------------------------------- Footer */
.footer { background: var(--footer-bg); color: #C3C8D2; padding-block: var(--sp-8) var(--sp-6); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__tag { margin-top: var(--sp-4); font-size: .92rem; max-width: 280px; color: #A9AFBC; }
.footer__col h4 { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-4); }
.footer__col a { display: block; color: #A9AFBC; font-size: .92rem; padding: 5px 0; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__legal { padding-top: var(--sp-5); font-size: .84rem; color: #969CAB; line-height: 1.6; }

/* -------------------------------------------------- Contact page */
.page-hero { padding-block: clamp(48px, 7vw, 80px) var(--sp-7); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero__inner { max-width: 620px; }
.page-hero h1 { margin: var(--sp-4) 0; }

.form-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: .87rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; font-size: .96rem; font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid #D5D9E4; border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62,91,201,.12); }
.textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
/* Honeypot - hidden from humans, visible to naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside-point { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.aside-point:last-child { border-bottom: 1px solid var(--line); }
.aside-point__icon { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--surface-3); color: var(--primary); }
.aside-point__icon svg { width: 18px; height: 18px; }
.aside-point h3 { font-size: 1rem; margin-bottom: 4px; }
.aside-point p { font-size: .92rem; }

.alert { padding: 13px 16px; border-radius: var(--r-md); margin-bottom: var(--sp-5); font-size: .94rem; font-weight: 500; border: 1px solid; }
.alert--success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.alert--error   { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }

/* -------------------------------------------------- Legal pages */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.3rem; margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal p, .legal li { color: var(--body); margin-bottom: var(--sp-3); font-size: .98rem; }
.legal ul { padding-left: var(--sp-5); list-style: disc; }
.legal li { margin-bottom: var(--sp-2); }
.legal .muted { color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }

/* -------------------------------------------------- Responsive */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .split__intro { position: static; }
}
@media (max-width: 960px) {
  .caps { grid-template-columns: 1fr; }
  .cap:nth-child(even) { padding-left: 0; border-left: 0; }
  .cap { padding-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { padding-bottom: var(--sp-5); }
  .solutions, .testimonials { grid-template-columns: 1fr; }
  .split, .industries { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: var(--sp-5); }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    display: flex; flex-direction: column;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav__menu .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__menu .nav__links a::after { display: none; }
  .nav__menu .btn { display: inline-flex; margin-top: var(--sp-4); }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; }
  .row { grid-template-columns: 44px 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .statrow { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  /* Full-width CTAs read better than two half-width pills on a narrow phone,
     and it stops a long label being the thing that sets the page width. */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* Long unbroken strings (domains, email addresses) must wrap rather than
   define the page width. */
h1, h2, h3, p, a, li, dd, dt { overflow-wrap: anywhere; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed__pulse { animation: none; }
}

/* Desktop: drawer wrapper is transparent; hide the in-drawer CTA */
@media (min-width: 761px) {
  .nav__menu { display: contents; }
  .nav__menu > .btn { display: none; }
}

/* -------------------------------------------------- Cookie consent banner
   Rendered by assets/js/consent.js. Reject carries the same visual weight as
   Accept: a prominent accept beside a buried reject is not freely given
   consent under PECR. */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.cc__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  max-height: 80vh; overflow-y: auto;
}
.cc__row { display: flex; flex-direction: column; gap: var(--sp-4); }
.cc__copy { min-width: 0; }
.cc__title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.cc__text { margin-top: 6px; color: var(--body); font-size: .92rem; line-height: 1.6; max-width: 70ch; }
.cc__text a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.cc__actions .btn { flex: 1 1 auto; justify-content: center; }
.cc__link {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--body);
  text-decoration: underline; flex: 1 1 100%;
}
.cc__link:hover { color: var(--ink); }
.cc__prefs { margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.cc__cats { display: grid; gap: var(--sp-3); }
.cc__cat {
  display: block; background: var(--surface-3); border-radius: var(--r-md);
  padding: 14px; cursor: pointer;
}
.cc__cat--fixed { cursor: default; }
.cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.cc__cat-label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.cc__always { font-size: .8rem; font-weight: 600; color: var(--body); }
.cc__cat-detail { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.55; color: var(--body); }
.cc__check { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.cc__save { margin-top: var(--sp-4); width: 100%; justify-content: center; }

@media (min-width: 761px) {
  .cc__row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--sp-6); }
  .cc__actions { flex: none; justify-content: flex-end; max-width: 420px; }
  .cc__actions .btn { flex: 0 0 auto; }
  .cc__link { flex: 1 1 100%; text-align: right; }
  .cc__cats { grid-template-columns: repeat(3, 1fr); }
  .cc__save { width: auto; }
}

/* Persistent reopen control, shown once a choice exists. Bottom-left so it
   never sits under the footer CTA, and above the banner's own z-index only
   when the banner is closed (the two are never shown together). */
.cc__reopen {
  position: fixed; left: 16px; bottom: 20px; z-index: 55;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--sh-md);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cc__reopen:hover { background: var(--surface-3); color: var(--primary); box-shadow: var(--sh-lg); }
.cc__reopen:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
