/* RunwayPulse — stylesheet.
   One dark theme, tuned for numbers: high contrast figures, calm surfaces,
   amber for the runway line, mint for money that works, rose for money that
   does not. No web fonts, no icon font, no external requests. */

:root {
  --ink: #07090d;
  --ink-2: #0b0e14;
  --panel: #10141c;
  --panel-2: #141926;
  --panel-3: #1a2030;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8edf6;
  --muted: #9aa7ba;
  --dim: #6e7a8d;
  --amber: #f4b23e;
  --amber-soft: rgba(244, 178, 62, 0.12);
  --amber-line: rgba(244, 178, 62, 0.35);
  --mint: #3ddc97;
  --mint-soft: rgba(61, 220, 151, 0.12);
  --rose: #ff6b81;
  --rose-soft: rgba(255, 107, 129, 0.12);
  --cyan: #55c9e8;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(244, 178, 62, 0.13), transparent 65%),
    radial-gradient(700px 420px at 8% 4%, rgba(85, 201, 232, 0.09), transparent 60%),
    linear-gradient(180deg, #080a0f 0%, #07090d 40%, #06080b 100%);
}

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

img, svg, canvas { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2.05rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #101010;
  padding: 10px 16px;
  z-index: 99;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 13, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffd489, #f4b23e 45%, #d98f21);
  color: #191203;
  box-shadow: 0 6px 18px rgba(244, 178, 62, 0.22);
}
.brand-mark svg { width: 20px; height: 20px; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 9px;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-cta {
  color: #171101 !important;
  background: linear-gradient(180deg, #ffca6b, #f0a92c) !important;
  font-weight: 650;
  padding: 9px 15px !important;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(240, 169, 44, 0.22);
}
.nav-cta:hover { filter: brightness(1.06); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber-line);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lede {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 24px;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.chip-list li {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 11px;
  border-radius: 999px;
}
.chip-list li::before { content: "✓"; color: var(--mint); margin-right: 7px; font-size: 0.75em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  padding: 12px 20px;
  font-size: 0.94rem;
  font-weight: 620;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(180deg, #ffcb6d, #f0a92c);
  color: #171101;
  box-shadow: 0 8px 22px rgba(240, 169, 44, 0.2);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.small { padding: 9px 14px; font-size: 0.85rem; border-radius: 9px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.hero-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244, 178, 62, 0.14), transparent 60%),
    linear-gradient(180deg, #141926, #0e1219);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
.hero-card .hc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.hc-big {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 4px;
}
.hc-big small { font-size: 0.34em; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.hc-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.hc-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hc-mini div span {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.hc-mini div b { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* ---------- app ---------- */
.app-section { padding: 12px 0 20px; }
.app-head { margin-bottom: 20px; }
.app-head h2 { margin-bottom: 6px; }
.app-head p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, 386px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
.col-inputs { position: sticky; top: 80px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 { margin: 0; font-size: 1rem; }
.panel-head .hint { font-size: 0.76rem; color: var(--dim); }
.panel-body { padding: 16px 18px 18px; }

.field { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.055); }
.field:last-child { border-bottom: 0; }
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.field-head label { font-size: 0.87rem; color: var(--text); }
.field-head .unit { font-size: 0.74rem; color: var(--dim); }
.field-inputs { display: flex; align-items: center; gap: 10px; }

input[type="number"], input[type="text"] {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
  background: #0a0e14;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}
input[type="number"] { field-sizing: content; max-width: 132px; text-align: right; }
input:focus-visible, .btn:focus-visible, .chart-tabs button:focus-visible, .preset:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(244, 178, 62, 0.85) 0%,
    rgba(244, 178, 62, 0.85) var(--fill, 50%),
    rgba(255, 255, 255, 0.09) var(--fill, 50%),
    rgba(255, 255, 255, 0.09) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}
input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 178, 62, 0.85);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  background: #ffd489;
  border: 2px solid #2a1f08;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffd489;
  border: 2px solid #2a1f08;
}

.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.preset {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}
.preset:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }

.lever-block { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.lever-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin: 0 0 8px;
  font-weight: 600;
}

/* result column */
.col-results { display: grid; gap: 18px; min-width: 0; }
.runway-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 120% at 8% 0%, rgba(244, 178, 62, 0.16), transparent 55%),
    linear-gradient(180deg, #151a26, #0e1219 70%);
  padding: 22px 24px 20px;
}
.runway-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.runway-label { font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.pill {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.pill-good { color: #7ef0c0; background: var(--mint-soft); border-color: rgba(61, 220, 151, 0.3); }
.pill-mid { color: #ffd489; background: var(--amber-soft); border-color: rgba(244, 178, 62, 0.3); }
.pill-warn { color: #ffbe6b; background: rgba(255, 160, 60, 0.12); border-color: rgba(255, 160, 60, 0.32); }
.pill-bad { color: #ff9aa8; background: var(--rose-soft); border-color: rgba(255, 107, 129, 0.32); }
.runway-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: clamp(3rem, 7.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #ffcf72;
  margin: 2px 0 6px;
}
.runway-unit { font-family: var(--sans); font-size: clamp(0.9rem, 1.4vw, 1.05rem); color: var(--muted); letter-spacing: 0; }
.runway-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.delta { font-size: 0.84rem; color: var(--dim); margin-bottom: 18px; }
.delta.up { color: var(--mint); }
.delta.down { color: var(--rose); }

.gauge { margin: 4px 0 10px; }
.gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f78 0%, #ff8a5b 18%, #f4b23e 38%, #b6d94c 62%, #3ddc97 100%);
  opacity: 0.92;
}
.gauge-marker {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 9, 13, 0.85), 0 0 14px rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  transition: left 0.28s ease;
}
.gauge-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  margin-top: 7px;
}
.gauge-caption { font-size: 0.8rem; color: var(--dim); margin: 0; }

.quickstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quickstats div span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 3px; }
.quickstats div b { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }

.decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.decision {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  padding: 14px 15px;
}
.decision .k { font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 7px; }
.decision .v { font-family: var(--mono); font-size: 1.18rem; color: var(--text); letter-spacing: -0.02em; }
.decision .v.good { color: var(--mint); }
.decision .s { font-size: 0.76rem; color: var(--dim); margin-top: 5px; line-height: 1.45; }

.chart-card { padding: 14px 16px 12px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.chart-head h3 { margin: 0; font-size: 0.94rem; color: var(--text); }
.chart-tabs { display: inline-flex; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.chart-tabs button {
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}
.chart-tabs button.on { background: rgba(244, 178, 62, 0.16); color: #ffd489; }
.chart-block { margin-bottom: 12px; }
.chart-title { font-size: 0.76rem; color: var(--dim); margin: 0 0 4px; letter-spacing: 0.04em; }
.chart-wrap { position: relative; width: 100%; height: 190px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-readout {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 4px;
  min-height: 30px;
}
.chart-readout b { color: var(--amber); font-weight: 600; }

.export-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.export-row .spacer { flex: 1; }
.export-note { font-size: 0.76rem; color: var(--dim); margin: 8px 0 0; }

/* tiers */
.tiers { padding: 16px 18px 18px; }
.tiers-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tiers-head h3 { margin: 0 0 3px; }
.tiers-head p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 8px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
table input { padding: 6px 8px; font-size: 0.84rem; }
td.t-name input { min-width: 96px; }
td.t-price input, td.t-cust input, td.t-churn input { max-width: 78px; }
.share { min-width: 92px; }
.share-bar { display: inline-block; width: 46px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.share-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f4b23e, #3ddc97); }
.share em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  line-height: 1;
  cursor: pointer;
  font-size: 1rem;
}
.icon-btn:hover { color: var(--rose); border-color: rgba(255, 107, 129, 0.4); }
.tier-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tier-totals div span { display: block; font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 3px; }
.tier-totals div b { font-family: var(--mono); font-weight: 500; font-size: 0.98rem; }
.tier-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ad slot */
.ad-slot {
  margin: 26px 0;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}
.ad-slot .ad-note { font-size: 0.68rem; color: rgba(255, 255, 255, 0.22); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- content ---------- */
.content { padding: clamp(30px, 5vw, 56px) 0 10px; }
.content .wrap { max-width: 900px; }
.prose { color: #cbd4e2; }
.prose h2 { color: var(--text); margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); margin-top: 1.5em; }
.prose p, .prose li { font-size: 1.005rem; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: #fff; }
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--amber);
  background: rgba(244, 178, 62, 0.055);
  border-radius: 0 10px 10px 0;
  color: #dbe3ef;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.formula {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: #0a0e14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  color: #ffe0a8;
  overflow-x: auto;
  white-space: pre-wrap;
}
.formula em { color: var(--dim); font-style: normal; }

.cmp { width: 100%; margin: 18px 0 24px; font-size: 0.9rem; }
.cmp th, .cmp td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
.cmp td:first-child { color: var(--text); }
.cmp tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 42px; margin-bottom: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
}

/* faq */
.faq { padding: 26px 0 10px; }
.faq .wrap { max-width: 900px; }
.faq-list { display: grid; gap: 8px; margin-top: 18px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  padding: 0 16px;
}
details[open] { border-color: rgba(244, 178, 62, 0.28); background: rgba(244, 178, 62, 0.045); }
summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 560;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.96rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-family: var(--mono); font-size: 1.1rem; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 0.93rem; padding-bottom: 14px; margin: 0; }

/* related tools */
.related { padding: 30px 0 10px; }
.related .wrap { max-width: 900px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  color: var(--text);
}
.tool-card:hover { border-color: rgba(244, 178, 62, 0.35); text-decoration: none; background: rgba(244, 178, 62, 0.05); }
.tool-card b { display: block; font-size: 0.96rem; margin-bottom: 3px; }
.tool-card span { color: var(--muted); font-size: 0.85rem; }
.tool-card .arrow { color: var(--amber); font-size: 0.8rem; margin-top: 8px; display: block; }

.cta-band {
  margin: 34px 0 10px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(244, 178, 62, 0.1), rgba(61, 220, 151, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-band p { margin: 0; color: var(--text); font-size: 0.96rem; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 40px 0 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-brand p { color: var(--muted); font-size: 0.88rem; max-width: 36ch; margin-top: 12px; }
.foot-col h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 0 0 10px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.88rem; padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-base {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.79rem;
  color: var(--dim);
}
.foot-base .privacy-line { max-width: 60ch; }

/* prose page shell */
.page-hero { padding: clamp(34px, 5vw, 60px) 0 8px; }
.page-hero .wrap { max-width: 900px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero .lede { margin-bottom: 8px; }
.page-meta { color: var(--dim); font-size: 0.8rem; font-family: var(--mono); }
.breadcrumb { font-size: 0.8rem; color: var(--dim); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.guide-list { display: grid; gap: 14px; margin-top: 8px; }
.guide-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}
.guide-item:hover { border-color: rgba(244, 178, 62, 0.35); text-decoration: none; }
.guide-item b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.guide-item span { color: var(--muted); font-size: 0.88rem; }
.guide-item em { font-style: normal; display: block; margin-top: 8px; font-size: 0.78rem; color: var(--dim); font-family: var(--mono); }
.contact-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 24px;
  margin: 22px 0;
}
.contact-card a { font-family: var(--mono); font-size: 1.05rem; }
.legal-note { font-size: 0.86rem; color: var(--dim); }
.noscript {
  display: block;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 160, 60, 0.35);
  background: rgba(255, 160, 60, 0.08);
  border-radius: 10px;
  color: #ffcf9a;
  font-size: 0.9rem;
}

/* ---------- print report ---------- */
.report { display: none; }

@page { size: A4; margin: 14mm 12mm; }

@media print {
  html, body { background: #fff !important; color: #111 !important; }
  body::before { display: none; }
  .site-head, .hero, .app-section, .content, .faq, .related, .site-foot, .ad-slot, .skip-link, .cta-band { display: none !important; }
  .report { display: block !important; font-family: Georgia, "Times New Roman", serif; color: #111; padding: 0 4mm; }
  .report h1 { font-size: 22pt; margin: 0 0 2mm; font-family: Georgia, serif; }
  .report .rep-title { font-family: Georgia, serif; font-size: 22pt; margin: 0 0 2mm; color: #111; }
  .report .rep-brand { font-family: Arial, sans-serif; font-size: 9pt; letter-spacing: 0.18em; text-transform: uppercase; color: #666; margin-bottom: 3mm; }
  .report .rep-meta { font-family: Arial, sans-serif; font-size: 8.5pt; color: #555; margin-bottom: 6mm; }
  .report h2 { font-size: 12pt; margin: 7mm 0 2mm; font-family: Arial, sans-serif; }
  .rep-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 8mm; }
  .rep-row { display: flex; justify-content: space-between; border-bottom: 1px dotted #bbb; padding: 1.4mm 0; font-size: 9pt; }
  .rep-row span { color: #444; }
  .rep-row b { font-family: "Courier New", monospace; font-weight: 600; }
  .report table { width: 100%; border-collapse: collapse; font-size: 8.5pt; font-family: Arial, sans-serif; }
  .report th, .report td { border: 1px solid #ddd; padding: 1.2mm 1.6mm; text-align: left; }
  .report th { background: #f2f2f2; font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.04em; }
  .report td.num, .report th.num { text-align: right; font-family: "Courier New", monospace; }
  .report table { page-break-inside: auto; }
  .report tr { page-break-inside: avoid; }
  .rep-foot { margin-top: 8mm; font-family: Arial, sans-serif; font-size: 7.5pt; color: #666; border-top: 1px solid #ccc; padding-top: 2mm; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .app-grid { grid-template-columns: 1fr; }
  .col-inputs { position: static; }
  .decisions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav a.opt { display: none; }
  .decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .site-head .wrap { height: 58px; gap: 10px; }
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 8px; font-size: 0.83rem; }
  .site-nav a.opt { display: none; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav a.mreveal { display: inline-block; }
  .nav-cta { padding: 8px 13px !important; font-size: 0.84rem; }
  .hero { padding-top: 30px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .runway-card { padding: 18px 16px; }
  .panel-head, .panel-body, .tiers { padding-left: 14px; padding-right: 14px; }
  .decisions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .decision { padding: 12px; }
  .decision .v { font-size: 1rem; }
  .chart-wrap { height: 168px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tier-totals { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  table { font-size: 0.8rem; }
  /* the tier table becomes a card per tier so nothing is cut off */
  .tiers .table-wrap { overflow: visible; }
  .tiers table, .tiers thead, .tiers tbody { display: block; }
  .tiers thead { display: none; }
  .tiers tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--line);
  }
  .tiers td { display: flex; align-items: center; gap: 6px; border: 0; padding: 0; }
  .tiers td::before {
    content: attr(data-label);
    flex: none;
    width: 56px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
  }
  .tiers td.t-name { grid-column: 1 / -1; padding-right: 34px; }
  .tiers td.t-name::before { width: auto; }
  .tiers td input { max-width: none; width: 100%; padding: 6px 8px; font-size: 0.8rem; }
  .tiers td.num { justify-content: flex-start; font-size: 0.82rem; }
  .tiers td.share { min-width: 0; }
  .tiers td.t-remove { position: absolute; top: 8px; right: 0; }
  .tiers td.t-remove::before { content: ""; width: 0; }
  .tiers table td.t-price input, .tiers table td.t-cust input, .tiers table td.t-churn input { max-width: none; }
  .hero-card { padding: 18px; }
}

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