/* ============================================================
   Project Mojo — shared design system
   Single source of truth for tokens, base type, layout rhythm,
   dividers and the section-label (eyebrow) pattern.
   Baseline: index.html. Section rhythm: 64px (mobile) / 88px (desktop).
   Linked BEFORE each page's inline <style>, so pages may still
   override any of this for page-specific needs.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg: #f5f4fb;
  --bg-1: #eeecf9;
  --bg-2: #e7e4f4;
  --bg-inv: #ebe8e4;
  --purple: #5e18b8;
  --purple-dk: #4e119e;
  --purple-hv: #400e88;
  --purple-dim: rgba(94, 24, 184, 0.07);
  --orange: #f4521e;
  --orange-dk: #f4521e;
  --orange-hv: #d94015;
  --ink: #0e0c22;
  --ink-2: rgba(14, 12, 34, 0.62);
  --ink-3: rgba(14, 12, 34, 0.38);
  --ink-inv: #f0eef8;
  --ink-inv-2: rgba(240, 238, 248, 0.62);
  --hair: rgba(14, 12, 34, 0.09);
  --hair-2: rgba(14, 12, 34, 0.14);
  --hair-inv: rgba(255, 255, 255, 0.09);
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.15);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.2);
  --shadow-card: 0 2px 8px rgb(0 0 0 / 0.18);
  --shadow-brand: 0 2px 8px rgba(169, 148, 232, 0.22);
  --max: 480px;
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: var(--max);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
}
a {
  color: var(--purple);
  text-decoration: none;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 {
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}
h2 {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
  font-weight: 400;
}
.accent {
  color: var(--purple);
}
.accent-o {
  color: var(--orange-dk);
}
.large-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 400;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.will-animate {
  opacity: 0;
  transform: translateY(20px);
}
.fade-up.will-animate.in {
  opacity: 1;
  transform: translateY(0);
}

.sweep {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sweep.animate {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}
.sweep.animate.in {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
}

.slide-right {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-right.will-animate {
  opacity: 0;
  transform: translateX(-16px);
}
.slide-right.will-animate.in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .sweep,
  .slide-right {
    transition: opacity 0.3s ease;
    transform: none;
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ── NAV SHELL ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(245, 244, 251, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-m {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.01em;
}
.logo-img {
  height: 20px;
  width: auto;
  display: block;
}

/* ── NAV DROPDOWN — desktop "Solutions" menu ─────────────── */
/* Lives inside .nav-links, which is hidden on mobile, so these rules
   only render on desktop. */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link-drop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-caret {
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 168px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 28px rgba(20, 16, 12, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  z-index: 200;
}
/* invisible bridge so the menu doesn't close in the gap on the way down */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-item {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.14s,
    color 0.14s;
}
.nav-dropdown-item:hover {
  background: var(--wash, rgba(94, 24, 184, 0.06));
  color: var(--purple);
}

/* ── SECTION RHYTHM + DIVIDERS ───────────────────────────── */
/* Canonical vertical rhythm: 64px mobile, 88px desktop.
   A single hairline divides consecutive sections — do not add
   ad-hoc border-top/border-bottom on individual sections. */
.sec {
  padding: 64px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.sec + .sec {
  border-top: 1px solid var(--hair);
}

/* ── EYEBROW / SECTION LABEL ─────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── EYEBROW — script "signature" (hero / major section intros) ─ */
/* The brand flourish used on the homepage hero. Use it for page
   heroes; keep the uppercase .eyebrow above for in-page section
   labels. Requires Lora to be loaded on the page. Markup:
   <p class="eyebrow-script"><span class="eyebrow-ink">Text<svg
     class="eyebrow-underline" viewBox="0 0 200 11"
     preserveAspectRatio="none" aria-hidden="true"><path
     d="M3 6 C 55 2, 150 3, 197 5" stroke="#f4521e" stroke-width="2.4"
     fill="none" stroke-linecap="round"/></svg></span></p> */
.eyebrow-script {
  font-family: "Lora", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--purple);
  margin-bottom: 18px;
}
.eyebrow-ink {
  position: relative;
  display: inline-block;
}
.eyebrow-underline {
  position: absolute;
  left: -4%;
  bottom: -9px;
  width: 108%;
  height: 11px;
  overflow: visible;
}

/* ── EARLY-ACCESS MODAL: desktop = centered card; mobile stays a bottom sheet ──
   Higher-specificity (.modal-bg.open …) so it overrides each page's inline
   bottom-sheet base rules regardless of stylesheet load order. */
@media (min-width: 768px) {
  .modal-bg.open {
    align-items: center;
    padding: 24px;
  }
  .modal-bg.open .modal-sheet {
    max-width: 460px;
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 30px 34px 34px;
  }
  .modal-bg.open .modal-handle {
    display: none;
  }
  .modal-bg.open .modal-h {
    font-size: 22px;
  }
  .modal-bg.open .modal-sub {
    margin-bottom: 24px;
  }
}
