/* Contractor Systems preview frame + guided tour (ported from custom-cabinets-ii-design ThemeBar/Tour). */
#cs-tour { --o: #ff6417; --c: #1c1c1c; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
  .cs-dot {
    position: fixed; z-index: 70; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    background: #ff6417; color: #1c1c1c; font: 700 12px/26px Inter, sans-serif; text-align: center;
    border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; padding: 0;
    transition: transform .2s ease, opacity .2s ease;
  }
  .cs-dot::before {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #ff6417;
    animation: cs-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
  }
  .cs-dot:hover, .cs-dot.is-active { transform: scale(1.15); }
  .cs-dot[hidden] { display: none; }
  @keyframes cs-ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

  .cs-spot {
    position: fixed; z-index: 80; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 3px #ff6417, 0 0 0 9999px rgba(15, 15, 15, .55);
    transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease;
  }
  .cs-card {
    position: fixed; z-index: 90; width: min(360px, calc(100vw - 24px)); background: #1c1c1c; color: #fff;
    border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.55);
    border-top: 3px solid #ff6417; animation: cs-in .28s ease both;
    transition: top .35s ease, left .35s ease;
  }
  .cs-card[hidden], .cs-spot[hidden], .cs-link[hidden] { display: none; }
  .cs-card.is-wide { width: min(430px, calc(100vw - 24px)); }
  .cs-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #ff6417; text-decoration: none; }
  .cs-link:hover { text-decoration: underline; }

  /* Project animation: the app marks a job done and snaps photos, the photos fly over,
     and a project page builds itself with a before/after slider. 6s loop. */
  .cs-pa { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 150px; margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
  .pa-phone { position: relative; flex: none; width: 78px; height: 126px; border-radius: 14px; background: #0f0f0f; border: 2px solid #3a3a3a; padding: 12px 6px 6px; overflow: hidden; }
  .pa-notch { position: absolute; top: 4px; left: 50%; width: 22px; height: 4px; margin-left: -11px; border-radius: 3px; background: #3a3a3a; }
  .pa-head { font-size: 6.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #ff6417; }
  .pa-job { margin-top: 5px; padding: 4px 5px; border-radius: 5px; background: #222; font-size: 7.5px; font-weight: 600; color: #fff; line-height: 1.3; }
  .pa-done { display: block; color: #3ddc84; font-size: 7px; animation: pa-done 6s infinite; }
  .pa-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
  .pa-shot { position: relative; height: 34px; border-radius: 4px; font-size: 6px; font-weight: 700; color: #fff; display: flex; align-items: flex-end; padding: 2px 3px; text-transform: uppercase; letter-spacing: .04em; }
  .pa-b { background: repeating-linear-gradient(90deg, #8f8f8f 0 6px, #7a7a7a 6px 12px); animation: pa-shot1 6s infinite; }
  .pa-a { background: linear-gradient(135deg, #c98a4b, #8a5428); animation: pa-shot2 6s infinite; }
  .pa-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: pa-flash 6s infinite; }
  .pa-path { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 5px, transparent 5px 10px); }
  .pa-fly { position: absolute; top: -9px; left: 0; width: 22px; height: 18px; border-radius: 3px; opacity: 0; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
  .pa-fly1 { background: repeating-linear-gradient(90deg, #8f8f8f 0 4px, #7a7a7a 4px 8px); animation: pa-fly 6s infinite; }
  .pa-fly2 { background: linear-gradient(135deg, #c98a4b, #8a5428); animation: pa-fly 6s infinite .25s; }
  .pa-site { position: relative; flex: none; width: 168px; height: 126px; border-radius: 8px; background: #f6f4ef; overflow: hidden; }
  .pa-bar { display: flex; gap: 3px; padding: 5px 6px; background: #e6e2da; }
  .pa-bar span { width: 5px; height: 5px; border-radius: 50%; background: #c9c3b8; }
  .pa-body { padding: 6px 8px; }
  .pa-title { height: 7px; width: 0; border-radius: 3px; background: #16201a; animation: pa-title 6s infinite; }
  .pa-compare { position: relative; height: 56px; margin-top: 6px; border-radius: 4px; overflow: hidden; opacity: 0; animation: pa-compare 6s infinite; background: linear-gradient(135deg, #c98a4b, #8a5428); }
  .pa-cb { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #8f8f8f 0 6px, #7a7a7a 6px 12px); clip-path: inset(0 50% 0 0); animation: pa-clip 6s infinite; }
  .pa-tag { position: absolute; top: 3px; padding: 1px 4px; border-radius: 6px; background: rgba(0,0,0,.55); font-size: 5.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
  .pa-tag-b { left: 3px; } .pa-tag-a { right: 3px; }
  .pa-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; animation: pa-handle 6s infinite; }
  .pa-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
  .pa-lines { margin-top: 6px; display: grid; gap: 3px; opacity: 0; animation: pa-compare 6s infinite; }
  .pa-lines i { display: block; height: 4px; border-radius: 2px; background: #d6d1c7; }
  .pa-lines i:last-child { width: 70%; }
  .pa-pub { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 8px; background: #ff6417; color: #1c1c1c; font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transform: scale(0); animation: pa-pub 6s infinite; }
  .pa-cap { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: space-between; padding: 0 14px; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
  @keyframes pa-done { 0%, 6% { opacity: 0; transform: translateY(3px); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes pa-flash { 0%, 12% { opacity: 0; } 13% { opacity: .9; } 16% { opacity: 0; } 22% { opacity: 0; } 23% { opacity: .9; } 26%, 100% { opacity: 0; } }
  @keyframes pa-shot1 { 0%, 13% { opacity: 0; transform: scale(.6); } 17%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes pa-shot2 { 0%, 23% { opacity: 0; transform: scale(.6); } 27%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes pa-fly { 0%, 30% { left: 0; opacity: 0; transform: rotate(-8deg); } 33% { opacity: 1; } 48% { left: calc(100% - 22px); opacity: 1; transform: rotate(6deg); } 52%, 100% { left: calc(100% - 22px); opacity: 0; } }
  @keyframes pa-title { 0%, 48% { width: 0; } 56%, 94% { width: 72%; } 100% { width: 0; } }
  @keyframes pa-compare { 0%, 52% { opacity: 0; transform: translateY(4px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes pa-clip { 0%, 62% { clip-path: inset(0 50% 0 0); } 72% { clip-path: inset(0 20% 0 0); } 82% { clip-path: inset(0 75% 0 0); } 90%, 100% { clip-path: inset(0 50% 0 0); } }
  @keyframes pa-handle { 0%, 62% { left: 50%; } 72% { left: 80%; } 82% { left: 25%; } 90%, 100% { left: 50%; } }
  @keyframes pa-pub { 0%, 66% { transform: scale(0); } 71% { transform: scale(1.25); } 75%, 94% { transform: scale(1); } 100% { transform: scale(0); } }
  @media (prefers-reduced-motion: reduce) { .cs-pa * { animation: none !important; opacity: 1 !important; } .pa-title { width: 72%; } .pa-pub { transform: none; } .pa-fly { display: none; } }
  @keyframes cs-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  .cs-card-top { display: flex; align-items: center; justify-content: space-between; }
  .cs-step { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff6417; }
  .cs-x { background: none; border: 0; color: rgba(255,255,255,.6); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
  .cs-x:hover { color: #fff; }
  .cs-title { margin: 8px 0 6px; font: 700 18px/1.25 Inter, sans-serif; letter-spacing: -.01em; color: #fff; }
  .cs-body { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); }
  .cs-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
  .cs-by img { height: 18px; width: auto; opacity: .9; display: block; }
  .cs-btns { display: flex; gap: 6px; }
  .cs-btns button { border-radius: 6px; padding: 7px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
  .cs-back { background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25); }
  .cs-next { background: #ff6417; color: #1c1c1c; border: 1px solid #ff6417; }
  .cs-back[hidden], .cs-next[hidden] { display: none; }

  /* Little flow animation: source → moving dots → the app inbox. */
  .cs-anim:empty { display: none; }
  .cs-flow { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
  .cs-node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); width: 64px; text-align: center; }
  .cs-ico { position: relative; width: 38px; height: 38px; border-radius: 10px; background: #2b2b2b; display: grid; place-items: center; }
  .cs-ico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cs-app .cs-ico { background: #ff6417; }
  .cs-app .cs-ico svg { stroke: #1c1c1c; }
  .cs-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: #1c1c1c; font: 700 10px/16px Inter, sans-serif; animation: cs-pop 2.4s ease infinite; }
  @keyframes cs-pop { 0%, 55% { transform: scale(0); } 65% { transform: scale(1.25); } 75%, 100% { transform: scale(1); } }
  .cs-track { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.12); overflow: visible; }
  .cs-track i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #ff6417; animation: cs-move 2.4s linear infinite; }
  .cs-track i:nth-child(2) { animation-delay: .35s; }
  .cs-track i:nth-child(3) { animation-delay: .7s; }
  @keyframes cs-move { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 55% { left: calc(100% - 8px); opacity: 1; } 60%, 100% { left: calc(100% - 8px); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .cs-dot::before, .cs-track i, .cs-badge { animation: none; } .cs-badge { transform: none; } }

/* Preview bar + frame */
.csp-bar { position: relative; z-index: 50; border-bottom: 2px solid #ff6417; background: #1c1c1c; color: rgba(255,255,255,.75); font: 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; }
.csp-in { max-width: 72rem; margin: 0 auto; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.csp-l { display: flex; min-width: 0; align-items: center; gap: 12px; }
.csp-logo { flex: none; display: block; border-radius: 4px; opacity: .95; }
.csp-logo:hover { opacity: 1; } .csp-logo:focus-visible { outline: 2px solid #ff6417; outline-offset: 2px; }
.csp-logo img { display: block; height: 22px; width: auto; }
.csp-sep { width: 1px; height: 20px; background: rgba(255,255,255,.2); }
.csp-msg { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-pill { flex: none; border-radius: 4px; background: #ff6417; padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1c1c1c; }
.csp-txt { overflow: hidden; text-overflow: ellipsis; }
.csp-start { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ff6417; border-radius: 6px; padding: 6px 10px; background: transparent; color: #ff6417; font: 600 13px Inter, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.csp-start:hover { background: #ff6417; color: #1c1c1c; }
.csp-short { display: none; }
@media (max-width: 767px) { .csp-sep, .csp-txt { display: none; } }
@media (max-width: 639px) { .csp-long { display: none; } .csp-short { display: inline; } .csp-in { padding: 0 12px; } }
@media (min-width: 640px) { .csp-in { padding: 0 24px; } .csp-logo img { height: 25px; } }
.csp-frame { pointer-events: none; position: fixed; inset: 0; z-index: 60; border: 6px solid #1c1c1c; border-top: 0; }

.csp-r { display: flex; flex: none; align-items: center; gap: 12px; }
.csp-demo { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.csp-demo:hover { color: #ff6417; } .csp-demo:focus-visible { outline: 2px solid #ff6417; outline-offset: 2px; border-radius: 3px; }
@media (max-width: 639px) { .csp-r { gap: 10px; } .csp-demo { font-size: 12px; } }

/* Brand switcher (src/data/brands.ts) */
.csp-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.csp-brand-l { color: rgba(255,255,255,.6); }
.csp-brand select { max-width: 15rem; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: #2a2a2a; color: #fff; padding: 6px 8px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.csp-brand select:focus { border-color: #ff6417; outline: none; }
@media (max-width: 1023px) { .csp-demo { display: none; } }
@media (max-width: 639px) { .csp-brand-l { display: none; } .csp-pill { display: none; } .csp-brand select { max-width: 9rem; padding: 5px 6px; font-size: 12px; } }
