/* G12 — brand tokens from the PRD */
:root {
  --navy: #0F1621;
  --navy-2: #162030;
  --navy-3: #1E2A3D;
  --cream: #F5F1E8;
  --cream-dim: #C9C4B8;
  --orange: #F0883E;
  --orange-hover: #F49C5A;
  --blue: #5B8DEF;
  --paper: #FAF7F0;
  --ink: #0F1621;
  --ink-dim: #4A5466;
  --line-dark: rgba(245, 241, 232, 0.12);
  --line-light: rgba(15, 22, 33, 0.12);
  --radius: 12px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--alt { background: var(--navy-2); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 16px;
}
.section--light .eyebrow { color: #B85A17; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--cream-dim); max-width: 46ch; }
.section--light .lede, .section--light .muted { color: var(--ink-dim); }
.muted { color: var(--cream-dim); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(245, 241, 232, 0.08); }
.section--light .btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 22, 33, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--cream-dim); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links .btn { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--cream);
  width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 16px; width: 100%; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 32px; }
.hero-visual { margin-top: clamp(40px, 6vw, 72px); }
.swing-svg { width: 100%; height: auto; }
.swing-legend { display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; color: var(--cream-dim); margin-top: 12px; }
.swing-legend b { font-weight: 700; }
.swing-legend .o { color: var(--orange); }
.swing-legend .b { color: var(--blue); }

/* Animated line: dash-draw then continuous flow */
.swing-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.swing-in { stroke: var(--orange); }
.swing-out { stroke: var(--blue); }
.js .swing-svg .swing-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s ease-out forwards; }
.js .swing-svg .swing-out { animation-delay: 1.3s; }
.js .swing-svg .g12-box { opacity: 0; animation: fade .6s ease-out .9s forwards; }
.swing-svg .pulse { animation: pulse 2.4s ease-in-out 2.2s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: .9; } }

/* Divider using the core visual */
.divider { display: block; width: 100%; height: 40px; }
.divider path { fill: none; stroke-width: 2; }

/* Problem steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0 0 48px; }
.step { background: var(--navy-3); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 0.9rem; color: var(--orange); margin-bottom: 18px; letter-spacing: 0.08em;
}
.step svg { width: 100%; height: 60px; margin-bottom: 18px; }
.callout {
  border-left: 4px solid var(--orange); padding: 8px 0 8px 22px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; max-width: 40ch; margin: 0;
}

/* Solution diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: stretch; gap: 16px; margin-bottom: 28px; }
.flow-node { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-light); background: #fff; }
.flow-node h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-node svg { width: 100%; height: 56px; margin-top: 12px; }
.flow-node--g12 { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.flow-node--g12 ul { margin: 12px 0 0; padding-left: 18px; color: var(--cream-dim); font-size: 0.95rem; }
.flow-arrow { display: flex; align-items: center; color: var(--ink-dim); font-size: 1.6rem; }
.caption { color: var(--ink-dim); font-size: 1rem; text-align: center; }
.caption b { color: var(--ink); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); height: 24px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--navy-3); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; }
.section--light .card { background: #fff; border-color: var(--line-light); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(240, 136, 62, 0.14); color: var(--orange); margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--cream-dim); margin: 0; font-size: 0.98rem; }
.section--light .card p { color: var(--ink-dim); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-top: 2px solid var(--orange); padding-top: 24px; }
.stat-num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.stat p { color: var(--cream-dim); margin: 0; }
.section--light .stat p { color: var(--ink-dim); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chain { display: grid; gap: 12px; }
.chain-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 18px 22px; }
.chain-row b { display: block; }
.chain-row span { color: var(--ink-dim); font-size: 0.95rem; }
.chain-row .tag { margin-left: auto; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag--o { background: rgba(240,136,62,.15); color: #A44E12; }
.tag--b { background: rgba(91,141,239,.15); color: #2E5DBE; }
.chain-row--g12 { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.chain-row--g12 span { color: var(--cream-dim); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line-dark); }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-dim); font-weight: 700; background: var(--navy-3); }
thead th.g12-col { color: var(--orange); }
tbody tr:last-child td { border-bottom: 0; }
td.g12-col { background: rgba(240, 136, 62, 0.08); }
.yes { color: var(--blue); font-weight: 800; }
.no { color: var(--cream-dim); opacity: .6; }
.partial { color: var(--cream-dim); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-light); }
.milestone { position: relative; padding: 40px 20px 0 0; }
.milestone::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-dim);
}
.milestone.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(240,136,62,.2); }
.milestone time { font-size: 0.85rem; font-weight: 700; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.milestone.now time { color: #B85A17; }
.milestone h3 { margin: 6px 0 6px; }
.milestone p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 28px; }
  .roadmap::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .milestone { padding: 0 0 0 44px; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { text-align: left; }
.avatar {
  aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--cream-dim);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; font-size: 1.1rem; }
.person .role { color: var(--orange); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.person p { color: var(--cream-dim); font-size: 0.95rem; }

/* Forms */
.form-card { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.section--light .form-card { background: #fff; border-color: var(--line-light); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--orange); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--cream);
  background: var(--navy); border: 1px solid rgba(245,241,232,.25); border-radius: 8px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.section--light input, .section--light select, .section--light textarea { background: var(--paper); color: var(--ink); border-color: rgba(15,22,33,.25); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--cream-dim); margin: 16px 0 0; }
.section--light .form-note { color: var(--ink-dim); }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: var(--blue); }
.form-status.err { color: #FF8A80; }
.inline-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.inline-form input { flex: 1; }

/* Tabs on audience selector (contact) */
.audience-pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 8px; }
.audience-pills legend { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.audience-pills label { cursor: pointer; }
.audience-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.audience-pills label span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(245,241,232,.25); font-weight: 600; font-size: 0.95rem;
}
.audience-pills label input:checked + span { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.audience-pills input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.newsletter { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.newsletter p { color: var(--cream-dim); }

/* Page hero (sub pages) */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }

/* Prose / list blocks */
.feature-list { display: grid; gap: 20px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line-dark); }
.section--light .feature { border-color: var(--line-light); }
.feature .num { font-weight: 800; color: var(--orange); font-size: 1.1rem; }
.section--light .feature .num { color: #B85A17; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--cream-dim); }
.section--light .feature p { color: var(--ink-dim); }

.compare-bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.bar { height: 14px; border-radius: 999px; }
.bar-label { font-size: 0.95rem; font-weight: 600; }
.bar-value { font-size: 0.85rem; color: var(--ink-dim); margin-top: 4px; }

/* Footer */
.site-footer { background: #0A0F17; border-top: 1px solid var(--line-dark); padding: 56px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--cream-dim); }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--cream-dim); font-size: 0.85rem; border-top: 1px solid var(--line-dark); padding-top: 24px; }

/* Responsive grids */
@media (max-width: 1000px) {
  .cards, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .steps, .stats, .split, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .cards, .team-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

/* Reduced motion: show the static final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .swing-svg .swing-path { stroke-dashoffset: 0; }
  .js .swing-svg .g12-box { opacity: 1; }
}
