/* The dashboard's tokens, so the front door and the house behind it match. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --border: #e4e7ec;
  --text: #1a1d23;
  --text-muted: #667085;
  --accent: #3b5bdb;
  --accent-soft: #e7ecfd;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1b1e24;
    --surface-alt: #22262e;
    --border: #2c313a;
    --text: #e8eaed;
    --text-muted: #98a2b3;
    --accent: #7c93f5;
    --accent-soft: #232a45;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 28px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav nav a { color: var(--text); }
.nav nav a.btn { color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 44px;
  line-height: 22px;
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #2f4bc4; border-color: #2f4bc4; }
.btn.large { padding: 12px 22px; font-size: 17px; }

/* ---- sections ---- */
main { max-width: 960px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: 0; }

.hero { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; max-width: 720px; margin: 0 auto 16px; }
.hero .lede { font-size: 19px; max-width: 640px; margin: 0 auto 28px; color: var(--text-muted); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; }
.snippet {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  overflow-x: auto;
  text-align: left;
  font-size: 14px;
  margin: 0 auto 8px;
  max-width: 720px;
}

/* ---- dashboard illustration ---- */
.preview { padding: 0 0 56px; }
.dash { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); }
.dash .panel { fill: var(--surface); stroke: var(--border); }
.dash .bar { fill: var(--surface-alt); }
.dash .brandtext { fill: var(--text); font-weight: 700; font-size: 16px; }
.dash .chip { fill: var(--surface); stroke: var(--border); }
.dash .chiptext { fill: var(--text-muted); font-size: 11px; }
.dash .tiles rect, .dash .tile { fill: var(--surface-alt); stroke: var(--border); }
.dash .label { fill: var(--text-muted); font-size: 10px; letter-spacing: 0.06em; }
.dash .value { fill: var(--text); font-size: 24px; font-weight: 600; }
.dash .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.dash .area { fill: var(--accent); opacity: 0.12; }
.dash .barfill { fill: var(--accent-soft); }
.dash .num { fill: var(--text-muted); font-size: 11px; text-anchor: end; }

/* ---- why ---- */
.why .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 32px; margin-top: 24px; }
.why p { color: var(--text-muted); margin: 0; }

/* ---- how ---- */
.how ol { padding-left: 22px; margin: 0; max-width: 640px; }
.how li { margin-bottom: 10px; }
.how code { background: var(--surface-alt); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 20px; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan.featured { border-color: var(--accent); background: var(--accent-soft); }
.plan .price { font-size: 30px; font-weight: 600; margin: 0; }
.plan .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text-muted); }
.plan .btn { margin-top: auto; text-align: center; }

/* ---- faq ---- */
.faq dl { margin: 16px 0 0; max-width: 720px; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--text-muted); }
.faq code { background: var(--surface-alt); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* ---- footer ---- */
footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
footer nav { display: flex; gap: 16px; }

@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav nav { gap: 12px; }
  main { padding: 0 16px; }
  section { padding: 40px 0; }
  .hero { padding-top: 48px; }
}

/* ---- inner pages ---- */
.page-top { padding-top: 56px; }
.page-top h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; max-width: 720px; }
.page-top .lede { font-size: 19px; color: var(--text-muted); max-width: 640px; }
.teaser { text-align: center; }
.teaser .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.nav nav a[aria-current='page'] { font-weight: 600; }
ul.plain { padding-left: 20px; margin: 0; color: var(--text-muted); }
ul.plain li { margin-bottom: 6px; }
