:root {
  --ink: #16181d;
  --ink-2: #3d424b;
  --muted: #5a5f69;
  --ground: #f6f6f3;
  --surface: #ffffff;
  --line: #e2e1da;
  --line-2: #d9d8d0;
  --chip: #e9e8e2;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --accent-soft: #f2a36b;
  --term: #16181d;
  --term-text: #d7d9de;
  --term-dim: #8a909b;
  --danger: #b42318;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.eyebrow.accent { color: var(--accent); }

/* header + footer */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.site-header.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header.bar > .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand-mark { display: inline-flex; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--ground); align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav .strong { font-weight: 600; }
.nav form { margin: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn:hover { color: var(--accent); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* landing */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.inline-code { font-family: var(--mono); font-size: 0.85em; background: var(--chip); padding: 2px 6px; border-radius: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 15px; color: var(--muted); }
.terminal { flex: 1 1 460px; min-width: 0; background: var(--term); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(22, 24, 29, 0.55); }
.terminal-bar { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #2a2e36; }
.terminal-bar span { width: 12px; height: 12px; border-radius: 6px; background: #3a3f49; }
.terminal pre, pre.code { margin: 0; padding: 24px; font-size: 14.5px; line-height: 1.75; color: var(--term-text); white-space: pre-wrap; overflow-x: auto; }
pre.code { background: var(--term); border-radius: 12px; white-space: pre; line-height: 1.85; }
.t-dim { color: var(--term-dim); }
.t-hi { color: var(--accent-soft); }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
h2.big { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.step-num { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.step h3, .feature h3 { margin: 0; font-size: 22px; font-weight: 600; }
.step p, .feature p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.feature { display: flex; flex-direction: column; gap: 12px; }
.app-split { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.app-split .section-head { flex: 1 1 520px; }
.app-split .checks { flex: 0 1 340px; }
.section-lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.screenshot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ground); box-shadow: 0 30px 60px -30px rgba(22, 24, 29, 0.35); }
.screenshot img { display: block; width: 100%; height: auto; }
.device-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.device-shots img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .device-shots { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.app-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }

.pricing { background: var(--ink); color: var(--ground); }
.pricing .section { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.pricing-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing-copy .eyebrow { color: var(--accent-soft); }
.pricing-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: #b9bdc5; }
.price-card { flex: 1 1 420px; min-width: 0; background: var(--ground); color: var(--ink); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { font-size: 20px; color: var(--ink-2); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex: none; }
.center { text-align: center; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line-2); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { font-size: 20px; font-weight: 600; cursor: pointer; }
.faq p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* forms + cards */
.narrow-main { display: flex; justify-content: center; padding: 64px 24px 96px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card.auth { width: 100%; max-width: 440px; padding: 40px; }
.card h1 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.15; }
.card h2 { margin: 0; font-size: 24px; font-weight: 800; }
.card p { margin: 0; line-height: 1.55; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input { min-height: 50px; padding: 0 14px; border: 1.5px solid #b9b8b0; border-radius: 10px; font: inherit; font-size: 17px; background: #fff; color: var(--ink); }
.form-stack { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.alert.error { background: #fdecea; color: #7a1b13; border: 1px solid #f3c2bc; }
.alert.ok { background: #e7f3ec; color: #1e5236; border: 1px solid #b9dcc6; }
.alert.warn { display: flex; gap: 14px; background: #fff4ec; border: 1px solid #f5c9a8; color: #5c2a0e; }
.alert.warn svg { flex: none; margin-top: 2px; }

/* dashboard */
.dash { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.dash h1 { margin: 0; font-size: 40px; font-weight: 800; }
.status { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 28px 32px; }
.status-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.status-title { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status-title strong { font-size: 20px; font-weight: 600; }
.status form { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.badge.trial { background: #fff4ec; color: var(--accent-ink); }
.badge.active { background: #e7f3ec; color: #1e6b3e; }
.badge.complimentary { background: #e8eefb; color: #1f4bb8; }
.badge.past_due { background: #fdecea; color: var(--danger); }
.badge.inactive { background: #ecece8; color: var(--ink-2); }
.dash-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.dash-main { flex: 999 1 560px; }
.dash-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.dash-side .card { padding: 28px; gap: 18px; }
.dash-side h2 { font-size: 20px; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { flex: 1 1 320px; min-width: 0; font-size: 16px; padding: 12px 14px; background: var(--ground); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-size: 20px; font-weight: 600; }
.danger-item { display: flex; flex-direction: column; gap: 8px; }
.danger-item p, .muted { font-size: 14px; line-height: 1.5; color: var(--muted); }
.danger-item form { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.danger-item input { min-height: 44px; padding: 0 12px; border: 1.5px solid #b9b8b0; border-radius: 10px; font: inherit; }
details.inline summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* prose (terms, privacy) */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.prose h1 { font-size: 40px; font-weight: 800; margin: 0 0 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose p, .prose li { line-height: 1.65; color: var(--ink-2); }

@media (max-width: 560px) {
  .card, .card.auth, .price-card { padding: 24px; }
  .status { padding: 24px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
}
