/* ═══════════════════════════════════════════════════════════════
   DEMO PAGE (/demo/)
   Loaded only on this page. Uses the theme's existing tokens from
   style.css — no new colours, no new fonts. Anything under ~18px
   that is gold uses --gold-text, which clears AA at 4.63:1.
   ═══════════════════════════════════════════════════════════════ */

.demo-page { background: var(--bg-white); }

/* ── Hero ───────────────────────────────────────────────────── */
/* No --nav-h term here, deliberately.
   .site-header is position:sticky, not fixed -- it occupies its own space in
   the flow, so <main> already begins below it. Adding var(--nav-h) on top of
   that reserved 76px a second time, which is what this rule used to do, is
   what put ~100px of dead space above "See it work". Measured on the live
   page: header bottom 108px, eyebrow top 209px.
   Verified sticky at every breakpoint -- there is no media query switching it
   to fixed -- so nothing slides under the header without this. */
.demo-hero {
  padding: clamp(0.5rem, 1vw, 0.875rem) var(--tile-pad-x) clamp(2rem, 4vw, 3.25rem);
  background: var(--bg-white);
}
.demo-hero__inner { max-width: var(--content-max); margin: 0 auto; }
.demo-hero__h {
  font-family: var(--font-display);
  font-weight: 700;
  /* 2rem floor, not 2.25rem: at 36px the bound pair "Business Down," is
     302px inside a 280px column on a 320px screen — it overflowed, and
     left no room to pair "Slowing Your", which is how "Your" ended up
     alone. 32px fits every pair at every width down to 320. Measured;
     re-measure before raising it. */
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: var(--track-display);
  color: var(--text-primary);
  margin: 0.5rem 0 0;
  max-width: 18ch;
  /* Distributes words across lines rather than filling each greedily, which is
     what leaves a short word alone at the end. Backs up the &nbsp; binding in
     page-demo.php; it does not replace it. */
  text-wrap: balance;
}
.demo-hero__h-sub {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-size: 0.78em;
  margin-top: 0.1em;
}
.demo-hero__tag {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 1.5rem 0 0;
}

/* ── The run ────────────────────────────────────────────────── */
.demo-run {
  padding: clamp(2.5rem, 5vw, 4rem) var(--tile-pad-x) var(--tile-pad-y);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}
.demo-run__inner { max-width: var(--content-max); margin: 0 auto; }
.demo-run__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  letter-spacing: var(--track-tile);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}
.demo-run__sub {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 2rem;
}

/* Subject chips */
.demo-run__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.demo-chip {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.demo-chip:hover { border-color: var(--gold); color: var(--text-primary); }
.demo-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.demo-chip.is-active {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

/* The stage */
.demo-stage {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(14, 27, 57, 0.08);
  overflow: hidden;
}
.demo-stage__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.demo-stage__dots { display: inline-flex; gap: 0.375rem; flex: none; }
.demo-stage__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.demo-stage__label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
}
.demo-stage__run {
  flex: none;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast), opacity var(--dur-fast);
}
.demo-stage__run:hover:not(:disabled) { background: var(--gold-light); }
.demo-stage__run:disabled { opacity: 0.55; cursor: default; }
.demo-stage__run:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Steps */
.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-base);
}
.demo-steps[aria-hidden="true"] { display: none; }
.demo-step {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-base);
}
.demo-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background var(--dur-base);
}
.demo-step.is-active { color: var(--text-primary); }
.demo-step.is-active::before {
  background: var(--gold);
  animation: demo-pulse 1.1s ease-in-out infinite;
}
.demo-step.is-done { color: var(--text-secondary); }
.demo-step.is-done::before { background: var(--gold); animation: none; }
@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%      { box-shadow: 0 0 0 5px transparent; }
}

/* Output */
.demo-output { padding: clamp(1.5rem, 3.5vw, 2.75rem); min-height: 16rem; }
.demo-output__idle {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  max-width: 46ch;
}
.demo-output__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.demo-output__title:empty { display: none; }
.demo-output__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 0 1.15rem;
  max-width: 68ch;
}
.demo-output__body p:last-child { margin-bottom: 0; }

/* Foot */
.demo-stage__foot {
  padding: 1.25rem clamp(1.5rem, 3.5vw, 2.75rem) 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}
.demo-compare { display: flex; gap: 2.5rem; margin-bottom: 1rem; }
/* An author display rule beats the UA's [hidden] { display:none }, so the
   hidden attribute must be re-armed explicitly. */
.demo-compare[hidden] { display: none; }
.demo-compare__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.demo-compare__item--muted .demo-compare__num { color: var(--text-muted); }
.demo-compare__label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.demo-notice {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 68ch;
}

/* What happens next */
.demo-after {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.demo-after li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}
.demo-after strong { display: block; color: var(--text-primary); font-weight: 700; }

/* ── Enquiry form ───────────────────────────────────────────── */
.enquiry {
  padding: var(--tile-pad-y) var(--tile-pad-x);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}
.enquiry__inner { max-width: 56rem; margin: 0 auto; }
.enquiry__lead { margin-bottom: 2.5rem; }
.enquiry__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  letter-spacing: var(--track-tile);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0.75rem 0;
}
.enquiry__sub {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0;
}

.enquiry__status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  border-left: 3px solid;
}
.enquiry__status--ok {
  background: hsl(150, 40%, 96%);
  border-color: hsl(150, 45%, 30%);
  color: hsl(150, 45%, 20%);
}
.enquiry__status--err {
  background: hsl(8, 60%, 97%);
  border-color: hsl(8, 62%, 40%);
  color: hsl(8, 62%, 28%);
}

/* Honeypot: off-canvas rather than display:none, so a bot parsing the
   DOM still sees a fillable field. */
.enquiry__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry__set { border: none; margin: 0 0 2rem; padding: 0; }
.enquiry__legend {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  padding: 0;
}
.enquiry__hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.enquiry__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
.enquiry__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.enquiry__opt:hover { border-color: var(--gold); }
.enquiry__opt input { margin-top: 0.15rem; accent-color: var(--gold); flex: none; }
.enquiry__opt:has(input:checked) {
  border-color: var(--gold);
  background: var(--bg-white);
  color: var(--text-primary);
}
.enquiry__opt:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }

.enquiry__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.enquiry__field { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.enquiry__field--wide { margin-bottom: 2rem; }
.enquiry__field label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.enquiry__req { color: var(--gold-text); }
.enquiry__field input,
.enquiry__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-white);
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.enquiry__field textarea { resize: vertical; min-height: 9rem; line-height: 1.7; }
/* Hint text, not content. Browser defaults vary from near-black to invisible;
   pinning it to the muted token keeps it clearly a prompt while staying
   legible (#8792ab on white is 3.12:1 — clears the 3:1 floor for hint text,
   and sits deliberately below body text so it never reads as something the
   visitor already typed). Measured, not eyeballed. */
.enquiry__field input::placeholder,
.enquiry__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1; /* Firefox dims placeholders by default; undo it. */
}
.enquiry__field input:hover,
.enquiry__field textarea:hover { border-color: var(--text-muted); }
.enquiry__field input:focus,
.enquiry__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.enquiry__submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}
.enquiry__small { font-size: 0.75rem; color: var(--text-secondary); margin: 0; }

@media (max-width: 900px) {
  .demo-after       { grid-template-columns: 1fr; }
  .demo-compare     { gap: 1.75rem; }
  .enquiry__options { grid-template-columns: 1fr; }
  .enquiry__grid    { grid-template-columns: 1fr; }
  .demo-steps       { gap: 0.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-step.is-active::before { animation: none; }
  .demo-tab.is-active,
  .demo-panel.is-active { animation: none; }
  .demo-tab:hover { transform: none; }
}

/* /start/ has no hero of its own; the form section owns the top of the page. */
.start-page .enquiry { padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)); }
.enquiry__demo-link { color: var(--gold-text); font-weight: 600; border-bottom: 1px solid var(--border-gold); }
.enquiry__demo-link:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   /demo/ TABBED SHOWCASE + short "Request a Demo" form — 2026-08-24
   Existing tokens only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tabs ───────────────────────────────────────────────────── */
.demo-tabs {
  padding: 0 var(--tile-pad-x) var(--tile-pad-y);
  background: var(--bg-white);
}
.demo-tabs__inner { max-width: var(--content-max); margin: 0 auto; }

.demo-tabs__nav {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}
.demo-tab {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  padding: 0.625rem 1.125rem; border-radius: var(--radius-pill);
  background: var(--bg-subtle); color: var(--text-secondary);
  border: 1px solid var(--border-light); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.demo-tab:hover { border-color: var(--gold); color: var(--text-primary); transform: translateY(-2px); }
.demo-tab:active { transform: translateY(0) scale(0.95); }
.demo-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.demo-tab.is-active {
  background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark);
  animation: demo-tab-pop 0.32s ease;
}
.demo-tab--other { border-style: dashed; }

@keyframes demo-tab-pop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.045); }
  100% { transform: scale(1); }
}

/* ── Panels ─────────────────────────────────────────────────── */
.demo-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.demo-panel[hidden] { display: none; }
.demo-panel.is-active { animation: demo-panel-in 0.42s ease-out; }

@keyframes demo-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-panel__media--other {
  max-width: 42rem;
  margin: 0 0 1.75rem;
}
/* The footage is 16:9. The frame was 16:10, and object-fit:cover then scaled
   every video up ~11% and cropped roughly 5% off each side to fill it. Matching
   the frame to the footage shows the whole picture instead. */
.demo-panel__media {
  order: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
}
.demo-panel__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Play button ──────────────────────────────────────────────────
   Added 2026-08-29: with preload="none" these panels showed a poster
   and a thin native control bar, which reads as a still photograph.
   Nobody presses a photograph. The native controls remain for
   scrubbing once it runs; this supplies the missing affordance. */
.demo-panel__media { position: relative; }

.demo-play {
  position: absolute;
  /* inset+margin:auto centres in both axes without a transform, so the
     hover scale below has the whole transform property to itself. */
  inset: 0;
  margin: auto;
  width: clamp(60px, 12%, 88px);
  height: clamp(60px, 12%, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(14, 27, 57, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  /* Above the native control bar, which the browser paints over the video. */
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out),
              opacity 180ms var(--ease-out), border-color 200ms var(--ease-out);
}
.demo-play svg {
  width: 42%;
  height: 42%;
  /* The optical centre of a triangle sits left of its bounding box. */
  margin-left: 6%;
}
.demo-play:hover {
  background: var(--gold, #a3721f);
  border-color: #fff;
  transform: scale(1.06);
}
.demo-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Out of the way while the video runs; back on pause so it can be
   restarted. Kept out of the tab order when hidden — a focusable
   control nobody can see is a keyboard trap. */
.demo-panel__media.is-playing .demo-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .demo-play { transition: opacity 180ms linear; }
  .demo-play:hover { transform: none; }
}
.demo-panel__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--text-on-dark-muted);
}
.demo-panel__placeholder-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem; color: var(--text-on-dark);
}
.demo-panel__placeholder-text {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

.demo-panel__body { order: 2; }
.demo-panel__body--wide { order: unset; max-width: 42rem; }
.demo-panel__h {
  /* Data-driven from dlm_demo_services(); cannot be hand-bound. */
  text-wrap: balance;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 0.875rem;
}
.demo-panel__blurb {
  font-size: 1rem; line-height: 1.8; color: var(--text-secondary);
  margin: 0 0 1.75rem; max-width: 46ch;
}
.demo-panel__ctas {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
}
.demo-panel__ctas .cta { width: max-content; }

/* "Order Now" — the commit action, so it gets its own colour rather than
   sharing navy with "Request a live Demo". Deep enough to clear AA on
   white (white on #1f7a52 is 5.30:1, hover 7.45:1), and the same green as
   the contact-form success state, so it reads as "go" and not as a new brand
   colour appearing from nowhere. */
.cta--order {
  background: #1f7a52;
  border-color: #1f7a52;
  color: #ffffff;
}
.cta--order:hover {
  background: #18613f;
  border-color: #18613f;
  box-shadow: 0 4px 20px rgba(31, 122, 82, 0.28);
}

@media (max-width: 900px) {
  .demo-panel { grid-template-columns: 1fr; }
  .demo-panel__media { order: 1; }
  .demo-panel__body { order: 2; }
}

/* ── Character counter (custom-build textarea) ─────────────── */
.enquiry__charcount {
  font-size: 0.75rem; color: var(--text-muted);
  text-align: right; margin: 0.375rem 0 0;
}

/* ── Live-demo closing panel ────────────────────────────────── */
.demo-live-cta {
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) var(--tile-pad-x);
}
.demo-live-cta__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.demo-live-cta__h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem); letter-spacing: -0.015em;
  color: var(--text-on-dark); margin: 0 0 0.5rem;
}
.demo-live-cta__p { font-size: 0.9375rem; color: var(--text-on-dark-muted); margin: 0; max-width: 40ch; }

/* ── Short "Request a Demo" form ───────────────────────────── */
.enquiry__inner--narrow { max-width: 42rem; }
.enquiry--short .enquiry__lead { margin-bottom: 2rem; }

@media (max-width: 700px) {
  .demo-live-cta__inner { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   PRICING, SELECTION AND CHECKOUT — /timesavers/, 2026-08-29
   ═══════════════════════════════════════════════════════════════ */

/* ── Price line inside each service panel ──────────────────── */
.svc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}
.svc-price__setup,
.svc-price__monthly {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.svc-price__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.svc-price__plus {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 0 0.15rem;
}
/* The volume note takes a whole row: it is the sentence most likely to
   change what someone buys, and inline it reads as a footnote. */
.svc-price__note {
  flex-basis: 100%;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gold-text);
  margin-top: 0.35rem;
}
.svc-price--quote {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.svc-price--quote .svc-price__note { color: var(--text-muted); }

/* ── Add-to-plan toggle ─────────────────────────────────────
   A button that holds state, not a link. It has to look decided
   once pressed, because the visitor will be several tabs away
   when they try to remember whether they picked this one. */
.svc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.svc-toggle:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.svc-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.svc-toggle__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  flex: none;
  position: relative;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.svc-toggle.is-on {
  border-color: var(--gold);
  background: hsla(38, 68%, 38%, 0.07);
}
.svc-toggle.is-on .svc-toggle__box {
  background: var(--gold);
  border-color: var(--gold);
}
/* Tick drawn in CSS — no icon font, no extra request. */
.svc-toggle.is-on .svc-toggle__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(42deg);
}

/* ── Pricing table ─────────────────────────────────────────── */
.pricing {
  padding: var(--tile-pad-y) var(--tile-pad-x);
  background: var(--bg-subtle);
}
.pricing__inner { max-width: var(--content-max); margin: 0 auto; }
.pricing__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pricing__h {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: var(--track-tile);
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
  color: var(--text-primary);
  text-wrap: balance;
}
.pricing__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 44ch;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.pricing__tier {
  background: var(--bg-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.pricing__tier:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 27, 57, 0.08);
}
/* The tier the visitor is currently in, driven by their selection. */
.pricing__tier.is-current {
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(14, 27, 57, 0.12);
  transform: translateY(-3px);
}
.pricing__tier-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricing__tier.is-current .pricing__tier-name { color: var(--gold-text); }
.pricing__tier-setup,
.pricing__tier-monthly { display: flex; align-items: baseline; gap: 0.375rem; }
.pricing__amt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pricing__unit { font-size: 0.8125rem; color: var(--text-secondary); }
.pricing__foot {
  margin: 2rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ── Checkout ──────────────────────────────────────────────── */
.checkout {
  padding: var(--tile-pad-y) var(--tile-pad-x);
  background: var(--bg-white);
}
.checkout__inner { max-width: 44rem; margin: 0 auto; }
.checkout__h {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: var(--track-tile);
  line-height: 1.1;
  margin: 0.75rem 0 2rem;
  color: var(--text-primary);
  text-wrap: balance;
}
.checkout__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.checkout__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.checkout__remove {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.checkout__remove:hover { color: var(--text-primary); background: var(--bg-card); }
.checkout__remove:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.checkout__totals {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}
.checkout__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
}
.checkout__total-row strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout__label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.checkout__hint {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.checkout__textarea,
.checkout__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.checkout__textarea { resize: vertical; min-height: 8rem; margin-bottom: 1.5rem; }
.checkout__textarea:focus,
.checkout__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px hsla(38, 68%, 38%, 0.14);
}
.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.75rem; }
.checkout__error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-card);
  background: hsla(0, 70%, 50%, 0.08);
  border: 1px solid hsla(0, 70%, 45%, 0.25);
  color: hsl(0, 65%, 34%);
  font-size: 0.9375rem;
}
.checkout__submit { width: 100%; justify-content: center; }
.checkout__submit:disabled { opacity: 0.6; cursor: wait; }
.checkout__fineprint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}
.checkout__done {
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-card);
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0;
}

/* ── Running total bar ─────────────────────────────────────── */
.cartbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(8, 15, 33, 0.28);
  animation: cartbar-in 320ms var(--ease-out);
}
@keyframes cartbar-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cartbar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.875rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cartbar__count { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }
.cartbar__count strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-right: 0.35rem;
}
.cartbar__price {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.cartbar__plus { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.cartbar__go { flex: none; }

/* The bar covers the foot of the page while it is up. */
body:has(.cartbar:not([hidden])) .site-footer { padding-bottom: 6rem; }

@media (max-width: 720px) {
  .checkout__row { grid-template-columns: 1fr; }
  .cartbar__inner { flex-wrap: wrap; gap: 0.625rem 1rem; }
  .cartbar__count { order: 1; }
  .cartbar__price { order: 2; margin-left: auto; }
  /* Full-width action on a phone: it is the only thing on that row that
     needs to be hit with a thumb. */
  .cartbar__go { order: 3; width: 100%; justify-content: center; }
  .pricing__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .svc-price__setup, .svc-price__monthly { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cartbar { animation: none; }
  .svc-toggle, .pricing__tier { transition: none; }
  .svc-toggle:hover, .pricing__tier:hover, .pricing__tier.is-current { transform: none; }
}


/* ── Tab strip + live-demo link, 2026-08-29 ──────────────────────
   "Request a live Demo" moved out of every service panel and up here,
   beside the service tabs, so it reads as one of the things you can
   choose rather than a second CTA competing with Checkout in every
   panel.

   It is a LINK sitting NEXT TO the tablist, never inside it. It
   navigates away and controls no panel, so inside role="tablist" a
   screen reader would announce it as another tab and then unexpectedly
   leave the page. Styled to match, semantically honest. */
.demo-tabs__navwrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  /* The rule and spacing move here from .demo-tabs__nav, or the demo
     link would hang below the underline that separates the strip from
     the panels. */
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}
.demo-tabs__nav {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

/* Gold-outlined rather than filled: it is a different KIND of action to
   the service tabs, but it must not outrank them. Filling it would make
   the thing you book louder than the thing you buy. */
.demo-tab--live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-color: var(--border-gold);
  background: transparent;
  color: var(--gold-text);
  margin-left: auto;   /* pushed to the far end, away from the tabs */
}
.demo-tab--live:hover {
  border-color: var(--gold);
  background: hsla(38, 68%, 38%, 0.06);
  color: var(--gold-text);
  transform: translateY(-1px);
}
.demo-tab--live:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.demo-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  /* A slow pulse. This is the only live, human thing on the strip and a
     still dot beside static tabs reads as decoration. */
  animation: demo-live-pulse 2.4s ease-in-out infinite;
}
@keyframes demo-live-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

@media (max-width: 700px) {
  /* On a phone the auto margin would strand it alone on its own row.
     Let it sit in the flow with the tabs instead. */
  .demo-tab--live { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-tab__dot { animation: none; }
  .demo-tab--live:hover { transform: none; }
}

/* Checkout button inside a service panel. Same weight as the primary CTA
   it replaced, so the panel's visual balance is unchanged. */
.svc-checkout { cursor: pointer; }
