/* ============================================================
   GNOSIS ACADEMY — Design Tokens
   Light, sky-blue + gold. Pulled from the AI Literacy Lab logo.
   ============================================================ */

@font-face {
  font-family: "Dammit Sans";
  src: local("Dammit Sans"),
       url("./fonts/DammitSans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Rubik:wght@400;500;600;700&display=swap");

:root {
  /* ============ SKY BLUE (PRIMARY BRAND) ============ */
  --color-sky-soft: #E1ECF7;       /* Wash — section bands */
  --color-sky-light: #A8C8E6;      /* Hover, soft surfaces */
  --color-sky: #6FA8DC;             /* PRIMARY brand — logo bg */
  --color-sky-deep: #2E5C8A;        /* Anchored — links, ink */

  /* ============ GOLD (ACCENT) ============ */
  --color-gold: #E8B225;            /* Logo lightbulb gold */
  --color-gold-soft: #F5D26A;       /* Hover, highlights */

  /* ============ NAVY (HEADLINES + DARK SECTIONS) ============ */
  --color-navy: #0E1B2E;
  --color-navy-deep: #0A1424;
  --color-navy-mid: #142236;

  /* ============ PAPER / NEUTRAL ============ */
  --color-paper: #FBF9F4;           /* Warm off-white */
  --color-white: #FFFFFF;

  /* ============ SLATE (NEUTRALS) ============ */
  --color-slate: #7FA4BF;
  --color-slate-soft: #D7E3EC;
  --color-slate-dark: #26405A;

  /* ============ PLUM (DATA VIZ) ============ */
  --color-plum-900: #712d55;
  --color-plum-700: #8e4d99;
  --color-plum-500: #7e6cb4;
  --color-plum-300: #9ba4d4;
  --color-plum-100: #cde1f6;

  /* ============ TEXT ============ */
  --color-text-primary: #0E1B2E;    /* Body on light */
  --color-text-secondary: #3F5670;
  --color-text-muted: #6B7E92;
  --color-text-on-dark: #DDE2EA;
  --color-text-on-sky: #FFFFFF;

  /* ============ ALIASES ============ */
  --color-bg: var(--color-white);
  --color-bg-band: var(--color-sky-soft);
  --color-bg-dark: var(--color-navy);
  --color-border: #DCE4EC;
  --color-border-strong: var(--color-slate);
  --color-interactive: var(--color-sky-deep);
  --color-interactive-hi: var(--color-gold);

  /* ============ SHADOWS ============ */
  --shadow-card: rgba(46, 92, 138, 0.08) 0px 4px 12px;
  --shadow-card-hover: rgba(46, 92, 138, 0.16) 0px 10px 24px;
  --shadow-input-focus: rgba(111, 168, 220, 0.30) 0px 0px 0px 3px;
  --shadow-button-inset: rgba(0, 0, 0, 0.10) 0px 1px 2px 0px inset;

  /* ============ RADII ============ */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 13px;
  --radius-pill: 18px;
  --radius-full: 999px;

  /* ============ SPACING ============ */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 48px;
  --space-9: 64px; --space-10: 80px;

  /* ============ TYPOGRAPHY ============ */
  --font-display: "Dammit Sans", "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Rubik", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Monaco", "Menlo", "Ubuntu Mono", monospace;

  --fs-display-1: 5.5rem; --fs-display-2: 3.75rem;
  --fs-h1: 1.875rem; --fs-h2: 1.6875rem; --fs-h3: 1.5rem; --fs-h4: 1.25rem;
  --fs-body: 1rem; --fs-nav: 0.9375rem; --fs-button: 0.875rem;
  --fs-caption-sm: 0.75rem; --fs-micro: 0.625rem;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.10; --lh-snug: 1.20; --lh-heading: 1.25; --lh-body: 1.50;
  --tracking-button: 0.2px; --tracking-micro: 0.25px;

  --container-max: 1152px;
}

.gnosis-base {
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
.display-1 { font-family: var(--font-display); font-size: var(--fs-display-1); font-weight: 700; line-height: 1.10; letter-spacing: -2px; color: var(--color-navy); }
.display-2 { font-family: var(--font-display); font-size: var(--fs-display-2); font-weight: 500; line-height: 1.10; color: var(--color-navy); }
.h1 { font-family: var(--font-ui); font-size: var(--fs-h1); font-weight: 500; line-height: 1.20; color: var(--color-navy); }
.h2 { font-family: var(--font-ui); font-size: var(--fs-h2); font-weight: 500; line-height: 1.25; color: var(--color-navy); }
.h3 { font-family: var(--font-ui); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--color-navy); }
.h4 { font-family: var(--font-ui); font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; color: var(--color-navy); }
.body { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 400; line-height: 1.50; color: var(--color-text-secondary); }
.uppercase-label {
  font-family: var(--font-ui); font-size: var(--fs-nav); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--tracking-button);
  color: var(--color-sky-deep);
}
.btn-text {
  font-family: var(--font-ui); font-size: var(--fs-button); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--tracking-button);
}
.micro-label {
  font-family: var(--font-ui); font-size: var(--fs-micro); font-weight: 600;
  line-height: 1.80; letter-spacing: var(--tracking-micro);
  text-transform: uppercase; color: var(--color-text-muted);
}
code, .code {
  font-family: var(--font-mono); font-size: 0.9em; color: var(--color-sky-deep);
  background: var(--color-sky-soft); padding: 2px 6px; border-radius: 4px;
}

/* ============================================================
   MOBILE — global responsive overrides
   Tightens container padding, scales section padding, collapses
   grids, and resizes oversized hero/heading type. Component-level
   .className hooks are still respected; this file handles the
   broad strokes so individual components don't need rewrites.
   ============================================================ */
@media (max-width: 760px) {
  .container { padding: 0 20px !important; }

  /* Section padding compresses on mobile (was 96px 0) */
  section[id="top"]            { padding: 40px 0 56px !important; }
  section[id="lab-vs-cohort"],
  section[id="curriculum"],
  section[id="who-fits"],
  section[id="enrolment"],
  section[id="faq"]            { padding: 64px 0 !important; }

  /* Catch the un-id'd sections too — every <section> shrinks */
  main > section               { padding-top: 64px !important; padding-bottom: 64px !important; }
  main > section[id="top"]     { padding: 40px 0 56px !important; }

  /* Closing CTA section (dark, big) */
  main > section:has(> .container[style*="text-align"]) { padding: 80px 0 !important; }

  /* Headings — clamp() handles most, but a few are still big */
  h1, h2, h3 { letter-spacing: -0.5px !important; }

  /* All known multi-column grids collapse to 1 column */
  .lvc-grid,
  .pillar-grid,
  .curr-cards,
  .who-grid,
  .outcomes-grid,
  .testimonials-grid,
  .enrol-grid,
  .enrol-features,
  .faq-grid,
  .discovery-grid,
  .footer-grid,
  .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Stats grid (4-up) → 2-up */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Weekly rhythm 5-up → 2-up looks fine but 1-up reads better */
  .rhythm-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Scarcity strip 3-stat + CTA → stack */
  .lvc-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 24px !important;
  }
  .lvc-strip > a { grid-column: 1 / -1 !important; justify-content: center !important; }

  /* FAQ sticky aside loses sticky on mobile */
  .faq-grid > aside { position: static !important; }

  /* Discovery card — tighter padding on phones */
  .discovery-grid { padding: 28px !important; }
}

/* Smaller phones */
@media (max-width: 480px) {
  .container { padding: 0 16px !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .rhythm-grid { grid-template-columns: 1fr !important; }
  .lvc-strip { grid-template-columns: 1fr !important; }
}
