/* Keens Academy — Landing Set v2 (KEE-985)
 * Shared tokens + base styles for /v2 home, /v2/about, /v2/courses-list.
 * Inherits design language from /landing-pages/level-check.html + trio.
 */

/* ── TOKENS ────────────────────────────────────────────────────── */
:root {
  --blue:       #0844e4;
  --blue-dark:  #062fb0;
  --blue-bright:#1a5af0;
  --cream:      #FAF8F4;
  --white:      #FFFFFF;
  --text:       #0F172A;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:   1200px;
  --pad-x:   clamp(20px, 5vw, 60px);
  --section-y: clamp(72px, 11vw, 130px);
  --radius:  3px;
  --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.008em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue);
  display: block; margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--text);
}
.section-sub {
  font-size: 17px; line-height: 1.65; color: var(--muted);
  margin-top: 18px; max-width: 580px; letter-spacing: -0.015em;
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-family: var(--font-body); font-size: 13px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .18s, border-color .18s, color .18s, transform .1s;
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-primary:hover { background: var(--blue-bright); border-color: var(--blue-bright); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--cream); }
.btn-lg { font-size: 14px; padding: 16px 36px; }

/* ── NAV ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 0;
  transition: background .35s, padding .3s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,248,244,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 14px 0; border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; line-height: 0; position: relative; }
.nav-logo img { height: 30px; width: auto; transition: opacity .25s; }
.nav-logo .logo-dark { display: block; }
.nav-logo .logo-white { display: none; }
.nav.on-dark .nav-logo .logo-dark { display: none; }
.nav.on-dark .nav-logo .logo-white { display: block; }
.nav.on-dark.scrolled .nav-logo .logo-dark { display: block; }
.nav.on-dark.scrolled .nav-logo .logo-white { display: none; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  transition: color .18s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav.on-dark .nav-link { color: rgba(255,255,255,0.75); }
.nav.on-dark .nav-link:hover, .nav.on-dark .nav-link.active { color: #fff; }
.nav.on-dark.scrolled .nav-link { color: var(--muted); }
.nav.on-dark.scrolled .nav-link:hover, .nav.on-dark.scrolled .nav-link.active { color: var(--text); }
/* Hide nav contents over a dark hero until the user scrolls past the fold */
.nav.on-dark:not(.scrolled) .nav-inner { opacity: 0; pointer-events: none; }
.nav.on-dark .nav-inner { transition: opacity .35s; }

/* Ghost-style nav CTA per board spec */
.nav-cta {
  font-size: 12.5px; padding: 10px 18px; min-height: 44px;
  background: transparent; color: var(--text);
  border: 1px solid rgba(15,23,42,0.45);
  letter-spacing: 0.06em; text-transform: none;
  font-weight: 600; border-radius: 999px;
}
.nav-cta:hover { background: var(--text); color: var(--cream); border-color: var(--text); }
.nav.on-dark .nav-cta {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.nav.on-dark .nav-cta:hover { background: #fff; color: var(--text); border-color: #fff; }
.nav.on-dark.scrolled .nav-cta {
  background: transparent; color: var(--text);
  border: 1px solid rgba(15,23,42,0.45);
}
@media (max-width: 720px) {
  .nav-menu { gap: 14px; }
  .nav-link { font-size: 11px; letter-spacing: 0.1em; }
  .nav-cta { padding: 10px 16px; font-size: 11px; }
  .nav-logo img { height: 26px; }
}
@media (max-width: 480px) {
  .nav-link[data-mobile-hide="true"] { display: none; }
}

/* ── FADE-IN ───────────────────────────────────────────────────── */
.fade-in { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s ease; }
.fade-in.fade-prep { opacity: 0; transform: translateY(28px); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in.fade-prep, .fade-in.visible { opacity: 1; transform: none; transition: none; }
}

/* ── PREVIEW BANNER ────────────────────────────────────────────── */
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #0F172A; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 16px; text-align: center;
}
.preview-banner + .nav { top: 28px; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer { background: #0F172A; color: rgba(255,255,255,0.7); padding: 70px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px; color: #fff; margin-bottom: 14px;
}
.footer-brand-logo {
  display: block;
  height: 28px; width: auto;
  margin-bottom: 16px;
}
.footer-tag { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px; color: rgba(255,255,255,0.75);
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
