/* TheDoorman marketing site — shared stylesheet.
   Self-contained: no external fonts, scripts, or images. Borrows the product's
   visual language (public/styles.css): brand blue #2563eb, navy #0f172a,
   clean cards, 14px radius, AA contrast. Light-first with a respectful dark mode. */

:root {
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --navy: #0f172a;
  --page: #f1f5f9;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #5b6675;      /* AA: >=4.5:1 on white and on --soft */
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --band-ink: #e2e8f0;   /* text on navy bands */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1220;
    --panel: #16213a;
    --ink: #e6edf6;
    --muted: #9fb0c3;
    --line: #2a3a55;
    --soft: #101a30;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* Accessibility -------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transform: translateY(-150%);
  transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.band :focus-visible, .site-header :focus-visible { outline-color: #93c5fd; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: #fff;
  padding: 10px 16px;
}
.site-header .inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-mark { font-size: 24px; }
.brand strong { display: block; font-size: 16px; line-height: 1.15; }
.brand small { color: #94a3b8; font-size: 12px; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 4px; }
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta {
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.site-nav a.nav-cta:hover { background: var(--brand-ink); }

/* Layout --------------------------------------------------------------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section h2 { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.2; margin: 0 0 8px; }
.section .kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700;
  color: var(--brand); margin: 0 0 6px;
}
.section .lede { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0 0 24px; }

/* Hero ------------------------------------------------------------------ */
.hero { background: var(--navy); color: var(--band-ink); padding: 64px 0 56px; }
.hero h1 {
  color: #fff; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch;
}
.hero .sub { font-size: clamp(16px, 2vw, 19px); max-width: 58ch; color: #c7d2e2; margin: 0 0 22px; }
.hero .founder {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin: 26px 0 0;
  max-width: 66ch; color: #aebccf; font-size: 15px;
}
.hero .founder strong { color: #fff; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; background: var(--brand); color: #fff; text-decoration: none;
  font-family: inherit;
}
.btn:hover { background: var(--brand-ink); }
.btn.secondary { background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 600; }
.btn.secondary:hover { border-color: var(--brand); color: var(--brand); }
.hero .btn.secondary { color: #dbe5f1; border-color: #4b5c77; }
.hero .btn.secondary:hover { color: #fff; border-color: #93c5fd; }
.btn.big { padding: 14px 26px; font-size: 16px; }

/* Cards & grids ----------------------------------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.pain-tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
  background: #fee2e2; color: #b91c1c;
}
.proof-tag { background: #dbeafe; color: var(--brand-ink); }
@media (prefers-color-scheme: dark) {
  .pain-tag { background: #4b1620; color: #fda4af; }
  .proof-tag { background: #172a54; color: #93c5fd; }
}
.card .proof { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Dark math band ----------------------------------------------------------- */
.band { background: var(--navy); color: var(--band-ink); }
.band h2 { color: #fff; }
.band .lede { color: #aebccf; }
.math-figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 18px; }
@media (max-width: 860px) { .math-figures { grid-template-columns: repeat(2, 1fr); } }
.figure { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px; }
.figure b { display: block; font-size: clamp(24px, 3vw, 34px); color: #fff; line-height: 1.1; }
.figure span { font-size: 13px; color: #aebccf; }
.band .fine { font-size: 13px; color: #8fa1b8; max-width: 80ch; }
.band code, .formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.figure .formula { display: block; margin-top: 6px; font-size: 11.5px; color: #8fa1b8; }

/* Trust strip ---------------------------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust-item .dot { font-size: 22px; line-height: 1; }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* Steps ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.step h3 { margin: 0 0 4px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Tables ------------------------------------------------------------------------ */
.table-scroll { overflow-x: auto; }
table.pricing, table.plain {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 14.5px;
}
table.pricing th, table.pricing td, table.plain th, table.plain td {
  text-align: left; padding: 11px 14px; border-top: 1px solid var(--line);
}
table.pricing thead th, table.plain thead th {
  background: var(--soft); border-top: 0; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
table.pricing td.num, table.plain td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.price-note { color: var(--muted); font-size: 13.5px; max-width: 78ch; }
.founding-card { border: 2px solid var(--brand); position: relative; }
.founding-card .flag {
  position: absolute; top: -12px; left: 16px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px;
}
ul.terms { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
ul.terms li { margin: 6px 0; }
ul.terms b { color: var(--ink); }

/* FAQ ------------------------------------------------------------------------------ */
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 18px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 15px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer ------------------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #94a3b8; font-size: 13px; padding: 36px 0; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.site-footer .fine { max-width: 90ch; margin-top: 14px; font-size: 12px; color: #7d8fa5; }

/* ROI calculator page ------------------------------------------------------------------ */
.roi-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .roi-layout { grid-template-columns: 1fr; } }
fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px;
  margin: 0 0 14px; background: var(--panel);
}
legend { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 6px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { flex: 1 1 calc(50% - 5px); min-width: 150px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
label .unit-hint { font-weight: 400; color: var(--muted); }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--panel); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-top: 10px; }
.check input { width: auto; }
.radio-row { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 600; font-size: 14px; }
.radio-row input { width: auto; }
.assumption-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

.result-card { position: sticky; top: 70px; }
@media (max-width: 900px) { .result-card { position: static; } }
.headline-price { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.05; }
.headline-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.result-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.result-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.formula-block {
  background: var(--soft); border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto; white-space: pre;
}
.payback { background: #dbeafe; color: #1e3a8a; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; margin-top: 14px; }
@media (prefers-color-scheme: dark) { .payback { background: #172a54; color: #bfdbfe; } }

/* Proposal (screen) ---------------------------------------------------------------------- */
#proposal-section[hidden] { display: none; }
.proposal {
  background: #fff; color: #0f172a; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 44px; max-width: 820px; margin: 0 auto;
}
@media (max-width: 640px) { .proposal { padding: 24px 18px; } }
.proposal h2 { font-size: 26px; margin: 0 0 2px; }
.proposal .prop-meta { color: #5b6675; font-size: 13px; margin: 0 0 18px; }
.proposal h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #1d4ed8;
  margin: 26px 0 8px; border-bottom: 2px solid #2563eb; padding-bottom: 4px;
}
.proposal p, .proposal li { font-size: 14px; color: #1f2937; }
.proposal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.proposal table th, .proposal table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.proposal table thead th { background: #f1f5f9; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #5b6675; }
.proposal table td.num, .proposal table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proposal .formula { color: #5b6675; font-size: 12px; }
.proposal .total-row td { font-weight: 800; border-top: 2px solid #0f172a; border-bottom: 0; }
.proposal .trust-inline { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.proposal .trust-inline li {
  border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #334155;
}
.proposal .sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 34px; }
@media (max-width: 560px) { .proposal .sig-grid { grid-template-columns: 1fr; } }
.proposal .sig .line { border-bottom: 1px solid #0f172a; height: 34px; }
.proposal .sig small { color: #5b6675; font-size: 11.5px; }
.proposal .prop-fine { font-size: 11.5px; color: #64748b; margin-top: 22px; }
.proposal-actions { display: flex; gap: 12px; justify-content: center; margin: 18px 0 0; flex-wrap: wrap; }

/* Print: only the proposal, clean, black on white ------------------------------------------ */
@media print {
  @page { margin: 14mm; }
  body.has-proposal .no-print { display: none !important; }
  body.has-proposal { background: #fff; }
  body.has-proposal #proposal-section { padding: 0; }
  body.has-proposal .proposal {
    border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none;
  }
  .proposal h3 { break-after: avoid; }
  .proposal table, .proposal .sig-grid { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
