/* Public services site. Loaded after brand.css, never instead of it.
 *
 * Every colour here is a brand token. If a value looks like it needs a new colour, it needs a ramp
 * step that already exists (--teal-200, --navy-300 and friends), not a hex literal.
 *
 * Layout budget: the brand container is 1200px with 32px padding, dropping to 20px under 640px.
 * That is inherited from .container and never restated.
 */

/* The inline-flex trap, applied once for the whole subtree. .btn is inline-flex, which beats the
 * browser's own [hidden] rule, and several components below set an explicit display too. Scoped to
 * this page's body rather than global so it cannot surprise another tool. */
.sv-body [hidden] { display: none !important; }

.sv-body {
  background: var(--bg-page);
  /* Clears the fixed phone conversation bar. Removed above 720px where that bar is gone. */
  padding-bottom: 84px;
}

/* Sitewide guarantee for the 390px requirement. A child that overflows scrolls inside its own
 * container (see .sv-switch-track), the page itself never does. */
.sv-body, .sv-body main { overflow-x: hidden; }

.sv-body :focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Pinned so an <a class="btn"> and a <button class="btn"> cannot render at different heights when
 * they sit side by side, which is the second known trap in this kit. */
.sv-action, .sv-ctabar .btn {
  height: 40px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- top bar */

.sv-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}
.sv-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sv-brand { display: inline-flex; align-items: center; }
/* Scaled by height only, never stretched, and the surrounding padding keeps at least the house
 * icon's own height of clear space on every side. */
/* align-self is insurance, not decoration. Both parents are row flex containers today so this is a
   no-op, but a logo in a COLUMN flex container gets stretched to the container width by the default
   align-items: stretch, which the brand kit forbids and which already shipped twice in this build
   before being caught. Pinning it here means a later layout change cannot reintroduce it. */
.sv-logo { height: 34px; width: auto; display: block; align-self: center; }
.sv-topbar-actions { display: flex; gap: 10px; align-items: center; }
.sv-topbar-actions svg {
  width: 16px; height: 16px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  margin-right: 7px;
}

/* ---------------------------------------------------------------- service switcher */

.sv-switch {
  position: sticky;
  top: 59px;
  z-index: 29;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
}
.sv-switch-track {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sv-switch-track::-webkit-scrollbar { display: none; }
.sv-switch-pill {
  flex: 0 0 auto;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--bg-page);
  color: var(--fg-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-switch-pill:hover { border-color: var(--mt-teal); color: var(--teal-700); }
/* Current service carries aria-current in the markup as well as this fill, so the state is never
 * signalled by colour alone. */
.sv-switch-pill.is-current {
  background: var(--mt-teal);
  border-color: var(--mt-teal);
  color: var(--fg-inverse);
}

/* ---------------------------------------------------------------- heroes */

.sv-hero, .sv-detail-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
  padding: 44px 0 36px;
}
.sv-eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 10px;
}
.sv-hero-title, .sv-detail-title {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin: 0 0 14px;
  text-wrap: balance;
}
.sv-hero-sub, .sv-detail-sub {
  font-size: 17px;
  color: var(--fg-secondary);
  max-width: 62ch;
  margin: 0 0 20px;
}
.sv-detail-count {
  font-size: 15px;
  color: var(--fg-secondary);
  margin: 0 0 20px;
}
.sv-detail-count strong { color: var(--fg-primary); font-weight: 700; }

.sv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-brand);
  text-decoration: none;
  margin-bottom: 16px;
}
.sv-back:hover { text-decoration: underline; }
.sv-back svg {
  width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- trust pills */

.sv-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sv-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-800);
  background: var(--teal-100);
  border: 1px solid var(--teal-200);
  border-radius: var(--pill);
  padding: 7px 14px;
}
.sv-trust-pill svg {
  width: 14px; height: 14px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- search */

.sv-search { padding: 32px 0 8px; }
.sv-search-label {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 8px;
}
.sv-search-field { position: relative; max-width: 520px; }
.sv-search-icon {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--fg-tertiary); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.sv-search-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 42px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--fg-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--pill);
  transition: border-color 0.16s var(--ease);
}
.sv-search-input::placeholder { color: var(--fg-tertiary); }
.sv-search-input:hover { border-color: var(--mt-teal); }
.sv-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  border-radius: var(--pill);
  color: var(--fg-tertiary);
}
.sv-search-clear:hover { color: var(--fg-primary); background: var(--bg-muted); }
.sv-search-clear svg {
  width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.sv-search-status {
  font-size: 13px;
  color: var(--fg-secondary);
  margin: 10px 0 0;
  min-height: 1.2em;
}
.sv-search-results { display: grid; gap: 10px; margin-top: 14px; }
.sv-result {
  display: block;
  padding: 13px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--mt-teal);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-result:hover { transform: translateY(-1px); border-left-color: var(--ocean-500); }
.sv-result-service {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg-primary);
}
.sv-result-task { display: block; font-size: 13.5px; color: var(--fg-secondary); margin-top: 3px; }
.sv-result-task mark { background: var(--teal-200); color: var(--fg-primary); border-radius: 3px; padding: 0 2px; }
.sv-result-where { display: block; font-size: 11.5px; color: var(--fg-tertiary); margin-top: 4px; }

/* ---------------------------------------------------------------- service cards */

.sv-picker { padding: 30px 0 8px; }
.sv-section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.sv-block-intro {
  font-size: 15px;
  color: var(--fg-secondary);
  max-width: 66ch;
  margin: 0 0 18px;
}
.sv-cards {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.sv-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--mt-teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* Hourly reads differently because it IS different. Ocean rather than teal, and the card says so
 * in words too, since the top border alone would be a colour-only signal. */
.sv-card.is-hourly { border-top-color: var(--ocean-500); }
.sv-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sv-card-name {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg-primary);
}
.sv-card-count { text-align: right; flex: 0 0 auto; }
.sv-card-count-num {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}
.sv-card.is-hourly .sv-card-count-num { font-size: 20px; color: var(--ocean-500); }
.sv-card-count-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-tertiary);
  margin-top: 3px;
}
.sv-card-summary { font-size: 14.5px; color: var(--fg-secondary); flex: 1 1 auto; }
.sv-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.sv-card-addons { font-size: 12.5px; color: var(--fg-tertiary); }
.sv-card-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-brand);
}
.sv-card-go svg {
  width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.16s var(--ease);
}
.sv-card:hover .sv-card-go svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- legend and filter */

.sv-block { padding: 34px 0 8px; }
.sv-legend {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.sv-legend-heading { font-size: 15px; font-weight: 700; color: var(--fg-primary); margin: 0 0 6px; }
.sv-legend-body { font-size: 14px; color: var(--fg-secondary); margin: 0 0 14px; max-width: 66ch; }
.sv-legend-keys {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.sv-legend-keys li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-secondary);
}

/* Both variants carry a word, never a bare colour, per the brand kit rule. */
.sv-chip {
  flex: 0 0 auto;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.sv-chip.is-new { background: var(--ocean-100); color: var(--ocean-700); border: 1px solid var(--ocean-200); }
.sv-chip.is-carried { background: var(--navy-100); color: var(--fg-tertiary); border: 1px solid var(--border-subtle); }

.sv-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-filter-btn {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--border-default);
  background: var(--bg-page);
  color: var(--fg-secondary);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-filter-btn:hover { border-color: var(--mt-teal); color: var(--teal-700); }
.sv-filter-btn.is-active {
  background: var(--mt-navy);
  border-color: var(--mt-navy);
  color: var(--fg-inverse);
}
.sv-filter-note { font-size: 13px; color: var(--fg-secondary); margin: 12px 0 0; min-height: 1.2em; }

/* ---------------------------------------------------------------- task groups */

.sv-groups {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}
.sv-group {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.sv-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--fg-primary);
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-200);
}
.sv-group-count {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--teal-800); background: var(--teal-100);
  border-radius: var(--pill); padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.sv-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sv-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-primary);
}
/* Tint reinforces the chip, it never replaces it. Every row still says its tier in words. */
.sv-task.is-new { border-left-color: var(--ocean-300); background: var(--ocean-100); }
.sv-task.is-carried { border-left-color: var(--border-subtle); }
.sv-task-tick {
  flex: 0 0 auto;
  width: 15px; height: 15px; margin-top: 3px;
  fill: none; stroke: var(--mt-teal); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.sv-task-text { flex: 1 1 auto; }
.sv-task .sv-chip { margin-top: 1px; }

/* Driven by public/js/services.js. Groups left with nothing visible are hidden wholesale so the
 * filtered view never shows an empty room card. */
.sv-groups.is-filtered .sv-task.is-carried { display: none; }
.sv-group.is-empty { display: none; }

/* ---------------------------------------------------------------- included spotlight */

/* Teal and headed "Included", against the add-on panel's gold and dashed edge headed "Add-ons you
   can request". Two different things, and they are told apart by their words as well as by colour. */
.sv-included {
  padding: 24px 26px;
  background: var(--teal-100);
  border: 1px solid var(--teal-300);
  border-left: 5px solid var(--mt-teal);
  border-radius: var(--radius-lg);
}
.sv-included-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700;
  color: var(--teal-800);
  margin: 0 0 8px;
}
.sv-included-title svg {
  flex: 0 0 auto;
  width: 20px; height: 20px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sv-included-lead {
  font-size: 14.5px; color: var(--fg-secondary);
  margin: 0 0 16px; max-width: 66ch;
}
.sv-included-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sv-included-item {
  position: relative;
  padding: 11px 14px 11px 34px;
  background: var(--bg-page);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-sm);
}
/* A drawn tick. Reads as "you have this" rather than as another scope bullet. */
.sv-included-item::before {
  content: '';
  position: absolute; left: 13px; top: 15px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(-45deg);
}
.sv-included-name {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px; font-weight: 700; color: var(--fg-primary);
}
/* Names the exact task that covers it, so the claim is checkable against the list above rather
   than something the page merely asserts. */
.sv-included-covered {
  display: block;
  font-size: 12px; color: var(--fg-tertiary);
  margin-top: 2px;
}
.sv-included-covered q { font-style: italic; }

.sv-card-addons.is-included { color: var(--teal-700); font-weight: 600; }

/* ---------------------------------------------------------------- add-ons */

.sv-addons {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
/* Visually separate from baseline scope on purpose. Dashed edge and the warm accent say "chosen
 * extra" at a glance, and the section heading says it in words directly above. */
.sv-addon {
  background: var(--bg-page);
  border: 1px dashed var(--border-default);
  border-top: 4px solid var(--mt-yellow);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.sv-addon-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.sv-addon-name { font-size: 15px; font-weight: 700; color: var(--fg-primary); margin: 0; }
.sv-addon-hours {
  flex: 0 0 auto;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--fg-tertiary); white-space: nowrap;
}
.sv-addon-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sv-addon-tasks li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; line-height: 1.5; color: var(--fg-primary);
}
.sv-addon-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.sv-note-label {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-tertiary);
  margin-bottom: 2px;
}
/* Prep and limits share one label treatment. An earlier draft tinted limits amber, which reached
 * for a token that does not exist in this kit (the gold ramp lives in src/email-brand.js as JS, not
 * as a CSS variable). Both labels read as terms either way, and the heading above each says which
 * is which in words. */

/* ---------------------------------------------------------------- hourly */

.sv-how { margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; max-width: 68ch; }
.sv-how-step { font-size: 15px; line-height: 1.6; color: var(--fg-primary); padding-left: 4px; }
.sv-how-step::marker { color: var(--mt-teal); font-weight: 700; }

.sv-scenarios, .sv-tiers {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.sv-scenario, .sv-tier {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sv-scenario-hours, .sv-tier-hours {
  flex: 0 0 auto;
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px; font-weight: 800;
  color: var(--ocean-500);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
}
.sv-scenario-hours { font-size: 14px; }
.sv-tier-hours span { font-size: 11px; font-weight: 600; color: var(--fg-tertiary); }
.sv-scenario-body, .sv-tier-body { display: block; }
.sv-scenario-name, .sv-tier-size {
  display: block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px; font-weight: 700; color: var(--fg-primary);
}
.sv-scenario-note, .sv-tier-desc {
  display: block; font-size: 13.5px; color: var(--fg-secondary); margin-top: 3px;
}

/* ---------------------------------------------------------------- compare entry point */

.sv-comparelink-wrap { padding: 22px 0 0; }
.sv-comparelink {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--ocean-500);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-comparelink:hover { transform: translateY(-2px); border-color: var(--mt-teal); border-left-color: var(--ocean-500); }
.sv-comparelink-body { display: flex; flex-direction: column; gap: 3px; }
.sv-comparelink-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px; font-weight: 700; color: var(--fg-primary);
}
.sv-comparelink-sub { font-size: 13.5px; color: var(--fg-secondary); }
.sv-comparelink svg {
  flex: 0 0 auto;
  width: 20px; height: 20px; fill: none;
  stroke: var(--fg-brand); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.16s var(--ease);
}
.sv-comparelink:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- comparison */

.sv-pairs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sv-pair-btn {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--border-default);
  background: var(--bg-page);
  color: var(--fg-secondary);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sv-pair-btn:hover { border-color: var(--mt-teal); color: var(--teal-700); }
/* aria-current carries the state as well as the fill, so selection is never colour alone. */
.sv-pair-btn.is-active { background: var(--mt-navy); border-color: var(--mt-navy); color: var(--fg-inverse); }

.sv-compare-summary {
  margin-top: 22px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-lg);
}
.sv-compare-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sv-compare-side { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; }
.sv-compare-label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--fg-tertiary);
}
.sv-compare-name {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.25;
  color: var(--fg-primary); text-decoration: none;
}
.sv-compare-name:hover { color: var(--fg-brand); text-decoration: underline; }
.sv-compare-num { font-size: 12.5px; color: var(--fg-secondary); font-variant-numeric: tabular-nums; }
.sv-compare-arrow { flex: 0 0 auto; }
.sv-compare-arrow svg {
  width: 22px; height: 22px; fill: none;
  stroke: var(--mt-teal); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sv-compare-delta {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--teal-200);
  font-size: 15px; color: var(--fg-secondary);
}
.sv-compare-delta strong { color: var(--teal-800); font-weight: 800; }

.sv-compare-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 0; padding: 14px 16px;
  background: var(--ocean-100);
  border: 1px solid var(--ocean-200);
  border-radius: var(--radius-md);
  font-size: 13.5px; line-height: 1.55;
  color: var(--fg-secondary);
}
.sv-compare-note svg {
  flex: 0 0 auto; margin-top: 2px;
  width: 16px; height: 16px; fill: none;
  stroke: var(--ocean-700); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.sv-cgroup-counts {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 12px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--fg-tertiary);
  font-variant-numeric: tabular-nums;
}
.sv-cgroup-counts svg {
  width: 14px; height: 14px; fill: none;
  stroke: var(--mt-teal); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sv-cgroup-counts span:last-of-type { color: var(--teal-800); }
.sv-cgroup-tasks-word {
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-tertiary) !important;
}
.sv-cgroup-none {
  margin: 0; padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--fg-secondary);
}

.sv-closing-actions-primary { margin-top: 10px; }

@media (max-width: 480px) {
  /* Stacks rather than shrinking two service names into unreadable columns. */
  .sv-compare-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .sv-compare-arrow { align-self: center; transform: rotate(90deg); }
}

/* ---------------------------------------------------------------- closing */

.sv-closing { padding: 38px 0 46px; }
.sv-closing-card {
  background: var(--bg-soft);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  text-align: center;
}
.sv-closing-title { font-size: 21px; font-weight: 700; color: var(--fg-primary); margin: 0 0 8px; }
.sv-closing-body { font-size: 15px; color: var(--fg-secondary); margin: 0 auto 20px; max-width: 52ch; }
.sv-closing-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sv-closing-guarantee {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-secondary);
  margin: 20px 0 0;
}
.sv-closing-guarantee svg {
  flex: 0 0 auto;
  width: 15px; height: 15px; fill: none;
  stroke: var(--mt-teal); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- footer */

.sv-footer { border-top: 1px solid var(--border-subtle); padding: 26px 0; background: var(--bg-soft); }
.sv-footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sv-footer-logo { height: 26px; width: auto; align-self: center; }
.sv-footer-line { font-size: 13px; color: var(--fg-secondary); margin: 0; }
.sv-footer-line a { color: var(--fg-brand); font-weight: 600; }

/* ---------------------------------------------------------------- phone conversion bar */

.sv-ctabar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.sv-ctabar .btn { width: 100%; }
.sv-ctabar svg {
  width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  margin-right: 6px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .sv-topbar-actions { display: none; }
  .sv-topbar-inner { padding: 10px 20px; }
  .sv-switch-track { padding: 9px 20px; }
  .sv-hero, .sv-detail-hero { padding: 30px 0 26px; }
  .sv-legend { padding: 18px; }
  .sv-closing-card { padding: 24px 20px; }
  .sv-closing-actions .btn { width: 100%; }
  .sv-group { padding: 18px 16px; }
}

/* At phone width the tier chip was taking roughly 85px of a 230px text column, pushing most task
 * lines to three wraps across a 68-item list. Tightened rather than dropped, because the word on
 * the chip is what keeps the tier signal from being colour alone. */
@media (max-width: 480px) {
  .sv-task { gap: 8px; padding: 7px 4px 7px 7px; }
  .sv-chip { font-size: 9.5px; padding: 2px 7px; letter-spacing: 0.02em; }
  .sv-task-text { font-size: 14px; }
}

@media (min-width: 721px) {
  /* Above phone width the header pair is on screen at all times, so the fixed bar would be a
     second copy of the same two buttons. */
  .sv-ctabar { display: none; }
  .sv-body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-body * { transition: none !important; animation: none !important; }
  .sv-card:hover { transform: none; }
  .sv-result:hover { transform: none; }
}

/* ---------------------------------------------------------------- print
 *
 * Ctrl+P on the public page. The designed one-pager is the rep tool's job; this only has to come
 * out legible and free of interface furniture. No filled backgrounds, since a client printing this
 * at home is doing it on an inkjet. */

@media print {
  .sv-topbar, .sv-switch, .sv-ctabar, .sv-search, .sv-filter,
  .sv-closing-actions, .sv-back, .sv-card-go { display: none !important; }

  .sv-body { padding-bottom: 0; background: #fff; color: #000; }
  .sv-hero, .sv-detail-hero, .sv-legend, .sv-closing-card, .sv-footer { background: #fff; }

  .sv-group, .sv-addon, .sv-scenario, .sv-tier {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }
  .sv-task { break-inside: avoid; }
  .sv-task.is-new { background: none; }
  .sv-groups, .sv-addons { grid-template-columns: 1fr 1fr; }

  a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 10px; }
}
