/* ============ Streamline — Design Tokens ============ */
:root {
  --navy: #12263A;
  --navy-ink: #0D1D2C;
  --green: #22C55E;
  --blue: #38BDF8;
  --slate: #4A5568;
  --line: #E5E7EB;
  --off-white: #F8FAFC;
  --white: #FFFFFF;

  --font-head: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
  }
  .home-page .nav-toggle span { background: var(--white); }
  .navy-theme .nav-toggle span { background: var(--white); }
  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 var(--pad) 20px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--navy);
    border-top: 1px solid var(--line);
    font-weight: 500;
  }
  .home-page .mobile-nav a { color: var(--white); border-top-color: rgba(255,255,255,0.15); }
  .navy-theme .mobile-nav a { color: var(--white); border-top-color: rgba(255,255,255,0.15); }
}
@media (min-width: 641px) {
  .mobile-nav { display: none; }
}

/* ---------- Intro animation overlay ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.intro-overlay.fade-out { opacity: 0; pointer-events: none; }
.intro-logo-full {
  position: relative;
  width: min(90%, 640px);
  height: auto;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.intro-overlay.show-logo .intro-logo-full { opacity: 1; transform: scale(1); }
.intro-overlay.syncing .intro-logo-full { transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1); }
#hero-logo-real.pending-reveal { opacity: 0; }

/* ---------- Home page: navy header ---------- */
.home-page .site-header {
  background: var(--navy);
  border-bottom-color: rgba(255,255,255,0.12);
}
.home-page .site-nav a { color: var(--white); }
.home-page .site-nav a:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #1ea852; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); }

/* ---------- Hero (dark, home page) ---------- */
.hero {
  padding: clamp(64px, 12vw, 120px) 0 clamp(56px, 10vw, 96px);
}
.hero .wrap { max-width: 900px; text-align: center; }
.hero-dark {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero-lockup { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(64px, 12vw, 120px); }
.hero-logo-full {
  width: min(90%, 640px);
  height: auto;
}
.geo-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.hero-dark .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
}
.hero h1 .line-nowrap { white-space: nowrap; }
.hero h1 .accent-green { color: var(--green); }
.hero p.lede {
  font-size: 1.2rem;
  color: var(--blue);
  margin-top: 22px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.lede-dark { color: rgba(255,255,255,0.75) !important; }
.hero .cta-row { margin-top: 38px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero .tagline {
  font-size: 0.9rem;
  color: var(--slate);
  font-style: italic;
}
.tagline-dark { color: rgba(255,255,255,0.55) !important; }

/* ---------- Section dividers ---------- */
.section-divider {
  background: var(--off-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.section-divider svg { width: 160px; height: 20px; display: block; margin: 0 auto; }
.divider-on-light { background: var(--white); border-top: 1px solid var(--line); }

/* ---------- How It Works ---------- */
.how {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--off-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 8px; position: relative; padding-left: 18px; }
.how h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 4px;
  height: 0.9em;
  background: var(--green);
  border-radius: 2px;
}
.how .intro { color: var(--slate); max-width: 52ch; margin-bottom: 48px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
}
.step .icon { width: 44px; height: 44px; margin-bottom: 18px; }
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--navy-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 10px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; }
.step p { color: var(--slate); font-size: 0.97rem; margin: 0; }

/* ---------- Services ---------- */
.services { padding: clamp(56px, 9vw, 96px) 0; }
.services h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); position: relative; padding-left: 18px; }
.services h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 4px;
  height: 0.9em;
  background: var(--blue);
  border-radius: 2px;
}
.services .intro { color: var(--slate); max-width: 52ch; margin: 10px 0 40px; }
.price-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.price-row {
  background: var(--white);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.price-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price-row p { color: var(--slate); font-size: 0.92rem; margin: 0; max-width: 48ch; }
.price-row .amount { font-family: var(--font-head); font-weight: 700; color: var(--green); white-space: nowrap; font-size: 1.05rem; }
@media (max-width: 640px) {
  .price-row { flex-direction: column; gap: 8px; }
}

.services-dark {
  background: var(--navy);
}
.services-dark h2 { color: var(--white); }
.services-dark h2::before { background: var(--blue); }
.services-dark .intro { color: rgba(255,255,255,0.7); }
.services-dark .price-list { background: transparent; border: none; gap: 16px; }
.services-dark .price-row {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.services-dark .price-row h3 { color: var(--blue); }
.services-dark .price-row p { color: var(--slate); }
.services-dark .price-row .amount { color: var(--green); }

/* ---------- Trust ---------- */
.trust {
  padding: clamp(48px, 8vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.trust .wrap { max-width: 640px; }
.trust h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  position: relative;
  padding-left: 18px;
}
.trust h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 4px;
  height: 0.9em;
  background: var(--green);
  border-radius: 2px;
}
.trust p { color: var(--slate); }

/* ---------- Closing CTA band ---------- */
.closing {
  background: var(--navy);
  padding: clamp(56px, 9vw, 88px) 0;
  text-align: center;
}
.closing h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 20ch;
  margin: 0 auto 28px;
}
.closing h2 .accent-green { color: var(--green); }
.closing .footer-line {
  margin-top: 34px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}
.closing-textured { position: relative; overflow: hidden; }
.closing-textured .geo-texture { opacity: 0.16; }
.closing-textured .wrap { position: relative; z-index: 1; }

/* ---------- Page header (About/Contact) ---------- */
.page-hero { padding: clamp(56px, 9vw, 88px) 0 clamp(32px, 6vw, 56px); }
.page-hero .wrap { max-width: 760px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.contact-lockup { margin-bottom: 56px; text-align: center; }
.contact-lockup-full { width: min(90%, 640px); height: auto; margin: 0 auto; }
.page-body { padding-bottom: clamp(56px, 9vw, 88px); }
.page-body .wrap { max-width: 760px; }
.page-body p { color: var(--navy); font-size: 1.02rem; margin: 0 0 20px; }
.page-body h3 { font-size: 1.2rem; margin: 40px 0 16px; }
.page-body .final-cta { margin-top: 40px; text-align: center; }

/* ---------- Splash landing page ---------- */
.splash {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--pad);
}
.splash .line-texture { opacity: 0.14; }
.splash-content { position: relative; z-index: 1; }
.splash img.splash-logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}
.splash .splash-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-top: 18px;
}
.splash .splash-tag {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 40px;
}
.splash .btn-primary { padding: 15px 34px; }
.contact-block { margin: 40px 0; padding: 28px; background: var(--off-white); border-radius: 10px; min-width: 0; }
.contact-block iframe, .contact-block .calendly-inline-widget { max-width: 100%; }
.contact-block h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }

.contact-grid-wrap { max-width: 800px; }
.tick-green { display: inline-block; width: 4px; height: 1em; background: var(--green); border-radius: 2px; }
.accent-blue-nowrap { color: var(--blue); white-space: nowrap; }
.accent-blue { color: var(--blue); }
.divider-on-navy { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
.embed-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--slate);
  font-size: 0.9rem;
  background: var(--white);
}

/* ---------- Navy page theme (About) ---------- */
.navy-theme {
  background: var(--navy);
  color: var(--white);
}
.navy-theme .site-header { border-bottom-color: rgba(255,255,255,0.12); }
.navy-theme .site-nav a { color: var(--white); }
.navy-theme .site-nav a:hover { color: var(--blue); }
.navy-theme .page-hero h1 { color: var(--white); }
.navy-theme .page-body h3 { color: var(--blue); display: flex; align-items: center; gap: 10px; }
.tick-blue { display: inline-block; width: 4px; height: 1em; background: var(--blue); border-radius: 2px; }
.accent-green { color: var(--green); }
.navy-theme .page-body p { color: rgba(255,255,255,0.82); }
.navy-theme .footer-line { color: rgba(255,255,255,0.4); }

/* Recreated subtle line-texture, inspired by the blueprint/pathway concept */
.line-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--blue) 0px, var(--blue) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, var(--blue) 0px, var(--blue) 1px, transparent 1px, transparent 64px);
}
.navy-theme .site-header,
.navy-theme .page-hero,
.navy-theme .page-body,
.navy-theme .closing {
  position: relative;
  z-index: 1;
}
