:root {
  --bg: #f7f5f1;
  --ink: #1a1a1a;
  --muted: #5c5a55;
  --line: #e4e0d8;
  --card: #ffffff;
  --accent: #1f3a2f;
  --accent-soft: #e8efe9;
  --max: 720px;
  --wide: 960px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; letter-spacing: 0.02em; }
.mark {
  width: 0.85rem; height: 0.85rem;
  background: var(--ink);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

main { padding-bottom: 4rem; }

.hero {
  max-width: var(--max);
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.rate {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.section.muted {
  background: #efece6;
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2));
}
.section.muted > * { max-width: var(--max); }
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}
.cards h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.cards p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* —— Cost comparison —— */
.compare { padding-top: 3rem; padding-bottom: 3rem; }
.compare-lede {
  max-width: var(--max);
  color: var(--muted);
  margin: -0.25rem 0 1.75rem;
  font-size: 1.05rem;
}

.savings-banner {
  background: var(--accent);
  color: #f4f7f4;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}
.savings-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.savings-figure {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.35;
  font-weight: 500;
}
.savings-figure strong { font-weight: 600; color: #fff; }
.savings-sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.45;
}
.savings-sub strong { font-weight: 600; color: #fff; }

.tco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.tco-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tco-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.tco-size {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tco-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tco-label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tco-amount {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tco-amount.accent { color: var(--accent); }
.tco-detail {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.tco-note {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.tco-note.win {
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-soft);
  margin: 0 -1.35rem -1.35rem;
  padding: 0.85rem 1.35rem;
  border-top: none;
  border-radius: 0 0 11px 11px;
}

.compare-subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #faf8f4;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:last-child { color: var(--muted); }

.process-note {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.75rem;
}
.process-note h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}
.process-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.compare-fees h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.compare-fees ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.compare-fees li { margin-bottom: 0.4rem; }
.compare-fees li strong { color: var(--ink); }
.compare-story {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: var(--max);
}

.disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: var(--max);
}

.contact .note { color: var(--muted); font-size: 0.9rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.sep { margin: 0 0.35rem; opacity: 0.5; }
.small { font-size: 0.85rem; }


/* —— Charts (compare) —— */
.chart-cite {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 52rem;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.chart-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.15rem 0.85rem;
}
.chart-card .compare-subhead { margin-bottom: 0.2rem; }
.chart-sub {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.chart-svg { width: 100%; height: auto; display: block; }
.chart-base { stroke: var(--line); stroke-width: 1; }
.chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bar-saas { fill: #8a9a90; }
.bar-saas-hi { fill: #5c6f64; }
.bar-val {
  fill: var(--ink);
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 600;
}
.bar-lab {
  fill: var(--ink);
  font-size: 10px;
  font-family: var(--sans);
}
.bar-lab-sub {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--sans);
}
.line-saas { stroke: #5c6f64; stroke-width: 2.5; }
.line-sp { stroke: var(--accent); stroke-width: 2.5; }
.dot-saas { fill: #5c6f64; }
.dot-sp { fill: var(--accent); }
.line-anno {
  font-size: 10px;
  font-family: var(--sans);
  font-weight: 600;
}
.line-anno.saas { fill: #5c6f64; }
.line-anno.sp { fill: var(--accent); }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  align-items: center;
}
.leg {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
}
.leg-saas { background: #5c6f64; }
.leg-sp { background: var(--accent); }

.payback-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}
.payback-headline {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  font-weight: 500;
  color: var(--accent);
}
.payback-bars { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.85rem; }
.payback-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) 1fr auto;
  gap: 0.65rem;
  align-items: center;
}
.payback-lab { font-size: 0.82rem; color: var(--muted); }
.payback-track {
  height: 0.7rem;
  background: #efece6;
  border-radius: 999px;
  overflow: hidden;
}
.payback-fill { height: 100%; border-radius: 999px; }
.payback-fill.saas { background: #5c6f64; }
.payback-fill.sp { background: var(--accent); }
.payback-num {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.payback-num.accent { color: var(--accent); }
.payback-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .payback-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 560px) {
  nav { display: none; }
  .hero { margin-top: 1.5rem; }
  .tco-cols { grid-template-columns: 1fr; }
}
