/* AI Engineer Career Launch Programme — landing page
   Uses Intraneurals studio tokens; editorial, restrained layout. */

:root {
  --ae-paper: #F7F7F5;
  --ae-ink: #14181C;
  --ae-ink-2: #4A535C;
  --ae-ink-3: #7A828A;
  --ae-accent: #1B4CD6;
  --ae-accent-dim: #153ea8;
  --ae-rule: #C9CFD6;
  --ae-rule-light: #E4E7EB;
  --ae-surface: #ffffff;
  --ae-whatsapp: #128C7E;
  --ae-max: 1080px;
  --ae-nav-h: 4.25rem;
  --ae-bar-h: 0px;
  --ae-sticky-h: 0px;
  --ae-font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --ae-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --ae-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html:has(#announcement-bar) {
  --ae-bar-h: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

.ae-page {
  margin: 0;
  background: var(--ae-paper);
  color: var(--ae-ink-2);
  font-family: var(--ae-font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.ae-page img { max-width: 100%; height: auto; }

.ae-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ae-accent);
  color: #fff;
}
.ae-skip:focus { left: 0.75rem; top: 0.75rem; }

/* Header */
.ae-header {
  position: sticky;
  top: var(--ae-bar-h);
  z-index: 100;
  background: color-mix(in srgb, var(--ae-paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ae-rule-light);
}
.ae-header__inner {
  max-width: var(--ae-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ae-header__logo img { display: block; height: 40px; width: auto; }

/* Sub-nav */
.ae-subnav {
  position: sticky;
  top: calc(var(--ae-bar-h) + var(--ae-nav-h));
  z-index: 90;
  background: var(--ae-paper);
  border-bottom: 1px solid var(--ae-rule-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ae-subnav::-webkit-scrollbar { display: none; }
.ae-subnav__inner {
  max-width: var(--ae-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.25rem;
  min-width: min-content;
}
.ae-subnav a {
  flex-shrink: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ae-ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ae-subnav a:hover,
.ae-subnav a.is-active { color: var(--ae-ink); border-bottom-color: var(--ae-accent); }

/* Buttons */
.ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--ae-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ae-btn--primary {
  background: var(--ae-accent);
  color: #fff;
  border-color: var(--ae-accent);
}
.ae-btn--primary:hover { background: var(--ae-accent-dim); border-color: var(--ae-accent-dim); }
.ae-btn--secondary {
  background: transparent;
  color: var(--ae-ink);
  border-color: var(--ae-rule);
}
.ae-btn--secondary:hover { border-color: var(--ae-ink-3); }
.ae-btn--ghost {
  background: transparent;
  color: var(--ae-accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  font-weight: 600;
}
.ae-btn--ghost:hover { color: var(--ae-accent-dim); }
.ae-btn--block { width: 100%; }

/* Layout */
.ae-wrap {
  max-width: var(--ae-max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.ae-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--ae-rule-light);
}
.ae-section:first-of-type { border-top: none; }
.ae-section--tight { padding-top: clamp(2rem, 4vw, 3rem); }

.ae-eyebrow {
  display: block;
  margin: 0 0 0.85rem;
  font-family: var(--ae-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ae-ink-3);
}
.ae-h1 {
  margin: 0;
  font-family: var(--ae-font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ae-ink);
}
.ae-h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--ae-ink-2);
  letter-spacing: -0.01em;
}
.ae-h2 {
  margin: 0 0 1rem;
  font-family: var(--ae-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ae-ink);
}
.ae-h3 {
  margin: 0 0 0.5rem;
  font-family: var(--ae-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ae-ink);
}
.ae-lead {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ae-ink-2);
}
.ae-intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--ae-ink-2);
}
.ae-note {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ae-rule);
  font-size: 0.9375rem;
  color: var(--ae-ink-2);
}

/* Hero */
.ae-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.ae-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}
.ae-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--ae-rule-light);
  list-style: none;
}
.ae-facts li {
  font-size: 0.875rem;
  color: var(--ae-ink-2);
}
.ae-facts strong {
  display: block;
  font-family: var(--ae-font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-ink-3);
}

/* Output cards */
.ae-outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border: 1px solid var(--ae-rule-light);
  background: var(--ae-surface);
}
.ae-output {
  padding: 1.25rem 1.35rem;
  border-right: 1px solid var(--ae-rule-light);
  border-bottom: 1px solid var(--ae-rule-light);
}
.ae-output:last-child { border-right: none; }
.ae-output__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--ae-font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-accent);
}
.ae-output p { margin: 0; font-size: 0.9375rem; }

/* Lists */
.ae-list { margin: 0; padding: 0; list-style: none; }
.ae-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.9375rem;
}
.ae-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ae-accent);
}
.ae-list--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 1rem;
}

/* Fit / not fit */
.ae-fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.ae-fit-grid h3 { font-size: 1rem; margin-bottom: 0.75rem; }

/* Phases */
.ae-phases { margin-top: 1.5rem; }
.ae-phase {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ae-rule-light);
}
.ae-phase:first-child { border-top: none; padding-top: 0; }
.ae-phase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.ae-phase__hours {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ae-ink-3);
}

/* Curriculum accordions */
.ae-curriculum { margin-top: 1.5rem; }
.ae-curriculum-phase {
  margin-bottom: 2rem;
}
.ae-curriculum-phase > h3 {
  margin-bottom: 0.75rem;
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-ink-3);
}
.ae-module {
  border-top: 1px solid var(--ae-rule-light);
  background: var(--ae-surface);
}
.ae-module summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ae-ink);
}
.ae-module summary::-webkit-details-marker { display: none; }
.ae-module summary::after {
  content: '+';
  font-family: var(--ae-font-mono);
  font-weight: 400;
  color: var(--ae-ink-3);
}
.ae-module[open] summary::after { content: '−'; }
.ae-module__hours {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ae-ink-3);
}
.ae-module__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--ae-rule-light);
}
.ae-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.75rem 0 0;
}
.ae-tag {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--ae-rule-light);
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--ae-ink-2);
  background: var(--ae-paper);
}

/* Tech stack */
.ae-tech-tier { margin-top: 2rem; }
.ae-tech-tier h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ae-rule);
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-ink);
}
.ae-tech-group { margin-bottom: 1.25rem; }
.ae-tech-group h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ae-ink-2);
}
.ae-tech-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.ae-tech-group li {
  font-size: 0.875rem;
  color: var(--ae-ink);
}

/* Domains */
.ae-domains {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--ae-rule-light);
}
.ae-domain {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ae-rule-light);
  background: var(--ae-surface);
}
.ae-domain:last-child { border-bottom: none; }
.ae-domain p { margin: 0.35rem 0 0; font-size: 0.9375rem; }

/* Team */
.ae-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.ae-person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ae-person img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.ae-person__role {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--ae-ink-3);
}
.ae-person p { margin: 0; font-size: 0.9375rem; }

/* Fees */
.ae-fees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--ae-rule-light);
}
.ae-fee {
  padding: 1.25rem 1.35rem;
  border-right: 1px solid var(--ae-rule-light);
  background: var(--ae-surface);
}
.ae-fee:last-child { border-right: none; }
.ae-fee__amount {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--ae-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ae-ink);
}
.ae-fee p { margin: 0; font-size: 0.875rem; }

/* Admissions steps */
.ae-steps { margin-top: 1.5rem; counter-reset: step; }
.ae-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--ae-rule-light);
}
.ae-step:first-child { border-top: none; }
.ae-step__num {
  font-family: var(--ae-font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ae-accent);
}

/* CTA band */
.ae-cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--ae-ink);
  color: rgba(255, 255, 255, 0.82);
}
.ae-cta-band .ae-h2 { color: #fff; }
.ae-cta-band .ae-lead { color: rgba(255, 255, 255, 0.78); max-width: 36rem; }
.ae-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ae-cta-band .ae-btn--primary {
  background: #fff;
  color: var(--ae-ink);
  border-color: #fff;
}
.ae-cta-band .ae-btn--primary:hover { background: #f0f0ee; }
.ae-cta-band .ae-btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.ae-cta-band__contact {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.ae-cta-band__contact a { color: #fff; }

/* Footer */
.ae-footer {
  padding: 2rem 0 5rem;
  border-top: 1px solid var(--ae-rule-light);
  font-size: 0.875rem;
  color: var(--ae-ink-3);
}
.ae-footer a { color: var(--ae-accent); text-decoration: none; }
.ae-footer a:hover { text-decoration: underline; }

/* Sticky mobile CTA */
.ae-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ae-paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ae-rule-light);
  box-shadow: 0 -4px 20px rgba(20, 24, 28, 0.06);
}
.ae-sticky-cta .ae-btn { width: 100%; }

@media (max-width: 768px) {
  .ae-subnav { display: none; }
  .ae-sticky-cta { display: block; }
  .ae-page { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .ae-output { border-right: none; }
  .ae-fee { border-right: none; border-bottom: 1px solid var(--ae-rule-light); }
  .ae-header__inner .ae-btn--primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-btn, .ae-subnav a { transition: none; }
}
