/* ==========================================================================
   Aeon Leads — styles.css
   Single stylesheet. Edit design tokens under :root, everything cascades.
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Colours */
  --ink:          #0F172A;
  --ink-2:        #1E293B;
  --muted:        #475569;
  --muted-2:      #64748B;
  --border:       #E2E8F0;
  --surface:      #FFFFFF;
  --surface-soft: #F8FAFC;
  --surface-softer:#F1F5F9;
  --accent:       #2563EB;
  --accent-ink:   #1D4ED8;
  --accent-soft:  #EFF6FF;
  --success:      #059669;
  --danger:       #DC2626;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 3vw + 1.5rem, 4rem);
  --fs-h1:      clamp(2rem, 2vw + 1.25rem, 3rem);
  --fs-h2:      clamp(1.5rem, 1.2vw + 1rem, 2.25rem);
  --fs-h3:      1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --lh-tight:   1.15;
  --lh-normal:  1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radius + shadow */
  --rad-1: 6px;
  --rad-2: 12px;
  --rad-3: 20px;
  --rad-pill: 999px;
  --sh-1: 0 1px 2px rgba(15,23,42,.05);
  --sh-2: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  --sh-3: 0 4px 8px rgba(15,23,42,.06), 0 12px 32px rgba(15,23,42,.08);

  /* Layout */
  --container: 72rem;
  --container-narrow: 52rem;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { color: var(--muted); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
}

/* 4. Layout utilities ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-8); }
@media (min-width: 48rem) { .section { padding-block: var(--sp-9); } }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--ink); color: var(--surface-soft); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #CBD5E1; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); } }

/* 5. Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute; top: -40px; left: var(--sp-4);
  background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--rad-1); z-index: 100; text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); }

/* 6. Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 4rem; }
.nav__brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-size: 1.0625rem;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand svg { width: 26px; height: 26px; color: var(--accent); }
.nav .nav__links { display: none; align-items: center; gap: var(--sp-6); list-style: none; padding: 0; margin: 0; }
.nav__links > li { position: relative; }
.nav__links a, .nav__drop-trigger {
  color: var(--ink); font-weight: 500; font-size: 0.9375rem;
  background: none; padding: var(--sp-2) 0;
}
.nav__links a:hover, .nav__drop-trigger:hover { color: var(--accent); text-decoration: none; }
.nav .nav__cta { display: none; }
.nav .nav__toggle {
  border: 1px solid var(--border); border-radius: var(--rad-1);
  padding: var(--sp-2); display: inline-flex;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__mobile {
  display: none; border-top: 1px solid var(--border);
  background: #fff; padding: var(--sp-4) var(--sp-5);
}
.nav__mobile[data-open="true"] { display: block; }
.nav__mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.nav__mobile a { color: var(--ink); font-weight: 500; display: block; padding: var(--sp-2) 0; }
.nav__mobile a:hover { color: var(--accent); text-decoration: none; }
.nav__mobile .button { margin-top: var(--sp-4); width: 100%; }

@media (min-width: 48rem) {
  .nav .nav__links { display: flex; }
  .nav .nav__cta { display: inline-flex; }
  .nav .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

.nav__drop-trigger { display: inline-flex; align-items: center; gap: var(--sp-1); cursor: pointer; }
.nav__drop-trigger svg { width: 14px; height: 14px; }
.nav__drop-menu {
  position: absolute; top: calc(100% + 0.25rem); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--rad-2);
  box-shadow: var(--sh-3); padding: var(--sp-2); min-width: 240px;
  display: none; list-style: none; margin: 0;
}
.nav__drop:hover .nav__drop-menu,
.nav__drop:focus-within .nav__drop-menu { display: block; }
.nav__drop-menu a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--rad-1);
  color: var(--ink) !important; font-weight: 500;
}
.nav__drop-menu a:hover { background: var(--surface-soft); color: var(--accent) !important; text-decoration: none; }

/* 7. Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--rad-2);
  font-weight: 600; font-size: 0.9375rem;
  line-height: 1.2;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.button:hover { text-decoration: none; }
.button--primary  { background: var(--accent); color: #fff; }
.button--primary:hover  { background: var(--accent-ink); }
.button--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.button--secondary:hover { border-color: var(--ink); background: var(--surface-soft); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--surface-soft); }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--surface-soft); }
.button--lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.button svg { width: 18px; height: 18px; }

/* 8. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw + 1rem, 6rem) var(--sp-8);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(37,99,235,0.12), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(37,99,235,0.08), transparent 60%),
    var(--surface);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero h1 { font-size: var(--fs-display); max-width: 20ch; }
.hero .lede { margin-top: var(--sp-4); }
.hero__ctas { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__badges { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* 9. Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--rad-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: var(--fs-small); color: var(--muted); font-weight: 500;
}
.badge svg { width: 14px; height: 14px; color: var(--accent); }

/* 10. Cards --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-2);
  padding: var(--sp-5);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
  border-color: transparent;
  text-decoration: none;
}
.card__icon {
  width: 44px; height: 44px; border-radius: var(--rad-1);
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card__link {
  margin-top: auto; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: var(--sp-1);
}
.card__link svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.card--link:hover .card__link svg { transform: translateX(3px); }

/* 11. Steps --------------------------------------------------------------- */
.step { position: relative; padding-left: var(--sp-7); }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: var(--rad-pill);
  background: var(--accent); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
}
.step h3 { margin: 0 0 var(--sp-2); }
.step p  { margin: 0; }

/* 12. Stats --------------------------------------------------------------- */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--rad-2);
  background: #fff;
}
.stat__num {
  font-size: 2.25rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__lbl { color: var(--muted); margin-top: var(--sp-1); }
.placeholder {
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 0 0.25rem; border-radius: 4px; font-weight: 600;
}

/* 13. CTA band ------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(500px 250px at 100% 100%, rgba(96,165,250,0.25), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(2rem, 4vw + 1rem, 4rem);
  border-radius: var(--rad-3);
  display: flex; flex-direction: column; gap: var(--sp-5);
  align-items: flex-start;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p  { color: #CBD5E1; max-width: 50ch; }

/* 14. Footer -------------------------------------------------------------- */
.footer { background: var(--ink); color: #CBD5E1; padding-block: var(--sp-8); }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer h4 {
  color: #fff; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: #fff; font-weight: 800; margin-bottom: var(--sp-3);
  font-size: 1.0625rem;
}
.footer__brand svg { width: 26px; height: 26px; color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__tag { color: #94A3B8; max-width: 32ch; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  color: #94A3B8; font-size: var(--fs-small);
}

/* 15. Forms --------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); position: relative; }
.field > label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.field > .hint { font-size: var(--fs-small); color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--rad-1);
  background: #fff; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field__error { font-size: var(--fs-small); color: var(--danger); display: none; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] .field__error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: var(--fs-small); min-height: 1.2em; }
.form__status[data-state="success"] { color: var(--success); }
.form__status[data-state="error"]   { color: var(--danger); }
.form__consent { color: var(--muted-2); font-size: var(--fs-small); }

/* 16. Prose (legal) ------------------------------------------------------- */
.prose { max-width: 52rem; color: var(--muted); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p, .prose ul, .prose ol { color: var(--muted); margin-bottom: var(--sp-4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--ink); }
.prose .notice {
  background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E;
  padding: var(--sp-4); border-radius: var(--rad-2);
  margin-bottom: var(--sp-6);
}
.prose .notice strong { color: #78350F; }

/* 17. Pill & check lists -------------------------------------------------- */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill-list li {
  background: var(--surface-soft); border: 1px solid var(--border);
  padding: 0.375rem 0.75rem; border-radius: var(--rad-pill);
  font-size: var(--fs-small); color: var(--ink); font-weight: 500;
}
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--ink); }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* 18. Info panel (contact sidebar) --------------------------------------- */
.info-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--rad-2);
  padding: var(--sp-5);
}
.info-panel h3 { margin-bottom: var(--sp-3); font-size: 1.0625rem; }
.info-panel__row { margin-bottom: var(--sp-4); }
.info-panel__row:last-child { margin-bottom: 0; }
.info-panel__lbl { font-size: var(--fs-small); color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-1); }
.info-panel__val { color: var(--ink); }
.info-panel__val a { color: var(--ink); }
.info-panel__val a:hover { color: var(--accent); }

/* 19. Visually hidden ----------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 20. Print --------------------------------------------------------------- */
@media print {
  .nav, .footer, .cta-band { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
