/* ===== Switch Index — light-mode overrides ===== */

  /* Hero band */
  .si-hero {
    background: var(--paper);
    padding: 72px 32px 64px;
    border-bottom: 1px solid var(--paper-line);
  }
  .si-hero-inner { max-width: 800px; margin: 0 auto; }

  /* Two-column hero: copy on the left, a cross-fading montage of owners who
     already switched on the right, centered against the copy. */
  .si-hero-inner--split {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
  }
  .si-hero-copy { min-width: 0; }
  .si-hero-proof { min-width: 0; }

  /* Image montage: real store photos cross-fading one at a time. Fully
     self-contained (its own fade engine + initializer in the content block
     below), so it carries its own namespaced si-shot* classes and data-attrs
     and never depends on, or collides with, the shared customer_quotes montage.
     All slides stack in one grid cell; only the [data-active] one is visible. */
  .si-shots { max-width: none; margin: 0; }
  .si-shots-stage {
    display: grid;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--paper-line);
    background: var(--paper-2);
  }
  .si-shot {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease;
  }
  .si-shot[data-active] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .si-shot > a {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .si-shot-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }
  /* Flat ink bar (no gradient) keeps the caption legible over any photo. */
  .si-shot-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Solid ink first, so a browser without color-mix() still gets a
       readable bar instead of white text on a bare photo. */
    background: var(--ink);
    background: color-mix(in srgb, var(--ink) 72%, transparent);
    color: #fff;
  }
  .si-shot-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
  }
  .si-shot-move {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
  }
  .si-shot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
  }
  .si-shot-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--paper-line);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .si-shot-dot[aria-current="true"] {
    background: var(--color-accent);
    transform: scale(1.3);
  }
  @media (prefers-reduced-motion: reduce) {
    .si-shot { transition: none; }
  }

  .si-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--color-cobalt-400, #0e1fc1);
    margin-bottom: 18px;
  }

  .si-title {
    font-family: var(--font-display); font-weight: 800; font-size: 52px;
    line-height: 1.05; letter-spacing: -0.03em; color: var(--ink);
    margin: 0 0 16px; text-wrap: balance;
  }

  .si-subtitle {
    font-size: 18px; line-height: 1.6; color: var(--ink-2);
    margin: 0 0 18px; max-width: 680px;
  }

  .si-search { position: relative; margin: 0 0 18px; }

  /* Live results dropdown under the search box. Typing surfaces matching systems
     right here instead of silently filtering the grid far down the page. */
  .si-search-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
    background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-md);
    box-shadow: 0 24px 60px -28px rgba(23, 20, 18, 0.5);
    padding: 6px; max-height: 340px; overflow-y: auto;
  }
  .si-search-results[hidden] { display: none; }
  .si-result {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; border-radius: 10px; text-decoration: none;
    color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px;
  }
  .si-result:hover, .si-result.is-active { background: var(--paper); }
  .si-result-arrow { color: var(--color-cobalt-400); font-weight: 400; }
  .si-result-empty { padding: 13px 14px; color: var(--ink-3); font-size: 15px; margin: 0; }

  /* While the dropdown is open, tuck the quote band away so the live results
     aren't buried below it (per feedback: quotes shouldn't compete with search). */
  .switch-index-page.is-searching .customer-quotes { display: none; }

  .si-cta-text {
    font-size: 16px; color: var(--ink-3); margin: 0;
  }
  .si-cta-text a {
    color: var(--color-cobalt-400); font-weight: 600;
    text-decoration: none; border-bottom: 1px solid var(--color-cobalt-200, #d2d7f0);
    transition: border-color 0.15s ease;
  }
  .si-cta-text a:hover { border-bottom-color: var(--color-cobalt-400); }

  /* Grid section */
  .si-grid-section {
    background: var(--paper);
    padding: 64px 32px;
  }
  .si-grid-inner { max-width: 1200px; margin: 0 auto; }

  /* Override switch-card to match light-mode card system.
     Compact list rows: one line each (name + arrow), so 30+ systems
     scan fast without each one eating a card's worth of page. */
  .switch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 48px;
  }

  .switch-card {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    min-width: 0;
    overflow: hidden;
    box-shadow: var(--shadow-control);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .switch-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
  }
  .switch-card:active { transform: translateY(0); }
  /* display:flex above beats the UA [hidden] rule, so the filter must re-hide explicitly. */
  .switch-card[hidden] { display: none; }

  .switch-card-name {
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    letter-spacing: -0.015em; color: var(--ink);
    margin: 0; overflow-wrap: break-word; min-width: 0;
  }

  /* Reset the shared bottom-anchored arrow to sit inline at the row end. */
  .switch-card .switch-card-arrow {
    margin: 0; padding: 0; align-self: center; flex: none;
  }

  /* No-match state spans the full grid width so it reads as one centered message. */
  .switch-empty {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
  }

  /* "Don't see your system?" block */
  .switch-missing {
    text-align: center;
    padding: 56px 40px;
    border: 1px dashed var(--paper-line);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
  }

  .switch-missing-title {
    font-family: var(--font-display); font-weight: 700; font-size: 26px;
    letter-spacing: -0.02em; color: var(--ink); margin: 0 0 12px;
  }

  .switch-missing-text {
    color: var(--ink-2); font-size: 16px; line-height: 1.65;
    max-width: 560px; margin: 0 auto 28px;
  }

  /* Responsive */
  @media (max-width: 1199px) {
    .switch-grid { grid-template-columns: repeat(2, 1fr); }
    .si-title { font-size: 42px; }
    .si-hero-inner--split { gap: 36px; }
  }
  @media (max-width: 767px) {
    /* Stack: copy first, montage proof below it. */
    .si-hero-inner--split { grid-template-columns: 1fr; gap: 28px; }
    .si-hero { padding: 48px 20px 48px; }
    .si-title { font-size: 32px; }
    .si-subtitle { font-size: 16px; }
    .si-grid-section { padding: 48px 20px; }
    .switch-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
    .switch-card { padding: 14px 16px; border-radius: var(--radius-md); }
    .switch-missing { padding: 40px 24px; }
    .switch-missing-title { font-size: 22px; }
  }
