/* ============ Bright 360 — Design System ============ */
:root {
  --ink: #1B3D7A;            /* Bright cobalt (wordmark) */
  --ink-2: #15315F;          /* Darker cobalt */
  --ink-deep: #0E2451;       /* Deep navy for hero ink sections */
  --cream: #FFF6E3;          /* Warm cream tinted toward marigold */
  --paper: #FCFAF4;          /* Off-white paper */
  --peach: #F4A82C;          /* Marigold (logo accent) */
  --peach-deep: #D98D14;     /* Darker marigold */
  --moss: #2E5A8C;           /* Mid-blue (sibling to wordmark) */
  --moss-deep: #1F4470;
  --rose: #FFD58A;           /* Light marigold tint */
  --line: rgba(14, 31, 44, 0.12);
  --line-on-ink: rgba(246, 241, 232, 0.14);
  --muted: rgba(14, 31, 44, 0.62);
  --muted-on-ink: rgba(246, 241, 232, 0.66);

  --font-display: "Mulish", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Mulish", "Nunito Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.on-ink { color: var(--peach); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }
p.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--muted); }

a { color: inherit; text-decoration: none; }
a.text-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.text-link:hover { color: var(--peach-deep); }

/* Hand-drawn underline motif (SVG inline) */
.handdrawn {
  position: relative;
  display: inline-block;
}
.handdrawn::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: -8px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 40 2, 80 12, 120 6 S 180 10, 198 5' stroke='%23F4A82C' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.handdrawn.moss::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 40 2, 80 12, 120 6 S 180 10, 198 5' stroke='%231B3D7A' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
}
.handdrawn.cream::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 40 2, 80 12, 120 6 S 180 10, 198 5' stroke='%23F6F1E8' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
}

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section.tight { padding: clamp(48px, 6vw, 88px) 0; }
.bg-ink { background: var(--ink-deep); color: var(--cream); }
.bg-ink p, .bg-ink .lede { color: var(--muted-on-ink); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-peach { background: var(--peach); color: var(--ink); }
.bg-moss { background: var(--moss); color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-2); }
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-peach:hover { background: var(--peach-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-ink { color: var(--cream); border-color: var(--line-on-ink); }
.btn-ghost.on-ink:hover { border-color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-arrow::after {
  content: "→"; transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(14, 31, 44, 0.06);
  color: var(--ink);
}
.pill.on-ink { background: rgba(246, 241, 232, 0.08); color: var(--cream); }
.pill.peach { background: rgba(232, 168, 124, 0.18); color: var(--peach-deep); }
.pill.moss { background: rgba(61, 107, 92, 0.14); color: var(--moss-deep); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.pill.live .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(14, 31, 44, 0.18); }
.card.on-ink { background: rgba(246, 241, 232, 0.04); border-color: var(--line-on-ink); }

/* Sticky CTA bar */
.sticky-cta {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: 10px 10px 10px 22px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 14px;
  z-index: 80;
  box-shadow: 0 20px 50px -10px rgba(14, 31, 44, 0.4);
  font-size: 14px;
  max-width: calc(100vw - 24px);
}
.sticky-cta .btn { padding: 10px 18px; font-size: 14px; }
.sticky-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); animation: pulse 2s infinite; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.on-ink {
  background: rgba(14, 31, 44, 0.85);
  border-bottom-color: var(--line-on-ink);
  color: var(--cream);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14.5px; cursor: pointer;
  transition: background .15s ease;
  position: relative;
}
.nav-link:hover { background: rgba(14, 31, 44, 0.05); }
.nav.on-ink .nav-link:hover { background: rgba(246, 241, 232, 0.06); }
.nav-link.active { background: var(--ink); color: var(--cream); }
.nav.on-ink .nav-link.active { background: var(--cream); color: var(--ink); }

/* Mobile nav hide */
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flow > * + * { margin-top: 18px; }
.flow-lg > * + * { margin-top: 32px; }

/* Divider */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

/* Image placeholder */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(14,31,44,0.06) 0 1px, transparent 1px 12px),
    var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  min-height: 180px;
}
.placeholder.on-ink {
  background:
    repeating-linear-gradient(135deg, rgba(246,241,232,0.04) 0 1px, transparent 1px 12px),
    rgba(246,241,232,0.02);
  border-color: var(--line-on-ink);
  color: var(--muted-on-ink);
}

/* Form inputs */
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 31, 44, 0.08);
}
.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s ease both; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Small util */
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted.on-ink { color: var(--muted-on-ink); }

/* Footer */
.footer { background: var(--ink-deep); color: var(--cream); padding: 80px 0 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 18px; font-weight: 500; }
.footer a { display: block; padding: 4px 0; color: var(--cream); opacity: 0.85; font-size: 14.5px; }
.footer a:hover { opacity: 1; color: var(--peach); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-on-ink); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted-on-ink); }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ============================================================
   Mobile burger nav
   ============================================================ */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  border-radius: 12px;
  color: inherit;
}
.nav-burger:hover { background: rgba(14, 31, 44, 0.05); }
.nav.on-ink .nav-burger:hover { background: rgba(246, 241, 232, 0.06); }
.nav-burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}
.nav-burger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-burger-icon span:nth-child(1) { top: 0; }
.nav-burger-icon span:nth-child(2) { top: 6px; }
.nav-burger-icon span:nth-child(3) { top: 12px; }
.nav-burger-icon.is-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger-icon.is-open span:nth-child(2) { opacity: 0; }
.nav-burger-icon.is-open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(14, 31, 44, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  animation: fadeUp .25s ease both;
}
.nav-drawer-panel {
  background: var(--paper);
  color: var(--ink);
  padding: 24px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-link {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav-drawer-link.is-header {
  font-weight: 800;
}
.nav-drawer-link.is-child {
  padding-left: 18px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.nav-drawer-link:hover { color: var(--peach-deep); }
.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   Tablet & below (<= 980px)
   ============================================================ */
@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .nav-cta-call { display: none; }   /* hide ghost CTA on tablet/mobile, keep peach CTA */
  .nav-row { gap: 12px; }
  .sticky-cta { font-size: 13px; padding: 8px 8px 8px 18px; gap: 10px; }
  .sticky-cta .btn { padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
   Phone (<= 720px)
   ============================================================ */
@media (max-width: 720px) {
  /* Hide both header CTAs on small phones - burger holds them */
  .nav-cta { display: none; }

  /* Tighter vertical rhythm */
  .section { padding: clamp(48px, 11vw, 96px) 0; }
  .section.tight { padding: clamp(36px, 8vw, 64px) 0; }

  /* Smaller display type */
  h1 { font-size: clamp(36px, 9vw, 56px); letter-spacing: -0.025em; line-height: 1.05; }
  h2 { font-size: clamp(26px, 7vw, 40px); letter-spacing: -0.02em; }
  h3 { font-size: clamp(20px, 5vw, 26px); }
  p.lede { font-size: 16.5px; }

  /* Single-column inline grids */
  .founder-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .adultrow { grid-template-columns: 1fr !important; gap: 24px !important; }
  .adultrow > div { order: unset !important; }
  .howgrid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Sticky CTA - compact pill */
  .sticky-cta {
    bottom: 12px;
    padding: 6px 6px 6px 14px;
    font-size: 12px;
    gap: 8px;
    max-width: calc(100vw - 16px);
    flex-wrap: nowrap;
  }
  .sticky-cta > span:nth-of-type(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 38vw;
  }
  .sticky-cta .btn { padding: 8px 12px; font-size: 12px; white-space: nowrap; }

  /* Buttons fill width when in a row that wraps */
  .btn { font-size: 14.5px; padding: 13px 22px; }

  /* Card padding */
  .card { padding: 22px; }

  /* Footer compact */
  .footer { padding: 56px 0 28px; }
  .footer-bottom { font-size: 12px; }

  /* Marquee a touch tighter */
  .marquee-track { gap: 36px; }
  .marquee-track span { font-size: 18px !important; }
}

/* ============================================================
   Small phone (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 10vw, 44px); }
  h2 { font-size: clamp(24px, 8vw, 32px); }

  /* Stack rows that contain buttons on small screens */
  .row { gap: 10px; }

  /* Truncate sticky CTA copy further */
  .sticky-cta > span:nth-of-type(2) { max-width: 32vw; }

  /* Section padding */
  .section { padding: clamp(40px, 12vw, 80px) 0; }

  /* Form inputs slightly larger touch target */
  .input, .select, .textarea { font-size: 16px; padding: 13px 14px; }

  /* Card pad */
  .card { padding: 20px; }
}

/* ============================================================
   Extra-small phone (<= 380px)
   ============================================================ */
@media (max-width: 380px) {
  .sticky-cta > span:nth-of-type(2) { display: none; }
  .nav-row { height: 64px; }
  .nav-drawer { inset: 64px 0 0 0; }
}
