/* ════════════════════════════════════════════════════════════
   FlatLabs · base.css  —  SHARED BRAND FOUNDATION
   ────────────────────────────────────────────────────────────
   The single source of truth for brand tokens, type, the top
   nav, the footer and core buttons. Linked FIRST on every page;
   section stylesheets (styles.css / legal.css / learn.css) load
   AFTER and may only add their own rules.

   ⚠ Brand coral is defined here and NOWHERE ELSE. Do not
   re-declare --accent in a section stylesheet — that is how two
   different corals (#FF6B57 / #ff9a6e) once shipped at the same
   time. One coral, one place.
   ════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand accent — the one coral, used site-wide ── */
  --accent:        #FF6B57;   /* nav CTA · logo mark · links · active states */
  --accent-hover:  #E85946;
  --accent-soft:   rgba(255, 107, 87, .10);
  --accent-line:   rgba(255, 107, 87, .22);
  --accent-text:   #FFFFFF;

  /* ── Neutrals (warm near-black + paper grays) ── */
  --ink:           #1A1A1A;   /* primary text */
  --ink-soft:      #5A636B;   /* secondary text */
  --ink-dim:       #9AA1A8;   /* tertiary / captions */
  --rule:          rgba(26, 26, 26, .10);
  --rule-soft:     rgba(26, 26, 26, .06);
  --border:        #E7E7E2;
  --bg:            #FFFFFF;
  --surface:       #F7F7F4;
  --surface-2:     #EFEFEA;
  --surface-paper: #FAF8F3;   /* warm paper — cards, callouts */
  --surface-dark:  #18191B;   /* footer + dark sections */

  /* ── Type ── */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Motion + shape ── */
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --radius:    14px;
  --radius-sm: 10px;
}

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

::selection { background: var(--accent-soft); color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   TOP NAV — identical on every marketing / content page
   Markup: <nav> (or <nav class="site-nav">) > .logo + .nav-links
   ════════════════════════════════════════════════════════════ */
nav.site-nav,
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rule-soft);
}

.logo {
  font-family: var(--sans);
  font-size: 17px; font-weight: 700;
  letter-spacing: -.4px;
  color: var(--ink);
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .1px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: .3px;
  transition: background .25s var(--ease) !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* ════════════════════════════════════════════════════════════
   FOOTER — consistent across sections (dark band)
   Markup: <footer> (or <footer class="site-footer">)
   ════════════════════════════════════════════════════════════ */
footer.site-footer,
body > footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, .55);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
}
body > footer .footer-links,
footer.site-footer .footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
body > footer a,
footer.site-footer a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s var(--ease);
}
body > footer a:hover,
footer.site-footer a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   BUTTONS — shared primitives
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 14px 26px;
  border: none; border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink);
  padding: 13px 22px;
  border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

/* ── Mobile nav: collapse text links, keep CTA ── */
@media (max-width: 900px) {
  nav.site-nav, body > nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  nav.site-nav, body > nav { height: 52px; padding: 0 16px; }
  .logo { font-size: 15px; }
  .nav-cta { padding: 7px 14px !important; font-size: 11px !important; }
  body > footer, footer.site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
