/* ============================================================
   AI Factory Landing — style.css
   Source of truth: projects/ai-factory/DESIGN.md
   ============================================================ */

/* === 1. DESIGN TOKENS === */
:root {
  /* Brand colors */
  --c-red:          #DD2137;
  --c-red-hover:    #AB1325;
  --c-red-active:   #FB6375;
  --c-red-active-b: #FF7187;
  --c-red-tkl:      #E11931;
  --c-blue:         #1A5FD4;

  /* Surfaces */
  --c-body:         #0A0908;
  --c-white:        #FFFFFF;
  --c-offwhite:     #FAFAFA;
  --c-offer-dark:   #010B24;

  /* Text */
  --c-text:         #231F20;
  --c-heading:      #000000;
  --c-text-inverse: #FFFFFF;
  --c-muted:        #6B7280;
  --c-soft:         #999999;
  --c-card-title:   #16181D;
  --c-card-text:    #1C1F26;
  --c-ghost-num:    #C2C6CF;
  --c-pink-num:     #F7D2D7;
  --c-legal:        #8C9196;

  /* Borders / lines */
  --c-border:       #EBEDF1;
  --c-hr:           #EEEEEE;
  --c-bar-sep:      rgba(255,255,255,.25);

  /* Typography */
  --font: 'Poppins', sans-serif;
  --fs-hero:    clamp(40px, 4.9vw, 70px);
  --fs-h1:      clamp(30px, 2.8vw, 40px);
  --fs-h2:      32px;
  --fs-h3:      28px;
  --fs-h4:      24px;
  --fs-h5:      20px;
  --fs-body:    16px;
  --fs-card-h:  clamp(19px, 2.6vw, 23px);
  --fs-card-p:  clamp(15px, 2vw, 17px);
  --fs-tkl-num: 46px;
  --fs-tkl-txt: 17px;
  --fs-bar:     12px;
  --fs-eyebrow: 16px;
  --fs-legal:   12px;

  /* Shape */
  --radius: 0;
  --shadow: none;

  /* Buttons */
  --btn-pad: 10px 20px;

  /* Layout */
  --container: 1200px;
  --section-pad: 80px;
  --hero-pad: 120px;

  /* Motion */
  --t-fast:   .18s ease;
  --t-med:    .3s cubic-bezier(.4, 0, .2, 1);
  --t-reveal: .7s cubic-bezier(.16, 1, .3, 1);
  --reveal-y: 24px;
}

/* === 2. BASE === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-body);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--c-heading); font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: var(--section-pad) 0; }

.section-h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-heading);
  margin-top: 12px;
}
.section-h1--center { text-align: center; }
.section-h1--light { color: var(--c-text-inverse); }

.section-p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-soft);
  margin-top: 16px;
}
.section-p--center { text-align: center; }

/* Eyebrow */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--c-blue);
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: rgba(255,255,255,.7); }
.eyebrow-num { display: inline-block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-blue);
  color: var(--c-text-inverse);
  padding: 10px 20px;
  text-decoration: none;
}
.skip-link:focus-visible { left: 0; }

/* Focus visibility (non-form elements) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* === 3. BUTTONS === */
.button {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: var(--c-blue);
  border: 1px solid var(--c-blue);
  color: var(--c-text-inverse);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  /* CTA buttons use Title Case across all pages (each word capitalised) */
  text-transform: capitalize;
  padding: var(--btn-pad);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.button:hover, .button:focus-visible {
  background-color: var(--c-red-hover);
  border-color: var(--c-red-hover);
  color: var(--c-text-inverse);
}
.button:active {
  background-color: var(--c-red-active);
  border-color: var(--c-red-active-b);
}

/* === 4. S0 HEADER === */
.site-header { background: var(--c-body); }
.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: 140px;
}
.header-logo { height: 32px; width: auto; }

/* === 5. S1 HERO === */
.hero {
  background-color: #F7F7F7;
  background-image: url("../assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  padding: var(--hero-pad) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero-spacer { display: none; }
.hero-h1 {
  font-size: var(--fs-hero);
  line-height: 1.15;
  font-weight: 600;
  color: var(--c-heading);
  text-align: left;
}
.hero-accent { color: var(--c-blue); }
.hero-p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-soft);
  line-height: 1.31;
  max-width: 480px;
  margin-top: 20px;
}
.hero-cta { margin-top: 32px; }

/* === 6. S2 BLUE CHECK BAR === */
.check-bar {
  background: var(--c-blue);
}
.check-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.check-bar-col {
  flex: 1 1 260px;
  min-width: 240px;
  padding: 18px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.check-bar-col p {
  font-size: var(--fs-bar);
  font-weight: 400;
  color: var(--c-text-inverse);
  line-height: 1.5;
}
.check-bar-icon { flex-shrink: 0; }

/* === 7. S3 TRAILER === */
.trailer { background: var(--c-offwhite); }
.trailer-inner { max-width: 840px; text-align: center; }
.trailer .button { margin: 20px 0; }

/* E8 — Video placeholder */
.video-frame {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  aspect-ratio: 16 / 9;
  background-color: var(--c-body);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(26,95,212,.25), transparent 60%),
    repeating-linear-gradient(135deg, rgba(26,95,212,.12) 0 1px, transparent 1px 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.video-play {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: var(--radius);
  background: var(--c-red);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--t-med), transform var(--t-med);
}
.video-play:hover, .video-play:focus-visible {
  background: var(--c-red-hover);
  transform: scale(1.06);
}
.video-caption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}
.video-frame video, .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* === 8. S4 PACKAGE === */
.package { background: var(--c-white); }
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}
.card {
  flex: 1 1 calc(50% - 12px);
  min-width: 300px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 40px);
  transition: transform var(--t-med), border-color var(--t-med);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-icon { display: block; flex-shrink: 0; transition: transform .3s ease; }
.card-num {
  font-weight: 600;
  font-size: 20px;
  color: var(--c-ghost-num);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-med);
}
/* Pill badge "LIMITED SPOTS" — 1:1 with reference (source.html:3206) */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 14px;
  padding: 7px 14px;
  background: #FDEAEC;
  color: var(--c-red-tkl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%; /* dot is round in the reference — sanctioned radius exception */
  background: var(--c-red-tkl);
  flex-shrink: 0;
}
.card-h {
  font-size: var(--fs-card-h);
  font-weight: 700;
  color: var(--c-card-title);
  margin: 20px 0 12px;
}
.card-badge + .card-h { margin-top: 0; }
.card-p {
  font-size: var(--fs-card-p);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-muted);
}
/* Small in-card link to interactive tool pages (readiness.html / checklist.html) */
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
.card-link:hover, .card-link:focus-visible { color: var(--c-red-hover); text-decoration: underline; }
.package-diagram { width: 100%; margin-top: 48px; cursor: zoom-in; }

/* E12 — diagram lightbox (markup injected by js/main.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, .92);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  cursor: default;
  background: var(--c-white);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--c-text-inverse);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--c-red-active); }

/* === 9. S5 AUDIENCE === */
.audience { background: var(--c-offwhite); }
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.audience-intro { font-size: var(--fs-body); font-weight: 300; color: var(--c-text); }
.audience-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--c-hr);
}
.audience-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-hr);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-text);
}
.check-icon { flex-shrink: 0; }

/* === 10. S6 FORM === */
.get-access { background: var(--c-white); }
.form-wrap { max-width: 800px; margin: 48px auto 0; }
/* HubSpot embed (iframe). The form's look is configured in the HubSpot form
   editor; from here we only own the wrapper width/centering above. min-height
   reserves space so the section doesn't jump before the iframe reports height. */
.form-wrap .hs-form-frame { width: 100%; min-height: 360px; }

/* Limited-time scarcity seal at the top of the GET ACCESS section (S6).
   Mobile: stacked & centered above the heading. Desktop: beside the heading. */
.offer-seal {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .14));
}
@media (min-width: 768px) {
  /* Two columns sharing the form's 800px width: seal left, heading right. */
  .ga-head {
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 36px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
  }
  .ga-head .offer-seal { width: 176px; height: 176px; margin: 0; }
  .ga-head__text { text-align: left; }
  .ga-head__text .eyebrow,
  .ga-head__text .section-h1,
  .ga-head__text .section-p { text-align: left; }
  .offer-seal__text { font-size: 13px; }
}
.offer-seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}
.offer-seal__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16%;
  font-family: var(--font, 'Poppins'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--c-text);
}
.offer-seal__text strong { font-weight: 700; }

/* The ring "breathes" while the text stays perfectly still — quiet urgency, no flashing. */
@media (prefers-reduced-motion: no-preference) {
  .offer-seal__ring { animation: seal-breathe 3.5s ease-in-out infinite alternate; }
}
@keyframes seal-breathe {
  from { transform: scale(1);    opacity: .72; }
  to   { transform: scale(1.06); opacity: 1;   }
}


.lead-form .form-row--2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.form-fields { display: flex; flex-direction: column; gap: 24px; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 6px;
}
.req { color: var(--c-red); margin-left: 2px; }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form select {
  height: 44px;
  background: #F5F8FA;
  border: 1px solid #CBD6E2;
  border-radius: var(--radius);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
  width: 100%;
}
.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23231F20' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
/* Placeholder "Choose..." — select has no [required], so :invalid never matches;
   :has(option[value=""]:checked) tracks the actual selection instead. */
.lead-form select:has(option[value=""]:checked),
.lead-form select option[value=""] { color: #99A3AD; }
.lead-form input::placeholder { color: #99A3AD; }

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(26,95,212,.2);
}

/* Checkboxes */
.form-checkbox {
  display: flex;
  flex-wrap: wrap; /* lets .field-error drop to its own full-width line */
  align-items: flex-start;
  gap: 12px;
}
.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 3px 0 0;
  border: 1px solid #CBD6E2;
  border-radius: var(--radius);
  background: var(--c-white);
  cursor: pointer;
}
/* >=44px effective tap target (mobile a11y) without changing the 16x16 visual:
   invisible hit area extends 13px past each edge (16 + 2*1 border + 2*13 = 44). */
.form-checkbox input[type="checkbox"]::before {
  content: "";
  position: absolute;
  inset: -13px;
}
.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--c-blue);
  border-color: var(--c-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.form-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(26,95,212,.2);
}
.form-checkbox label {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.5;
}
.form-checkbox label a { color: var(--c-blue); text-decoration: underline; }

/* Legal */
.form-legal { display: flex; flex-direction: column; gap: 10px; }
.form-legal p {
  font-size: var(--fs-legal);
  font-weight: 300;
  color: var(--c-legal);
  line-height: 1.45;
}
.form-legal a { color: var(--c-legal); text-decoration: underline; }

/* Per-field validation errors (DESIGN.md section 4 — "error" state) */
.field-error {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-red);
  margin-top: 4px;
}
.field-error[hidden] { display: none; }
.form-checkbox .field-error {
  width: 100%;
  margin: 0 0 0 28px; /* aligns with label text (16px box + 12px gap) */
}
.lead-form input[aria-invalid="true"],
.lead-form select[aria-invalid="true"] {
  border-color: var(--c-red);
  background-color: #FFF5F6;
}
.form-checkbox input[type="checkbox"][aria-invalid="true"] {
  border-color: var(--c-red);
  background-color: #FFF5F6;
}

/* Error message bar (network/API fallback only — field errors are inline) */
.form-error-message {
  display: none;
  font-size: 14px;
  background: #FFF5F6;
  border-left: 3px solid var(--c-red);
  color: var(--c-text);
  padding: 12px 16px;
}
.form--error .form-error-message { display: block; }

/* Submit */
.form-submit-wrap { text-align: center; margin-top: 8px; }
.form-submit { min-width: 320px; }
.submit-loading { display: none; align-items: center; justify-content: center; gap: 10px; }
.form--loading .submit-label { display: none; }
.form--loading .submit-loading { display: inline-flex; }
.form--loading .form-submit,
.form-submit:disabled {
  background-color: var(--c-ghost-num);
  border-color: var(--c-ghost-num);
  cursor: not-allowed;
  pointer-events: none;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-text-inverse);
  border-top-color: transparent;
  border-radius: 50%;
}

/* Success */
.form-success-panel {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form--success .form-fields { display: none; }
.form--success .form-success-panel { display: block; }
.success-mark {
  width: 72px;
  height: 72px;
  background: var(--c-blue);
  border-radius: var(--radius);
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-success-panel h3 { font-size: 24px; font-weight: 600; color: var(--c-heading); }
.form-success-panel p {
  font-size: 16px;
  font-weight: 300;
  color: var(--c-muted);
  max-width: 480px;
  margin: 12px auto 0;
}

/* === 11. S7 OUTCOMES === */
.outcomes { background: var(--c-offwhite); }
.tkl-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tkl-row {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 36px;
  transition: border-color var(--t-fast), transform var(--t-med);
}
.tkl-num {
  font-weight: 800;
  font-size: var(--fs-tkl-num);
  line-height: 1;
  color: var(--c-pink-num);
  min-width: 64px;
  transition: color var(--t-fast);
}
.tkl-txt {
  font-size: var(--fs-tkl-txt);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text);
}
.tkl-txt b { font-weight: 700; }
.tkl-row:hover { border-color: var(--c-red-tkl); }
.tkl-row:hover .tkl-num { color: var(--c-red-tkl); }
.outcomes-cta { margin-top: 40px; }

/* === 12. S8 LIMITED OFFER === */
.offer {
  background-color: var(--c-offer-dark);
  background-image: url("../assets/offer-bg.png");
  background-size: cover;
  background-position: center;
  color: var(--c-text-inverse);
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.offer .section-h1--light { margin-top: 12px; }
.offer-p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-text-inverse);
  margin-top: 16px;
}
.offer-list { list-style: none; margin: 14px 0; padding: 0; }
.offer-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 14px 0;
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-text-inverse);
}

/* Offer visual — tablet mockup image (1:1 with live page) */
.offer-visual-wrap { display: flex; justify-content: center; align-items: center; }
.offer-tablet { width: 100%; max-width: 480px; height: auto; }

/* === 13. S9 SPEAKERS === */
.speakers { background: var(--c-white); }
.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 56px;
}
.speaker { text-align: center; }
.speaker img { margin: 0 auto; }
.speaker-name { font-size: var(--fs-h4); font-weight: 600; color: var(--c-heading); margin-top: 24px; }
.speaker-role { font-style: italic; color: var(--c-red); font-size: 16px; margin: 8px 0 20px; }
.speaker-bio {
  font-size: 16px;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto;
}
.speakers-closing {
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--c-muted);
  max-width: 860px;
  margin: 48px auto 0;
}
.speakers-closing b { font-weight: 700; }

/* === 14. S10 FOOTER === */
.site-footer {
  background: var(--c-body);
  color: var(--c-text-inverse);
  padding-top: 64px;
}
.footer-logo { height: 28px; width: auto; }
.footer-logo-row { margin-bottom: 40px; }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text-inverse);
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 46px;
  height: 46px;
  background: var(--c-blue);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--t-med);
}
.footer-social a:hover, .footer-social a:focus-visible { background: var(--c-red-hover); }
.footer-social svg { width: 16px; height: 16px; fill: var(--c-text-inverse); }
.footer-legal { text-align: center; padding: 32px 0; margin-top: 40px; }
.footer-legal p { font-size: 14px; font-weight: 300; color: var(--c-text-inverse); }
.footer-legal a { color: var(--c-text-inverse); text-decoration: underline; }

/* === 15. RESPONSIVE (mobile-first) === */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-spacer { display: block; }
  .lead-form .form-row--2col { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .offer-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .speakers-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 992px) {
  /* S2 separators only when 3 columns share one row */
  .check-bar-col:nth-child(2),
  .check-bar-col:nth-child(3) {
    border-left: 1px solid var(--c-bar-sep);
  }
}

/* === 16. ANIMATIONS / ENHANCEMENTS (motion-safe only) === */
@media (prefers-reduced-motion: no-preference) {

  /* E1 — scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y));
    transition: opacity var(--t-reveal), transform var(--t-reveal);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* E2a — hero entrance sequence */
  .hero-h1, .hero-p, .hero-cta {
    opacity: 0;
    animation: heroIn .7s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  .hero-p  { animation-delay: .15s; }
  .hero-cta { animation-delay: .3s; }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  /* E2b — "AI Factory" gradient shimmer */
  @supports (-webkit-background-clip: text) or (background-clip: text) {
    .hero-accent {
      background: linear-gradient(90deg, #1A5FD4, #4D8BFF, #1A5FD4);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: heroShimmer 6s ease-in-out infinite;
    }
  }
  @keyframes heroShimmer {
    0%, 100% { background-position: 0% 0; }
    50%      { background-position: 100% 0; }
  }

  /* E3 — card hover lift */
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--c-blue);
  }
  .card:hover .card-icon { transform: scale(1.08); }
  .card:hover .card-num { color: var(--c-blue); }

  /* E4b — button sheen */
  .button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
  }
  .button:hover { transform: translateY(-2px); }
  .button:hover::after { animation: sheen .6s ease forwards; }
  @keyframes sheen {
    from { left: -50%; }
    to   { left: 150%; }
  }

  /* E4c — hero CTA pulse once after load */
  .hero-cta { animation: heroIn .7s cubic-bezier(.16, 1, .3, 1) .3s forwards,
                         ctaPulse 1.2s ease 1.2s 1; }
  @keyframes ctaPulse {
    0%   { outline: 2px solid rgba(26,95,212,.4); outline-offset: 2px; }
    50%  { outline: 2px solid rgba(26,95,212,.25); outline-offset: 8px; }
    100% { outline: 2px solid rgba(26,95,212,0); outline-offset: 8px; }
  }

  /* E5 — form flash after anchor scroll */
  .form-wrap.flash { animation: formFlash .8s ease 1; }
  @keyframes formFlash {
    0%   { outline: 2px solid var(--c-blue); outline-offset: 4px; }
    100% { outline: 2px solid transparent; outline-offset: 4px; }
  }

  /* E6 — eyebrow number entrance */
  .reveal .eyebrow-num {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .4s ease .15s, transform .4s ease .15s;
  }
  .reveal.in .eyebrow-num { opacity: 1; transform: none; }

  /* E7 — takeaways hover shift */
  .tkl-row:hover { transform: translateX(6px); }

  /* E10 — blue bar icons spring in */
  .check-bar-col .check-bar-icon {
    opacity: 0;
    transform: scale(.5);
    transition: opacity var(--t-reveal), transform var(--t-reveal);
    transition-delay: inherit;
  }
  .check-bar-col.in .check-bar-icon { opacity: 1; transform: scale(1); }

  /* E11 — red checks pop with overshoot */
  .reveal .check-icon {
    transform: scale(0);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  }
  .reveal.in .check-icon { transform: scale(1); }

  /* Form loading spinner */
  .spinner { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Success check draw-in */
  .form--success .success-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck .6s ease .2s forwards;
  }
  @keyframes drawCheck { to { stroke-dashoffset: 0; } }

  /* Success panel fade-in */
  .form--success .form-success-panel { animation: successIn .5s ease both; }
  @keyframes successIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* === 17. E0 — prefers-reduced-motion hard off === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* reduced-motion loading indicator: static ellipsis instead of spinner */
  .spinner { display: none; }
}
