/* ==========================================================================
   Reflex — landing page
   Aesthetic: ported from the Reflex Sandbox (data-theme="light"):
   neutral off-white canvas, indigo accent, Crimson Pro serif display + Inter
   body + SF Mono code, square corners, dark-navy code/product surfaces.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* neutral light surfaces */
  --canvas:       #f6f6f7;
  --surface-soft: #f3f3f5;
  --canvas-card:  #ffffff;
  --cream-strong: #f0f0f3;
  --hairline:     #e4e4e7;
  --hairline-soft:#ececef;
  --pill-border:  rgba(24,24,27,0.18);
  --pill-hover:   rgba(24,24,27,0.42);

  /* dark navy code / product surfaces (stay dark in the light theme) */
  --surface-dark:          #0b0c0e;
  --surface-dark-elevated: #28292e;
  --surface-dark-soft:     #121316;
  --on-dark:      #ededf0;
  --on-dark-soft: #8a8b92;

  /* text */
  --ink:   #18181b;
  --body:  #3f3f46;
  --mute:  #71717a;
  --muted-soft: #a1a1aa;

  /* brand — indigo is the accent */
  --accent:       #6366f1;
  --accent-active:#4f46e5;
  --accent-soft:  #c7d2fe;
  --teal:         #39b6a8;
  --amber:        #e0a33c;
  --green-live:   #3cb46a;

  /* product-data accents */
  --sunset:   #d99021;
  --dusk:     #8b8cf0;
  --twilight: #b5b6f7;
  --breeze:   #4d9fe0;
  --signal-green: #3cb46a;

  /* dashboard (light product mockup) */
  --dash-bg:   #ffffff;
  --dash-2:    #f3f3f5;
  --dash-3:    #f0f0f3;
  --dash-line: #e4e4e7;
  --dash-line2:rgba(24,24,27,0.10);
  --dash-text: #18181b;
  --dash-muted:#71717a;
  --dash-faint:#a1a1aa;
  --dash-accent:#6366f1;
  --dash-accent-soft: rgba(99,102,241,0.12);
  --dash-tint:  rgba(24,24,27,0.05);
  --dash-tint2: rgba(24,24,27,0.035);
  --dg: #2f9e57;  /* dashboard green */  --dc: #4f46e5;  /* dashboard accent text */  --db: #2f76c7;  /* dashboard blue */

  --radius:    0px;   /* square surfaces (sandbox is pure-square) */
  --radius-md: 0px;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
  --serif: 'Crimson Pro', ui-serif, Georgia, 'Times New Roman', serif;
  --mono:  'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

/* serif display helper — applied to every headline */
.display, .section-title, .feat-split h3, .faq-title, .final h2,
.bcard-title, .bfeat-title, .price .pname, .ea-card h3, .ea-success h3 {
  font-family: var(--serif);
}

/* ---------- eyebrow / category label (sans uppercase) ---------- */
.tag-box {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
/* coral primary */
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-active); border-color: var(--accent-active); }
/* cream secondary with hairline */
.btn-outline { background: var(--canvas); color: var(--ink); border-color: var(--pill-border); }
.btn-outline:hover { border-color: var(--ink); }
/* on a dark surface (enterprise pricing) */
.btn-white { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.btn-white:hover { background: #fff; border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.topstrip { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(246,246,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 27px; height: 27px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.brand-logo { width: 27px; height: 27px; display: block; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; color: var(--ink); }
.nav-mid { display: inline-flex; gap: 32px; }
.nav-mid a { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--mute); transition: color .15s ease; }
.nav-mid a:hover { color: var(--ink); }
.nav-right { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .nav-mid { display: none; } }
@media (max-width: 520px) { .nav-right .btn-outline { display: none; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 100px 0 70px; }
.hero .tag-box { margin-bottom: 24px; }
.display {
  font-weight: 500;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.display .muted { color: var(--muted-soft); display: block; }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--body); font-weight: 400;
  max-width: 54ch; margin: 28px auto 0; line-height: 1.6;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.hero-note {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
  color: var(--muted-soft); margin: 22px 0 0;
}

/* ---------- logo marquee (muted ink marks on cream) ---------- */
.logos { padding: 36px 0 60px; }
.logos-label {
  text-align: center; font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft);
  margin: 0 0 34px;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 28px 56px; width: 100%;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-rl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 40px; }
.chip .logo {
  height: 24px; width: auto; max-width: 140px; object-fit: contain; display: block;
  opacity: 0.92; transition: opacity .2s ease;
}
.chip:hover .logo { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; justify-content: center; width: 100%; flex-wrap: wrap; gap: 28px 44px; white-space: normal; }
}

/* ---------- stage (cream band holding the dark dashboard) ---------- */
.stage {
  position: relative;
  padding: 64px 0 0;
  background:
    radial-gradient(38% 30% at 18% 26%, rgba(255,255,255,0.75), transparent 70%),
    radial-gradient(32% 24% at 74% 20%, rgba(255,255,255,0.65), transparent 70%),
    radial-gradient(30% 22% at 50% 44%, rgba(255,255,255,0.5), transparent 70%),
    linear-gradient(180deg, #6fb2ec 0%, #93c8f1 26%, #c2e1fa 52%, #e6f2fc 74%, var(--canvas) 100%);
}
.stage > .shell { position: relative; z-index: 1; }

/* ================= DASHBOARD — Reflex Command Center (light) ================= */
.dash {
  border: 1px solid var(--hairline);
  background: var(--dash-bg);
  color: var(--dash-text);
  overflow: hidden;
  display: grid; grid-template-columns: 244px minmax(0, 1fr);
  font-family: var(--sans);
  height: 640px;
  box-shadow: 0 28px 64px rgba(20,20,30,0.22), 0 2px 8px rgba(20,20,30,0.06);
}
@media (max-width: 1000px){ .dash { height: auto; } }
@media (max-width: 900px){ .dash { grid-template-columns: 1fr; } .dx-nav { display: none; } }

/* ---- sidebar ---- */
.dx-nav { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--dash-line); background: var(--dash-2); }
.dx-brandrow { display: flex; align-items: center; gap: 9px; padding: 16px 16px 12px; color: var(--dash-text); }
.dx-brandrow .dx-mark { color: var(--dash-text); display: flex; }
.dx-word { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.dx-org { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 0 12px 10px; padding: 9px 12px; background: var(--dash-bg); border: 1px solid var(--dash-line); text-align: left; transition: border-color .12s; }
.dx-org:hover { border-color: var(--dash-line2); }
.dx-org-meta { min-width: 0; flex: 1; }
.dx-org-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--dash-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-org-caret { color: var(--dash-faint); display: flex; }
.dx-nav-groups { flex: 1; overflow-y: auto; padding: 6px 8px 4px; }
.dx-nav-group { margin-bottom: 14px; }
.dx-nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dash-faint); padding: 0 10px 6px; }
.dx-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; font-size: 13.5px; color: var(--dash-muted); transition: background .12s, color .12s; }
.dx-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.dx-item:hover { background: var(--dash-tint); color: var(--dash-text); }
.dx-item.active { background: var(--dash-accent-soft); color: var(--dash-accent); font-weight: 500; }
.dx-item.active svg { color: var(--dash-accent); opacity: 1; }
.dx-badge { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--amber); background: rgba(224,163,60,0.15); padding: 1px 7px; }
.dx-nav-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--dash-line); }
.dx-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--dash-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.dx-user { min-width: 0; }
.dx-user-name { font-size: 13px; font-weight: 500; color: var(--dash-text); }
.dx-user-role { font-size: 11px; color: var(--dash-muted); }

/* ---- main column ---- */
.dx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dx-bar { display: flex; align-items: center; gap: 16px; padding: 13px 22px; border-bottom: 1px solid var(--dash-line); background: var(--dash-bg); }
.dx-crumb-wrap { min-width: 0; }
.dx-crumb { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--dash-text); }
.dx-crumb-sub { font-size: 12px; color: var(--dash-muted); margin-top: 1px; }
.dx-bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dx-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-live); }
.dx-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-live); box-shadow: 0 0 0 3px rgba(60,180,106,0.18); animation: dxpulse 2.4s ease-in-out infinite; }
@keyframes dxpulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.dx-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--dash-muted); border: 1px solid var(--dash-line); padding: 6px 12px; }
.dx-cta { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: #fff; background: var(--dash-accent); padding: 8px 15px; transition: background .15s; }
.dx-cta:hover { background: var(--accent-active); }
.dx-cta-block { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; }

/* ---- body ---- */
.dx-body { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding: 18px 22px 22px; min-height: 0; }
@media (max-width: 1000px){ .dx-body { overflow: visible; } }

/* KPI row */
.dx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; flex-shrink: 0; }
@media (max-width: 760px){ .dx-kpis { grid-template-columns: 1fr 1fr; } }
.dx-kpi { border: 1px solid var(--dash-line); background: var(--dash-bg); padding: 16px 18px; }
.dx-kpi-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--dash-muted); }
.dx-kpi-v { margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--dash-text); }
.dx-kpi-v.accent { color: var(--dash-accent); }
.dx-kpi-v .dx-pct { font-size: 18px; font-weight: 600; }
.dx-delta { font-size: 11.5px; font-weight: 600; }
.dx-delta.down { color: #d9534a; } .dx-delta.up { color: var(--green-live); }

/* Command Center grid */
.dx-cc { flex: 1; display: grid; grid-template-columns: 1fr 320px; gap: 14px; min-height: 0; }
@media (max-width: 1000px){ .dx-cc { grid-template-columns: 1fr; } }
.dx-card { border: 1px solid var(--dash-line); background: var(--dash-bg); padding: 16px; }
.dx-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dx-card-h h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--dash-text); }
.dx-viewall { font-size: 12.5px; color: var(--dash-muted); }
.dx-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dash-muted); }
.dx-card-right { float: right; font-family: var(--mono); font-size: 10.5px; color: var(--dash-faint); text-transform: none; letter-spacing: 0; }

/* recent activity */
.dx-activity { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dx-acts { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
@media (max-width: 1000px){ .dx-acts { overflow: visible; } }
.dx-act { border: 1px solid var(--dash-line); background: var(--dash-2); padding: 7px 12px; transition: border-color .12s; cursor: default; }
.dx-act:hover { border-color: var(--dash-line2); }
.dx-act-top { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.dx-out { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.dx-out i { width: 6px; height: 6px; border-radius: 50%; }
.dx-out.unresolved { color: #c07d18; } .dx-out.unresolved i { background: #d99021; }
.dx-out.escalated { color: #2f76c7; } .dx-out.escalated i { background: #4d9fe0; }
.dx-out.abandoned { color: #c4413a; } .dx-out.abandoned i { background: #e0574f; }
.dx-out.resolved  { color: #2f9e57; } .dx-out.resolved i  { background: #3cb46a; }
.dx-act-id { font-family: var(--mono); font-size: 11px; color: var(--dash-muted); }
.dx-act-ago { margin-left: auto; font-size: 11px; color: var(--dash-faint); }
.dx-act-line { font-size: 13px; color: var(--dash-text); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-act-line.dim { color: var(--dash-muted); margin-top: 2px; }
.r-user { color: var(--dash-faint); } .r-agent { color: var(--dash-accent); }

/* right column */
.dx-cc-side { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; padding-right: 1px; }
@media (max-width: 1000px){ .dx-cc-side { overflow: visible; } }
.dx-openfixes .dx-of-num { margin-top: 8px; display: flex; align-items: flex-end; gap: 8px; }
.dx-openfixes .dx-of-num b { font-size: 34px; font-weight: 700; line-height: 1; color: var(--dash-accent); }
.dx-openfixes .dx-of-num span { font-size: 12.5px; color: var(--dash-muted); padding-bottom: 3px; }
.dx-of-stats { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-of-stat { border: 1px solid var(--dash-line); background: var(--dash-2); padding: 10px 11px; }
.dx-of-k { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dash-muted); }
.dx-of-v { margin-top: 3px; font-size: 17px; font-weight: 600; color: var(--dash-text); }
.dx-openfixes .dx-cta-block { margin-top: 14px; }

/* distribution + volume */
.dx-dist { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.dx-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.dx-li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dash-muted); }
.dx-li .sw { width: 9px; height: 9px; flex-shrink: 0; }
.dx-li .pct { margin-left: auto; font-family: var(--mono); color: var(--dash-text); }
.dx-vol { display: block; margin-top: 10px; }

/* ================= section frame ================= */
.section { padding: 96px 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-title { font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 0; color: var(--ink); }
.section-sub { font-size: 18px; color: var(--body); margin: 20px 0 0; max-width: 58ch; line-height: 1.6; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- features split (legacy, mostly unused) ---------- */
.feat-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 64px; }
@media (max-width: 920px){ .feat-split { grid-template-columns: 1fr; gap: 36px; } }
.feat-split h3 { font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 22px; }
.feat-split p { font-size: 16px; color: var(--body); line-height: 1.6; margin: 0; }
.feat-split .rule { width: 160px; height: 1px; background: var(--hairline); margin-top: 28px; }

/* ---------- PRICING ---------- */
.pricing { padding: 96px 0; }
.pricing .section-title .muted { color: var(--muted-soft); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 52px auto 0; }
@media (max-width: 760px){ .price-grid { grid-template-columns: 1fr; } }
.price { padding: 32px; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--canvas); }
/* featured tier flips to dark navy — the surface IS the signal */
.price.starter { background: var(--surface-dark); color: var(--on-dark); border-color: var(--surface-dark); }
.price.enterprise { background: var(--canvas); color: var(--ink); }
.price .ptag { display:inline-flex; align-self:flex-start; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing:0.1em; text-transform:uppercase; border:1px solid currentColor; padding: 4px 11px; border-radius:9999px; margin-bottom: 26px; opacity:0.75; }
.price .pname { font-size: 48px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 22px; }
.barcode { height: 20px; margin-bottom: 26px; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px, currentColor 4px 5px, transparent 5px 9px); }
.plist { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.plist li { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.plist li .mk { font-size: 9px; color: var(--accent); }
.price.starter .plist li .mk { color: var(--accent-soft); }
.price-note { font-family: var(--sans); font-size: 13px; opacity: 0.7; margin-bottom: 22px; line-height: 1.55; }
.price.starter .btn-white { background: var(--canvas); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--surface-soft); }
.faq .faq-title { text-align:center; font-weight: 500; font-size: clamp(48px, 7vw, 88px); letter-spacing: -0.02em; margin: 0 0 44px; color: var(--ink); }
.faq-list { max-width: 1040px; margin: 0 auto; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--canvas); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 26px; text-align: left; transition: background .12s; }
.faq-q:hover { background: var(--surface-soft); }
.faq-num { font-family: var(--mono); font-size: 11px; color: var(--accent); flex-shrink: 0; }
.faq-qt { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; flex: 1; color: var(--ink); }
.faq-tog { font-size: 22px; color: var(--mute); font-weight: 400; width: 22px; text-align: center; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 26px 24px 62px; font-size: 16px; color: var(--body); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 520px; }
.faq-item.open .faq-tog { color: var(--accent); }
.faq-cta { text-align: center; margin-top: 44px; }

/* ---------- final cta ---------- */
.final { text-align: center; padding: 110px 0; }
.final h2 { font-weight: 500; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.015em; line-height: 1.06; margin: 0; }
.final h2 .muted { color: var(--muted-soft); display:block; }
.final p { color: var(--body); font-size: 18px; margin: 22px auto 0; max-width: 48ch; line-height: 1.6; }
.final .hero-cta { margin-top: 34px; }

/* ---------- footer (dark navy, never inverts) ---------- */
.footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer .brand-mark { color: var(--on-dark); }
.footer .brand-name { color: var(--on-dark); }
.footer-tag { color: var(--on-dark-soft); font-size: 14px; max-width: 32ch; line-height: 1.55; margin-top: 14px; }
.footer-cta { margin-top: 20px; }
.footer-col h5 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--on-dark-soft); margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--sans); font-size: 12.5px; color: var(--on-dark-soft); }
@media (max-width: 520px){ .footer-bottom { flex-direction: column; gap: 10px; } }

/* ---------- BLOG cards (cream feature cards) ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.blog-grid--single { grid-template-columns: 1fr; max-width: 680px; margin-left: auto; margin-right: auto; }
@media (max-width: 800px){ .blog-grid { grid-template-columns: 1fr; } }
.bcard { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: var(--canvas-card); border-radius: var(--radius); padding: 28px 28px 24px; transition: border-color .18s ease; }
.bcard:hover { border-color: var(--accent); }
.bcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.bcard-tag { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); background: var(--surface-soft); padding: 4px 11px; border-radius: 9999px; }
.bcard-tag.run { color: var(--accent); background: rgba(204,120,92,0.1); }
.bcard-tag.guide { color: var(--accent); background: rgba(99,102,241,0.1); }
.bcard-read { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--muted-soft); }
.bcard-title { font-weight: 500; font-size: clamp(23px, 2.2vw, 28px); letter-spacing: -0.005em; line-height: 1.14; margin: 0 0 14px; color: var(--ink); }
.bcard-deck { font-size: 15px; color: var(--body); line-height: 1.6; margin: 0; flex: 1; }
.bcard-more { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--accent); margin-top: 24px; }

/* featured run-report card */
.blog-feature { max-width: 920px; margin: 56px auto 0; }
.bfeat { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas-card); overflow: hidden; transition: border-color .18s ease; }
.bfeat:hover { border-color: var(--accent); }
@media (max-width: 760px){ .bfeat { grid-template-columns: 1fr; } }
.bfeat-main { padding: 32px; display: flex; flex-direction: column; }
.bfeat-title { font-weight: 500; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.005em; line-height: 1.16; margin: 0 0 14px; color: var(--ink); }
.bfeat-deck { font-size: 15px; color: var(--body); line-height: 1.6; margin: 0; flex: 1; }
.bfeat-side { border-left: 1px solid var(--hairline); padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--cream-strong); }
@media (max-width: 760px){ .bfeat-side { border-left: 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.bstat { display: flex; flex-direction: column; gap: 5px; }
.bstat-k { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.bstat-v { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.bstat-v.accent { color: var(--accent); }

/* ================= EARLY ACCESS MODAL ================= */
.ea-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.ea-modal.open { display: block; }
body.ea-lock { overflow: hidden; }
.ea-backdrop { position: absolute; inset: 0; background: rgba(20,20,19,0.45); backdrop-filter: blur(3px); }
.ea-card {
  position: relative; max-width: 540px; margin: 6vh auto; max-height: 88vh; overflow-y: auto;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px; animation: eaIn .2s ease; box-shadow: 0 8px 40px rgba(20,20,19,0.14);
}
@keyframes eaIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px){ .ea-card { margin: 0; min-height: 100%; border-radius: 0; } }
.ea-x { position: absolute; top: 14px; right: 16px; font-size: 22px; line-height: 1; color: var(--mute); width: 30px; height: 30px; }
.ea-x:hover { color: var(--ink); }
.ea-eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ea-card h3 { font-weight: 500; font-size: 30px; letter-spacing: -0.01em; margin: 10px 0 8px; color: var(--ink); }
.ea-sub { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.ea-form { display: flex; flex-direction: column; gap: 14px; }
.ea-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .ea-row { grid-template-columns: 1fr; } }
.ea-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.ea-form input, .ea-form select, .ea-form textarea {
  font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 10px 12px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; text-transform: none; letter-spacing: 0;
}
.ea-form input::placeholder, .ea-form textarea::placeholder { color: var(--muted-soft); }
.ea-form input:focus, .ea-form select:focus, .ea-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(204,120,92,0.15); }
.ea-form select { appearance: none; -webkit-appearance: none; }
.ea-form textarea { resize: vertical; min-height: 44px; }
.ea-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.ea-submit { margin-top: 6px; width: 100%; }
.ea-submit[disabled] { opacity: 0.6; cursor: default; }
.ea-status { font-size: 13px; color: var(--accent-active); text-align: center; min-height: 0; }
.ea-success { text-align: center; padding: 26px 0 8px; }
.ea-check { width: 50px; height: 50px; border-radius: 50%; background: rgba(93,184,114,0.16); color: var(--green-live); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.ea-success h3 { margin: 0 0 8px; font-size: 26px; }
.ea-success p { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.ea-success a { color: var(--accent); }
