/* Implements docs/design-guidelines.md. Same tokens as the dashboard —
   marketing differs only in density: larger type, more air, wider measure. */
:root {
  --ink: #1c1917;
  --body: #57534e;
  --muted: #a8a29e;
  --line: #e7e5e4;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-sub: #fff7ed;
  --deep: #1c1917;
  --deep-2: #292524;
  --soft: #faf9f7;
  --ok: #15803d;
  --ok-sub: #dcfce7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
p { color: var(--body); }

/* Focus is always visible — never removed without a replacement. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .band :focus-visible { outline-color: #fdba74; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand span { color: var(--accent); }
header nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
header nav a { color: var(--body); font-size: 15px; font-weight: 550; }
header nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 11px 20px;
  border-radius: 9px; font-weight: 650; font-size: 15px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--accent-sub); }
.btn.lg { padding: 14px 26px; font-size: 16px; }

/* Hero */
.hero { background: linear-gradient(170deg, #1c1917 0%, #33251c 100%); color: #fff; padding: 84px 0 74px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lead { color: #d6d3d1; font-size: 20px; margin: 20px 0 30px; max-width: 56ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .btn.ghost { color: #fed7aa; box-shadow: inset 0 0 0 1px #57433a; }
.hero .btn.ghost:hover { background: #3a2b22; }
.hero small { display: block; margin-top: 18px; color: #a8a29e; font-size: 14px; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 34px; }
.sec-head p { font-size: 18px; margin-top: 8px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px;
}
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-bottom: 12px;
}
/* Green means shipped, everywhere in the product. Nothing else may claim it. */
.tag.live { background: var(--ok-sub); color: var(--ok); }
.tag.soon { background: #f5f5f4; color: var(--body); }
.card p { font-size: 15.5px; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.step p { font-size: 15.5px; }

/* Pricing */
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; }
.price.featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(194,65,12,.10); }
.price .amount { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; }
.price .amount span { font-size: 16px; font-weight: 500; color: var(--body); }
.price ul { list-style: none; margin: 18px 0 22px; }
.price li { padding: 7px 0 7px 26px; position: relative; font-size: 15.5px; color: var(--body); }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Code */
pre {
  background: var(--deep); color: #e7e5e4; border-radius: 11px; padding: 18px 20px;
  overflow-x: auto; font-size: 13.5px; font-family: ui-monospace, Consolas, monospace; line-height: 1.6;
}
code { font-family: ui-monospace, Consolas, monospace; font-size: .93em; }
p code { background: var(--soft); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* CTA band */
.band { background: var(--deep); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #d6d3d1; max-width: 52ch; margin: 0 auto 26px; }
.band .btn.ghost { color: #fed7aa; box-shadow: inset 0 0 0 1px #57433a; }
.band .btn.ghost:hover { background: var(--deep-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14.5px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer p { font-size: 14.5px; color: var(--muted); }
footer nav { margin-left: auto; display: flex; gap: 20px; }

.faq { max-width: 68ch; }
.faq h3 { margin-top: 26px; }
.center { text-align: center; }


/* Cards that are entirely a link. The whole card is the target, not the title. */
.linkcard { display: block; color: inherit; transition: border-color 140ms ease, transform 140ms ease; }
.linkcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.linkcard h3 { color: var(--ink); }

/* Status tag sitting on the dark hero needs its own contrast. */
.hero .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 20px; margin-bottom: 18px; }
.hero .tag.live { background: #14532d; color: #86efac; }
.hero .tag.soon { background: #422006; color: #fcd34d; }
.dep { font-size: 15px; margin-top: 8px; }


/* Free or paid, said on every surface a module appears on, so a reader never
   has to guess whether the thing they just read about costs money. */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tags .tag { margin-bottom: 0; }
.tag.free { background: var(--ok-sub); color: var(--ok); }
.tag.paid { background: var(--accent-sub); color: var(--accent-dark); }
.hero .tags { margin-bottom: 18px; }
.hero .tag.free { background: #14532d; color: #86efac; }
.hero .tag.paid { background: #431407; color: #fdba74; }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.pricing-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pricing-table .tag { margin-bottom: 0; }
.scroll-x { overflow-x: auto; max-width: 100%; }
.linkcard .meta { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* --- Roadmap --- */
.road { list-style: none; counter-reset: r; max-width: 74ch; }
.road-item { position: relative; padding: 0 0 30px 34px; border-left: 2px solid var(--line); margin-left: 8px; }
.road-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.road-item::before {
  counter-increment: r; content: counter(r);
  position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  color: var(--body); font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.road-item h3 { margin: 8px 0 4px; }
.road-item h3 a { color: var(--ink); }
.road-item h3 a:hover { color: var(--accent); }
.road-item p { font-size: 16px; }
.road-item .note { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* --- Changelog --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  padding: 7px 14px; border-radius: 20px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.changelog { max-width: 74ch; }
.release { margin-bottom: 40px; }
.release h2 { font-size: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.release .when { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.release ul { list-style: none; margin-top: 14px; }
.release li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--body); }
.release li:last-child { border-bottom: none; }
.kind {
  display: inline-block; min-width: 68px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-right: 4px;
}
.kind.added { background: var(--ok-sub); color: var(--ok); }
.kind.changed { background: var(--accent-sub); color: var(--accent-dark); }
.kind.fixed { background: #e0f2fe; color: #075985; }
.kind.security { background: #fee2e2; color: #b91c1c; }
.area { color: var(--ink); font-weight: 650; margin-right: 4px; }
.empty-note { color: var(--muted); }

@media (max-width: 640px) {
  .kind { min-width: 0; }
  .release li { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .linkcard:hover { transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  header nav a:not(.btn) { display: none; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0 54px; }
  .hero p.lead { font-size: 18px; }
}
