
  /* Layout: fixed top nav + conditional sub-nav strip, single full-bleed iframe stage below */
  :root {
    --bg-body: #030617;
    --bg-card: rgba(10, 15, 30, 0.7);
    --bg-iframe-wrap: #00020b;
    --bg-nav: rgba(1, 13, 31, 0.92);
    --bg-strip: rgba(3, 10, 24, 0.85);
    --bg-iframe-head: rgba(7, 16, 32, 0.9);
    --chip: rgba(26, 44, 110, 0.5);
    --chip-hover: rgba(26, 44, 110, 0.8);

    --orange-core: #ff7700;
    --orange-deep: #ff6600;
    --orange-med: #ff9933;
    --orange-light: #ffaa33;
    --orange-yellow: #ffcc44;
    --peach: #ffcd94;
    --peach-muted: rgba(255, 205, 148, 0.85);

    /* sub-tab accent (distinct from the orange nav) */
    --cyan-core: #3355fd;
    --cyan-light: #aeb9ff;
    --cyan-muted: #9aa9ff;

    --text: #f0f4ff;
    --white: #ffffff;
    --line: rgba(255, 119, 0, 0.18);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }
  @supports (height: 100dvh) { html, body { height: 100dvh; } }
  body {
    margin: 0;
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(255, 119, 0, 0.08), transparent 60%),
      radial-gradient(900px 500px at -10% 110%, rgba(26, 44, 110, 0.25), transparent 55%),
      var(--bg-body);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ---------- TOP NAV ---------- */
  .topbar {
    flex: 0 0 auto;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 1.5px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    flex-wrap: wrap;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-right: 6px;
    white-space: nowrap;
  }
  .brand .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--orange-core);
    box-shadow: 0 0 12px var(--orange-core);
  }
  .brand .name { color: var(--white); font-size: 1.05rem; }
  .brand .name b { color: var(--orange-med); }
  /* phones and tablets: the title takes its own row and sits in the middle; the tabs follow below */
  @media (max-width: 900px) {
    .brand { width: 100%; justify-content: center; margin-right: 0; }
    .brand .name { text-align: center; }
  }

  .nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 auto;
  }
  .nav-btn {
    appearance: none;
    border: 1px solid transparent;
    background: var(--chip);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1.2px 16px;
    border-radius: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, border-color 0.18s, transform 0.08s;
    white-space: nowrap;
  }
  .nav-btn:hover { background: var(--chip-hover); border-color: var(--line); }
  .nav-btn:active { transform: translateY(1px); }
  .nav-btn .ico { font-size: 1rem; }
  .nav-btn .caret { font-size: 0.7rem; opacity: 0.7; transition: transform 0.2s; }

  .nav-btn.active {
    background: linear-gradient(180deg, var(--orange-core), var(--orange-deep));
    color: var(--white);
    border-color: rgba(255, 170, 51, 0.6);
    box-shadow: 0 4px 16px rgba(255, 119, 0, 0.35);
  }
  .nav-btn.group-open .caret { transform: rotate(180deg); }
  .nav-btn:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }

  /* ---------- SUB-NAV STRIP (5 spy apps) ---------- */
  .substrip {
    flex: 0 0 auto;
    background: var(--bg-strip);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .substrip-inner {
    display: flex;
    gap: 8px;
    padding-block: 9px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    min-width: max-content;
  }
  .substrip {
    border-bottom-color: rgba(51, 85, 253, 0.4);
    background: linear-gradient(180deg, rgba(23, 33, 110, 0.92), rgba(9, 13, 48, 0.92));
  }
  .sub-label {
    align-self: center;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan-muted);
    margin-right: 4px;
    white-space: nowrap;
  }
  .sub-btn {
    appearance: none;
    border: 1px solid rgba(51, 85, 253, 0.45);
    background: rgba(33, 48, 125, 0.5);
    color: #dfe4ff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 1.2px 14px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: background 0.16s, border-color 0.16s;
  }
  .sub-btn:hover { background: rgba(45, 62, 165, 0.65); border-color: rgba(51, 85, 253, 0.75); }
  .sub-btn.active {
    background: rgba(255, 119, 0, 0.18);
    border-color: var(--orange-med);
    color: var(--orange-light);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.45);
  }
  .sub-btn:focus-visible { outline: 2px solid var(--cyan-core); outline-offset: 2px; }
  .sub-btn .tag { background: rgba(51, 85, 253, 0.3); color: #cdd5ff; }
  .sub-btn.active .tag { background: rgba(255, 119, 0, 0.2); color: var(--orange-yellow); }
  .tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 119, 0, 0.2);
    color: var(--orange-yellow);
  }

  /* ---------- IFRAME STAGE ---------- */
  .stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    display: flex;
  }
  .frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-iframe-wrap);
    border: 2px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  .frame-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5px 14px;
    background: var(--bg-iframe-head);
    border-bottom: 1px solid var(--line);
  }
  .frame-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .frame-title .ico { color: var(--orange-med); flex: 0 0 auto; }
  .frame-title #head-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .frame-url {
    font-size: 0.72rem;
    color: var(--peach-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
  }
  .open-btn {
    flex: 0 0 auto;
    appearance: none;
    text-decoration: none;
    border: 1px solid var(--orange-med);
    background: rgba(255, 119, 0, 0.12);
    color: var(--orange-light);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 1px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s;
  }
  .open-btn:hover { background: rgba(255, 119, 0, 0.25); }

  /* Refresh: same look as "Open in New Tab", sits right next to it */
  .refresh-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; margin-right: -4px; }
  .refresh-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
  .refresh-btn::after { content: ""; position: absolute; inset: -6px -3px; }
  .refresh-btn.spin svg { animation: rfSpin 0.7s linear; }
  @keyframes rfSpin { to { transform: rotate(360deg); } }
  @media (max-width: 440px) {
    /* narrow phones: a clear round icon button, so the demo name still has room (the button keeps its "Refresh" label for screen readers) */
    .refresh-btn .rf-text { display: none; }
    .refresh-btn {
      width: 32px; height: 32px; padding: 0; margin-right: 0;
      justify-content: center;
      border-radius: 50%;
      border-width: 1.5px;
      background: linear-gradient(180deg, var(--orange-core), var(--orange-deep));
      color: #fff;
      box-shadow: 0 0 10px rgba(255, 119, 0, 0.45);
    }
    .refresh-btn:hover, .refresh-btn:active { background: linear-gradient(180deg, var(--orange-med), var(--orange-core)); }
    .refresh-btn svg { width: 18px; height: 18px; stroke-width: 2.8; }
    .refresh-btn::after { inset: -6px; }
  }
  @media (prefers-reduced-motion: reduce) { .refresh-btn.spin svg { animation: none; } }

  .frame-body { position: relative; flex: 1 1 auto; min-height: 0; }
  /* every demo lives in its own stacked iframe (so it can be preloaded); only the active one is visible */
  .frame-body iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0; display: block;
    background: var(--bg-iframe-wrap);
    visibility: hidden; pointer-events: none;
  }
  .frame-body iframe.active { visibility: visible; pointer-events: auto; }

  /* loading + fallback overlay */
  .overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px; text-align: center;
    padding: 24px;
    background: var(--bg-iframe-wrap);
  }
  .overlay.hidden { display: none; }
  .spinner {
    width: 38px; height: 38px;
    border: 3px solid rgba(255, 119, 0, 0.25);
    border-top-color: var(--orange-core);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
  .overlay h3 { margin: 0; color: var(--white); font-size: 1.05rem; }
  .overlay p { margin: 0; color: var(--peach-muted); font-size: 0.85rem; max-width: 42ch; line-height: 1.5; }
  /* prominent button on the "won't embed" card */
  .view-btn {
    appearance: none;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    padding: 14px 32px;
    min-height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 240, 190, 0.9);
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 45%, #ff6a00 100%);
    text-shadow: 0 1px 3px rgba(150, 40, 0, 0.8);
    box-shadow: 0 0 18px rgba(255, 160, 40, 0.45), 0 6px 18px rgba(255, 100, 0, 0.35);
    cursor: pointer;
    transition: filter 0.15s, transform 0.08s;
  }
  .view-btn:hover { filter: brightness(1.08); }
  .view-btn:active { transform: scale(0.98); }
  .view-btn:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 3px; }

  /* safety net: a loaded-but-blank demo can't be detected, so a small pill briefly offers the new-tab link */
  .blank-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    appearance: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--orange-med);
    background: rgba(9, 13, 36, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s;
  }
  .blank-hint.show { opacity: 1; visibility: visible; transform: translateX(-50%); transition-delay: 0s; }
  .blank-hint:hover { background: rgba(255, 119, 0, 0.25); }
  .blank-hint:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .blank-hint { transition: none; } }

  /* floating vertical reviews tab pinned to the far right edge */
  .reviews-wrap {
    position: fixed;
    right: env(safe-area-inset-right, 0px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 55;
  }
  .reviews-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 7px;
    max-height: calc(100dvh - 24px);
    border-radius: 12px 0 0 12px;
    border: 1.5px solid rgba(255, 225, 190, 0.85);
    border-right: 0;
    background: linear-gradient(90deg, #ff8a1f 0%, #ff5a1a 55%, #e8321a 100%);
    box-shadow: -3px 4px 16px rgba(232, 50, 26, 0.4), 0 2px 8px rgba(0, 0, 0, 0.45);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: filter 0.15s, padding 0.15s;
  }
  .reviews-tab::after { content: ""; position: absolute; inset: -8px -4px -8px -10px; }
  .reviews-tab:hover, .reviews-wrap.open .reviews-tab { filter: brightness(1.1); padding-right: 10px; }

  /* review summary panel: slides out to the left of the tab on hover / tap / keyboard focus */
  .reviews-panel {
    position: absolute;
    right: 100%;
    top: 50%;
    padding-right: 8px;                 /* transparent bridge so the pointer can travel from tab to panel */
    width: min(272px, calc(100vw - 50px));
    transform: translateY(-50%) translateX(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .reviews-wrap.open .reviews-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
    transition-delay: 0s;
  }
  .rp-card {
    padding: 14px 16px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--orange-med);
    background: linear-gradient(180deg, #14204f, #0b1230);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 153, 51, 0.25);
    color: #e6ebff;
    text-align: center;
  }
  .rp-stars { display: flex; justify-content: center; gap: 3px; font-size: 1.5rem; line-height: 1; color: var(--orange-med); text-shadow: 0 0 10px rgba(255, 153, 51, 0.45); }
  /* gold shine: after the stars pop in, a bright band sweeps across them left to right (clipped to the star shapes) */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .rp-stars { text-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 153, 51, 0.45)); }
    .rp-stars span {
      background-image: linear-gradient(100deg, var(--orange-med) 0 38%, #fff7cc 50%, var(--orange-med) 62% 100%);
      background-size: 300% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
  }
  .reviews-wrap.open .rp-stars span {
    animation: rpStar 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) both, rpShine 0.9s ease-in-out;
    animation-delay: calc(var(--i) * 70ms + 80ms), calc(var(--i) * 110ms + 800ms);
  }
  @keyframes rpStar { from { opacity: 0.15; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
  @keyframes rpShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .rp-score { margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: #cfd6ff; }
  .rp-score b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
  .rp-score .rp-of { font-size: 0.5em; font-weight: 800; color: #cfd6ff; margin-left: 2px; }
  /* trust line under the score */
  .rp-verified { display: flex; align-items: center; gap: 5px; width: fit-content; margin: 8px auto 0; padding: 3px 10px 3px 7px; border-radius: 999px; border: 1px solid rgba(31, 217, 120, 0.5); background: rgba(31, 217, 120, 0.12); color: #d4f9e3; font-size: 0.7rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
  .rp-verified svg { width: 13px; height: 13px; flex: 0 0 auto; color: #1fd978; }
  @media (max-height: 460px) { .rp-verified { margin-top: 5px; } }
  .rp-count { margin-top: 6px; font-size: 0.76rem; line-height: 1.4; color: #cfd6ff; }
  .rp-count b { color: var(--orange-light); font-weight: 800; font-variant-numeric: tabular-nums; }
  /* star breakdown: label, flat bar, percentage (Amazon-style rows); bars grow when the panel opens */
  .rp-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; text-align: left; }
  .rp-row { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 8px; font-size: 0.74rem; line-height: 1; }
  .rp-lab { color: var(--cyan-light); font-weight: 700; white-space: nowrap; }
  .rp-lab i { font-style: normal; color: var(--orange-med); }
  .rp-track { height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); overflow: hidden; }
  .rp-fill {
    display: block; height: 100%; width: 0;
    background: linear-gradient(180deg, #ffb347, var(--orange-core));
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i) * 60ms + 120ms);
  }
  .reviews-wrap.open .rp-fill { width: var(--w); min-width: 3px; }
  .rp-pct { text-align: right; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
  /* demo-aware line: names the demo being viewed, tied to the brand-wide rating (not a per-demo claim) */
  .rp-demo { margin: 11px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.72rem; line-height: 1.4; color: #cfd6ff; }
  .rp-demo b { color: #fff; font-weight: 800; }
  .rp-demo .rp-star { color: var(--orange-med); }
  @media (prefers-reduced-motion: reduce) { .rp-fill { transition: none; } }
  .rp-btn {
    display: block;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 200, 120, 0.8);
    background: linear-gradient(180deg, var(--orange-core), var(--orange-deep));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: filter 0.15s;
  }
  .rp-btn:hover { filter: brightness(1.1); }
  .rp-btn:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  /* checkout button: gold, like the other offer buttons, so it reads as the main action */
  .rp-cta {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(255, 240, 190, 0.9);
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 45%, #ff6a00 100%);
    box-shadow: 0 0 14px rgba(255, 160, 40, 0.4), 0 4px 12px rgba(255, 100, 0, 0.3);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(150, 40, 0, 0.8);
    transition: filter 0.15s;
  }
  .rp-cta:hover { filter: brightness(1.08); }
  .rp-cta:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  /* ---- responsive panel: never taller than the screen; spacing tightens first, extras drop only when space runs out ---- */
  .rp-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  @media (max-height: 700px) {
    .rp-card { padding: 12px 14px; }
    .rp-stars { font-size: 1.3rem; }
    .rp-score { margin-top: 6px; }
    .rp-score b { font-size: 1.7rem; }
    .rp-verified { margin-top: 6px; }
    .rp-count { margin-top: 4px; }
    .rp-bars { margin-top: 9px; gap: 5px; }
    .rp-track { height: 10px; }
    .rp-demo { margin-top: 8px; padding-top: 7px; }
    .rp-btn { margin-top: 9px; padding: 8px 12px; }
    .rp-cta { margin-top: 6px; padding: 9px 12px; }
  }
  @media (max-height: 580px) { .rp-demo { display: none; } .rp-bars { margin-top: 8px; gap: 4px; } }
  @media (max-height: 500px) { .rp-bars { display: none; } }
  @media (max-width: 340px) {
    .rp-verified { font-size: 0.66rem; }
    .rp-row { grid-template-columns: 30px 1fr 36px; gap: 6px; }
    .rp-btn, .rp-cta { font-size: 0.8rem; }
  }
  /* landscape phones: two columns (rating on the left, breakdown and buttons on the right) so everything still fits */
  @media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
    .reviews-panel { width: min(480px, calc(100vw - 60px)); }
    .rp-card { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 16px; align-content: center; padding: 10px 14px; }
    .rp-stars, .rp-score, .rp-verified, .rp-count { grid-column: 1; }
    .rp-bars { display: grid; grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
    .rp-btn { grid-column: 2; grid-row: 3; margin-top: 8px; }
    .rp-cta { grid-column: 2; grid-row: 4; margin-top: 6px; }
  }
  @media (max-height: 460px) { .rp-card { padding: 10px 14px; } .rp-stars { font-size: 1.2rem; } .rp-score b { font-size: 1.6rem; } .rp-btn { margin-top: 8px; } .rp-cta { margin-top: 6px; padding: 8px 12px; } }
  @media (prefers-reduced-motion: reduce) {
    .reviews-panel { transition: none; }
    .reviews-wrap.open .rp-stars span { animation: none; }
  }
  .reviews-tab:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  .reviews-tab .rv-stars { color: #ffe27a; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(120, 30, 0, 0.7); }
  .reviews-tab .rv-score, .reviews-tab .rv-count { text-shadow: 0 1px 2px rgba(120, 30, 0, 0.7); }
  .reviews-tab .rv-count { font-weight: 700; }
  @media (max-width: 560px) { .reviews-tab { font-size: 0.72rem; padding: 10px 6px; } }
  /* short / landscape screens: keep just the stars and score so the tab never runs off screen */
  @media (max-height: 460px) { .reviews-tab .rv-count { display: none; } }
  @media (prefers-reduced-motion: reduce) { .reviews-tab { transition: none; } }

  /* exit-intent offer: a small card shown once per visit when the visitor looks like they are leaving */
  .exit-wrap {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.22s;
  }
  .exit-wrap.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .exit-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 20, 0.6); opacity: 0; transition: opacity 0.22s ease; }
  .exit-wrap.open .exit-backdrop { opacity: 1; }
  .exit-card {
    position: relative;
    width: min(330px, 100%);
    padding: 22px 18px 12px;
    text-align: center;
    background: linear-gradient(180deg, #14204f, #0b1230);
    border: 1.5px solid var(--orange-med);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 153, 51, 0.25);
    color: #e6ebff;
    outline: none;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .exit-wrap.open .exit-card { opacity: 1; transform: none; }
  .exit-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #cfd6ff;
    font: 700 20px/1 system-ui, sans-serif;
    cursor: pointer;
  }
  .exit-x::after { content: ""; position: absolute; inset: -6px; }
  .exit-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  .exit-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-light); }
  .exit-title { margin-top: 6px; font-size: 1.2rem; font-weight: 900; line-height: 1.25; color: #fff; }
  .exit-sub { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.4; color: #cfd6ff; }
  .exit-sub b { color: var(--orange-light); font-weight: 800; }
  .exit-go {
    display: block;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    border: 2px solid rgba(255, 240, 190, 0.9);
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 45%, #ff6a00 100%);
    box-shadow: 0 0 16px rgba(255, 160, 40, 0.4), 0 6px 16px rgba(255, 100, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(150, 40, 0, 0.8);
    transition: filter 0.15s;
  }
  .exit-go:hover { filter: brightness(1.08); }
  .exit-no { margin-top: 4px; padding: 10px 14px; border: 0; background: none; color: #aeb9ff; font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
  .exit-no:hover { color: #fff; }
  .exit-x:focus-visible, .exit-go:focus-visible, .exit-no:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) {
    .exit-wrap, .exit-backdrop, .exit-card { transition: none; }
  }

  /* responsible-use notice: shown when the visitor opens the "5 Spy Apps" tab (once per visit).
     Long text on desktop and tablet, short text on phones. */
  .disc-wrap {
    position: fixed;
    inset: 0;
    z-index: 97;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.22s;
  }
  .disc-wrap.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .disc-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 20, 0.72); opacity: 0; transition: opacity 0.22s ease; }
  .disc-wrap.open .disc-backdrop { opacity: 1; }
  .disc-card {
    position: relative;
    width: min(480px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 22px 20px;
    text-align: left;
    background: linear-gradient(180deg, #14204f, #0b1230);
    border: 1.5px solid var(--orange-med);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 153, 51, 0.25);
    color: #e6ebff;
    outline: none;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .disc-wrap.open .disc-card { opacity: 1; transform: none; }
  .disc-x {
    position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: #cfd6ff;
    font: 700 20px/1 system-ui, sans-serif; cursor: pointer;
  }
  .disc-x::after { content: ""; position: absolute; inset: -6px; }
  .disc-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  .disc-kicker { padding-right: 30px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-light); }
  .disc-title { margin-top: 6px; padding-right: 30px; font-size: 1.3rem; font-weight: 900; line-height: 1.25; color: #fff; }
  .disc-text p { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.5; color: #cfd6ff; }
  .disc-text b { color: #fff; font-weight: 800; }
  .disc-text .disc-sell b { color: var(--orange-light); }
  .disc-short { display: none; }
  /* reading timer: the buttons stay locked until the countdown is over (and the whole notice has been scrolled through) */
  .disc-eula { margin: 14px 0 0; font-size: 0.82rem; color: #aab6e0; }
  .disc-eula a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
  .disc-eula a:hover { color: var(--orange-yellow); }
  .disc-eula a:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; border-radius: 3px; }
  .disc-timer { margin-top: 12px; }
  .disc-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
  .disc-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc233, #ff6a00); transition: width 0.25s linear; }
  .disc-timer-text { margin-top: 8px; font-size: 0.82rem; font-weight: 700; line-height: 1.35; text-align: center; color: #ffd9a8; }
  .disc-timer.done .disc-bar i { background: #1fd978; }
  .disc-timer.done .disc-timer-text { color: #6df0a6; }
  .disc-actions.locked .disc-ok, .disc-actions.locked .disc-buy { opacity: 0.45; filter: grayscale(0.55); box-shadow: none; pointer-events: none; cursor: not-allowed; }
  .disc-actions.locked .disc-ok::before, .disc-actions.locked .disc-buy::before { content: "🔒 "; }
  .disc-actions { display: flex; gap: 10px; margin-top: 12px; }
  .disc-ok, .disc-buy {
    flex: 1 1 0; min-width: 0; padding: 13px 12px; border-radius: 12px; font: inherit; font-size: 0.95rem; font-weight: 900;
    text-align: center; text-decoration: none; cursor: pointer; transition: filter 0.15s;
  }
  .disc-ok { border: 2px solid rgba(174, 185, 255, 0.55); background: linear-gradient(180deg, #4a68ff, #2f46d6); color: #fff; box-shadow: 0 6px 16px rgba(51, 85, 253, 0.35); }
  .disc-buy {
    border: 2px solid rgba(255, 240, 190, 0.9);
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 45%, #ff6a00 100%);
    box-shadow: 0 0 16px rgba(255, 160, 40, 0.4), 0 6px 16px rgba(255, 100, 0, 0.3);
    color: #fff; text-shadow: 0 1px 3px rgba(150, 40, 0, 0.8);
  }
  .disc-ok:hover, .disc-buy:hover { filter: brightness(1.1); }
  .disc-x:focus-visible, .disc-ok:focus-visible, .disc-buy:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  @media (max-width: 600px) {
    .disc-long, .disc-buy { display: none; }
    .disc-short { display: block; }
    .disc-card { width: min(340px, 100%); padding: 22px 18px 16px; text-align: center; }
    .disc-kicker, .disc-title { padding-left: 30px; }
    .disc-title { font-size: 1.2rem; }
    .disc-text p { font-size: 0.86rem; }
    .disc-timer { margin-top: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .disc-wrap, .disc-backdrop, .disc-card { transition: none; }
  }

  /* Discovery Trail: a green tick on every tool the visitor has tried, and a small card that suggests the next one */
  .trail-tick { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; background: #1fd978; color: #04210f; font: 900 0.62rem/1 system-ui, sans-serif; box-shadow: 0 0 8px rgba(31, 217, 120, 0.55); animation: trailPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.5); }
  @keyframes trailPop { from { transform: scale(0); } to { transform: scale(1); } }
  .trail {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: 14px;
    z-index: 58;
    width: min(340px, calc(100vw - 64px));
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--orange-med);
    background: linear-gradient(180deg, #14204f, #0b1230);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 153, 51, 0.25);
    color: #e6ebff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .trail.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .trail-top { display: flex; align-items: center; gap: 8px; }
  .trail-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--orange-light); }
  .trail-count { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: #cfd6ff; font-variant-numeric: tabular-nums; }
  .trail-x { position: relative; flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #cfd6ff; font: 700 17px/1 system-ui, sans-serif; cursor: pointer; }
  .trail-x::after { content: ""; position: absolute; inset: -8px; }
  .trail-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  .trail-dots { display: flex; gap: 6px; margin: 9px 0 10px; }
  .trail-dot { width: 18px; height: 18px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.22); color: #04210f; font: 900 0.6rem/1 system-ui, sans-serif; }
  .trail-dot.done { background: #1fd978; border-color: #1fd978; }
  .trail-dot.next { border-color: var(--orange-med); animation: trailPulse 1.6s ease-out infinite; }
  @keyframes trailPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 153, 51, 0); } }
  .trail-lead { margin: 0; font-size: 0.8rem; line-height: 1.45; }
  .trail-lead b { color: #fff; }
  .trail-next { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
  .trail-ico { font-size: 1.3rem; line-height: 1; }
  .trail-name { display: block; font-size: 0.9rem; font-weight: 800; color: #fff; }
  .trail-desc { display: block; margin-top: 2px; font-size: 0.74rem; line-height: 1.35; color: #cfd6ff; }
  .trail-go, .trail-cta {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(255, 240, 190, 0.9);
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 45%, #ff6a00 100%);
    box-shadow: 0 0 14px rgba(255, 160, 40, 0.4), 0 4px 12px rgba(255, 100, 0, 0.3);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(150, 40, 0, 0.8);
    cursor: pointer;
    transition: filter 0.15s;
  }
  .trail-go:hover, .trail-cta:hover { filter: brightness(1.08); }
  .trail-later { display: block; margin: 4px auto 0; padding: 8px 12px; border: 0; background: none; color: #aeb9ff; font: inherit; font-size: 0.76rem; text-decoration: underline; cursor: pointer; }
  .trail-later:hover { color: #fff; }
  .trail-go:focus-visible, .trail-cta:focus-visible, .trail-later:focus-visible, .trail-x:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  .trail-done { display: none; }
  .trail.is-done .trail-next-wrap { display: none; }
  .trail.is-done .trail-done { display: block; }
  @media (max-height: 560px) { .trail-desc { display: none; } .trail-dots { margin: 6px 0 8px; } .trail-next { padding: 6px 8px; } }
  @media (max-height: 420px) { .trail-next, .trail-lead { display: none; } .trail-done .trail-lead { display: block; } }
  @media (prefers-reduced-motion: reduce) { .trail { transition: none; } .trail-tick, .trail-dot.next { animation: none; } }

  /* "Investigation Tools" tab: three tools shown on one scrolling page, built from their own embed codes.
     Row 1: one tool at full width. Row 2: two tools 50 / 50 on desktop; everything is full width on tablet and phone. */
  .panel-view { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden; padding: 12px; background: var(--bg-iframe-wrap); overscroll-behavior: contain; scrollbar-width: thin; }
  .pv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; max-width: 1500px; margin: 0 auto; }
  .pv-card { position: relative; min-width: 0; }
  @media (min-width: 1025px) {
    .pv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pv-full { grid-column: 1 / -1; }
  }
  @media (max-width: 560px) { .panel-view { padding: 8px; } .pv-grid { gap: 10px; } }
  /* these frames sit in normal page flow (the stacked demo frames use absolute positioning), so reset that for them */
  .frame-body .panel-view iframe { position: static; inset: auto; visibility: visible; pointer-events: auto; }
  /* tool 1: full width (its embed code: 720px tall on desktop and tablet, 1400px on phones) */
  .frame-body .panel-view .wintegospy-wrapper { width: 100%; height: 720px; }
  @media (max-width: 480px) { .frame-body .panel-view .wintegospy-wrapper { height: 1400px; } }
  .frame-body .panel-view .wintegospy-wrapper iframe { width: 100%; height: 100%; border: none; border-radius: 12px; display: block; }
  /* tool 2: 860px tall, rounded; tool 3: 900px tall (its embed code styles it); both fill their column */
  .frame-body .panel-view .pv-wa1 iframe { display: block; width: 100%; max-width: 100%; height: 860px; }
  .frame-body .panel-view .pv-em iframe { max-width: 100%; }
  /* spinner shown over a tool until it has loaded */
  .pv-load { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: var(--bg-iframe-wrap); border-radius: 12px; pointer-events: none; }
  .pv-wa1 .pv-load { border-radius: 54px; }
  .pv-load.done { display: none; }
  /* a tab with no single address has no "Open in New Tab" */
  body.is-panel #head-open { display: none; }

  /* toast */
  .toast {
    position: fixed;
    left: 50%;
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 18, 6, 0.96);
    border: 1px solid rgba(255, 150, 30, 0.45);
    color: var(--peach);
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 50;
    max-width: 90vw;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ---------- FLOATING CTA ---------- */
  .cta-wrap {
    position: fixed;
    left: 50%;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(140%);
    z-index: 60;
    max-width: calc(100vw - 20px);
    opacity: 0;
    pointer-events: none;
  }
  .cta-wrap.show {
    pointer-events: auto;
    animation: ctaEnter 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards;
  }
  .cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffc233 0%, #ff9a0f 42%, #ff6a00 100%);
    border: 2px solid rgba(255, 248, 200, 0.98);
    box-shadow:
      0 0 14px rgba(255, 190, 60, 0.55),
      0 0 30px rgba(255, 130, 0, 0.4),
      0 8px 22px rgba(255, 100, 0, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.5),
      inset 0 -6px 12px rgba(255, 70, 0, 0.3);
    color: var(--white);
    animation: ctaBreathe 2.6s ease-in-out infinite;
    will-change: transform, box-shadow;
  }
  .cta > * { position: relative; z-index: 1; }
  /* sweeping light shine */
  .cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: ctaShine 4s ease-in-out infinite;
  }
  .cta:hover { filter: brightness(1.08); }
  .cta:active { animation: none; transform: scale(0.98); }
  .cta:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 3px; }
  .cta .cta-ico { font-size: 1.6rem; line-height: 1; flex: 0 0 auto; }
  .cta .cta-text { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1 1 auto; line-height: 1.2; min-width: 0; }
  .cta .cta-main { font-weight: 900; font-size: 0.9rem; letter-spacing: 0.3px; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(150, 40, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.55); }
  .cta .cta-sub { font-weight: 700; font-size: 0.68rem; white-space: nowrap; }
  .cta .cta-sub s { color: #ffe0c2; opacity: 0.85; font-weight: 600; }
  .cta .cta-free { color: #fffbd6; font-weight: 800; text-shadow: 0 1px 3px rgba(150, 40, 0, 0.9), 0 0 8px rgba(255, 255, 200, 0.7); }
  .cta .cta-timer { font-weight: 600; font-size: 0.6rem; color: #ffe6cc; white-space: nowrap; margin-top: 1px; }
  .cta .cta-timer b { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }
  .cta .cta-arrow { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 1.15rem; font-weight: 900; color: #fff; opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(150, 40, 0, 0.8); animation: ctaArrow 1.8s ease-in-out infinite; }

  /* glowing halo that pulses behind the button */
  .cta-wrap::before {
    content: "";
    position: absolute;
    inset: -10px -14px;
    border-radius: 26px;
    background: radial-gradient(ellipse at center, rgba(255, 190, 50, 0.55), rgba(255, 110, 0, 0.28) 55%, transparent 75%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
    animation: ctaHalo 2.6s ease-in-out infinite;
  }

  /* corner "FREE" badge */
  .cta-badge {
    position: absolute;
    top: -9px;
    right: -4px;
    z-index: 3;
    background: linear-gradient(180deg, #1fd978, #10b863);
    color: #04210f;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(31, 217, 120, 0.6);
    transform: rotate(4deg);
    white-space: nowrap;
    animation: ctaBadge 1.5s ease-in-out infinite;
  }

  /* small × to dismiss the CTA; it returns after the visitor opens a different demo */
  .cta-close {
    position: absolute;
    top: -9px;
    left: -7px;
    z-index: 4;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(20, 10, 0, 0.88);
    color: #fff;
    font: 700 15px/1 system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  .cta-close::after { content: ""; position: absolute; inset: -10px; }
  .cta-close:hover { background: #000; }
  .cta-close:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  .cta-wrap.show.dismissed { pointer-events: none; animation: ctaExit 0.35s ease-in forwards; }
  @keyframes ctaExit {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
    100% { opacity: 0; transform: translateX(-50%) translateY(140%); visibility: hidden; }
  }

  @keyframes ctaEnter {
    0% { opacity: 0; transform: translateX(-50%) translateY(140%); }
    70% { opacity: 1; transform: translateX(-50%) translateY(-7px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @keyframes ctaBreathe {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1);
      box-shadow: 0 0 12px rgba(255, 190, 60, 0.5), 0 0 26px rgba(255, 130, 0, 0.35), 0 8px 20px rgba(255, 100, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 12px rgba(255, 70, 0, 0.3);
    }
    50% {
      transform: scale(1.03);
      filter: brightness(1.06);
      box-shadow: 0 0 20px rgba(255, 200, 70, 0.7), 0 0 42px rgba(255, 140, 0, 0.5), 0 10px 28px rgba(255, 100, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 12px rgba(255, 70, 0, 0.3);
    }
  }
  @keyframes ctaHalo {
    0%, 100% { opacity: 0.35; transform: scale(0.98); }
    50% { opacity: 0.7; transform: scale(1.06); }
  }
  @keyframes ctaShine {
    0% { left: -75%; }
    50%, 100% { left: 160%; }
  }
  @keyframes ctaArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }
  @keyframes ctaBadge {
    0%, 100% { transform: rotate(4deg) scale(1); }
    50% { transform: rotate(4deg) scale(1.1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .cta, .cta .cta-arrow, .cta-badge, .cta-wrap::before { animation: none; }
    .cta::before { display: none; }
    .cta-wrap.show { animation: none; opacity: 1; transform: translateX(-50%) translateY(0); }
    .cta-wrap.show.dismissed { animation: none; opacity: 0; visibility: hidden; }
  }

  @media (max-width: 560px) {
    .cta { padding: 6px 12px; gap: 8px; border-radius: 11px; }
    .cta .cta-main { font-size: 0.84rem; }
    .cta .cta-sub { font-size: 0.64rem; }
    .cta .cta-timer { font-size: 0.58rem; }
  }

  @media (max-width: 560px) {
    .brand .name { font-size: 0.92rem; }
    /* keep the top nav on one scrollable row instead of stacking tall */
    .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; margin-inline: -16px; padding-inline: 16px; }
    .nav::-webkit-scrollbar { display: none; }
    .nav-btn { padding: 1.2px 12px; font-size: 0.82rem; flex: 0 0 auto; }
    .stage { padding: 8px; }
    .sub-btn { padding: 1.2px 10px; }
    .sub-btn .tag { display: none; }
    /* bigger invisible tap area while keeping the buttons visually thin */
    .nav-btn, .sub-btn { position: relative; }
    .nav-btn::after, .sub-btn::after { content: ""; position: absolute; inset: -10px 0; }
  }

  /* touch tablets: comfortable tap targets */
  @media (min-width: 561px) and (max-width: 900px) and (pointer: coarse) {
    .nav-btn, .sub-btn { position: relative; }
    .nav-btn::after, .sub-btn::after { content: ""; position: absolute; inset: -8px 0; }
  }

  /* short / landscape viewports: compact CTA so the demo keeps room */
  @media (max-height: 460px) {
    .cta-wrap { bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
    .cta { padding: 4px 12px; }
    .cta .cta-main { font-size: 0.82rem; }
    .cta .cta-sub, .cta .cta-timer { font-size: 0.58rem; }
  }

  /* very large screens: cap and centre the content */
  @media (min-width: 1400px) {
    .topbar-inner, .substrip-inner, .stage { max-width: 1360px; margin-inline: auto; width: 100%; }
  }

  /* Sub-tab strip: no scrollbar; faded edges hint that more tabs exist off-screen */
  .substrip { scrollbar-width: none; -ms-overflow-style: none; }
  .substrip::-webkit-scrollbar { display: none; }
  .substrip.more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0,0,0,0.15));
            mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0,0,0,0.15));
  }
  .substrip.more-left {
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px);
            mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px);
  }
  .substrip.more-left.more-right {
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px, #000 calc(100% - 48px), rgba(0,0,0,0.15));
            mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px, #000 calc(100% - 48px), rgba(0,0,0,0.15));
  }

  /* Main nav: faded edges hint that more tabs exist off-screen (only appear when the row overflows) */
  .nav.more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0,0,0,0.15));
            mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0,0,0,0.15));
  }
  .nav.more-left {
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px);
            mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px);
  }
  .nav.more-left.more-right {
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px, #000 calc(100% - 48px), rgba(0,0,0,0.15));
            mask-image: linear-gradient(to right, rgba(0,0,0,0.15), #000 48px, #000 calc(100% - 48px), rgba(0,0,0,0.15));
  }

  /* First-visit guided tour: tooltip pointing at each main tab */
  .tour-tip {
    position: fixed;
    z-index: 90;
    width: min(300px, calc(100vw - 16px));
    padding: 12px 14px 10px;
    background: linear-gradient(180deg, #14204f, #0b1230);
    border: 1.5px solid var(--orange-med);
    border-radius: 12px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 153, 51, 0.25);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
  }
  .tour-tip.show { opacity: 1; transform: none; pointer-events: auto; }
  .tour-tip::before {
    content: "";
    position: absolute;
    top: -7px;
    left: var(--arrow-left, 24px);
    width: 12px;
    height: 12px;
    background: #14204f;
    border-left: 1.5px solid var(--orange-med);
    border-top: 1.5px solid var(--orange-med);
    transform: translateX(-50%) rotate(45deg);
  }
  .tour-title { font-weight: 800; color: var(--orange-light); margin-bottom: 3px; }
  .tour-text { color: #e6ebff; }
  .tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
  .tour-count { font-size: 0.7rem; color: var(--cyan-muted); font-weight: 700; letter-spacing: 0.4px; }
  .tour-actions { display: flex; align-items: center; gap: 8px; }
  .tour-skip, .tour-next {
    appearance: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
  }
  .tour-skip { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: #cfd6ff; }
  .tour-next { background: linear-gradient(180deg, var(--orange-core), var(--orange-deep)); border: 1px solid rgba(255, 200, 120, 0.8); color: #fff; }
  .tour-skip:focus-visible, .tour-next:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  .nav-btn.tour-target, .sub-btn.tour-target { box-shadow: inset 0 0 0 2px #ffe08a, 0 0 14px rgba(255, 204, 68, 0.55); filter: brightness(1.15); }
  @media (prefers-reduced-motion: reduce) { .tour-tip { transition: none; } }

  /* "Welcome back" bar: offers to resume the last demo the visitor viewed */
  .welcome {
    flex: 0 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(180deg, rgba(20, 32, 79, 0.97), rgba(11, 18, 48, 0.97));
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
  }
  .welcome.open {
    max-height: 52px;
    opacity: 1;
    visibility: visible;
    border-bottom: 1px solid rgba(255, 153, 51, 0.35);
    transition-delay: 0s;
  }
  .welcome-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .wb-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: #e6ebff;
  }
  .wb-text b { color: var(--orange-light); }
  .wb-go {
    flex: 0 0 auto;
    appearance: none;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 200, 120, 0.8);
    background: linear-gradient(180deg, var(--orange-core), var(--orange-deep));
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
  }
  .wb-x {
    flex: 0 0 auto;
    position: relative;
    appearance: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #cfd6ff;
    font: 700 16px/1 system-ui, sans-serif;
    cursor: pointer;
  }
  .wb-x::after, .wb-go::after { content: ""; position: absolute; inset: -6px; }
  .wb-go { position: relative; }
  .wb-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  .wb-go:focus-visible, .wb-x:focus-visible { outline: 2px solid var(--orange-yellow); outline-offset: 2px; }
  /* narrow phones: drop the greeting words so the demo name is never cut off */
  @media (max-width: 420px) { .wb-hi { display: none; } }
  @media (prefers-reduced-motion: reduce) { .welcome { transition: none; } }
  @media (min-width: 1400px) { .welcome-inner { max-width: 1360px; margin-inline: auto; } }

  /* CTA: equal side padding so the centred text stays clear of the right-pinned arrow */
  .cta { padding-inline: 32px; }

  /* Gold reviews strip above the top bar (matches the main site) */
  .rv-strip { flex: 0 0 auto; display: flex; justify-content: center; padding: 5px 12px; padding-top: max(5px, env(safe-area-inset-top, 0px)); background: linear-gradient(90deg, #ffd95a, #f5bd2b 55%, #e9a515); }
  .rv-strip a { display: inline-flex; align-items: center; gap: 6px; color: #2a1a00; font-weight: 700; font-size: 0.84rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
  .rv-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .rv-strip .rvs-stars { color: #a85a00; letter-spacing: 1px; }
  .rv-strip + .topbar { padding-top: 0; }
  @media (max-width: 560px) { .rv-strip a { font-size: 0.78rem; } }
