/* ==========================================================================
   Drawn AI — components.css
   Nav, footer, hero shell, cards, dashboard UI kit, forms, timelines
   ========================================================================== */

/* ==========================================================================
   1. Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-stuck {
  background: rgba(0, 4, 15, .82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1;
}
.wordmark .mark-ai {
  color: var(--blue-500);
  letter-spacing: -.01em;
}
.wordmark-sm { font-size: 1.15rem; }

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .92rem;
  font-weight: 500;
  color: #C9D2E6;
  border-radius: var(--r-xs);
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav > .btn { display: none; } /* the in-menu CTA only appears in the mobile drawer */

/* Mobile menu */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark-strong);
  place-items: center;
  background: rgba(255,255,255,.04);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .35s var(--ease-out), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease-out), top .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px var(--gutter) 26px;
    background: rgba(0, 6, 22, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }

  /* Without JS nothing can toggle the drawer, so render the nav as a plain
     in-flow list. The header has to stop being a fixed 64px box to hold it. */
  html:not(.js-ready) .site-header {
    position: static;
    height: auto;
    padding-block: 12px;
    background: var(--ink-950);
    border-bottom-color: var(--line-dark);
  }
  html:not(.js-ready) .site-header .container { flex-wrap: wrap; }
  html:not(.js-ready) .nav {
    position: static;
    inset: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: none;
    padding: 8px 0 0;
    background: none;
    border-bottom: 0;
    backdrop-filter: none;
  }
  html:not(.js-ready) .nav-toggle { display: none; }
  html:not(.js-ready) .hero { padding-top: clamp(40px, 5vw, 76px); }
  .nav-cta .btn { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 16px; justify-content: center; color: #fff; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   2. Hero shell
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 5vw, 76px));
  padding-bottom: clamp(56px, 6vw, 96px);
  background:
    radial-gradient(1200px 620px at 78% 8%, rgba(46, 86, 240, .30), transparent 62%),
    radial-gradient(900px 500px at 4% 60%, rgba(30, 64, 216, .22), transparent 60%),
    linear-gradient(178deg, var(--ink-950) 0%, var(--ink-900) 45%, var(--ink-850) 100%);
  color: var(--text-on-dark-muted);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* fine grid overlay */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 600px at 30% 30%, #000 0%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .75;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 95% at 50% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(120% 95% at 50% 35%, #000 25%, transparent 78%);
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-copy .h-display { margin-top: 22px; }
.hero-copy .lede { margin-top: 22px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 30px;
}
.hero-point {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: #C4CEE4; font-weight: 500;
}
.hero-point .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-500);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 4px rgba(74,108,250,.16);
}
.hero-point .dot svg { width: 11px; height: 11px; color: #fff; }
/* the label sits on the hero ground, never on the dot */
.hero-point > span:not(.dot) { color: #DCE3F5; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 100%; }
}

/* hero feature strip (Services / Industries pages) */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 56px);
}
.hero-strip .feat {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
}
.hero-strip .feat-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(74,108,250,.16);
  border: 1px solid rgba(74,108,250,.32);
  color: var(--blue-400);
}
.hero-strip .feat-icon svg { width: 20px; height: 20px; }
.hero-strip h4 { font-size: .95rem; color: #fff; }
.hero-strip p { font-size: .8125rem; color: var(--text-on-dark-faint); margin-top: 4px; line-height: 1.5; }
/* borderless variant used under the hero copy on Solutions */
.hero-strip.plain { gap: 10px 18px; margin-top: 30px; }
.hero-strip.plain .feat {
  border: 0; background: none; backdrop-filter: none; padding: 0;
  grid-template-columns: 34px 1fr; gap: 11px; align-items: start;
}
.hero-strip.plain .feat-icon { width: 34px; height: 34px; border-radius: 50%; }
.hero-strip.plain .feat-icon svg { width: 16px; height: 16px; }
.hero-strip.plain h4 { font-size: .875rem; line-height: 1.25; }
.hero-strip.plain.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) and (min-width: 981px) { .hero-strip.plain.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .hero-strip.plain.cols-3 { grid-template-columns: minmax(0, 1fr); } }
.hero-strip.plain p { font-size: .75rem; margin-top: 5px; }

/* three-across variant */
.hero-strip.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) { .hero-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .hero-strip { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 900px) { .hero-strip.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .hero-strip.cols-3 { grid-template-columns: minmax(0,1fr); } }

/* ==========================================================================
   4. Light cards
   ========================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,108,250,.4);
}
.card-flat { box-shadow: none; }
.card-pad-sm { padding: 20px; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(74,108,250,.12), rgba(74,108,250,.05));
  border: 1px solid rgba(74,108,250,.18);
  color: var(--blue-500);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon-lg { width: 56px; height: 56px; }
.card-icon-lg svg { width: 27px; height: 27px; }
.card-icon-plain { background: none; border: 0; color: var(--blue-500); width: auto; height: auto; }

.card h3, .card h4 { letter-spacing: -.02em; }
.card p { color: var(--text-muted); font-size: .9rem; margin-top: 10px; line-height: 1.6; }

/* dark feature card (Home "Built around your business") */
.card-dark {
  background: linear-gradient(160deg, #071634 0%, #020A1E 100%);
  border: 1px solid rgba(120,155,255,.16);
  border-radius: var(--r-lg);
  padding: 26px;
  color: var(--text-on-dark-muted);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card-dark::after {
  content: "";
  position: absolute; inset: -40% 20% auto;
  height: 60%;
  background: radial-gradient(50% 60% at 50% 0, rgba(74,108,250,.4), transparent 70%);
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.card-dark:hover { transform: translateY(-6px); border-color: rgba(120,155,255,.4); box-shadow: 0 30px 60px -30px rgba(46,86,240,.6); }
.card-dark:hover::after { opacity: 1; }
.card-dark h4 { color: #fff; font-size: 1rem; margin-top: 16px; }
.card-dark p { font-size: .84rem; color: var(--text-on-dark-faint); margin-top: 10px; line-height: 1.6; }
.card-dark .card-icon { margin: 0 auto; background: rgba(74,108,250,.14); border-color: rgba(74,108,250,.3); color: var(--blue-400); }
.card-dark .link-arrow { margin-top: 18px; color: var(--blue-400); }

/* column card with divider rules (Home "what we do") */
.col-list { display: grid; gap: 8px; margin-top: 16px; }
.col-list li {
  display: grid; grid-template-columns: 15px 1fr; gap: 9px;
  font-size: .82rem; color: var(--text-muted); align-items: start; line-height: 1.45;
}
.col-list li svg { width: 13px; height: 13px; color: var(--green); margin-top: 4px; }

.rule-grid { display: grid; gap: 0; }
.rule-grid > * { padding: 8px 26px; }
.rule-grid > * + * { border-left: 1px solid var(--line); }
@media (max-width: 1080px) {
  .rule-grid > * { border-left: 0 !important; border-top: 1px solid var(--line); padding: 22px 0; }
  .rule-grid > *:first-child { border-top: 0; }
}

/* ==========================================================================
   5. Process / steps / timeline
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  position: relative;
}
.step { text-align: center; position: relative; padding: 0 6px; }
.step-icon {
  width: 62px; height: 62px;
  margin: 0 auto;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(150deg, #EEF2FF, #F7F9FF);
  border: 1px solid #DDE4FB;
  color: var(--blue-500);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step-icon svg { width: 26px; height: 26px; }
.step:hover .step-icon { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(46,86,240,.55); }
.step-n { display: block; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--blue-500); font-family: var(--font-display); }
.step h4 { font-size: .95rem; margin-top: 4px; }
.step p { font-size: .8rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.step-link {
  position: absolute;
  top: 31px; left: calc(50% + 42px); right: calc(-50% + 42px);
  height: 1px;
  border-top: 2px dotted var(--blue-300);
}
.step:last-child .step-link { display: none; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 34px; }
  .step:nth-child(3n) .step-link { display: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step-link { display: none !important; }
}

/* numbered circle timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.tl-item { text-align: center; position: relative; }
.tl-dot {
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 6px rgba(74,108,250,.10);
  position: relative; z-index: 1;
}
.tl-dot svg { width: 19px; height: 19px; }
.tl-line {
  position: absolute; top: 22px;
  left: calc(50% + 30px); right: calc(-50% + 30px);
  border-top: 2px dashed var(--blue-300);
}
.tl-item:last-child .tl-line { display: none; }
.tl-item h4 { font-size: .95rem; margin-top: 14px; }
.tl-item .tl-year { display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--text-strong); }
.tl-item .tl-year + h4 { margin-top: 2px; color: var(--text-strong); }
.tl-item p { font-size: .8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.55; }
@media (max-width: 980px) {
  .timeline { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 34px; }
  .tl-item:nth-child(3n) .tl-line { display: none; }
}
@media (max-width: 620px) {
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tl-line { display: none !important; }
}

/* ==========================================================================
   6. Chips / integration tags
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .875rem; font-weight: 600; color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.chip svg { width: 17px; height: 17px; color: var(--blue-500); }
.chip:hover { transform: translateY(-3px); border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.chip-sm { padding: 9px 14px; font-size: .8rem; }

.chip-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.chip-flow .arrow { color: var(--blue-300); display: grid; place-items: center; }
.chip-flow .arrow svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .chip-flow .arrow { display: none; } }

/* ==========================================================================
   7. Forms
   ========================================================================== */
.field { display: grid; gap: 7px; }
.field label {
  font-size: .8rem; font-weight: 600; color: var(--text-strong);
  font-family: var(--font-display); letter-spacing: -.005em;
}
.field label .req { color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper-50);
  font-size: .9rem;
  color: var(--text-strong);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6780' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 38px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74,108,250,.13);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .err { font-size: .75rem; color: var(--red); display: none; }
.field.has-error .err { display: block; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0,1fr); } .form-grid .span-2 { grid-column: auto; } }

.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
@media (max-width: 860px) { .checkbox-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .checkbox-grid { grid-template-columns: minmax(0,1fr); } }

.choice {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper-50);
  font-size: .84rem;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
  user-select: none;
}
.choice input { accent-color: var(--blue-500); width: 16px; height: 16px; cursor: pointer; flex: none; }
.choice:hover { border-color: var(--blue-400); }
.choice:has(input:checked) { border-color: var(--blue-500); background: rgba(74,108,250,.06); color: var(--blue-700); font-weight: 600; }

.radio-row { display: flex; flex-wrap: wrap; gap: 22px; }
.radio-row .choice { border: 0; background: none; padding: 0; }
.radio-row .choice:has(input:checked) { background: none; }

.form-note { font-size: .78rem; color: var(--text-faint); }

/* dark inline form (hero card) */
.form-dark .field label { color: #C4CEE4; }
.form-dark input, .form-dark textarea, .form-dark select {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.14);
  color: #fff;
  font-size: .82rem;
  padding: 10px 12px;
}
.form-dark input::placeholder, .form-dark textarea::placeholder { color: #5F6C88; }
.form-dark input:focus, .form-dark textarea:focus, .form-dark select:focus {
  background: rgba(255,255,255,.08);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(74,108,250,.2);
}

/* form success state */
.form-success {
  display: none;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(34,197,94,.09);
  border: 1px solid rgba(34,197,94,.35);
  color: #15803D;
  font-size: .9rem;
  align-items: center;
  gap: 12px;
}
.form-success.is-on { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   8. Accordion (FAQ)
   ========================================================================== */
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.acc-item + .acc-item { margin-top: 14px; }
.acc-item.is-open { border-color: rgba(74,108,250,.4); box-shadow: var(--shadow-md); }
.acc-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .975rem;
  color: var(--text-strong);
  letter-spacing: -.015em;
}
.acc-q svg { width: 18px; height: 18px; color: var(--blue-500); flex: none; transition: transform .4s var(--ease-out); }
.acc-item.is-open .acc-q svg { transform: rotate(180deg); }
/* visibility:hidden keeps collapsed answers out of the accessibility tree and
   out of tab order, which height:0 alone does not do */
.acc-a { height: 0; overflow: hidden; visibility: hidden; transition: height .45s var(--ease-out), visibility 0s .45s; }
.acc-item.is-open .acc-a { visibility: visible; transition: height .45s var(--ease-out), visibility 0s; }
.acc-a-inner { padding: 0 22px 22px; font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(30px, 3.4vw, 52px);
  background:
    radial-gradient(700px 340px at 88% 20%, rgba(46,86,240,.45), transparent 62%),
    linear-gradient(140deg, #071634 0%, #01060F 100%);
  border: 1px solid rgba(120,155,255,.18);
  color: var(--text-on-dark-muted);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, .8fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.cta-band::after {
  content: "";
  position: absolute; right: -6%; top: -30%;
  width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(74,108,250,.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 14px; font-size: .925rem; color: var(--text-on-dark-muted); line-height: 1.65; }
.cta-band .tick-list li { color: #D5DDEF; font-size: .875rem; }
.cta-band .cta-actions { text-align: center; }
.cta-band .cta-actions .form-note { color: var(--text-on-dark-faint); margin-top: 14px; }
@media (max-width: 1080px) {
  .cta-band { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cta-band .cta-actions { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 680px) { .cta-band { grid-template-columns: minmax(0,1fr); } }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #01060F 0%, #000A22 100%);
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark-faint);
  padding-block: 42px 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.footer-top p { font-size: .82rem; margin-top: 10px; max-width: 300px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.footer-links a {
  font-size: .85rem; color: #B6C1DA; padding: 4px 20px;
  border-left: 1px solid var(--line-dark);
  transition: color .25s;
}
.footer-links a:first-child { border-left: 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: .8rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: var(--r-xs);
  border: 1px solid var(--line-dark-strong);
  display: grid; place-items: center;
  color: #B6C1DA;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); transform: translateY(-2px); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0,1fr); }
  .footer-links { gap: 4px 0; }
  .footer-links a { padding-left: 0; border-left: 0; padding-right: 20px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ==========================================================================
   11. Page transition loader
   Shown on every page load and while navigating away. Deliberately CSS-driven:
   the dissolve runs from a keyframe animation, so the overlay clears itself
   even if JavaScript never runs. JS only adds the fade back in on the way out.
   ========================================================================== */
.page-loader {
  /* starts below the header so the nav bar stays visible and usable throughout */
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 95;              /* .site-header is 100 — the header sits on top */
  display: grid;
  place-items: center;
  background: var(--ink-950);
  opacity: 1;
  visibility: visible;
  /* hold for 0.5s, then dissolve */
  animation: pl-out var(--loader-fade) var(--loader-hold) forwards cubic-bezier(.22, 1, .36, 1);
}
/* Fills the strip behind the (transparent) header with the same ground, so the
   nav reads as one continuous bar instead of showing the hero through a seam.
   As a child of .page-loader it stays under the header and fades with it. */
.page-loader::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--nav-h));
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--ink-950);
  pointer-events: none;
}
.page-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 420px at 50% 46%, rgba(46, 86, 240, .22), transparent 68%);
  pointer-events: none;
}
@keyframes pl-out {
  to { opacity: 0; visibility: hidden; }
}

/* leaving the page — fade the overlay back in */
.page-loader.is-leaving {
  animation: pl-in .18s forwards cubic-bezier(.22, 1, .36, 1);
}
@keyframes pl-in {
  from { opacity: 0; visibility: visible; }
  to   { opacity: 1; visibility: visible; }
}

.pl-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.pl-glyph { width: 74px; height: 74px; overflow: visible; }
.pl-d {
  fill: none;
  stroke: url(#pl-grad);
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  animation: pl-draw .46s cubic-bezier(.55, 0, .25, 1) forwards;
}
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

.pl-dot {
  fill: var(--blue-500);
  transform-origin: 53px 11px;
  transform: scale(0);
  animation: pl-pop .34s .2s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes pl-pop { to { transform: scale(1); } }

.pl-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: .18em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  animation: pl-rise .38s .12s cubic-bezier(.22, 1, .36, 1) forwards;
}
.pl-word .mark-ai { color: var(--blue-500); letter-spacing: .04em; }
@keyframes pl-rise { to { opacity: 1; transform: none; } }

.pl-bar {
  width: 128px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.pl-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  animation: pl-fill var(--loader-hold) linear forwards;
}
@keyframes pl-fill { to { transform: scaleX(1); } }

/* No animation for anyone who has asked for none — the overlay simply clears. */
@media (prefers-reduced-motion: reduce) {
  .page-loader { animation: pl-out .001ms .001ms forwards; }
  .page-loader.is-leaving { animation: none; opacity: 0; visibility: hidden; }
  .pl-d { stroke-dashoffset: 0; animation: none; }
  .pl-dot { transform: none; animation: none; }
  .pl-word { opacity: 1; transform: none; animation: none; }
  .pl-bar i { transform: scaleX(1); animation: none; }
}

/* honeypot — off-screen rather than display:none, which some bots detect */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* consent checkbox in an error state (was previously colour-only and sticky) */
.choice.choice-error { color: var(--red); }
.choice.choice-error input { outline: 2px solid var(--red); outline-offset: 2px; }

/* submission failure — the counterpart to .form-success */
.form-error {
  display: none;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(222, 51, 51, .07);
  border: 1px solid rgba(222, 51, 51, .35);
  color: #A31515;
  font-size: .9rem;
  align-items: flex-start;
  gap: 12px;
}
.form-error.is-on { display: flex; }
.form-error svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
