@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

/* ---------------------------------------------------------------------------
   Tokens — lifted from app/globals.css so the marketing page and the product
   are the same identity: forest + warm paper, Manrope display, DM Sans UI.
--------------------------------------------------------------------------- */
:root {
  --forest: #152f2a;
  --forest-2: #244a41;
  --forest-3: #0e211d;
  --mint: #b9dfd2;
  --signal: #ef7348;
  --accent: #d1502a;
  --gold: #d6a85a;

  --paper: #f5f3ec;
  --surface: #fffefa;
  --inset: #edf1ed;

  --ink: #14231e;
  --muted: #5c6a64;
  --subtle: #7d8a84;
  --on-dark: #ffffff;
  --on-dark-muted: #b9cbc5;

  --line: #d9ddd6;
  --line-strong: #c2cac3;

  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 26px 70px rgb(12 38 30 / 14%);
  --shadow-dark: 0 30px 64px rgb(4 14 11 / 38%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, textarea { font: inherit; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.045em; }

.shell { width: var(--shell); margin-inline: auto; }
/* Contains the decorative hero glow so narrow viewports never scroll sideways. */
main { overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 72px;
  background: rgb(245 243 236 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font: 700 16px/1 "Manrope", sans-serif; letter-spacing: -.03em;
}
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-nav > a:hover { color: var(--ink); }
.github-link {
  min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark); background: var(--forest); border-radius: 8px; font-size: 12px;
  transition: background .2s;
}
.github-link:hover { color: var(--on-dark); background: var(--forest-2); }
.github-link svg { width: 15px; height: 15px; fill: currentColor; }
.nav-toggle { display: none; padding: 8px; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }

/* ── Shared pieces ─────────────────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
  color: var(--forest-2); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow > span { width: 22px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--mint); }

.button {
  min-height: 49px; padding: 0 20px; display: inline-flex; align-items: center;
  justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--on-dark); background: var(--forest); border-color: var(--forest); }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.button-dark { color: var(--forest); background: #f3efe2; border-color: #f3efe2; }
.button-ghost { color: var(--on-dark); background: transparent; border-color: rgb(255 255 255 / 42%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions.centered { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--mint); }
.text-link.dark { color: var(--forest-2); }
.text-link:hover { gap: 18px; }

.section { padding-block: 104px; }
.section-heading {
  margin-bottom: 46px; display: grid; grid-template-columns: 1fr 400px;
  align-items: end; gap: 74px;
}
.section-heading h2, .story-copy h2, .workflow-copy h2, .cta h2 {
  margin: 0; font-size: clamp(36px, 4.1vw, 53px); line-height: 1.08;
}
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.72; }

/* Window chrome — every real screenshot on the page sits in one of these. */
.window {
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.window-bar {
  height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 12px;
  background: var(--inset); border-bottom: 1px solid var(--line);
}
.traffic { display: flex; gap: 6px; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8d2; }
.window-bar > span { color: var(--subtle); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.window-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.window-status i { width: 6px; height: 6px; border-radius: 50%; background: #3f9c78; }
/* Every capture is 1760×1100, so 16/10 keeps them uncropped and consistent. */
.window.crop img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.window.on-dark { border-color: rgb(255 255 255 / 16%); box-shadow: var(--shadow-dark); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 88px 0 96px; display: grid;
  grid-template-columns: 1fr 1.05fr; align-items: center; gap: 60px;
}
.hero-glow {
  position: absolute; inset: -140px auto auto -220px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgb(185 223 210 / 46%), transparent 66%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.hero h1 { margin: 0; font-size: clamp(42px, 4.4vw, 58px); line-height: 1.05; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lede { max-width: 560px; margin: 26px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-proof { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 34px; }
.hero-proof div { display: grid; gap: 3px; }
.hero-proof strong { font: 800 25px "Manrope", sans-serif; letter-spacing: -.04em; }
.hero-proof span { color: var(--subtle); font-size: 11px; font-weight: 600; }
.hero-visual { position: relative; }

/* ── Bridge strip ──────────────────────────────────────────────────────── */
.bridge-strip { padding: 22px 0; background: var(--surface); border-block: 1px solid var(--line); }
.bridge-strip .shell {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 26px; color: var(--muted); font-size: 12px;
}
.bridge-strip > .shell > div { display: flex; align-items: center; gap: 14px; }
.bridge-strip strong { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.bridge-strip i { color: var(--accent); font-style: normal; }

/* ── Proof band ────────────────────────────────────────────────────────── */
.proof-band { padding: 30px 0; color: var(--on-dark); background: var(--forest); }
.proof-band .shell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.proof-index { color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.proof-band strong { font: 700 20px "Manrope", sans-serif; letter-spacing: -.03em; }
.proof-band p { margin: 5px 0 0; max-width: 640px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.6; }
.proof-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  color: var(--mint); background: rgb(255 255 255 / 8%); border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.proof-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* ── Numbered card grid ────────────────────────────────────────────────── */
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use-case {
  padding: 26px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.use-case.featured { grid-row: span 2; background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
/* The icon is the card's only marker — no number sits above it. */
.use-icon {
  width: 38px; height: 38px; margin: 0 0 auto; display: grid; place-items: center;
  color: var(--forest-2); background: var(--inset); border-radius: 10px;
}
.use-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.use-case.featured .use-icon { color: var(--forest); background: var(--mint); }
.use-case h3 { margin: 22px 0 8px; font-size: 19px; }
.use-case > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.use-case.featured > p { color: var(--on-dark-muted); }
.use-case > a { margin-top: 18px; color: var(--forest-2); font-size: 12px; font-weight: 700; display: inline-flex; gap: 10px; }
.mini-report { margin-top: 24px; padding: 16px; display: grid; gap: 12px; background: rgb(255 255 255 / 8%); border-radius: 9px; }
.mini-report div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 11px; }
.mini-report span { color: var(--on-dark-muted); }
.mini-report strong { font: 700 14px "Manrope", sans-serif; }
.mini-report .bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgb(255 255 255 / 18%); }
.mini-report .bar i { display: block; height: 100%; border-radius: 99px; background: var(--signal); }
.mini-report small { color: var(--mint); font-size: 10px; line-height: 1.5; }

/* ── Story sections (copy + real screenshot) ───────────────────────────── */
.story-section { padding-block: 104px; }
.story-section.dark { color: var(--on-dark); background: var(--forest); }
.story-section.inset { background: var(--inset); }
.story-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 72px; }
/* Flipped rows reorder the children, so the widths swap too — the screenshot
   always keeps the wider column. */
.story-layout.flip { grid-template-columns: 1.12fr .88fr; }
.story-layout.flip .story-copy { order: 2; }
.story-layout.flip .story-shot { order: 1; }
.story-copy > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.story-section.dark .story-copy > p { color: var(--on-dark-muted); }
.story-points { margin-top: 30px; display: grid; gap: 2px; }
.story-points div { padding: 16px 0; display: grid; grid-template-columns: 26px 1fr; gap: 14px; border-top: 1px solid var(--line); }
.story-section.dark .story-points div { border-color: rgb(255 255 255 / 15%); }
.story-points i { color: var(--accent); font: 700 11px "Manrope", sans-serif; font-style: normal; }
.story-section.dark .story-points i { color: var(--signal); }
.story-points strong { display: block; margin-bottom: 4px; font-size: 14px; }
.story-points span { color: var(--muted); font-size: 13px; line-height: 1.58; }
.story-section.dark .story-points span { color: var(--on-dark-muted); }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); }
.check-list i { color: var(--mint); font-style: normal; }
.check-list li.fail i { color: var(--signal); }
.check-list li.warn i { color: var(--gold); }

/* ── Workflow section ──────────────────────────────────────────────────── */
.workflow-section { padding-block: 104px; color: var(--on-dark); background: var(--forest-3); }
.workflow-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: start; gap: 72px; }
.workflow-copy > p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.75; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li {
  min-height: 74px; padding: 16px 0; display: grid; grid-template-columns: 34px 1fr auto;
  align-items: center; gap: 16px; border-top: 1px solid rgb(255 255 255 / 14%);
}
.workflow-list li:first-child { border-top: 0; }
.workflow-list > li > span { color: var(--mint); font: 700 12px "Manrope", sans-serif; }
.workflow-list div { display: grid; gap: 4px; }
.workflow-list strong { font-size: 15px; }
.workflow-list small { color: var(--on-dark-muted); font-size: 12px; line-height: 1.5; }
.workflow-list em {
  padding: 5px 9px; color: var(--gold); background: rgb(214 168 90 / 14%); border-radius: 4px;
  font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .1em;
}

/* ── Proof / ledger ────────────────────────────────────────────────────── */
.proof-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 76px; }
.proof-layout > div:first-child > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.evidence-cards { display: grid; gap: 16px; }
.ledger-card, .reliability-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.ledger-card header, .reliability-card header {
  padding: 15px 18px; display: flex; align-items: center; justify-content: space-between;
  color: var(--subtle); background: var(--inset); border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
}
.ledger-card header b, .reliability-card header b { color: var(--forest-2); }
.ledger-card article {
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; border-top: 1px solid var(--line);
}
.ledger-card article:first-of-type { border-top: 0; }
.ledger-card article div { display: grid; gap: 4px; }
.ledger-card article strong { font-size: 13px; }
.ledger-card article small { color: var(--subtle); font-size: 11px; }
.ledger-card article > b { padding: 6px 9px; border-radius: 4px; font-size: 9px; letter-spacing: .06em; }
.ledger-card .strong { color: #1f5642; background: #e2efe7; }
.ledger-card .capable { color: #6f5015; background: #f7ecd6; }
.ledger-card .transferred { color: var(--on-dark); background: var(--forest); }
.ledger-card footer { padding: 13px 18px; color: var(--subtle); background: var(--paper); border-top: 1px solid var(--line); font-size: 11px; }
.reliability-card > div { padding: 18px; display: grid; gap: 10px; }
.reliability-card code {
  padding: 12px; display: block; color: #33453e; background: var(--inset); border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6;
}
.reliability-card .verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; color: #8f3f27; background: #fae7df; border-top: 1px solid #eebfab; font-size: 11px; font-weight: 600;
}
.reliability-card .verdict b { padding: 5px 9px; color: #8f3f27; background: rgb(255 255 255 / 66%); border-radius: 99px; font-size: 10px; }

/* ── Trainers ──────────────────────────────────────────────────────────── */
.trainer-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trainer-grid article {
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); background: var(--surface); border-radius: 12px;
}
.state { align-self: flex-start; padding: 6px 9px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.state.working { color: #1f5642; background: #e2efe7; }
.state.direction { color: #6f5015; background: #f7ecd6; }
.trainer-grid h3 { margin: 8px 0 0; font-size: 20px; }
.trainer-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta-section { padding-block: 88px; color: var(--on-dark); background: var(--forest-2); }
.cta { display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 78px; }
.cta p { margin: 0 0 22px; color: var(--on-dark-muted); font-size: 15px; line-height: 1.7; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { padding: 54px 0 26px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 46px; }
.footer-main > div:first-child p { margin: 14px 0 0; max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; gap: 62px; }
.footer-links > div { display: grid; gap: 10px; align-content: start; font-size: 13px; }
.footer-links strong { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between;
  gap: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .trainer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 48px; }
  .section-heading, .story-layout, .workflow-layout, .proof-layout, .cta { grid-template-columns: 1fr; gap: 40px; }
  .story-layout.flip .story-copy, .story-layout.flip .story-shot { order: initial; }
  .proof-band .shell { grid-template-columns: 1fr; gap: 16px; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --shell: calc(100% - 30px); }
  .site-header { height: 66px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 18px 20px;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero h1 { font-size: 42px; }
  .hero-proof { gap: 24px; }
  .section, .story-section, .workflow-section { padding-block: 72px; }
  .use-case-grid, .trainer-grid, .footer-links { grid-template-columns: 1fr; gap: 16px; }
  .footer-links { flex-direction: column; gap: 26px; }
  .use-case.featured { grid-row: auto; }
  .footer-bottom { flex-direction: column; }
}
