/* ==========================================================================
   Navige — shared site stylesheet
   Canonical design tokens + nav/footer/button/section/card/icon/motion
   primitives, linked from every real page under website/. Page-local
   <style> blocks should only contain that page's unique layout.
   ========================================================================== */

:root {
  --teal:    #0891b2;
  --teal-d:  #0e7490;
  --teal-l:  #e0f2fe;
  --navy:    #0f172a;
  --slate:   #1e293b;
  --body:    #334155;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --green:   #16a34a;  --green-l: #dcfce7;
  --red:     #dc2626;  --red-l:   #fee2e2;
  --amber:   #d97706;  --amber-l: #fef3c7;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--navy); }
a { color: inherit; }

/* ── Nav — shared by every page. Two real layout variants exist on
   purpose: pages with a mobile menu (nav-inner/nav-links/hamburger) and
   simpler desktop-oriented pages (nav-logo/nav-right). Both share the
   same tokens and the same dropdown mechanics below. ── */
nav, .nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
nav:not(.nav) { padding: 0 40px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo, .nav-logo {
  display: inline-flex; align-items: flex-start; text-decoration: none;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy);
}
.nav-links, .nav-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; row-gap: 8px; }
.nav-links > a, .nav-right > a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.nav-links > a:hover, .nav-right > a:hover { color: var(--navy); }
.nav-pill, .nav-cta {
  background: var(--teal); color: var(--white) !important; padding: 8px 18px;
  border-radius: 8px; font-weight: 600 !important; text-decoration: none;
  transition: background .15s, transform .1s;
}
.nav-pill:hover, .nav-cta:hover { background: var(--teal-d) !important; transform: translateY(-1px); }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
  color: var(--muted); font-weight: 500; background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit; transition: color .15s;
}
.nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--navy); }
.nav-trigger svg { transition: transform .2s; }
.nav-item.open .nav-trigger svg, .nav-item:hover .nav-trigger svg { transform: rotate(180deg); }
.nav-dd {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; min-width: 196px; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.nav-item.open .nav-dd, .nav-item:hover .nav-dd { display: block; }
.nav-dd::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dd a {
  display: block; padding: 8px 12px; color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500; border-radius: 8px; white-space: nowrap;
  transition: background .1s, color .1s;
}
.nav-dd a:hover { background: var(--teal-l); color: var(--teal-d); }
.nav-dd-div { height: 1px; background: var(--border); margin: 4px 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; }

/* ── Buttons ── */
.btn-primary, .btn-p, .btn-hero-primary {
  background: var(--teal); color: var(--white); padding: 13px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; border: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn-primary:hover, .btn-p:hover, .btn-hero-primary:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn-secondary, .btn-hero-secondary {
  background: transparent; border: 1.5px solid var(--border); color: var(--navy);
  padding: 13px 28px; border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s;
}
.btn-secondary:hover, .btn-hero-secondary:hover { border-color: var(--teal); }

/* ── Section / card primitives (solutions pages, enterprise page) ── */
.section { padding: 56px 40px; max-width: 1000px; margin: 0 auto; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); font-weight: 700; margin-bottom: 10px; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.15; }
.section-sub { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 620px; margin-bottom: 28px; }
.honesty-note { background: var(--amber-l); border: 1.5px solid #fde68a; border-radius: 14px; padding: 16px 20px; font-size: 13px; color: #78350f; line-height: 1.6; margin-top: 24px; }
.honesty-note strong { color: #451a03; }

.caps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cap {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 22px; display: flex; gap: 16px; align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cap:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08); border-color: var(--teal-l); }
.cap-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.cap-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.cap-tag { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-l); padding: 2px 10px; border-radius: 99px; }
.cap-tag.pending { color: var(--amber); background: var(--amber-l); }

/* Pricing cards */
.pc, .plan {
  transition: transform .18s ease, box-shadow .18s ease;
}
.pc:hover, .plan:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.10); }

/* ── Icons: custom duotone set ── */
.icon-duo { display: inline-block; flex-shrink: 0; }
.icon-duo--sm { width: 20px; height: 20px; }
.icon-duo--md { width: 32px; height: 32px; }
.icon-duo--lg { width: 44px; height: 44px; }
.icon-duo .icon-base { fill: var(--teal-l); }
.icon-duo .icon-accent { fill: var(--teal-d); }
.icon-duo.icon-duo--navy .icon-accent { fill: var(--navy); }
.icon-duo .icon-accent-stroke { fill: none; stroke: var(--teal-d); }
.icon-duo.icon-duo--navy .icon-accent-stroke { stroke: var(--navy); }
.icon-duo .icon-on-accent { fill: none; stroke: var(--teal-l); }

/* ── Footer ── */
footer, .footer {
  background: var(--white); border-top: 1px solid var(--border); padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* ── Motion utility hooks. Elements start visible by default — GSAP sets
   the hidden starting state via JS at call time (site.js), so a blocked
   or slow script load never hides real content. ── */
.reveal, .reveal-stagger > * { opacity: 1; }
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .caps-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
}
