/* ============================================================
   LearnBetter — 2026 rebrand design system
   Warm paper + toy-brick. Bricolage Grotesque / Instrument Sans / Geist Mono.
   ============================================================ */

:root {
  --paper:   #FBF8F2;
  --ink:     #141A17;
  --ink-2:   #3F4A45;
  --ink-3:   #5E6B67;
  --muted:   #7A857F;
  --line:    rgba(20,26,23,.08);
  --line-2:  rgba(20,26,23,.14);

  --orange:  #F2683C;
  --orange-hi:#FF7A4F;
  --orange-ink:#D24E22;

  --grass-1: #8FD19E;
  --grass-2: #5FB56E;
  --grass-3: #3F9D5A;
  --grass-4: #2E7D4B;
  --grass-5: #1E5B45;

  --sky-1:   #9FD1F2;
  --sky-2:   #CDE6F7;
  --sky-3:   #E8F3FB;
  --sun:     #FFD27A;
  --blue:    #3D7DD8;

  --mint:    #DCEFE2;
  --peach:   #FBE0D2;
  --sky-card:#DCE6F2;
  --sand:    #F1E7D0;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
  /* The toy-brick voice: rounded, chunky, friendly. Used on the hero's brick
     labels, where a monospace read as a technical overlay rather than moulded
     plastic. */
  --font-brick:   'Fredoka', 'Bricolage Grotesque', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
/* No `a:hover { color: inherit }` here. It is specificity 0-1-1 and overrode
   every single-class button colour on hover — .btn-paper's ink became the
   hero's near-white and the label vanished on a white button. The rule above
   already applies in both states. */
button { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ── Shared keyframes (from the design kit) ─────────────── */
@keyframes rvUp   { from{opacity:0;transform:translateY(34px)} to{opacity:1;transform:translateY(0)} }
@keyframes rvPop  { from{opacity:0;transform:scale(.92) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }
@keyframes rvDraw { from{stroke-dashoffset:1} to{stroke-dashoffset:0} }
@keyframes lbUp   { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes lbBar  { from{width:0} to{width:100%} }
@keyframes bob    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes bobR   { 0%,100%{transform:translateY(0) rotate(-6deg)} 50%{transform:translateY(-8px) rotate(-3deg)} }
@keyframes drift  { from{transform:translateX(0)} to{transform:translateX(60px)} }
@keyframes tagIn  { from{opacity:0;transform:translate(-50%,6px)} to{opacity:1;transform:translate(-50%,0)} }
@keyframes marqL  { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes marqR  { from{transform:translateX(-50%)} to{transform:translateX(0)} }
@keyframes spin   { to{transform:rotate(360deg)} }
@keyframes ftDrift{ from{transform:translateX(0)} to{transform:translateX(40px)} }

/* Scroll-reveal helper (JS adds .in when the element enters the viewport;
   also works out of the box on browsers with animation-timeline:view()) */
.reveal { opacity: 0; }
.reveal.in { animation: rvUp .7s cubic-bezier(.2,.8,.2,1) both; }
.reveal-pop.in { animation: rvPop .7s cubic-bezier(.2,.8,.2,1) both; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 70px; padding: 0 5vw;
  background: rgba(251,248,242,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17.5px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -.03em; }
.nav-logo svg { width: 20px; height: 30px; }
.nav-right { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.nav-link { padding: 8px 12px; border-radius: 999px; background: transparent; transition: background .2s; }
.nav-link:hover { background: rgba(20,26,23,.06); }
.nav-link.active { background: rgba(20,26,23,.06); }
.nav-cta {
  margin-left: 10px; background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  white-space: nowrap; transition: transform .15s, background .2s, color .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--orange); color: var(--ink); }
.nav-toggle { display: none; }
.nav-mobile { display: none; }

/* Pricing hidden from navigation (kept as a reachable page) */
.nav-right a[href$="pricing.html"],
.nav-mobile a[href$="pricing.html"] { display: none !important; }
.ft-col li:has(a[href$="pricing.html"]) { display: none !important; }

@media (max-width: 720px) {
  .nav-right { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2);
    background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav-mobile {
    display: none; position: fixed; inset: 70px 0 auto 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 5vw 20px; flex-direction: column; gap: 4px;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 10px; border-radius: 12px; font-weight: 600; }
  .nav-mobile a.cta { background: var(--ink); color: var(--paper); text-align: center; margin-top: 8px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ft { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.ft-cta { position: relative; z-index: 2; text-align: center; padding: 96px 5vw 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ft-cta h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px,4.6vw,62px); line-height: .98; letter-spacing: -.04em; max-width: 16ch; }
.ft-cta h2 span { color: var(--orange); }
.ft-cta p { margin: 0; font-size: 18.5px; color: #A8B3AE; }
.ft-start { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s, background .2s; }
.ft-start:hover { transform: translateY(-1px); background: var(--orange); }
.ft-hills { position: relative; height: 150px; margin-top: 20px; overflow: hidden; }
.ft-hills i { position: absolute; display: block; border-radius: 50%; }
.ft-hills i:nth-child(1){ left:-12%; bottom:-70%; width:70%; height:150%; background: var(--grass-4); }
.ft-hills i:nth-child(2){ left:40%;  bottom:-90%; width:85%; height:170%; background: var(--grass-3); }
.ft-hills i:nth-child(3){ left:-25%; bottom:-110%; width:110%; height:180%; background: var(--grass-5); }
.ft-low { position: relative; z-index: 2; background: #0E1412; padding: 40px 5vw 28px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0,1fr)); gap: 28px; padding-bottom: 36px; font-size: 14px; }
.ft-brand a { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.ft-brand p { margin: 14px 0 0; color: #A8B3AE; line-height: 1.5; max-width: 240px; }
.ft-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #A8B3AE; margin-bottom: 14px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; color: #E6E9E6; }
.ft-col a:hover { color: var(--orange); }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(251,248,242,.12); font-size: 12.5px; color: #A8B3AE; }
.ft-bottom span:last-child { font-family: var(--font-mono); letter-spacing: .06em; }
@media (max-width: 780px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* ============================================================
   Shared building blocks
   ============================================================ */
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { font-family: var(--font-mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border-radius: 12px; padding: 14px 22px; font-weight: 600; font-size: 17.5px; cursor: pointer; border: none; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-hi); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--orange); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
