/* ===========================================================
   BabbleBoxx — landing page shared styles
   Design tokens lifted from the brand guidelines.
   =========================================================== */

:root {
  /* Brand */
  --babble-pink: #F5ACCC;
  --oxford-navy: #091838;
  --vivid-blue:  #16E2FF;
  --oob-blue:    #00AEC7;
  --lls-pink:    #FF7BAC;
  --white:       #FFFFFF;
  --paper:       #FBF7F2;

  --ink:    var(--oxford-navy);
  --muted:  rgba(9, 24, 56, 0.6);
  --rule:   rgba(9, 24, 56, 0.12);

  --font-head: "termina", "Termina", "Montserrat", system-ui, sans-serif;
  --font-body: "sofia-pro", "Sofia Pro", "Outfit", system-ui, sans-serif;

  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-box:  16px;
  --radius-sm:   10px;

  --shadow-card: 0 20px 60px rgba(9, 24, 56, 0.12);
  --shadow-hero: 0 30px 80px rgba(9, 24, 56, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.on-dark   { color: rgba(255,255,255,0.7); }
.eyebrow.on-pink   { color: rgba(9,24,56,0.7); }

.h-display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-display .accent-pink  { color: var(--lls-pink); }
.h-display .accent-vivid { color: var(--vivid-blue); }
.h-display .accent-oob   { color: var(--oob-blue); }

.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(9,24,56,0.78);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.lede.on-dark { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--oxford-navy); color: var(--paper); }
.btn-primary:hover { background: #0e2354; }
.btn-primary.on-navy { background: var(--vivid-blue); color: var(--oxford-navy); }
.btn-primary.on-navy:hover { background: #5cebff; }
.btn-secondary {
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-secondary .arrow { transition: transform 0.18s ease; }
.btn-secondary:hover .arrow { transform: translateX(4px); }

/* ---------- Top nav (in-hero) ---------- */
.topbar {
  position: relative; z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 4vw, 56px);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .brand { display: flex; align-items: center; gap: 14px; }
.topbar .brand .logo {
  width: 132px;
  color: inherit;
}
.topbar .brand .logo svg { width: 100%; height: auto; fill: currentColor; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}
.topbar nav a:hover { opacity: 1; }
.topbar .top-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 900px) {
  .topbar nav { display: none; }
}

/* ---------- Placeholder system ----------
   Striped rectangle with monospace caption. NEVER replace with art.
*/
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background:
    repeating-linear-gradient(135deg,
      rgba(9,24,56,0.04) 0 14px,
      rgba(9,24,56,0.08) 14px 28px);
  border: 1px dashed rgba(9,24,56,0.25);
  border-radius: var(--radius-card);
  color: var(--oxford-navy);
  overflow: hidden;
}
.ph.on-dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(255,255,255,0.10) 14px 28px);
  border-color: rgba(255,255,255,0.32);
  color: var(--white);
}
.ph.on-pink {
  background:
    repeating-linear-gradient(135deg,
      rgba(9,24,56,0.04) 0 14px,
      rgba(9,24,56,0.10) 14px 28px);
  border-color: rgba(9,24,56,0.25);
}
.ph .ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  background: rgba(9,24,56,0.85);
  color: var(--paper);
  border-radius: 6px;
  margin: 14px;
  max-width: calc(100% - 28px);
  line-height: 1.35;
}
.ph.on-dark .ph-label { background: rgba(255,255,255,0.92); color: var(--oxford-navy); }
.ph .ph-corner {
  position: absolute;
  top: 14px; right: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(9,24,56,0.55);
  text-transform: uppercase;
}
.ph.on-dark .ph-corner { color: rgba(255,255,255,0.55); }

/* ---------- Logo helpers ---------- */
.bb-logo svg { width: 100%; height: auto; fill: currentColor; }

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vw, 64px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 96px);
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.flag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* CTA row */
.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* "Trusted by" rail under hero */
.trust-rail {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(9,24,56,0.12);
  margin-top: 8px;
}
.trust-rail.on-dark { border-top-color: rgba(255,255,255,0.18); }
.trust-rail .label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.trust-rail.on-dark .label { color: rgba(255,255,255,0.55); }
.trust-rail .logo-slot {
  width: 96px;
  height: 28px;
  background:
    repeating-linear-gradient(135deg,
      rgba(9,24,56,0.06) 0 8px,
      rgba(9,24,56,0.12) 8px 16px);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: rgba(9,24,56,0.55);
  letter-spacing: 0.06em;
}
.trust-rail.on-dark .logo-slot {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.08) 0 8px,
      rgba(255,255,255,0.16) 8px 16px);
  color: rgba(255,255,255,0.7);
}
