/* ==========================================================================
   Prune marketing / SEO pages. Server rendered, no framework, mobile first.
   Same palette as the app so the landing page and the product feel like one
   product.
   ========================================================================== */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e8f0;
  --text: #101623;
  --muted: #6b7484;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-2: #0ea5e9;
  --danger: #ef4444;
  --warn: #f59e0b;
  --good: #22c55e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 22, 35, .06), 0 8px 24px rgba(16, 22, 35, .06);
  --shadow-lg: 0 20px 40px rgba(16, 22, 35, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 30px; line-height: 1.25; margin: 26px 0 10px; letter-spacing: -.02em; }
h2 { font-size: 21px; margin: 26px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 18px 0 8px; }

.lede { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }

/* --------------------------------------------------------------- top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
}

.spacer { flex: 1; }

.btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3f37c9; }
.btn.ghost { background: transparent; }

/* --------------------------------------------------------------- content */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 18px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  shadow: var(--shadow);
  box-shadow: var(--shadow);
}

.card.plan { padding: 20px; }
.card.plan .name { font-weight: 700; font-size: 16px; }
.card.plan .price { font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.card.plan .per { font-size: 13px; color: var(--muted); font-weight: 600; }
.card.plan ul { margin: 12px 0 14px; padding-left: 18px; color: var(--muted); }
.card.plan li { margin-bottom: 6px; }
.card.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.row-tag { color: var(--muted); font-size: 12px; }

.breadcrumb { color: var(--muted); font-size: 13px; margin-top: 18px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.steps .num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.steps .title { font-weight: 600; }
.steps .detail { color: var(--muted); font-size: 14px; margin-top: 3px; }

.letter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------- landing */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
  padding: 34px 0 20px;
}
.hero h1 { font-size: 38px; margin: 0 0 12px; line-height: 1.2; }
.hero .lede { font-size: 17px; max-width: 52ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .hero-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* the proof card next to the headline */
.hero-proof { padding: 18px; }
.proof-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.proof-big { font-size: 30px; font-weight: 800; color: var(--danger); }
.proof-line { font-size: 13px; color: var(--muted); }
.splitbar { width: 100%; height: 26px; }
.splitlegend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.splitlegend li { display: flex; align-items: center; gap: 8px; }
.splitlegend .dot { width: 10px; height: 10px; border-radius: 5px; flex: none; }
.splitlegend .split-label { color: var(--muted); }
.splitlegend .split-amt { margin-left: auto; font-weight: 700; }
.proof-foot { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* charts */
section { margin: 24px 0; }
.chart { padding: 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-foot { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.chart-foot strong { color: var(--text); }
.bars { display: grid; gap: 14px; padding: 16px; }
.bar-row { display: grid; gap: 5px; }
.bar-row .bar { height: 10px; border-radius: 6px; background: var(--accent); }
.bar-row .bar-warn { background: var(--warn); }
.bar-row .bar-label { font-size: 13px; color: var(--muted); }
.bar-row .bar-label strong { color: var(--text); }
.bar-row .bar-src { font-size: 12px; color: var(--muted); }

.calc { padding: 18px; }
.calc-inputs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 12px 0; }
.calc-inputs label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.calc-inputs input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface); }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.calc-out .calc-out-big { font-size: 30px; font-weight: 800; color: var(--accent); }
.calc-out .calc-out-line { font-size: 13px; color: var(--muted); }
.calc-foot { font-size: 13px; color: var(--muted); margin-top: 10px; }

.sources ul { margin: 10px 0 0; padding-left: 18px; }
.sources li { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.sources .source-list li { color: var(--muted); }
.sources .source-list a { color: var(--text); font-weight: 600; }

.closing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.closing h2 { margin-top: 0; }

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 22px 0;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.stat .value { font-size: 22px; font-weight: 800; }
.stat .label { color: var(--muted); font-size: 13px; }

.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px; font-weight: 800;
}
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 18px 0; }

footer {
  padding: 22px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  background: var(--surface);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-proof { max-width: none; }
}

/*
  The charts are drawn in a 420-unit coordinate system, so once the card is
  narrower than 420px every label inside them shrinks with it. Below that the
  type is bumped back up in user units so the numbers stay readable instead of
  drifting under 8px on a phone.
*/
@media (max-width: 560px) {
  .chart svg text { font-size: 15px; }
  th, td { padding: 7px 8px; }
  .calc-out .calc-out-big { font-size: 22px; }
  .proof-big { font-size: 26px; }
}

@media (max-width: 700px) {
  h1 { font-size: 24px; }
  .topbar { padding: 10px 14px; }
  .wrap { padding: 0 14px 30px; }
}
