/* city-service-pages.css — Rotes & Roses City-Service Hub Component System
 * Dedicated source stylesheet (separate from site.css / shared-bundle).
 * Theme-safe across dark (default) and [data-theme="light"] via hsl(var(--*)).
 */

/* --- Base helpers & scroll offset for sticky header + jumpbar --- */
.cs-section[id] { scroll-margin-top: calc(var(--rr-hdr-h, var(--header-height, 4.5rem)) + 4.25rem); }
#pricing .cs-pills { scroll-margin-top: 175px; }
.cs-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .cs-wrap { padding-inline: 1.5rem; } }

/* --- 1. Compact Mobile-First Hero (fits above fold on 390px phone) --- */
.cs-hero {
  padding: 1.125rem 0 1.5rem;
  background: linear-gradient(180deg, hsl(var(--card) / 0.72) 0%, hsl(var(--background)) 100%);
  border-bottom: 1px solid hsl(var(--border));
}
.cs-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: hsl(var(--primary)); margin: 0 0 0.5rem;
}
.cs-hero h1 {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: clamp(1.85rem, 6.2vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.015em;
  color: hsl(var(--foreground)); margin: 0; max-width: 24ch;
}
.cs-lead {
  margin: 0.65rem 0 0; max-width: 58ch;
  font-size: clamp(0.95rem, 2.2vw, 1.075rem); line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
@media (max-width: 639px) {
  .cs-hero h1 {
    font-size: clamp(1.72rem, 6.2vw, 2.15rem);
    line-height: 1.1;
  }
  .cs-lead {
    font-size: 0.925rem;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cs-lead.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .cs-lead-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
    padding: 0.15rem 0;
    background: none;
    border: 0;
    color: hsl(var(--primary));
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-underline-offset: 3px;
  }
  .cs-lead-toggle:hover {
    text-decoration: underline;
  }
  .cs-hero-price {
    margin-top: 0.65rem;
    font-size: 0.85rem;
  }
  .cs-hero-actions {
    margin-top: 0.85rem;
  }
}
@media (min-width: 640px) {
  .cs-lead-toggle {
    display: none;
  }
}
.cs-hero-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.65rem;
  margin: 0.85rem 0 0; font-size: 0.9rem; color: hsl(var(--muted-foreground));
}
.cs-hero-price strong {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: 1.35rem; font-weight: 400; color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}
.cs-hero-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1rem; }
.cs-btn-primary, .cs-btn-ghost, .cs-row-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.6rem 1.2rem; border-radius: 9999px;
  font-size: 0.9rem; font-weight: 700; line-height: 1.1; text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.cs-btn-primary, .cs-row-cta {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
}
.cs-btn-primary {
  position: relative;
  overflow: hidden;
}
.cs-btn-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgb(255 255 255 / 0.24) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
  will-change: transform;
  animation: csCeramicSheen 8s 1.6s 3 cubic-bezier(0.45, 0, 0.2, 1);
}
[data-theme="light"] .cs-btn-primary::after {
  background: linear-gradient(100deg, transparent 0%, rgb(255 255 255 / 0.18) 50%, transparent 100%);
}
html.rr-nav-open .cs-btn-primary::after {
  animation-play-state: paused;
}
@keyframes csCeramicSheen {
  0% { transform: translateX(-160%) skewX(-20deg); }
  10.6%, 100% { transform: translateX(360%) skewX(-20deg); }
}
@keyframes csCeramicSheenHover {
  0% { transform: translateX(-160%) skewX(-20deg); }
  100% { transform: translateX(360%) skewX(-20deg); }
}
.cs-btn-ghost {
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
@media (hover: hover) and (pointer: fine) {
  .cs-btn-primary:hover, .cs-row-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .cs-btn-primary:hover::after { animation: csCeramicSheenHover 680ms cubic-bezier(0.22, 1, 0.36, 1) 1; }
  .cs-btn-ghost:hover { border-color: hsl(var(--primary) / 0.65); background: hsl(var(--secondary)); }
}
.cs-btn-primary:active, .cs-row-cta:active { transform: translateY(0) scale(0.975); }
@media (min-width: 640px) { .cs-hero { padding: 2rem 0 2.25rem; } }
@media (min-width: 768px) {
  .cs-hero { padding: 2.25rem 0 2.5rem; }
  .cs-hero > .cs-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    column-gap: clamp(1.75rem, 3.5vw, 3.5rem);
    align-items: start;
  }
  .cs-hero > .cs-wrap > .cs-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.75rem;
  }
  .cs-hero > .cs-wrap > h1 {
    grid-column: 1;
    grid-row: 2;
    max-width: 20ch;
  }
  .cs-hero > .cs-wrap > .cs-hero-price {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.85rem;
  }
  .cs-hero > .cs-wrap > .cs-hero-actions {
    grid-column: 1;
    grid-row: 4;
    margin-top: 1.25rem;
  }
  .cs-hero > .cs-wrap > .cs-lead {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    margin-top: 0;
  }
  .cs-hero > .cs-wrap > .cs-pills {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 1.75rem;
  }
}
@media (max-width: 639px) {
  .cs-hero { padding: 0.9rem 0 1.15rem; }
  .cs-pills { margin-top: 0.9rem; gap: 0.4rem; }
  .cs-pill { padding: 0.5rem 0.65rem; }
}

/* --- 2. Sticky Horizontal Pill Jump-Nav --- */
body:has(.cs-jumpbar) .city-hub-strip,
body:has(.cs-jumpbar) section:has(.city-hub) {
  position: relative;
  top: auto;
  z-index: 38;
  box-shadow: none;
}
.cs-jumpbar {
  position: sticky; top: var(--rr-hdr-h, var(--header-height, 4rem)); margin-top: -1px; z-index: 35;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}
.cs-jumpbar__inner {
  display: flex; align-items: center; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-block: 0.55rem;
}
.cs-jumpbar__inner::-webkit-scrollbar { display: none; }
.cs-jumpbar a {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 0.95rem; border-radius: 9999px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground)); font-size: 0.825rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cs-jumpbar a:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
}
.cs-jumpbar a.is-active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--primary));
}

/* --- 3. Compact 3–4 Pill At-a-Glance Strip --- */
.cs-pills {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.cs-pill {
  padding: 0.65rem 0.85rem; border-radius: 0.75rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
}
.cs-pill__label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.cs-pill__val {
  display: block; margin-top: 0.15rem; font-size: 0.92rem; font-weight: 700;
  color: hsl(var(--foreground)); line-height: 1.25;
}
@media (min-width: 768px) { .cs-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } }

/* --- 4. Editorial Card-Based Price Matrix (Zero Horizontal Scroll) --- */
.cs-price-matrix { display: grid; gap: 0.875rem; margin-top: 1.25rem; }
.cs-price-row {
  padding: 1rem; border-radius: 1rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  display: grid; gap: 0.85rem;
}
.cs-price-row--featured {
  border-color: hsl(var(--primary) / 0.65);
  box-shadow: inset 0 2px 0 hsl(var(--primary));
}
.cs-price-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem; }
.cs-price-head h3 {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.15;
  color: hsl(var(--foreground)); margin: 0;
}
.cs-badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 9999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.cs-time {
  margin-left: auto; padding: 0.2rem 0.6rem; border-radius: 9999px;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground)); font-size: 0.78rem; font-weight: 600;
}
.cs-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.cs-size-cell {
  min-width: 0; overflow-wrap: anywhere;
  padding: 0.6rem 0.45rem; border-radius: 0.65rem; text-align: center;
  background: hsl(var(--foreground) / 0.04); border: 1px solid hsl(var(--border));
}
.cs-size-label {
  display: block; font-size: 0.7rem; font-weight: 600; line-height: 1.2;
  color: hsl(var(--muted-foreground));
}
.cs-size-price {
  display: block; margin-top: 0.2rem;
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: clamp(0.95rem, 3.2vw, 1.5rem); line-height: 1.1;
  color: hsl(var(--foreground)); font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .cs-time { margin-left: 0; }
}
@media (max-width: 420px) {
  .cs-size-grid--stack-xs {
    grid-template-columns: 1fr;
  }
  .cs-size-grid--stack-xs .cs-size-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    text-align: left;
  }
  .cs-size-grid--stack-xs .cs-size-price {
    margin-top: 0;
    text-align: right;
  }
}
.cs-price-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 0.65rem; border-top: 1px solid hsl(var(--border));
}
.cs-tier-note { margin: 0; font-size: 0.9rem; line-height: 1.45; color: hsl(var(--muted-foreground)); flex: 1 1 15rem; }
.cs-row-cta { padding: 0.55rem 1.05rem; font-size: 0.85rem; flex-shrink: 0; }
@media (min-width: 640px) { .cs-price-row { padding: 1.25rem 1.35rem; } .cs-size-grid { gap: 0.65rem; } }

/* --- 5. Quick-Pick Comparison Cards & Per-Foot/Specialty Rate Strip --- */
.cs-compare-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; margin-top: 1.25rem; }
.cs-compare-card {
  padding: 1.1rem; border-radius: 1rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 0.65rem;
}
.cs-compare-card h3 {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: 1.3rem; line-height: 1.15; margin: 0; color: hsl(var(--foreground));
}
.cs-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.cs-check-list li {
  position: relative; padding-left: 1.3rem; font-size: 0.9rem;
  line-height: 1.45; color: hsl(var(--muted-foreground));
}
.cs-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: hsl(var(--primary)); font-weight: 800;
}
@media (min-width: 640px) { .cs-compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cs-compare-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cs-rate-strip {
  margin-top: 1.25rem; padding: 1.1rem; border-radius: 1rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--primary) / 0.45);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.85rem 1.25rem;
}
.cs-rate-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.75rem; }
.cs-rate-figure {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.05;
  color: hsl(var(--foreground)); font-variant-numeric: tabular-nums;
}
.cs-min-badge {
  display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 9999px;
  background: hsl(var(--primary) / 0.14); border: 1px solid hsl(var(--primary) / 0.45);
  color: hsl(var(--foreground)); font-size: 0.78rem; font-weight: 700;
}
.cs-rate-examples {
  width: 100%; display: flex; flex-wrap: wrap; gap: 0.45rem 1rem;
  padding-top: 0.75rem; border-top: 1px solid hsl(var(--border));
  font-size: 0.86rem; color: hsl(var(--muted-foreground));
}
.cs-rate-examples strong { color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }

/* --- 6. Scannable Local-Condition Grid & Honest Scope Callout --- */
.cs-local-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 1.25rem; }
.cs-local-card {
  padding: 1rem 1.1rem; border-radius: 0.9rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
}
.cs-local-card__tag {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 0.25rem;
}
.cs-local-card h3 {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: 1.18rem; line-height: 1.2; margin: 0 0 0.35rem; color: hsl(var(--foreground));
}
.cs-local-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.cs-local-card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cs-local-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: hsl(var(--secondary));
  border-bottom: 1px solid hsl(var(--border));
}
.cs-local-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.cs-local-card--photo:hover .cs-local-card__media img {
  transform: scale(1.03);
}
.cs-local-card__body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cs-local-card__cta {
  margin-top: auto !important;
  padding-top: 0.9rem;
}
@media (min-width: 640px) { .cs-local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-local-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cs-callout {
  margin-top: 1.25rem; padding: 1.05rem 1.2rem; border-radius: 0.9rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  overflow: hidden; box-shadow: inset 3px 0 0 hsl(var(--primary));
}
.cs-callout h3 {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: 1.2rem; margin: 0 0 0.4rem; color: hsl(var(--foreground));
}
.cs-callout p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.cs-callout-split { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .cs-callout-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobile: stack .service-grid and .service-grid--three cleanly (no 2-col squish or orphan card) */
@media (max-width: 639px) {
  .service-grid,
  .service-grid--three {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-grid .service-tile,
  .service-grid--three .service-tile {
    min-height: auto;
    padding: 1.25rem;
  }
  .service-grid--three .service-tile p.text-muted-foreground {
    display: block;
  }
}

/* --- 7. Smooth Native Accordion FAQs (<details class="cs-faq-item">) --- */
.cs-faq-list { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.cs-faq-item {
  border-radius: 0.85rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  overflow: hidden; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.cs-faq-item[open]:not(.is-closing) { border-color: hsl(var(--primary) / 0.55); }
.cs-faq-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; min-height: 3.25rem;
  padding: 0.9rem 1.05rem; font-size: 0.97rem; font-weight: 700;
  line-height: 1.35; color: hsl(var(--foreground));
}
.cs-faq-item > summary::-webkit-details-marker { display: none; }
.cs-faq-item > summary::after {
  content: ""; flex-shrink: 0; width: 1.85rem; height: 1.85rem;
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid hsl(var(--foreground) / 0.16);
  background-color: hsl(var(--foreground) / 0.06);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center center, center center;
  background-size: 0.6875rem 2px, 2px 0.6875rem;
  background-repeat: no-repeat;
  color: hsl(var(--primary));
  transform: rotate(0deg) scale(1);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cs-faq-item[open]:not(.is-closing) > summary::after {
  background-color: hsl(var(--primary));
  background-image: linear-gradient(currentColor, currentColor);
  background-position: center center;
  background-size: 0.6875rem 2px;
  background-repeat: no-repeat;
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: rotate(180deg) scale(1.04);
}
.cs-faq-body { padding: 0 1.05rem 1rem; font-size: 0.93rem; line-height: 1.6; color: hsl(var(--muted-foreground)); overflow: hidden; }
.cs-faq-body p { margin: 0; }
@keyframes csFaqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cs-faq-item[open]:not(.is-animating) > .cs-faq-body {
  animation: csFaqReveal 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rf-faq-more { margin-top: 1.15rem; }
.rf-faq-more > summary {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.72rem 1.35rem; border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; list-style: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.rf-faq-more > summary::-webkit-details-marker { display: none; }
.rf-faq-more > summary:hover { border-color: hsl(var(--primary)); }
.rf-faq-more > summary:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.rf-faq-more > summary::after {
  content: ""; flex: 0 0 auto; width: 0.75rem; height: 0.75rem; display: inline-block;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center center, center center;
  background-size: 0.75rem 2px, 2px 0.75rem;
  background-repeat: no-repeat;
  color: hsl(var(--primary));
  transition: transform 0.2s ease;
}
:root:not([data-theme="light"]) .rf-faq-more > summary::after { color: #F0486D; }
.rf-faq-more[open]:not(.is-closing) > summary::after { transform: rotate(45deg); }
.rf-faq-more[open] > summary { margin-bottom: 0.85rem; }
.rf-faq-more > .cs-faq-list { margin-top: 0; }

/* --- 8. Tactile Hover Micro-Interactions & Scroll-Triggered Stagger Reveals --- */
.cs-pill,
.cs-price-row,
.cs-rate-strip,
.cs-local-card,
.cs-compare-card,
.cs-size-cell {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cs-price-row:hover,
  .cs-local-card:hover,
  .cs-compare-card:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--primary) / 0.48);
    box-shadow: 0 12px 26px -18px rgb(0 0 0 / 0.5);
  }
  .cs-price-row--featured:hover {
    border-color: hsl(var(--primary) / 0.8);
    box-shadow: inset 0 2px 0 hsl(var(--primary)), 0 12px 26px -18px rgb(0 0 0 / 0.5);
  }
  .cs-pill:hover,
  .cs-size-cell:hover {
    transform: translateY(-1px);
    border-color: hsl(var(--primary) / 0.45);
  }
  .cs-faq-item > summary:hover::after {
    border-color: hsl(var(--primary) / 0.55);
    background-color: hsl(var(--primary) / 0.12);
  }
}

/* Progressive-enhancement reveals (never hides .cs-hero; only active when IO runs & reduced-motion is off) */
html.cs-anim-ready .cs-pill,
html.cs-anim-ready .cs-price-row,
html.cs-anim-ready .cs-rate-strip,
html.cs-anim-ready .cs-local-card,
html.cs-anim-ready .cs-compare-card,
html.cs-anim-ready .cs-callout,
html.cs-anim-ready .cs-faq-item,
html.cs-anim-ready .service-tile {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--cs-stagger, 0) * 55ms),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--cs-stagger, 0) * 55ms),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
html.cs-anim-ready .cs-pill.is-revealed,
html.cs-anim-ready .cs-price-row.is-revealed,
html.cs-anim-ready .cs-rate-strip.is-revealed,
html.cs-anim-ready .cs-local-card.is-revealed,
html.cs-anim-ready .cs-compare-card.is-revealed,
html.cs-anim-ready .cs-callout.is-revealed,
html.cs-anim-ready .cs-faq-item.is-revealed,
html.cs-anim-ready .service-tile.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
html.cs-anim-ready .is-revealed--instant {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease !important;
}
html.cs-anim-ready .cs-hero .cs-pill {
  opacity: 1;
  transform: none;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

/* --- 9. Interactive Ceramic Coating Comparison (.cc-compare) --- */
#pricing .rr-quiz-resume--tiles {
  height: auto !important;
  margin-bottom: 1.25rem;
}
#pricing .rr-quiz-resume--tiles .rr-quiz-resume__row {
  position: static !important;
  transform: none !important;
}
.cc-compare {
  color: hsl(var(--foreground));
  width: 100%;
  min-width: 0;
  margin-top: 0;
}
.cc-compare * { box-sizing: border-box; }
.cc-compare h2 {
  font-family: inherit;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
  scroll-margin-top: 175px;
  color: inherit;
}
.cc-compare .cc-intro {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 65ch;
  margin: 10px 0 20px;
  color: hsl(var(--muted-foreground));
}
.cc-compare .cc-controls {
  display: grid;
  gap: 7px;
  max-width: 34rem;
  margin: 0 0 20px;
}
.cc-compare .cc-controls > label { font-weight: 700; }
.cc-compare .cc-controls > label small {
  font-size: 0.88rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}
.cc-compare .cc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-compare .cc-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--muted-foreground));
  border-radius: 6px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font: inherit;
}
.cc-compare .cc-input-row button {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cc-compare .cc-status {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  line-height: 1.45;
}
.cc-compare .cc-footnote { margin-top: 14px; }
.cc-compare .cc-manual {
  border: 0;
  padding: 0;
  margin: 4px 0 0;
  min-width: 0;
}
.cc-compare.has-anim .cc-manual {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-compare.has-anim .cc-manual.is-open {
  max-height: 18rem;
  opacity: 1;
  margin-top: 6px;
  transform: translateY(0);
  pointer-events: auto;
}
.cc-compare .cc-manual legend {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cc-compare .cc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cc-compare .cc-options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.cc-compare .cc-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cc-compare .cc-options span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 5px 13px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cc-compare .cc-options span:hover {
    border-color: hsl(var(--primary) / 0.65);
    transform: translateY(-1px);
  }
}
.cc-compare .cc-options input:checked + span {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.14);
  font-weight: 700;
}
@keyframes ccPricePop {
  0% { opacity: 0.45; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cc-compare .cc-price strong.is-updating {
  display: inline-block;
  animation: ccPricePop 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-compare .cc-options input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.cc-compare [hidden] { display: none !important; }
.cc-compare .cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.cc-compare .cc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cc-compare .cc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
}
.cc-compare .cc-card--featured {
  border-color: hsl(var(--primary));
  box-shadow: inset 0 2px 0 hsl(var(--primary));
}
.cc-compare .cc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-compare .cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cc-compare h3 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.23;
  overflow-wrap: break-word;
}
.cc-compare .cc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.34em;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}
.cc-compare .cc-price strong {
  color: inherit;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.cc-compare .cc-scope {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.48;
  color: hsl(var(--muted-foreground));
}
.cc-compare .cc-terms {
  display: grid;
  gap: 4px;
  margin: 0;
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
  padding-top: 11px;
  font-size: 0.92rem;
}
.cc-compare .cc-terms div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.45;
}
.cc-compare .cc-terms dt { color: hsl(var(--muted-foreground)); }
.cc-compare .cc-terms dd { margin: 0; font-weight: 600; text-align: right; }
.cc-compare .cc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  max-width: 100%;
  border-radius: 999px;
  padding: 9px 16px;
  text-align: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}
.cc-compare .cc-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-compare :focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}
.cc-chart {
  margin-top: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
  overflow: hidden;
}
.cc-chart > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.cc-chart > summary::-webkit-details-marker { display: none; }
.cc-chart > summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid hsl(var(--foreground) / 0.16);
  background-color: hsl(var(--foreground) / 0.06);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center center, center center;
  background-size: 0.6875rem 2px, 2px 0.6875rem;
  background-repeat: no-repeat;
  color: hsl(var(--primary));
  transform: rotate(0deg) scale(1);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cc-chart[open]:not(.is-closing) > summary {
  border-bottom: 1px solid hsl(var(--border));
}
.cc-chart[open]:not(.is-closing) > summary::after {
  background-color: hsl(var(--primary));
  background-image: linear-gradient(currentColor, currentColor);
  background-position: center center;
  background-size: 0.6875rem 2px;
  background-repeat: no-repeat;
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: rotate(180deg) scale(1.04);
}
.cc-chart__wrap {
  overflow-x: auto;
  padding: 0.5rem 1.15rem 1rem;
}
.cc-chart table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.cc-chart th,
.cc-chart td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid hsl(var(--border));
  font-variant-numeric: tabular-nums;
}
.cc-chart tr:last-child th,
.cc-chart tr:last-child td {
  border-bottom: 0;
}
.cc-chart thead th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.cc-chart tbody th {
  font-weight: 700;
  color: hsl(var(--foreground));
}
.cc-chart tbody td {
  color: hsl(var(--foreground));
}
@media (max-width: 820px) {
  .cc-compare { margin-top: 0; }
  .cc-compare .cc-grid,
  .cc-compare .cc-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cc-compare .cc-card { gap: 9px; padding: 16px; }
  .cc-compare .cc-price strong { font-size: 1.65rem; }
}

/* --- Dark & Light Theme Contrast Tuning, Accessibility & Reduced Motion --- */
:root:not([data-theme="light"]) .cs-kicker,
:root:not([data-theme="light"]) .cs-local-card__tag,
:root:not([data-theme="light"]) .cs-check-list li::before,
:root:not([data-theme="light"]) .cs-jumpbar a:hover,
:root:not([data-theme="light"]) .cs-jumpbar a.is-active,
:root:not([data-theme="light"]) .cs-faq-item:not([open]) > summary::after,
:root:not([data-theme="light"]) .cs-faq-item.is-closing > summary::after,
:root:not([data-theme="light"]) .cc-chart:not([open]) > summary::after,
:root:not([data-theme="light"]) .cc-chart.is-closing > summary::after {
  color: #F0486D;
}
:root:not([data-theme="light"]) .cs-jumpbar a.is-active {
  background: hsl(var(--primary) / 0.18);
}
[data-theme="light"] .cs-size-cell { background: hsl(var(--secondary)); }
[data-theme="light"] .cs-min-badge { background: hsl(var(--primary) / 0.1); }
[data-theme="light"] .cs-jumpbar a.is-active { background: hsl(var(--primary) / 0.1); }
.cs-jumpbar a:focus-visible, .cs-btn-primary:focus-visible, .cs-btn-ghost:focus-visible,
.cs-row-cta:focus-visible, .cs-faq-item > summary:focus-visible, .cc-chart > summary:focus-visible {
  outline: 2px solid hsl(var(--primary)); outline-offset: 2px;
}
/* ==========================================================================
   Editorial visual proof grid (mix of process shots, afters & optional slider)
   ========================================================================== */
.cs-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cs-editorial-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cs-editorial-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
}
.cs-editorial-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: hsl(var(--secondary));
}
.cs-editorial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.cs-editorial-card:hover .cs-editorial-card__media img {
  transform: scale(1.03);
}
.cs-editorial-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(12, 12, 14, 0.84);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.cs-editorial-badge--after {
  background: hsl(var(--accent));
  border-color: transparent;
}
.cs-editorial-card__body {
  padding: 1rem 1.15rem 1.15rem;
}
.cs-editorial-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
}
.cs-editorial-card__caption {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.cs-section[data-cs-editorial-proof] h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  color: hsl(var(--foreground));
  margin: 0.35rem 0 0;
}
.cs-editorial-card--slider .rr-proof-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cs-editorial-card--slider .rr-ba-slider {
  aspect-ratio: 4 / 3 !important;
  border-radius: 0 !important;
  width: 100%;
}
@media (max-width: 900px) {
  .cs-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cs-editorial-grid,
  .cs-editorial-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .cs-compare-grid--3:has(> :nth-child(4):last-child),
  .cs-local-grid--3:has(> :nth-child(4):last-child),
  .cs-editorial-grid:has(> :nth-child(4):last-child),
  .cc-compare .cc-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Full-card click targets for directory cards + breathing room for mid-section headings
   ========================================================================== */
.cs-compare-grid + h2,
.cs-compare-grid + h3,
.cs-local-grid + h2,
.cs-local-grid + h3 {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}

.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)),
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)) {
  position: relative;
  cursor: pointer;
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)) h3 > a[href],
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)) h3 > a[href] {
  text-decoration: none;
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)) h3 > a[href]::after,
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)) h3 > a[href]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover,
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover {
  border-color: hsl(var(--accent) / 0.55);
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover h3 > a[href],
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover h3 > a[href] {
  color: hsl(var(--accent));
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover p:last-child a,
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover p:last-child a,
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover p:last-child span,
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover p:last-child span {
  color: hsl(var(--foreground));
}
:root:not([data-theme="light"]) .cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover h3 > a[href],
:root:not([data-theme="light"]) .cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):hover h3 > a[href] {
  color: #F0486D;
}
.cs-compare-card:has(h3 > a[href]):not(:has(h3 > a + a)):focus-within,
.cs-local-card:has(h3 > a[href]):not(:has(h3 > a + a)):focus-within {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* Full-card click target for pricing cards (.cc-card, .cs-price-row, .cs-rate-strip)
   and ecosystem / related-service cards (.cs-local-card with trailing link) */
.cc-compare .cc-card:has(a.cc-action[href]),
.cs-price-row:has(a.cs-row-cta[href]),
.cs-rate-strip:has(a.cs-row-cta[href]),
.cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])) {
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cc-compare .cc-card:has(a.cc-action[href]) a.cc-action[href]::after,
.cs-price-row:has(a.cs-row-cta[href]) a.cs-row-cta[href]::after,
.cs-rate-strip:has(a.cs-row-cta[href]) a.cs-row-cta[href]::after,
.cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])) > p:last-child > a[href]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cc-compare .cc-card:has(a.cc-action[href]) a[href]:not(.cc-action),
.cs-price-row:has(a.cs-row-cta[href]) a[href]:not(.cs-row-cta),
.cs-rate-strip:has(a.cs-row-cta[href]) a[href]:not(.cs-row-cta),
.cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])) a[href]:not(:last-child) {
  position: relative;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .cc-compare .cc-card:has(a.cc-action[href]):hover {
    transform: translateY(-2px);
    border-color: hsl(var(--primary) / 0.7);
  }
  .cc-compare .cc-card:has(a.cc-action[href]):hover a.cc-action,
  .cc-compare .cc-card:has(a.cc-action[href]) a.cc-action:hover {
    filter: none;
    transform: none;
    box-shadow: 0 0 0 1px hsl(var(--primary)), 0 6px 18px hsl(var(--primary) / 0.28);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .cs-price-row:has(a.cs-row-cta[href]) a.cs-row-cta:hover,
  .cs-rate-strip:has(a.cs-row-cta[href]) a.cs-row-cta:hover,
  .cs-price-row:has(a.cs-row-cta[href]):hover a.cs-row-cta,
  .cs-rate-strip:has(a.cs-row-cta[href]):hover a.cs-row-cta {
    filter: none;
    transform: none;
    box-shadow: 0 0 0 1px hsl(var(--primary)), 0 6px 18px hsl(var(--primary) / 0.28);
  }
  .cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])):hover {
    border-color: hsl(var(--accent) / 0.55);
  }
  .cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])):hover h3 {
    color: hsl(var(--accent));
  }
  :root:not([data-theme="light"]) .cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])):hover h3 {
    color: #F0486D;
  }
}
.cc-compare .cc-card:has(a.cc-action[href]) a.cc-action:active,
.cs-price-row:has(a.cs-row-cta[href]) a.cs-row-cta:active,
.cs-rate-strip:has(a.cs-row-cta[href]) a.cs-row-cta:active {
  filter: none;
  transform: none;
}
.cc-compare .cc-card:has(a.cc-action[href]):focus-within,
.cs-price-row:has(a.cs-row-cta[href]):focus-within,
.cs-rate-strip:has(a.cs-row-cta[href]):focus-within,
.cs-local-card:has(> p:last-child > a[href]):not(:has(h3 > a[href])):focus-within {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* ==========================================================================
   Back button row inside first .cs-section after sticky .cs-jumpbar
   ========================================================================== */
.cs-back-row {
  display: flex;
  align-items: center;
  margin: 0 0 1.25rem;
}
.cs-back-shell {
  padding-top: 1.25rem;
}
.cs-back-row .slice-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 600;
  color: hsl(var(--accent));
  background: transparent;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.cs-back-row .slice-back:hover,
.cs-back-row .slice-back:focus-visible {
  border-color: hsl(var(--accent));
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.6);
}
.cs-back-row .slice-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
:root:not([data-theme="light"]) .cs-back-row .slice-back {
  color: #F0486D;
}
:root:not([data-theme="light"]) .cs-back-row .slice-back:hover,
:root:not([data-theme="light"]) .cs-back-row .slice-back:focus-visible {
  border-color: #F0486D;
  color: hsl(var(--foreground));
}

@media (prefers-reduced-motion: reduce) {
  .cs-btn-primary, .cs-btn-ghost, .cs-row-cta, .cs-jumpbar a, .cs-faq-item,
  .cs-faq-item > summary::after, .cs-pill, .cs-price-row, .cs-local-card,
  .cs-compare-card, .cs-size-cell {
    transition: none !important;
  }
  .cs-btn-primary::after,
  .cs-faq-item[open] > .cs-faq-body,
  html.cs-anim-ready .cs-price-row.is-revealed,
  html.cs-anim-ready .cs-local-card.is-revealed,
  html.cs-anim-ready .cs-compare-card.is-revealed,
  html.cs-anim-ready .cs-callout.is-revealed,
  html.cs-anim-ready .cs-faq-item.is-revealed {
    animation: none !important;
  }
  .cs-btn-primary:hover, .cs-row-cta:hover, .cs-btn-primary:active, .cs-row-cta:active,
  .cs-price-row:hover, .cs-local-card:hover, .cs-compare-card:hover,
  .cs-pill:hover, .cs-size-cell:hover, .cs-faq-item[open] > summary::after {
    transform: none !important;
  }
  html.cs-anim-ready .cs-pill,
  html.cs-anim-ready .cs-price-row,
  html.cs-anim-ready .cs-rate-strip,
  html.cs-anim-ready .cs-local-card,
  html.cs-anim-ready .cs-compare-card,
  html.cs-anim-ready .cs-callout,
  html.cs-anim-ready .cs-faq-item,
  html.cs-anim-ready .service-tile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
