/* PROTOTYPE — wayfinder ticket T09. Shared design system across all pages.
   "Navy Command" tokens locked in T08, identical to apps/dashboard/src/index.css. */
:root {
  --background: #F9FAFB;
  --background-alt: #F3F4F6;
  --foreground: #111827;
  --card: #FFFFFF;
  --muted: #5B6472;
  --primary: #0B1626;
  --primary-soft: #16233F;
  --primary-foreground: #FFFFFF;
  --accent: #C4842A;
  --accent-soft: #E9C98F;
  --accent-foreground: #1A1200;
  --border: #E5E7EB;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --status-amber: #F59E0B; /* traffic-light "caution" — never used for brand */
  --shadow-card: 0 1px 2px rgba(11,22,38,.04), 0 8px 24px -12px rgba(11,22,38,.12);
  --shadow-lift: 0 20px 50px -20px rgba(11,22,38,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist Variable", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; position: relative; }
section.tight { padding: 3rem 0; }

/* ---------- nav / header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(249,250,251,.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.wordmark { font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; text-decoration: none; }
.wordmark .eva { color: var(--accent); }
nav.main-nav { display: flex; gap: 2rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
nav.main-nav a { text-decoration: none; position: relative; padding: .25rem 0; transition: color .15s ease; }
nav.main-nav a:hover, nav.main-nav a.current { color: var(--foreground); }
nav.main-nav a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem; height: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--foreground); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: var(--radius); font-weight: 600; font-size: .92rem;
  padding: .7rem 1.4rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { box-shadow: 0 12px 30px -10px rgba(196,132,42,.55); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); }
.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--accent); display: inline-block; }
h1 { font-size: 3rem; line-height: 1.06; margin: .6rem 0 1.1rem; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: 2.1rem; letter-spacing: -0.015em; margin: 0 0 .6rem; font-weight: 700; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; font-weight: 650; }
.subhead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.lede { font-size: 1.35rem; color: var(--foreground); max-width: 42rem; line-height: 1.5; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- cards / grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
.card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ---------- icon tile ---------- */
.icon-tile {
  width: 2.75rem; height: 2.75rem; border-radius: .7rem;
  background: rgba(196,132,42,.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.icon-tile.dark { background: rgba(255,255,255,.1); color: #fff; }
.icon-tile svg { width: 1.4rem; height: 1.4rem; }

/* ---------- hero ---------- */
.hero {
  padding-top: 4.5rem; padding-bottom: 2rem; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -12rem; right: -10rem; width: 42rem; height: 42rem;
  background: radial-gradient(circle, rgba(196,132,42,.16), transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* ---------- illustration: abstract ledger flow ---------- */
.ledger-illustration {
  background: linear-gradient(160deg, var(--primary), #16233F 60%, #1D3A66);
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem; color: #fff; box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.ledger-illustration::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(196,132,42,.25), transparent 55%);
}
.ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: .6rem; padding: .7rem .9rem; margin-bottom: .6rem; font-size: .82rem;
  position: relative; z-index: 1; opacity: 0; transform: translateX(-8px);
  animation: rowIn .5s ease forwards;
}
.ledger-row:nth-child(2) { animation-delay: .15s; }
.ledger-row:nth-child(3) { animation-delay: .3s; }
.ledger-row:nth-child(4) { animation-delay: .45s; }
.ledger-row .status { width: .55rem; height: .55rem; border-radius: 50%; flex-shrink: 0; }
.status-ok { background: #34D399; }
.status-review { background: var(--accent); }
@keyframes rowIn { to { opacity: 1; transform: translateX(0); } }

/* ---------- blobs / decoration ---------- */
.blob-decoration { position: absolute; z-index: 0; opacity: .5; pointer-events: none; }

/* ---------- stats ---------- */
.stat { text-align: center; }
.stat .num { font-size: 3.2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.stat .label { color: var(--muted); font-size: .9rem; margin-top: .5rem; font-weight: 500; }
.stat-strip { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- timeline (services/features) ---------- */
.timeline { border-left: 2px solid var(--border); padding-left: 1.75rem; display: flex; flex-direction: column; gap: 2.25rem; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.02rem; top: .25rem; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--background);
}

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 3rem 0 2rem; color: var(--muted); font-size: .85rem; background: var(--card); }
footer.site .footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; }
footer.site .footer-cols { display: flex; gap: 3.5rem; }
footer.site .footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--foreground); margin: 0 0 .75rem; }
footer.site .footer-col a { display: block; text-decoration: none; color: var(--muted); margin-bottom: .5rem; }
footer.site .footer-col a:hover { color: var(--foreground); }
footer.site .footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; }

/* ---------- misc components ---------- */
.mock-screenshot {
  background: var(--primary); border-radius: var(--radius-lg); aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
  font-size: .85rem; border: 1px solid var(--border);
}
.tier-price { font-size: 2.1rem; font-weight: 700; }
.tier-price sup { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; background: var(--border); border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; font-weight: 600; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark .muted-on-dark { color: rgba(255,255,255,.65); }

table.feature-matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.feature-matrix th, table.feature-matrix td { padding: .65rem .75rem; border-bottom: 1px solid var(--border); text-align: center; }
table.feature-matrix th:first-child, table.feature-matrix td:first-child { text-align: left; color: var(--muted); }
table.feature-matrix thead th { border-bottom: 2px solid var(--primary); }
table.feature-matrix .highlight { background: rgba(196,132,42,.06); }
.trial-box { background: var(--card); border: 1px dashed var(--accent); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }

/* ---------- billing toggle (pricing page) ---------- */
.billing-toggle { display: inline-flex; background: var(--background-alt); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; gap: .2rem; }
.billing-toggle-btn { border: none; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; transition: background .15s ease, color .15s ease; }
.billing-toggle-btn.active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-card); }

/* ---------- waitlist form (index #signup) ---------- */
.waitlist-form { display: flex; gap: .75rem; flex-wrap: wrap; max-width: 36rem; margin: 0 auto; justify-content: center; }
.waitlist-form input[type="email"], .waitlist-form input[type="text"] {
  flex: 1 1 14rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: .95rem; font-family: inherit; background: var(--card); color: var(--foreground);
}
.waitlist-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist-success { display: none; color: #34D399; font-weight: 600; margin-top: .75rem; }
.waitlist-success.visible { display: block; }
.waitlist-error { display: none; color: #F87171; font-weight: 600; margin-top: .75rem; }
.waitlist-error.visible { display: block; }

.contact-success { display: none; color: #34D399; font-weight: 600; margin: 0; }
.contact-success.visible { display: block; }
.contact-error { display: none; color: #F87171; font-weight: 600; margin: 0; }
.contact-error.visible { display: block; }

.custom-success { display: none; color: #34D399; font-weight: 600; margin: 0; }
.custom-success.visible { display: block; }
.custom-error { display: none; color: #F87171; font-weight: 600; margin: 0; }
.custom-error.visible { display: block; }

/* ---------- built-in agents expand/collapse (index.html) ---------- */
.agents-list { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease; }
.agents-list.open { max-height: 1400px; opacity: 1; }
.agents-toggle-icon { display: inline-block; transition: transform .3s ease; margin-left: .2rem; }
#agents-toggle[aria-expanded="true"] .agents-toggle-icon { transform: rotate(180deg); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: .1s; }
.reveal-delay-2.visible { transition-delay: .2s; }
.reveal-delay-3.visible { transition-delay: .3s; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .hero { padding-top: 2.5rem; }
  header.site nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1rem; }
  header.site nav.main-nav.open { display: flex; }
  header.site nav.main-nav a { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  table.feature-matrix { font-size: .8rem; }
  footer.site .footer-top { flex-direction: column; }
  footer.site .footer-cols { gap: 2rem; flex-wrap: wrap; }
}
