/* ═══════════════════════════════════════════════════════════════════
   landing.css — public landing + pricing pages.

   Implements ui_kits/website/riff-e-productforward.html from the
   "Metergraph Design System" Claude Design project
   (claude.ai/design/p/b2c756f5-2f3c-4df8-a55e-a4f4e2101231).
   Token values below are copied verbatim from that project's tokens/;
   when the design system changes, re-sync this block rather than
   editing values in place. docs/dev/legal pages do NOT use this file.
   ═══════════════════════════════════════════════════════════════════ */

/* ——— tokens (design-system sync) ——— */
:root {
  /* base — ink */
  --ink-1: #131312; --ink-2: #3D3C38; --ink-3: #6C6A61; --ink-4: #96938A;
  /* base — paper */
  --paper-0: #FFFFFF; --paper-1: #F4F2EC; --paper-2: #EAE7DE;
  /* base — lines */
  --line-1: #131312; --line-2: #D8D4C8; --line-3: #E6E3D9;
  /* brand — signal green */
  --green-700: #0A472D; --green-600: #0E5B3A; --green-500: #1A7A50; --green-100: #DFEBE2;
  /* functional */
  --blue-600: #1B44E4; --orange-600: #E85D10; --yellow-500: #F2B705; --red-600: #DE2A1B;
  /* semantic */
  --surface-inverse: var(--ink-1);
  --text-on-accent: #F4F2EC; --text-on-inverse: #F4F2EC;
  --accent: var(--green-600); --accent-hover: var(--green-700);
  --link: var(--blue-600); --link-hover: #132FA8; --focus-ring: var(--blue-600);
  /* data series — flat blocks, in rank order */
  --data-1: var(--green-600); --data-2: var(--orange-600); --data-3: var(--yellow-500);
  --data-4: var(--blue-600); --data-6: var(--ink-1);
  --grad-thermal: linear-gradient(90deg, #0E5B3A, #F2B705 55%, #E85D10 80%, #DE2A1B);
  --pattern-dots: radial-gradient(var(--ink-1) 1.1px, transparent 1.1px);
  --pattern-dots-size: 9px 9px;
  /* type — hierarchy from the Figma "Type system" frame (node 127-8146),
     carried by Archivo until the ABC Diatype web license lands. Archivo
     keeps its 104% expanded display identity and a 560 optical match for
     Diatype Medium headlines. */
  --font-core: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --display-stretch: 104%;
  --num-stretch: 87.5%;
  --h1-size: 88px; --h1-leading: 1.0; --h1-tracking: -0.04em;
  --h2-size: 64px; --h2-leading: 1.0; --h2-tracking: -0.04em;
  --h3-size: 40px; --h3-leading: 1.2; --h3-tracking: -0.03em;
  --h4-size: 32px; --h4-leading: 1.25; --h4-tracking: -0.03em;
  --h6-size: 20px; --h6-leading: 1.6; --h6-tracking: -0.01em;
  --heading-weight: 560;
  --subhead-weight: 560;
  --body-l-size: 20px; --body-l-leading: 1.6;
  --body-m-size: 16px; --body-m-leading: 1.5;
  --body-s-size: 14px; --body-s-leading: 1.4;
  --body-tracking: -0.01em;
  --legend-size: 12px; --legend-leading: 1.3;
  /* radii — sharp system + r-3 for cards */
  --r-1: 2px; --r-2: 4px; --r-3: 10px; --r-pill: 999px;
  /* controls, motion */
  --control-h-md: 36px; --control-h-lg: 44px;
  --ease-swift: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
}

/* ——— base ——— */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-core);
  font-size: var(--body-m-size);
  line-height: var(--body-m-leading);
  letter-spacing: var(--body-tracking);
  color: var(--ink-1);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: #D9E84A; color: var(--ink-1); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); font-stretch: var(--num-stretch); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wordmark {
  font-weight: 620;
  font-stretch: var(--display-stretch);
  letter-spacing: -0.03em;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ——— buttons (from components/forms/Button.jsx) ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-1);
  font-family: var(--font-core); font-weight: 500;
  cursor: pointer; white-space: nowrap;
  height: var(--control-h-md); padding: 0 16px; font-size: 13.5px;
  background: var(--accent); color: var(--text-on-accent);
  transition: background var(--dur-1) var(--ease-swift),
    border-color var(--dur-1) var(--ease-swift),
    color var(--dur-1) var(--ease-swift);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-lg { height: var(--control-h-lg); padding: 0 22px; font-size: 15px; }
.btn-outline { background: transparent; border-color: var(--line-1); color: var(--ink-1); }
.btn-outline:hover { background: var(--paper-2); }
.btn-inverse { background: var(--surface-inverse); color: var(--text-on-inverse); }
.btn-inverse:hover { background: #000; }
.btn-arrow { font-weight: 400; margin-right: -2px; }

/* ——— nav ——— */
.nav { border-bottom: 1px solid var(--line-3); }
.nav-row { display: flex; align-items: center; gap: 26px; height: 64px; }
.nav-row .wordmark { font-size: 19px; }
.nav-link { font-size: 14px; color: var(--ink-2); }
.nav-spacer { flex: 1; }
.nav-signin { font-size: 14px; color: var(--ink-1); margin-right: 4px; }

/* ——— hero ——— */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  align-items: end; padding-top: 84px;
}
.hero h1 {
  font-size: var(--h1-size); font-weight: var(--heading-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--h1-tracking); line-height: var(--h1-leading);
}
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero-side { padding-bottom: 6px; }
.hero-lede { font-size: var(--body-l-size); line-height: var(--body-l-leading); color: var(--ink-2); }
.hero-ctas { display: flex; gap: 10px; margin-top: 24px; }

/* ——— cards ——— */
.card { background: var(--paper-0); border: 1px solid var(--line-2); border-radius: 8px; }

/* ——— hero console shot ——— */
.shot-wrap { padding-top: 56px; }
.shot {
  border-radius: var(--r-3); overflow: hidden;
  box-shadow: 0 24px 70px rgba(19, 19, 18, .12);
}
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-3);
}
.shot-bar .wordmark { font-size: 13px; }
.shot-env { font-size: 11px; color: var(--ink-4); }
.shot-live { margin-left: auto; font-size: 10px; color: var(--green-600); }
.shot-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-3);
}
.shot-stat { background: var(--paper-0); padding: 12px 16px; }
.shot-stat-label { font-size: 10.5px; color: var(--ink-4); }
.shot-stat-value {
  font-size: 24px; font-weight: 480; letter-spacing: -0.015em;
  margin: 5px 0 3px;
}
.shot-stat-delta { font-size: 10px; color: var(--ink-4); }
.delta-up { color: var(--green-600); }
.delta-warn { color: var(--orange-600); }
.shot-mix { display: flex; gap: 2px; padding: 14px 16px 6px; }
.shot-mix-seg {
  padding: 8px 9px; min-width: 0; overflow: hidden; border-radius: var(--r-2);
}
.shot-mix-model {
  font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-mix-pct { font-size: 14px; margin-top: 3px; }
.shot-routes { padding: 6px 16px 16px; }
.shot-route {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 2px; border-bottom: 1px solid var(--line-3); font-size: 11.5px;
}
.shot-route-name { font-weight: var(--subhead-weight); width: 130px; }
.shot-route-model { font-size: 10px; color: var(--ink-3); flex: 1; }
.shot-route-eval { font-size: 10.5px; white-space: nowrap; }
.shot-eval-lbl { color: var(--ink-4); }
.shot-route-cost { font-size: 10.5px; }
.shot-route-p95 { font-size: 10.5px; color: var(--ink-4); }
.shot-route-status {
  font-size: 9px; background: var(--green-100); color: var(--green-700);
  border-radius: var(--r-pill); padding: 2px 8px;
}

/* ——— "do you know" ——— */
.spend-q {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding-top: 110px;
}
h2.h-lg {
  font-size: var(--h3-size); font-weight: var(--heading-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--h3-tracking); line-height: var(--h3-leading);
}
.proof-card { padding: 24px 26px; }
/* header line matching the console shot's top bar (wordmark + env) */
.proof-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
/* the card runs exactly three type styles: small 14 (header line, stat
   labels, attribution — color is the only differentiator), body 16
   (narrative), and the 42px mono numerals */
.proof-tag-name { font-size: 14px; font-weight: 400; letter-spacing: var(--body-tracking); }
.proof-tag-sub { font-size: 14px; color: var(--ink-4); }
.proof-stats { display: flex; gap: 36px; }
.proof-num { font-size: 42px; font-weight: 480; }
.proof-num.accent { color: var(--green-600); }
.proof-label { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.proof-quote {
  font-size: var(--body-m-size); line-height: var(--body-m-leading); color: var(--ink-2);
  margin-top: 18px; border-top: 1px solid var(--line-3); padding-top: 16px;
}
.proof-attrib { font-size: 14px; color: var(--ink-4); margin-top: 8px; }

/* ——— how it works band ——— */
.how {
  background: var(--paper-1); margin-top: 110px;
  border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3);
}
.how-inner { padding-top: 90px; padding-bottom: 90px; }
.how h2 { max-width: 640px; }
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  margin-top: 44px; align-items: start;
}
.code-card {
  background: var(--surface-inverse); color: var(--text-on-inverse);
  border-radius: 8px; overflow: hidden;
}
.code-card-bar {
  padding: 10px 16px; border-bottom: 1px solid rgba(244, 242, 236, .16);
  font-size: 12px; color: rgba(244, 242, 236, .55);
}
.code-card pre {
  margin: 0; padding: 18px; font-size: 12.5px; line-height: 1.75; overflow: auto;
}
.how-point {
  display: flex; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.45;
}
.how-check { color: var(--green-600); font-size: 13px; }
.how-docs-link {
  display: inline-block; font-size: 14.5px; margin-top: 20px; color: var(--link);
}
.how-docs-link:hover { color: var(--link-hover); }

/* ——— feature cards ——— */
.features { padding-top: 100px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; }
.feature-card-head { padding: 22px 22px 0; }
.feature-title { font-size: var(--h6-size); font-weight: var(--subhead-weight); letter-spacing: var(--h6-tracking); line-height: 1.2; }
.feature-desc { font-size: var(--body-s-size); line-height: 1.5; color: var(--ink-3); margin: 10px 0 8px; }
.feature-viz { margin-top: auto; border-top: 1px dashed var(--line-2); }

/* bench viz */
.viz-bench { padding: 14px 16px; display: grid; gap: 10px; }
/* one mono size inside every card viz; color is the only differentiator */
.bench-row-label {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-3); margin-bottom: 4px;
}
.bench-track {
  height: 7px; background: var(--paper-2); border-radius: var(--r-2); overflow: hidden;
}
.bench-fill { height: 100%; background: var(--ink-1); border-radius: var(--r-2); }
.viz-fine { font-size: 10px; color: var(--ink-4); }

/* route viz */
.viz-route { padding: 12px 16px; }
.route-row {
  display: flex; gap: 8px; align-items: center; padding: 7px 9px;
  border-radius: 5px; border: 1px solid var(--line-3); margin-bottom: 5px;
}
.route-row.win {
  background: var(--green-600); color: var(--text-on-accent); border: none;
}
.route-model { font-size: 10px; }
.route-row.win .route-model { font-weight: 500; }
.route-badge {
  font-size: 10px; border: 1px solid rgba(244, 242, 236, .5);
  border-radius: var(--r-pill); padding: 1px 7px;
}
.route-price { margin-left: auto; font-size: 10px; }

/* train viz */
.viz-train { padding: 14px 16px; }
.train-head {
  display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3);
}
.train-track {
  height: 7px; background: var(--paper-2); border-radius: var(--r-2);
  margin: 6px 0 12px; overflow: hidden;
}
.train-fill { height: 100%; width: 78%; background: var(--grad-thermal); border-radius: var(--r-2); }
.train-steps { display: grid; gap: 6px; }
.train-step {
  display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3);
}
.train-status { color: var(--ink-4); }
.train-status.running { color: var(--green-600); }

/* wide feature rows */
.feature-wide-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px;
}
.feature-wide { padding: 20px 22px; display: flex; gap: 14px; align-items: baseline; }
.feature-wide-title {
  font-size: var(--h6-size); font-weight: var(--subhead-weight); letter-spacing: var(--h6-tracking); white-space: nowrap;
}
.feature-wide-desc { font-size: var(--body-s-size); color: var(--ink-3); line-height: 1.5; }

/* ——— use cases (cards: same 3-style discipline as the feature cards) ——— */
.usecases { padding-top: 100px; padding-bottom: 110px; }
h2.h-md {
  font-size: var(--h4-size); font-weight: var(--heading-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--h4-tracking); line-height: var(--h4-leading);
}
.usecase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px;
}
.usecase-card {
  display: flex; flex-direction: column;
  padding: 22px; color: inherit;
}
.usecase-card:hover { background: var(--paper-1); text-decoration: none; }
.usecase-title {
  font-size: var(--h6-size); font-weight: var(--subhead-weight);
  letter-spacing: var(--h6-tracking); line-height: 1.25;
}
.usecase-desc {
  font-size: var(--body-s-size); line-height: 1.5; color: var(--ink-3);
  margin: 10px 0 28px;
}
.usecase-dots {
  margin-top: auto; height: 64px;
  background-image: var(--pattern-dots);
  background-size: var(--pattern-dots-size);
  opacity: .13;
}

/* ——— CTA band ——— */
.cta {
  background: var(--green-600); border-radius: 8px; color: var(--text-on-accent);
  margin-top: 90px; padding: 40px 44px;
}
.cta-row { display: flex; align-items: center; gap: 24px; }
.cta-sub { font-size: 15px; opacity: .8; margin-top: 8px; }
.cta-spacer { flex: 1; }
.cta-call {
  font-size: 15px; color: var(--text-on-accent);
  text-decoration: underline; text-underline-offset: 3px;
}
/* secondary waitlist capture inside the band */
.cta-form { display: flex; gap: 10px; margin-top: 26px; max-width: 460px; }
.cta-form input[type="email"] {
  flex: 1; height: var(--control-h-lg); padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--ink-1);
  background: var(--paper-0); border: 1px solid transparent; border-radius: var(--r-1);
}
.cta-form input[type="email"]::placeholder { color: var(--ink-4); }
.hp { position: absolute; left: -9999px; }
.cta-fine { font-size: 12px; opacity: .7; margin-top: 10px; }
.form-msg { font-size: 13.5px; margin-top: 10px; min-height: 1.4em; }
.form-msg.err { color: #FBE8DB; }
.form-msg.ok { font-weight: 500; }

/* ——— pricing page ——— */
.price-head { padding-top: 72px; max-width: 720px; }
.price-head h1 {
  font-size: var(--h2-size); font-weight: var(--heading-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--h2-tracking); line-height: var(--h2-leading);
}
.price-lede { font-size: var(--body-l-size); line-height: var(--body-l-leading); color: var(--ink-2); margin-top: 18px; }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px;
}
.price-card { display: flex; flex-direction: column; padding: 26px 26px 24px; }
.price-card.featured { border-color: var(--green-600); box-shadow: 0 0 0 1px var(--green-600); }
.price-tier { font-size: var(--h6-size); font-weight: var(--subhead-weight); letter-spacing: var(--h6-tracking); }
.price-for { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin-top: 6px; min-height: 3em; }
.price-num { font-size: 42px; font-weight: 480; margin-top: 18px; }
.price-num small { font-size: 15px; font-weight: 400; color: var(--ink-3); }
.price-meter { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; min-height: 2.8em; }
.price-cta { margin: 18px 0 22px; }
.price-cta .btn { width: 100%; }
.price-feats { border-top: 1px dashed var(--line-2); padding-top: 16px; display: grid; gap: 9px; }
.price-feat { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.price-feat .how-check { flex: none; }
.price-note {
  font-size: 13.5px; color: var(--ink-3); margin-top: 22px;
}
.price-note a { color: var(--link); }
.price-note a:hover { color: var(--link-hover); }

/* FAQ */
.faq { padding-top: 90px; padding-bottom: 20px; }
.faq-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 0; }
.faq-item { padding: 18px 4px; border-bottom: 1px solid var(--line-3); }
.faq-q { font-size: 16px; font-weight: var(--subhead-weight); letter-spacing: -0.01em; }
.faq-a { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; max-width: 640px; }

@media (max-width: 960px) {
  .price-head h1 { font-size: clamp(40px, 8vw, 64px); }
  .price-grid { grid-template-columns: 1fr; }
  .price-for, .price-meter { min-height: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ——— footer ——— */
.footer { border-top: 1px solid var(--line-3); }
.footer-row {
  display: flex; gap: 22px; align-items: baseline;
  padding-top: 22px; padding-bottom: 30px; flex-wrap: wrap;
}
.footer-row .wordmark { font-size: 16px; }
.footer-tag { font-size: 12.5px; color: var(--ink-4); }
.footer-spacer { flex: 1; }
.footer-link { font-size: 12.5px; color: var(--ink-3); }
.footer-legal { font-size: 11.5px; color: var(--ink-4); }
.footer-copy { font-size: 11px; color: var(--ink-4); }

/* ——— responsive ——— */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .hero h1 { font-size: clamp(44px, 10vw, 88px); }
  .spend-q, .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .spend-q { padding-top: 72px; }
  .how { margin-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide-grid { grid-template-columns: 1fr; }
  .feature-wide { flex-direction: column; gap: 6px; }
  .feature-wide-title { white-space: normal; }
  .shot-stats { grid-template-columns: repeat(2, 1fr); }
  .shot-route-name { width: auto; min-width: 90px; }
  .cta { padding: 30px 26px; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta-spacer { display: none; }
  .cta-form { flex-wrap: wrap; max-width: none; }
  .nav-link, .nav-signin { display: none; }
}
