/* ============================================================
   BRAINZIE — DESIGN SYSTEM
   Magenta-led identity. Gradient demoted to an occasional flourish.
   Shared across every page.
   ============================================================ */

:root {
  /* ---- Signature ---- */
  --brand:        #D81B72;   /* PRIMARY — the one hue people remember  */
  --brand-deep:   #A8155A;   /* hovers / pressed / text-on-light       */
  --brand-tint:   #FCE4F0;   /* soft fills, badges, selection          */

  /* ---- Secondary (sparingly) ---- */
  --secondary:    #6D28D9;   /* violet — depth, supporting headings    */
  --accent-orange:#FB8B24;   /* a spark — highlights only              */
  --accent-coral: #FF4D6D;   /* reserved for ONE key action            */

  /* ---- Neutrals (warm, slightly violet — never cold grey) ---- */
  --ink:      #18122B;
  --ink-soft: #4A4361;
  --muted:    #847B9C;
  --line:     #ECE7F2;
  --paper:    #FDFBFE;
  --paper-2:  #F6F1FB;
  --white:    #FFFFFF;

  /* ---- Gradient: a flourish, not the identity ---- */
  --grad-flourish: linear-gradient(135deg, #FB8B24 0%, #D81B72 55%, #6D28D9 100%);

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ---- Shape & depth ---- */
  --radius:   18px;
  --radius-s: 11px;
  --shadow:   0 20px 54px -24px rgba(46,16,101,.42);
  --shadow-s: 0 10px 26px -16px rgba(46,16,101,.38);
  --maxw: 1140px;
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--brand-tint); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { color: var(--ink-soft); }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; color: var(--secondary); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ============================ BUTTONS ============================ */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1.6px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--brand-tint); }

/* ============================ NAV ============================ */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,251,254,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: var(--font-display); color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-deep); text-decoration: none; }
.nav-cta { padding: 9px 20px; }

/* ============================ HERO / PAGE HEADER ============================ */
.hero { position: relative; overflow: hidden; background: var(--paper-2); padding: 104px 0 88px; }
.hero::after { content:""; position:absolute; right:-160px; top:-140px; width:480px; height:480px; border-radius:50%; background: radial-gradient(circle, rgba(216,27,114,.16), transparent 65%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.24rem; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }
.hero-art .mark { width: min(320px, 78%); }

.pagehead { background: var(--paper-2); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: 14px; }
.crumbs { font-family: var(--font-display); font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-deep); }

/* ============================ TRUST STRIP ============================ */
.stats { background: var(--ink); color: var(--white); padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: #FF7FB4; }
.stat .l { color: #C9C2DE; font-size: .94rem; margin-top: 2px; }

/* ============================ CARDS ============================ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.cards.two { grid-template-columns: repeat(2,1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
a.card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; background: var(--brand-tint); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .99rem; }
.card .more { margin-top: 16px; font-family: var(--font-display); font-weight: 600; color: var(--brand-deep); font-size: .95rem; }

/* ============================ VALUES ============================ */
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 42px; }
.value { display: flex; gap: 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 22px; }
.value .dot { flex: 0 0 11px; width: 11px; height: 11px; border-radius: 50%; margin-top: 9px; background: var(--brand); }
.value h4 { font-size: 1.05rem; margin-bottom: 3px; }
.value p { font-size: .96rem; }

/* ============================ COURSE LIST / TIMELINE ============================ */
.prog-head { display: flex; align-items: baseline; gap: 13px; margin: 44px 0 6px; flex-wrap: wrap; }
.prog-tag { font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--secondary); background: #EEE7FB; padding: 5px 12px; border-radius: 999px; }
.prog-sub { color: var(--muted); margin-bottom: 24px; }
.timeline { display: grid; gap: 16px; }
.course { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; transition: transform .16s, box-shadow .16s; }
a.course:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-s); }
.course::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--brand); }
.course .when .ed { display:block; font-family: var(--font-display); font-weight:700; color: var(--brand-deep); font-size:1.02rem; }
.course .when .dates { color: var(--muted); font-size:.86rem; }
.course .when .freq { color: var(--muted); font-size:.8rem; margin-top:5px; }
.course .body h4 { font-size:1.18rem; margin-bottom:5px; }
.course .body p { font-size:.96rem; }
.course .go { font-family: var(--font-display); font-weight:600; color: var(--brand-deep); font-size:.92rem; white-space:nowrap; }
.pills { margin-top: 12px; display:flex; flex-wrap:wrap; gap:7px; }
.pill { font-family: var(--font-display); font-size:.76rem; font-weight:500; color: var(--ink-soft); background: var(--paper-2); border:1px solid var(--line); padding:4px 11px; border-radius:999px; }
.pill.live { color: var(--secondary); border-color:#D8C9F7; background:#EEE7FB; }
.pill.win  { color:#B26A00; border-color:#FFD9A8; background:#FFF1E0; }

/* ============================ PROSE (course pages) ============================ */
.prose { max-width: 72ch; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; color: var(--secondary); }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 1.1rem; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.factbar { display:flex; flex-wrap:wrap; gap:26px; padding:22px 26px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); margin: 8px 0 28px; }
.factbar .f .k { font-family:var(--font-display); font-size:.74rem; text-transform:uppercase; letter-spacing:.14em; color:var(--muted); }
.factbar .f .v { font-family:var(--font-display); font-weight:600; color:var(--ink); }
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; margin: 22px 0; }
.callout strong { color: var(--brand-deep); }
.sessions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 13px; }
.sessions li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.sessions .s-n { font-family: var(--font-display); font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.05rem; }
.sessions h4 { font-size: 1.04rem; margin-bottom: 3px; }
.sessions p { font-size: .95rem; margin: 0; color: var(--ink-soft); }

/* ============================ CTA BAND ============================ */
.ctaband { background: var(--ink); color: var(--white); border-radius: 26px; padding: 58px 44px; text-align:center; }
.ctaband h2 { color: var(--white); margin-bottom: 12px; }
.ctaband p { color: #D7D1E6; max-width: 56ch; margin: 0 auto 26px; }
.ctaband.flourish { background: var(--grad-flourish); }

/* ============================ PRODUCT ============================ */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.feat { display:grid; gap:14px; margin-top: 22px; }
.feat .row { display:flex; gap:13px; }
.feat .row .tick { flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:var(--brand-tint); color:var(--brand-deep); display:grid; place-items:center; font-weight:700; font-size:.85rem; }
.status-chip { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:600; font-size:.85rem; padding:6px 14px; border-radius:999px; background:#EEE7FB; color:var(--secondary); }
.status-chip .d { width:8px; height:8px; border-radius:50%; background:var(--secondary); }

/* ============================ FOOTER ============================ */
footer { background: var(--ink); color: #C9C2DE; padding: 52px 0 30px; margin-top: 0; }
.foot-grid { display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.foot-brand { display:flex; align-items:center; gap:11px; color:var(--white); }
.foot-brand .name { font-family:var(--font-display); font-weight:700; font-size:1.2rem; }
.foot-col h5 { font-family:var(--font-display); color:var(--white); font-size:.92rem; margin-bottom:10px; }
.foot-col a { display:block; color:#C9C2DE; font-size:.92rem; margin-bottom:7px; }
.foot-col a:hover { color:var(--white); }
.foot-note { width:100%; border-top:1px solid rgba(255,255,255,.12); margin-top:30px; padding-top:20px; font-size:.84rem; color:var(--muted); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content:center; }
  .split { text-align:left; }
  .hero-art { order:-1; }
  .cards, .cards.two, .values, .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display:none; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .cards, .cards.two, .values, .stats-grid { grid-template-columns: 1fr; }
  .course { grid-template-columns: 1fr; gap: 12px; }
  .course .go { display:none; }
}
