/* Comparison pages. Audience is technical — people who already know what Supabase,
   Vercel and Firebase are and are actively shopping. Density over drama: the page is
   a table you can verify line by line, not a pitch. Deliberately not the ownyourapp
   look, which is film-led and aimed at non-technical builders. */
:root {
  --ink: #171714;
  --ink-2: #3d3c37;
  --paper: #f2efe6;
  --paper-2: #e8e3d7;
  --white: #fffdf7;
  --acid: #ff6038;
  --acid-dark: #d63e19;
  --sage: #b7d5bf;
  --sage-dark: #2f7d52;
  --muted: #77746c;
  --line: rgba(23, 23, 20, 0.16);
  --line-strong: rgba(23, 23, 20, 0.3);
  --dark-line: rgba(255, 253, 247, 0.18);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.mono { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }

.nav { height: 64px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 20px; }
.brand span { color: var(--acid); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.hero { padding: 62px 0 44px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--acid-dark); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; max-width: 900px; }
h1 em { font-style: normal; color: var(--muted); }
.hero-deck { max-width: 660px; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; padding: 0 18px; text-decoration: none; font-weight: 650; font-size: 14px; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.button-primary { background: var(--acid); color: var(--white); }
.button-primary:hover { background: #ff7655; }
.button-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); }
.hero-note { margin-top: 16px; font: 11px/1.6 var(--mono); color: var(--muted); }

/* The account-count strip: the single fastest way to land the all-in-one argument. */
.stack-strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.stack-col > div:first-child { font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--line-strong); padding: 6px 10px; font: 12px/1.2 var(--mono); background: var(--white); }
.chip.ours { border-color: var(--acid); background: var(--acid); color: var(--white); font-weight: 600; }
.stack-arrow { font: 20px/1 var(--mono); color: var(--muted); }
.stack-count { margin-top: 12px; font: 11px/1.4 var(--mono); color: var(--muted); }
.stack-count b { color: var(--ink); }

.section { padding: 66px 0; border-bottom: 1px solid var(--line); }
.section.tint { background: var(--paper-2); }
.section-label { font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--acid-dark); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.04em; margin: 10px 0 0; font-weight: 600; max-width: 820px; }
.section-copy { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 700px; margin: 16px 0 0; }
.section-head { margin-bottom: 34px; }

/* Two-model explainer */
.models { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); background: var(--white); }
.model { padding: 28px 26px; }
.model + .model { border-left: 1px solid var(--line-strong); }
.model-tag { font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.model h3 { margin: 12px 0 10px; font-size: 20px; letter-spacing: -.025em; }
.model p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.flow { margin-top: 18px; display: grid; gap: 8px; font: 12px/1.5 var(--mono); }
.flow div { padding: 9px 11px; border: 1px solid var(--line); background: var(--paper); }
.flow div.warn { border-color: var(--acid); color: var(--acid-dark); }
.flow div.good { border-color: var(--sage); color: var(--sage-dark); }

/* Capability matrix */
.matrix { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line-strong); font-size: 14px; }
.matrix th, .matrix td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--paper-2); font: 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td:nth-child(2), .matrix td:nth-child(3) { width: 26%; }
.matrix th:nth-child(3), .matrix td:nth-child(3) { border-left: 1px solid var(--line); background: rgba(255, 96, 56, .04); }
.yes, .no, .partial { display: inline-flex; align-items: center; gap: 7px; font: 12px/1.4 var(--mono); }
.yes::before { content: "●"; color: var(--sage-dark); }
.no::before { content: "○"; color: var(--muted); }
.partial::before { content: "◐"; color: var(--acid-dark); }
.matrix small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; font-family: var(--mono); }
.matrix-note { margin: 14px 0 0; font: 11px/1.6 var(--mono); color: var(--muted); }
.table-scroll { overflow-x: auto; }

.receipts { border-top: 1px solid var(--line); }
.receipt { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 26px; border-bottom: 1px solid var(--line); padding: 22px 0; align-items: baseline; }
.receipt-num { font: 11px/1 var(--mono); color: var(--acid-dark); }
.receipt h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.receipt p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Migration prompt block */
.promptbox { border: 1px solid var(--line-strong); background: var(--ink); color: var(--white); position: relative; }
.promptbox-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--dark-line); font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .11em; color: rgba(255,253,247,.55); }
.promptbox pre { margin: 0; padding: 20px 18px; font: 13px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.promptbox .ph { color: var(--acid); }
.copy-btn { border: 0; background: var(--acid); color: var(--white); font: 700 11px/1 var(--mono); letter-spacing: .06em; padding: 7px 12px; cursor: pointer; }
.copy-btn:hover { background: #ff7655; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acid-dark); font-family: var(--mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 20px; max-width: 760px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

.final { padding: 76px 0 84px; text-align: center; }
.final h2 { margin: 0 auto 18px; }
.final p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; }
footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
.status-line { min-height: 16px; margin-top: 12px; font: 11px/1.4 var(--mono); color: var(--acid-dark); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .stack-strip { grid-template-columns: 1fr; gap: 18px; }
  .stack-arrow { display: none; }
  .models { grid-template-columns: 1fr; }
  .model + .model { border-left: 0; border-top: 1px solid var(--line-strong); }
  .receipt { grid-template-columns: 40px 1fr; }
  .receipt p { grid-column: 2; }
}
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 46px 0; }
  .actions .button { width: 100%; }
  .matrix th, .matrix td { padding: 10px; }
  .matrix { font-size: 13px; }
}
