/* ==========================================================================
   ProjectVue Marketing Site — Design System
   Primary: --pv-cobalt (matches app). Signature element: document/traceability
   visual language (REQ-ID tags, dotted trace lines, ledger-style tables).
   ========================================================================== */

:root {
  /* Brand — matches app exactly */
  --pv-cobalt:        #0047AB;
  --pv-cobalt-hover:  #003A88;
  --pv-cobalt-pale:   #EBF2FF;
  --pv-green:         #10B981;
  --pv-amber:         #F59E0B;
  --pv-red:           #EF4444;

  /* Marketing-only accent — warm gold, used sparingly for CTAs/highlights against cobalt */
  --pv-gold:           #C9974D;
  --pv-gold-pale:      #FBF3E7;

  /* Neutrals */
  --pv-bg:            #F9FAFB;
  --pv-surface:       #FFFFFF;
  --pv-surface-2:     #F3F4F6;
  --pv-border:        #E5E7EB;
  --pv-text:          #111827;
  --pv-text-mid:      #374151;
  --pv-text-muted:    #6B7280;

  /* Type */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--pv-text);
  background: var(--pv-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pv-cobalt);
  height: 64px;
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--pv-gold);
  color: #1a1200;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: #b3853f; color: #1a1200; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Eyebrow / doc-tag (signature element) ---------- */
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--pv-cobalt);
  background: var(--pv-cobalt-pale);
  border: 1px solid #D6E4FA;
  border-radius: 4px;
  padding: 4px 10px 4px 8px;
  text-transform: uppercase;
}
.doc-tag::before { content: "§"; opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    linear-gradient(180deg, var(--pv-cobalt-pale) 0%, var(--pv-bg) 100%);
  border-bottom: 1px solid var(--pv-border);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.hero .accent { color: var(--pv-cobalt); }
.hero p.sub {
  font-size: 19px;
  color: var(--pv-text-mid);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary { background: var(--pv-cobalt); color: #fff; }
.btn-primary:hover { background: var(--pv-cobalt-hover); }
.btn-ghost { background: transparent; color: var(--pv-cobalt); border: 1.5px solid var(--pv-cobalt); }
.btn-ghost:hover { background: var(--pv-cobalt-pale); }
.hero-note { font-size: 13px; color: var(--pv-text-muted); margin-top: 14px; }

/* ---------- Trace line divider (signature element) ---------- */
.trace-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  color: var(--pv-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trace-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, var(--pv-border) 50%, transparent 0%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--pv-surface); border-top: 1px solid var(--pv-border); border-bottom: 1px solid var(--pv-border); }
.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section p.lead {
  font-size: 17px;
  color: var(--pv-text-mid);
  max-width: 640px;
  margin-bottom: 44px;
}

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

.card {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-top: 3px solid var(--pv-cobalt);
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--pv-text-mid); }
.card .req-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pv-text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

/* ---------- Ledger table (pricing / spec use) ---------- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.ledger th, .ledger td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pv-border);
}
.ledger thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pv-text-muted);
  border-bottom: 2px solid var(--pv-text);
}
.ledger tbody tr:hover { background: var(--pv-surface-2); }
.mono { font-family: var(--font-mono); }

/* ---------- Pricing cards ---------- */
.price-card {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--pv-cobalt);
  box-shadow: 0 4px 20px rgba(0,71,171,0.10);
  position: relative;
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--pv-cobalt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.price-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pv-text-muted); margin-bottom: 8px; }
.price-card .amount { font-family: var(--font-mono); font-size: 36px; font-weight: 700; margin-bottom: 2px; }
.price-card .per { font-size: 13px; color: var(--pv-text-muted); margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { font-size: 14px; padding: 6px 0; padding-left: 22px; position: relative; color: var(--pv-text-mid); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--pv-green); font-weight: 700; }

/* ---------- Founders callout ---------- */
.founders-banner {
  background: var(--pv-gold-pale);
  border: 1px solid #EBD5AE;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.founders-banner .mono { color: #8A6423; font-weight: 700; }

/* ---------- Toggle (annual/monthly) ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pv-surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pv-text-muted);
  cursor: pointer;
}
.billing-toggle button.active { background: var(--pv-cobalt); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pv-cobalt);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--pv-gold); color: #1a1200; }
.cta-band .btn-primary:hover { background: #b3853f; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Footer ---------- */
.footer {
  background: #0B1220;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
  font-size: 13.5px;
}
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer a { display: block; padding: 4px 0; color: rgba(255,255,255,0.55); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
}
