/* ==========================================================================
   Troglodyte Security
   Design tokens are derived from the brand palette and the logo lockup:
   a rust badge, an ochre arc and a stone arc that resolve into two
   near-parallel rules. That arc-and-rule motif is the page's structural
   language: it divides sections and anchors the hero.
   ========================================================================== */

/* --- brand constants (identical in both themes) --------------------------- */
:root {
  --rust:  #923316;
  --ochre: #C8961E;
  --stone: #4E5156;
  --ink:   #22242A;
  --paper: #F2EDE4;

  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular,
          "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style",
           Cambria, Georgia, "Times New Roman", serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --page: 76rem;
  --bar-h: 4rem;

  --step--1: 0.8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --step-3:  clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4:  clamp(2.5rem, 1.5rem + 4.4vw, 4.25rem);
}

/* --- dark: the default ---------------------------------------------------- */
[data-theme="dark"] {
  --bg:        #22242A;
  --bg-sunk:   #1B1D22;
  --surface:   #292C33;
  --text:      #E7E2D8;
  --text-dim:  #A0A3AA;
  --rule:      #34373E;
  --rule-firm: #4E5156;
  --accent:    #C8961E;   /* ochre carries on dark */
  --accent-2:  #C0492180; /* rust, softened, decorative only */
  --badge-glow: rgba(146, 51, 22, 0.30);
  --shade:     rgba(242, 237, 228, 0.05);
  --bar-bg:    rgba(34, 36, 42, 0.88);
}

/* --- light ---------------------------------------------------------------- */
[data-theme="light"] {
  --bg:        #F2EDE4;
  --bg-sunk:   #E7E0D2;
  --surface:   #FAF7F1;
  --text:      #22242A;
  --text-dim:  #55585E;
  --rule:      #D6CEBE;
  --rule-firm: #4E5156;
  --accent:    #923316;   /* rust carries on paper */
  --accent-2:  #C8961E;
  --badge-glow: rgba(146, 51, 22, 0.14);
  --shade:     rgba(34, 36, 42, 0.045);
  --bar-bg:    rgba(242, 237, 228, 0.90);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, .mono, nav, button, .btn, .ordinal, .ledger__name {
  font-family: var(--mono);
  font-weight: 600;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: 0.75rem 1rem; font-family: var(--mono); font-size: var(--step--1);
}
.skip:focus { left: 0; }

/* ==========================================================================
   The two-rule divider, lifted straight from the logo lockup
   ========================================================================== */
.rules { display: block; }
.rules i { display: block; height: 2px; background: var(--accent); width: 200px; max-width: 45vw; }
.rules i + i { margin-top: 5px; background: var(--rule-firm); width: 215px; max-width: 48vw; }

/* ==========================================================================
   Header
   ========================================================================== */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.bar__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* -- logo, top left -- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 2.4rem; width: auto; flex: none; }

/* -- directory, top centre -- */
.directory { display: flex; gap: clamp(0.65rem, 1.6vw, 1.6rem); }
.directory a {
  position: relative;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.directory a:hover { color: var(--text); }
.directory a[aria-current="true"],
.directory a[aria-current="page"] { color: var(--text); }
.directory a[aria-current="true"]::after,
.directory a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem;
  height: 2px; background: var(--accent);
}

/* -- actions, top right -- */
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }

.theme {
  width: 2.15rem; height: 2.15rem;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--text-dim); cursor: pointer; padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme:hover { color: var(--text); border-color: var(--rule-firm); }
.theme svg { width: 16px; height: 16px; }
[data-theme="dark"] .theme .i-sun,   [data-theme="light"] .theme .i-moon { display: none; }

.login {
  font-family: var(--mono); font-weight: 600; font-size: var(--step--1);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule-firm);
  border-radius: 2px;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.login:hover { background: var(--shade); border-color: var(--accent); }

/* -- scroll depth, drawn as a third rule under the bar -- */
.progress { height: 2px; background: transparent; overflow: hidden; }
.progress i {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.band { padding-block: clamp(4.5rem, 9vw, 8rem); }
.band--sunk { background: var(--bg-sunk); }

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.head .rules { margin-bottom: 1.5rem; }
.head h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.head p { color: var(--text-dim); font-size: var(--step-1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 1rem + 2.7vw, 2.9rem);
  letter-spacing: -0.045em;
  margin-bottom: 1.75rem;
}
.hero h1 .line { display: block; }
.hero__lede {
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}
.hero .rules { margin-bottom: 2rem; }

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  font-size: var(--step--1); text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: 2px; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: var(--text); }
.btn--line { border-color: var(--rule-firm); color: var(--text); }
.btn--line:hover { background: var(--shade); border-color: var(--accent); }

/* -- hero artwork: the supplied lockup, which carries its own arcs -- */
.hero__art { justify-self: center; width: min(100%, 34rem); }
.hero__logo { width: 100%; height: auto; }

/* ==========================================================================
   Services — a ledger of rows, not a grid of cards
   ========================================================================== */
.ledger { border-top: 1px solid var(--rule); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.ledger__name { font-size: var(--step-1); letter-spacing: -0.02em; }
.ledger__body { color: var(--text-dim); margin: 0; }

/* ==========================================================================
   Approach — genuinely a sequence, so it is genuinely numbered
   ========================================================================== */
.stages { display: grid; gap: 0; counter-reset: stage; }
.stage {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.stage:last-child { border-bottom: 1px solid var(--rule); }
.ordinal { color: var(--accent); font-size: var(--step--1); padding-top: 0.35em; font-variant-numeric: tabular-nums; }
.stage h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
.stage p { color: var(--text-dim); margin: 0; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.about__grid p { font-size: var(--step-1); }
.creed {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  align-self: start;
}
.creed p { color: var(--text-dim); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.reach { display: grid; gap: 1.75rem; }
.reach__item { display: grid; gap: 0.4rem; }
.reach__label { font-family: var(--mono); font-size: var(--step--1); color: var(--text-dim); }
.reach__value {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  justify-self: start;
  padding-bottom: 0.1rem;
  transition: color 0.15s ease;
}
.reach__value:hover { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { border-top: 1px solid var(--rule); padding-block: 2.5rem; }
.foot__inner {
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 1.25rem 2rem;
  font-family: var(--mono); font-size: var(--step--1); color: var(--text-dim);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot__row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: center; justify-content: space-between;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot__legal { font-family: var(--serif); max-width: none; }
.foot__portal { font-family: var(--serif); color: var(--text-dim); max-width: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { width: min(100%, 26rem); }
  .hero__lede { max-width: var(--measure); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 54rem) {
  :root { --bar-h: 3.5rem; }
  .bar__inner {
    grid-template-columns: 1fr auto;
    height: auto;
    padding-top: 0.6rem;
    row-gap: 0;
  }
  .brand, .actions { padding-bottom: 0.6rem; }
  .directory {
    grid-column: 1 / -1; grid-row: 2;
    padding: 0 var(--gutter) 0.6rem;
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
    padding-top: 0.6rem;
  }
  .directory::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 7rem; }
  .ledger__row, .stage { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 3rem 1fr; }
  .stage p, .stage .stage__body { grid-column: 2; }
}

@media (max-width: 30rem) {
  .brand__logo { height: 1.9rem; }
  .login { padding: 0.45rem 0.7rem; }
}

/* ==========================================================================
   Motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .bar, .cta { display: none; }
  body { background: #fff; color: #000; }
}


/* ==========================================================================
   Multi-page additions
   ========================================================================== */

/* -- page header (every page except the homepage) -- */
.page-head { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-head .rules { margin-bottom: 1.5rem; }
.page-head h1 { font-size: var(--step-4); letter-spacing: -0.04em; margin-bottom: 1rem; max-width: 22ch; }
.page-head .lede { font-size: var(--step-2); line-height: 1.45; color: var(--text-dim); max-width: 40ch; }
.page-head .lede a { color: var(--text); }

/* -- body copy blocks -- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
.prose a:hover { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--shade); padding: 0.05em 0.35em; border-radius: 2px; }
.prose dl { margin: 0 0 1.1em; }
.prose dt { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); margin-top: 1rem; }
.prose dd { margin: 0.25rem 0 0; color: var(--text-dim); }

.sub { color: var(--text-dim); }
.mono { font-family: var(--mono); }
.small { font-size: var(--step--1); }

/* -- a boxed note, used for footnotes, draft flags and caveats -- */
.note {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: var(--measure);
  border-radius: 2px;
}
.note p { max-width: none; }
.note--wide { max-width: none; }
.note__label { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); color: var(--accent); display: block; margin-bottom: 0.35rem; }

/* -- two-column split, used for scope in/out and similar -- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split > * { min-width: 0; }
.split h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.split .rules { margin-bottom: 1.25rem; }

/* -- plain list with rules between rows -- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.list li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.list--dim li { color: var(--text-dim); }
.list__name { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); display: block; margin-bottom: 0.2rem; color: var(--text); }

/* -- ledger rows, reused from the original services list, now generic -- */
.ledger__body ul { margin: 0.4em 0 0; padding-left: 1.2rem; }
.ledger__body li { margin-bottom: 0.25em; }
.ledger__body li::marker { color: var(--accent); }

/* -- numbered steps (how it works) -- */
.stage .stage__body { grid-column: 3; color: var(--text-dim); }
.stage .stage__body p { margin-bottom: 0.9em; }
.stage .stage__body p:last-child { margin-bottom: 0; }
.stage .stage__body ul { margin: 0.3em 0 0.9em; padding-left: 1.2rem; }
.stage .stage__body li::marker { color: var(--accent); }

/* -- tier summary cards -- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.tier {
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface);
  padding: 1.5rem;
  display: grid; gap: 0.5rem; align-content: start;
}
.tier__name { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); color: var(--accent); }
.tier__band { font-family: var(--mono); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.02em; }
.tier__price { font-size: var(--step-1); }
.tier__price strong { font-family: var(--mono); font-size: var(--step-2); letter-spacing: -0.02em; }
.tier__meta { color: var(--text-dim); font-size: var(--step--1); margin: 0; }
.tier__meta li { margin: 0; }
.tier ul { padding-left: 1.1rem; margin: 0.25rem 0 0; }
.tier li::marker { color: var(--accent); }

/* -- tables -- */
.tbl-wrap { overflow-x: auto; margin: 1.25rem 0 0.5rem; -webkit-overflow-scrolling: touch; }
table.tbl {
  border-collapse: collapse; width: 100%;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.tbl caption {
  text-align: left; font-family: var(--serif); font-weight: 400;
  padding: 0 0 0.6rem; caption-side: top;
}
.tbl caption .sub { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step--1); margin-top: 0.2rem; }
.tbl th, .tbl td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl thead th { font-family: var(--mono); font-weight: 600; color: var(--text-dim); border-bottom: 1px solid var(--rule-firm); white-space: nowrap; }
.tbl tbody th { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--shade); }
.tbl .money::before { content: "$"; color: var(--text-dim); }
.tbl-note { color: var(--text-dim); font-size: var(--step--1); margin: 0.5rem 0 0; max-width: none; }

/* -- pricing section spacing -- */
.price-block { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.price-block > h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.price-block > p { color: var(--text-dim); }
.callout {
  display: grid; gap: 0.25rem;
  border: 1px solid var(--accent); border-radius: 2px;
  padding: 1.1rem 1.4rem; margin: 1.5rem 0;
  max-width: var(--measure);
}
.callout strong { font-family: var(--mono); font-size: var(--step-1); letter-spacing: -0.02em; }
.callout p { max-width: none; color: var(--text-dim); }

/* -- forms -- */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.25rem; min-width: 0; }
.form legend { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); color: var(--text-dim); padding: 0; margin-bottom: 0.5rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); }
.field .req { color: var(--accent); }
.field .hint { color: var(--text-dim); font-size: var(--step--1); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0);
  color: var(--text); background: var(--surface);
  border: 1px solid var(--rule-firm); border-radius: 2px;
  padding: 0.6rem 0.75rem; width: 100%; min-width: 0;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { padding-right: 2rem; }  /* native arrow: a data: URI background would be blocked by img-src 'self' */
.field--row { display: flex; gap: 0.6rem; align-items: center; }
.field--row input { width: auto; accent-color: var(--accent); }
.field--row label { font-family: var(--serif); font-weight: 400; font-size: var(--step-0); }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.form__actions .btn { font-family: var(--mono); cursor: pointer; }
.form button.btn { font: 600 var(--step--1) var(--mono); }
.form__note { color: var(--text-dim); font-size: var(--step--1); margin: 0; max-width: none; }
.field .error { color: var(--accent); font-size: var(--step--1); margin: 0; }
[data-theme="dark"] .field .error { color: #E0A83C; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* -- calculator -- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.calc .form { gap: 1rem; }
.calc .field input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--accent); }
.calc__num { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.75rem; align-items: center; }
.calc__seg { display: inline-flex; width: max-content; max-width: 100%; border: 1px solid var(--rule-firm); border-radius: 2px; overflow: hidden; }
.calc__seg label { font: 600 var(--step--1) var(--mono); padding: 0.55rem 1rem; cursor: pointer; position: relative; margin: 0; }
.calc__seg label + label { border-left: 1px solid var(--rule-firm); }
.calc__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calc__seg input:checked + span { color: var(--bg); }
.calc__seg label:has(input:checked) { background: var(--accent); color: var(--bg); }
.calc__seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__out { display: grid; gap: 1rem; align-content: start; }
.calc__band { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); color: var(--accent); }
.calc__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.calc__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.calc__lines .k { color: var(--text-dim); }
.calc__lines .v { font-family: var(--mono); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__lines li.total .k { color: var(--text); }
.calc__lines li.total .v { font-size: var(--step-1); color: var(--accent); }
.calc__foot { color: var(--text-dim); font-size: var(--step--1); margin: 0; max-width: none; }
.calc__quote { margin-top: 0.5rem; }
.calc__big { font-family: var(--mono); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }
.calc__big small { font-size: var(--step--1); font-weight: 400; color: var(--text-dim); font-family: var(--serif); letter-spacing: 0; }

/* -- inline cta strip -- */
.cta-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem; align-items: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: 2rem;
}
.cta-strip h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.cta-strip p { color: var(--text-dim); }

/* -- key facts row -- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.fact { border-top: 2px solid var(--accent); padding-top: 0.75rem; }
.fact .k { font-family: var(--mono); font-size: var(--step--1); color: var(--text-dim); display: block; margin-bottom: 0.2rem; }
.fact .v { font-family: var(--mono); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em; }

/* -- responsive additions -- */
@media (max-width: 62rem) {
  .split, .calc, .cta-strip { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .form__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .calc__num { grid-template-columns: 1fr; }
}
@media print {
  .calc, .form__actions { display: none; }
}
.more { margin-top: 1.75rem; max-width: none; }
.more a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
.more a:hover { color: var(--accent); }
.more .btn { text-decoration: none; }
