/* The public website (roadmapmix.com). Same navy and blue as the app's brand (shared/brand.ts). */
:root {
  --navy: #142850;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #e3ebfd;
  --page: #f4f6fa;
  --line: #dde2ee;
  --input-line: #c5ccdb;
  --text: #142850;
  --muted: #45526e;
  --on-navy: #dbe4f5;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.top { background: var(--navy); color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.nav .logo img { height: 30px; display: block; }
.nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav .links a { color: var(--on-navy); }
.nav .links a:hover, .nav .links a[aria-current='page'] { color: #fff; }
.nav .links a[aria-current='page'] { font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border: 0; border-radius: 8px; font-family: inherit; font-weight: 600; text-align: center; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline-light { border: 1.5px solid #fff; color: #fff; padding: 10.5px 18px; }
.nav .links a.btn-outline-light, .nav .links a.btn-primary { color: #fff; }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: #0d1d3d; }
.btn-lg { padding: 16px 24px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero > div { flex: 1 1 460px; min-width: 0; }
.eyebrow { margin: 0 0 16px; color: #93b4f5; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { margin: 0 0 32px; font-size: 19px; color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { margin: 18px 0 0; font-size: 14px; color: #b9c8e6; }

.example { background: #fff; color: var(--text); border-radius: 14px; padding: 24px; box-shadow: 0 24px 60px rgba(4, 14, 40, 0.45); }
.example .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.example .label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #5b6785; }
.bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bar span:first-child { width: 96px; }
.bar .track { flex: 1; height: 12px; background: var(--blue-soft); border-radius: 6px; }
.bar .fill { height: 12px; border-radius: 6px; }
.bar span:last-child { width: 40px; text-align: right; }
.rows { border: 1px solid var(--line); border-radius: 10px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.rows div + div { border-top: 1px solid var(--line); }
.ok { margin: 14px 0 0; font-size: 13px; color: #15803d; font-weight: 600; }

/* Sections */
section.block { padding-top: 88px; padding-bottom: 40px; }
.block h2 { margin: 0 0 12px; font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; }
.block .intro { margin: 0 auto 44px; max-width: 720px; font-size: 18px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: var(--page); border-radius: 12px; padding: 28px; }
.steps .num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 18px; background: var(--blue); color: #fff; font-weight: 700; }
.steps h3 { margin: 16px 0 8px; font-size: 18px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
.band { background: var(--page); margin-top: 72px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.split > div { flex: 1 1 420px; min-width: 0; }
.split h2 { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; }
.roles { display: flex; flex-direction: column; gap: 14px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.role p { margin: 0; }
.role .name { font-weight: 700; margin-bottom: 4px; }
.role .what { font-size: 14px; color: var(--muted); }
.tag { flex: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--navy); }
.tag-green { background: #dcfce7; color: #166534; }
.cta { background: var(--navy); color: #fff; }
.cta .wrap { padding-top: 88px; padding-bottom: 88px; }
.cta h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; }
.cta p { margin: 0 0 32px; font-size: 18px; color: var(--on-navy); }

/* Pricing */
.page-head { padding-top: 56px; padding-bottom: 72px; text-align: center; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(34px, 4.5vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 19px; color: var(--on-navy); }
.toggle { display: flex; justify-content: center; margin: 48px 0 36px; }
.toggle div { display: inline-flex; background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.toggle button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; font: 600 15px var(--font); background: transparent; color: var(--navy); cursor: pointer; }
.toggle button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); padding: 31px; }
.plan.alt { background: var(--page); }
.plan .badge { position: absolute; top: -14px; left: 31px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; letter-spacing: 0.04em; }
.plan h2 { margin: 0 0 6px; font-size: 24px; }
.plan .for { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.plan .price { margin: 0 0 4px; font-size: 40px; font-weight: 800; }
.plan .price .per { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .unit { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.tax-note { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.plan .btn { margin-bottom: 28px; }
.plan .btn.btn-noted { margin-bottom: 10px; }
.btn-note { margin: 0 0 24px; font-size: 13px; color: var(--muted); text-align: center; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.calc { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: -8px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.alt .calc, .plan.featured .calc { background: #fff; }
.calc .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc label { font-size: 14px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--input-line); background: #fff; border-radius: 8px; font: 600 20px var(--font); color: var(--navy); cursor: pointer; }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper output { min-width: 32px; text-align: center; font-size: 18px; font-weight: 700; }
.calc p { margin: 0; font-size: 15px; }
.calc .hint { font-size: 14px; color: var(--blue-hover); font-weight: 600; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; }
.compare thead tr { background: var(--page); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
.faq summary { font-weight: 600; font-size: 16px; cursor: pointer; }
.faq p { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

/* Sign-up and plain pages */
.signup { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 80px; }
.signup > * { flex: 1 1 400px; min-width: 0; }
.signup h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 42px); font-weight: 800; }
.checks { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 12px 32px rgba(20, 40, 80, 0.08); }
.panel h2 { margin: 0 0 12px; font-size: 24px; }
.panel p { margin: 0 0 20px; color: var(--muted); }
[data-signup='on'] .signup-off, [data-signup='off'] .signup-on { display: none; }
.field { margin: 0 0 16px; }
.field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 8px; font: 16px var(--font); color: var(--text); background: #fff; }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.form-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #9b1c1c; font-size: 15px; }
.fine-print { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.panel button[disabled] { opacity: 0.6; cursor: default; }
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: 40px; margin: 0 0 16px; }
.legal .updated { margin: 0 0 32px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: 22px; scroll-margin-top: 16px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.table-scroll { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: 10px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal th, .legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.legal table.categories thead th:first-child { width: 20%; }
.legal table.categories thead th:last-child { width: 30%; }
.legal thead th { background: var(--page); border-top: 0; }
.legal tbody th { font-weight: 600; }
.on-page { background: var(--page); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 640px) {
  .nav .links { gap: 16px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .plan, .panel { padding: 24px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn:focus-visible, .agree input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Home page: one initiative's way from plan to spec to pull request (hero) */
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.flow-steps li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.flow-steps .dot { flex: none; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 16px; font-size: 12px; font-weight: 700; }
.flow-steps .dot.done { background: #dcfce7; color: #166534; }
.flow-steps .dot.now { background: var(--blue); color: #fff; }
.flow-steps p { margin: 0; }
.flow-steps .t { font-weight: 600; font-size: 14px; }
.flow-steps .d { font-size: 13px; color: var(--muted); line-height: 1.55; }
.flow-steps .who { display: inline-block; margin: 4px 6px 0 0; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--blue-soft); color: var(--navy); }
.flow-steps .who.agent { background: #f3e8ff; color: #6b21a8; }
.steps-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.block .note { margin: 28px 0 0; font-size: 16px; color: var(--muted); }
/* The spec example, shown on a white page in the Specs section */
.example.on-light { max-width: 560px; margin: 0 auto 44px; text-align: left; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(20, 40, 80, 0.1); }
