/* ==========================================================================
   AI Profit Lab — Design System
   Light theme · Indigo brand · Amber CTA · Plus Jakarta Sans + Inter
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #FFFFFF;
  --bg-tint:       #F7F7FD;
  --surface:       #FFFFFF;
  --surface-2:     #F5F3FF;
  --surface-3:     #FAFAFA;

  /* Text */
  --text:          #17143A;
  --text-2:        #55516F;
  /* 5.37:1 on white, 5.03:1 on --bg-tint — clears WCAG AA for body text on both */
  --text-3:        #6B6786;
  --text-inv:      #FFFFFF;

  /* Lines */
  --border:        #E7E5F2;
  --border-strong: #D6D3E8;

  /* Brand (indigo) — navigation, links, structure */
  --brand:         #4F46E5;
  --brand-hover:   #4338CA;
  --brand-soft:    #EEF2FF;
  --brand-softer:  #F5F3FF;

  /* CTA (amber) — reserved EXCLUSIVELY for primary conversion actions */
  --cta:           #F59E0B;
  --cta-hover:     #D97706;
  --cta-text:      #3B2503;

  /* Semantic */
  --success:       #10B981;
  --success-soft:  #ECFDF5;
  --danger:        #E11D48;
  --danger-soft:   #FFF1F2;
  --warn:          #EAB308;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* Elevation — tinted toward text color, never pure black */
  --sh-xs: 0 1px 2px rgba(23,20,58,.04);
  --sh-sm: 0 1px 3px rgba(23,20,58,.06), 0 1px 2px rgba(23,20,58,.04);
  --sh-md: 0 4px 6px -1px rgba(23,20,58,.08), 0 2px 4px -2px rgba(23,20,58,.06);
  --sh-lg: 0 10px 15px -3px rgba(23,20,58,.08), 0 4px 6px -4px rgba(23,20,58,.05);
  --sh-xl: 0 20px 25px -5px rgba(23,20,58,.10), 0 8px 10px -6px rgba(23,20,58,.05);
  --sh-cta: 0 8px 20px rgba(245,158,11,.28);

  /* Type */
  --f-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-h1:    clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  --fs-h2:    clamp(1.625rem, 1.15rem + 2.1vw, 2.5rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  --fs-h4:    clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --fs-body:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead:  clamp(1.0625rem, 1rem + .5vw, 1.25rem);
  --fs-small: .875rem;
  --fs-xs:    .8125rem;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--text); }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.015em; }
p  { color: var(--text-2); }
ul, ol { padding-left: 1.25rem; color: var(--text-2); }

:focus-visible {
  outline: 3px solid rgba(79,70,229,.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--bg-tint); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #DDD9FB;
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: 48px; text-align: center; }
.section-head p { margin-top: 14px; font-size: var(--fs-lead); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-head); font-weight: 700; font-size: 1rem;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* CTA — amber, used ONLY for the primary conversion action */
.btn-cta { background: var(--cta); color: var(--cta-text); box-shadow: var(--sh-md); }
.btn-cta:hover:not(:disabled) { background: var(--cta-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-cta); }

.btn-brand { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }
.btn-brand:hover:not(:disabled) { background: var(--brand-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-lg); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--brand); transform: translateY(-2px); }

.btn-lg { padding: 18px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 18px; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-size: 1.125rem; color: var(--text); letter-spacing: -.03em; }
.brand-mark:hover { color: var(--text); }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #6366F1, #4F46E5 55%, #7C3AED);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .875rem;
  box-shadow: 0 3px 10px rgba(79,70,229,.32);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .9375rem; font-weight: 600; color: var(--text-2); }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 20px; box-shadow: var(--sh-lg);
  }
  .nav.open .nav-cta { top: auto; box-shadow: none; border: 0; padding-top: 0; position: static; }
  .nav.open .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav.open .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 84px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: rgba(99,102,241,.16); top: -190px; right: -130px; }
.hero::after  { width: 420px; height: 420px; background: rgba(245,158,11,.13); bottom: -190px; left: -140px; }
/* Desktop: copy stacks above the supporting detail, opt-in card sits alongside both. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "copy   optin"
    "extras optin";
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  align-items: center;
}
.hero-copy   { grid-area: copy; align-self: end; }
.hero-extras { grid-area: extras; align-self: start; }
.hero-grid > .optin { grid-area: optin; align-self: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand) 0%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-bottom: 28px; max-width: 560px; }
.trust-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: var(--fs-small); color: var(--text-3); }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px;
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700; color: #fff;
  font-family: var(--f-head);
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--cta); letter-spacing: 1px; }

/* Mobile: the opt-in form is the page's job, so it goes directly under the headline —
   the supporting copy drops below it. Keeps the CTA above a 375x667 fold. */
@media (max-width: 900px) {
  .hero { padding-block: 24px 44px; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy   { order: 1; margin-bottom: 22px; }
  .hero-grid > .optin { order: 2; padding: 24px; }
  .hero-extras { order: 3; margin-top: 32px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 0; }
  .optin-head { margin-bottom: 18px; }
  .optin-head h3 { font-size: 1.25rem; }
  .field { margin-bottom: 12px; }
}

/* ---------- Opt-in form card ---------- */
.optin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--sh-xl);
}
.optin-head { text-align: center; margin-bottom: 22px; }
/* Sized like an h3 but marked up as h2 so the heading order stays sequential. */
.optin-head h2, .optin-head h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.optin-head p { font-size: var(--fs-small); }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--f-head); font-size: var(--fs-small); font-weight: 700;
  color: var(--text); margin-bottom: 7px;
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* 16px min prevents iOS Safari auto-zoom on focus */
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder { color: var(--text-3); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.16);
}
.input.err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(225,29,72,.14); }
.form-note { margin-top: 14px; text-align: center; font-size: var(--fs-xs); color: var(--text-3); }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: var(--fs-small); display: none; }
.form-msg.ok  { display: block; background: var(--success-soft); color: #05754F; border: 1px solid #A7F3D0; }
.form-msg.bad { display: block; background: var(--danger-soft); color: #9F1239; border: 1px solid #FECDD3; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #D9D5F7; }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card h4 { margin-bottom: 8px; }

/* ---------- Course cards ---------- */
.course-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
  height: 100%;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #D9D5F7; }
.course-thumb {
  position: relative; aspect-ratio: 16/9;
  display: grid; place-items: center;
  color: #fff; overflow: hidden;
}
.course-thumb .glyph { font-size: 3rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-family: var(--f-head); font-size: .6875rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  box-shadow: var(--sh-xs);
}
.badge-level {
  left: auto; right: 12px;
  background: rgba(23,20,58,.72); color: #fff;
  backdrop-filter: blur(6px);
}
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.course-body p { font-size: var(--fs-small); flex: 1; }
.course-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-3); font-weight: 600;
}
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* progress */
.progress-track { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #7C3AED); border-radius: var(--r-pill); transition: width .5s cubic-bezier(.4,0,.2,1); }
.progress-fill.done { background: linear-gradient(90deg, var(--success), #059669); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); font-family: var(--f-head); }

/* ---------- Lesson player ---------- */
.player-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; padding-block: 32px 72px; }
@media (max-width: 1000px) { .player-layout { grid-template-columns: 1fr; } }

.video-shell {
  background: #0B0A1F; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xl); aspect-ratio: 16/9;
}
.video-shell video { width: 100%; height: 100%; object-fit: contain; background: #0B0A1F; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-top: 28px; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2.5px solid transparent;
  padding: 12px 16px; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: .9375rem;
  color: var(--text-3); white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding-top: 26px; }
.tab-panel.active { display: block; }

.curriculum {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  position: sticky; top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 44px);
  display: flex; flex-direction: column;
}
@media (max-width: 1000px) { .curriculum { position: static; max-height: none; } }
.curriculum-head { padding: 20px; border-bottom: 1px solid var(--border); }
.curriculum-list { overflow-y: auto; padding: 10px; }
.lesson-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: .9375rem;
  transition: background .15s;
}
.lesson-item:hover { background: var(--surface-2); color: var(--text); }
.lesson-item.current { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.lesson-item .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center; margin-top: 2px;
  font-size: 11px; color: transparent;
}
.lesson-item.done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.lesson-item .lt { flex: 1; line-height: 1.4; }
.lesson-item .ld { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; margin-top: 3px; }

.transcript { max-height: 420px; overflow-y: auto; padding-right: 8px; }
.transcript p { margin-bottom: 14px; }
.takeaways { list-style: none; padding: 0; }
.takeaways li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.takeaways li:last-child { border-bottom: 0; }
.takeaways li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  margin-top: 1px;
}

/* ---------- Quiz ---------- */
.quiz-q { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; margin-bottom: 16px; }
.quiz-q > h4 { margin-bottom: 14px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; margin-bottom: 8px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  cursor: pointer; font-size: .9375rem; color: var(--text-2);
  transition: border-color .15s, background .15s, color .15s;
}
.opt:hover { border-color: var(--brand); background: var(--brand-softer); }
.opt input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.opt.correct { border-color: var(--success); background: var(--success-soft); color: #05754F; }
.opt.wrong   { border-color: var(--danger);  background: var(--danger-soft);  color: #9F1239; }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 44px -12px rgba(79,70,229,.28);
  transform: scale(1.03);
}
@media (max-width: 900px) { .price-card.featured { transform: none; } }
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-family: var(--f-head); font-size: .6875rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--r-pill);
  white-space: nowrap; box-shadow: var(--sh-md);
}
.price { font-family: var(--f-head); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--text-3); letter-spacing: normal; }
.price-was { font-size: 1.125rem; color: var(--text-3); text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.feature-list li { display: flex; gap: 11px; padding: 9px 0; font-size: .9375rem; color: var(--text-2); }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 800; flex: none; }
.feature-list li.off { color: var(--text-3); }
.feature-list li.off::before { content: "—"; color: var(--border-strong); }

/* ---------- Certificate ---------- */
.cert-preview {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  overflow: hidden;
}

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--f-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); font-weight: 800;
  letter-spacing: -.04em; color: var(--brand); line-height: 1.1;
}
.stat span { font-size: var(--fs-small); color: var(--text-3); font-weight: 600; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; height: 100%; }
.quote p { flex: 1; color: var(--text); font-size: 1rem; line-height: 1.65; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.quote .who i {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-style: normal;
  font-family: var(--f-head); font-weight: 800; font-size: .875rem;
}
.quote .who b { display: block; font-family: var(--f-head); font-size: .9375rem; color: var(--text); }
.quote .who span { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; color: var(--text);
}
.faq-q .chev { flex: none; transition: transform .25s; color: var(--text-3); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-tint); border-top: 1px solid var(--border); padding-block: 56px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.footer h2, .footer h5 {
  font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9375rem; color: var(--text-2); }
.footer-links a:hover { color: var(--brand); }

/* Disclaimers — centered, per spec */
.disclaimers {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  text-align: center;
  max-width: 90%;
  margin-inline: auto;
}
.disclaimers p {
  font-size: 11px;
  line-height: 1.75;
  color: #6B6786;
  margin-bottom: 12px;
  text-align: center;
}
.disclaimers p strong { color: var(--text-2); font-weight: 700; }
.copyright {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
/* Author display rules (.btn, .card…) beat the UA sheet's [hidden]{display:none} —
   restate it so the hidden attribute actually hides things. */
[hidden] { display: none !important; }
.spinner {
  width: 17px; height: 17px; flex: none;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-cta .spinner { border-color: rgba(59,37,3,.3); border-top-color: var(--cta-text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scoped to .js so that if scripting fails or is blocked, the content is simply
   visible rather than stranded at opacity 0 forever. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 700; font-family: var(--f-head);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.note {
  background: var(--brand-softer); border: 1px solid #E3DFFB;
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm); padding: 16px 18px;
  font-size: .9375rem; color: var(--text-2);
}

.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p, .prose li { margin-bottom: 14px; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
