/* /roamerhost service showcase frame (2026-10-13): icon tabs, sliding panels, dark stage, Tailwind-preflight shim.
   Hand-written. The scene rules themselves are generated into rh-showcase-scenes.css by scripts/port_rh_showcase.py. */

/* ---- dark stage + gold accents that need more than a colour swap ---- */
html[data-theme=dark] .rhs .sa{background:radial-gradient(115% 95% at 72% 6%,#163452 0%,#0F263D 52%,#0B1D30 100%);box-shadow:inset 0 0 0 1px #1A3350}
html[data-theme=dark] .rhs .sa-chip-g,html[data-theme=dark] .rhs .sa-bub-me{box-shadow:0 .8em 1.6em -1em rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.08)}

/* ---- roamerhost.com runs Tailwind preflight; the scenes lean on it (border-style:solid, block svg, bare lists).
        :where() keeps it at zero specificity so every scene rule still wins. ---- */
:where(.rhs .sa) *,:where(.rhs .sa) ::before,:where(.rhs .sa) ::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}
:where(.rhs .sa) :is(h1,h2,h3,h4,h5,h6){font-size:inherit;font-weight:inherit;margin:0;color:inherit}
:where(.rhs .sa) :is(p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.rhs .sa) :is(ul,ol){list-style:none;padding:0}
:where(.rhs .sa) :is(img,svg,video,canvas){display:block;vertical-align:middle}
:where(.rhs .sa) :is(b,strong){font-weight:bolder}
:where(.rhs .sa) small{font-size:80%}
:where(.rhs .sa) em{font-style:normal}

/* ==== showcase frame: icon tabs + sliding panels (roamerhost .hs-*, recoloured with the site tokens) ==== */
.rhs{container:rhs/inline-size;--rhs-tile:#fff}
.rhp-hero .rhs{margin-top:22px}
.rhp-note{margin-top:22px;max-width:860px;padding-left:14px;border-left:3px solid var(--data);font-size:15px;line-height:1.9;color:var(--fg-2);text-wrap:pretty}
html[data-theme=dark] .rhs{--rhs-tile:#EEF3F8}
/* icons sized by their labels (11 equal columns clip "WP × Roamer AI"), spread across the row */
.rhs .hs-tabs{position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:4px;margin:0}
.rhs .hs-tab{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:58px;padding:6px 2px 16px;background:none;border:0;cursor:pointer;color:var(--fg-2);text-align:center;-webkit-tap-highlight-color:transparent}
.rhs .hs-ti{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--rhs-tile);border:1px solid var(--line);box-shadow:var(--card-shadow);transition:transform .3s cubic-bezier(.16,.84,.3,1),border-color .25s,box-shadow .3s}
.rhs .hs-ti img{width:36px;height:36px;object-fit:contain;border-radius:8px}
.rhs .hs-tn{font-size:12.5px;font-weight:600;line-height:1.4;white-space:nowrap;transition:color .25s}
.rhs .hs-tab::after{content:"";position:absolute;left:50%;bottom:4px;width:28px;height:3px;margin-left:-14px;border-radius:2px;background:var(--data);transform:scaleX(0);transition:transform .3s cubic-bezier(.16,.84,.3,1)}
.rhs .hs-tab:hover .hs-ti{transform:translateY(-3px);border-color:var(--data)}
.rhs .hs-tab:active .hs-ti{transform:translateY(-1px) scale(.93)}
.rhs .hs-tab:hover .hs-tn{color:var(--fg)}
.rhs .hs-tab[aria-selected="true"] .hs-ti{transform:translateY(-3px);border:2px solid var(--fg);box-shadow:0 0 0 5px var(--data-soft)}
.rhs .hs-tab[aria-selected="true"] .hs-tn{color:var(--fg);font-weight:800}
.rhs .hs-tab[aria-selected="true"]::after{transform:scaleX(1)}
.rhs .hs-tab:focus-visible{outline:none}
.rhs .hs-tab:focus-visible .hs-ti{outline:2px solid var(--data);outline-offset:4px}
.rhs .hs-tabs.is-js .hs-tab[aria-selected="true"] .hs-ti{border:1px solid transparent;box-shadow:var(--card-shadow)}
.rhs .hs-tabs.is-js .hs-tab::after{display:none}
.rhs .hs-ind-box,.rhs .hs-ind-line{position:absolute;left:0;top:0;pointer-events:none;z-index:2;will-change:transform}
.rhs .hs-ind-box{width:58px;height:58px;border-radius:16px;border:2px solid var(--fg);box-shadow:0 0 0 5px color-mix(in srgb,var(--data) 22%,transparent)}
.rhs .hs-ind-box::after{content:"";position:absolute;inset:-2px;border-radius:16px;border:2px solid var(--data);opacity:0}
.rhs .hs-ind-box.is-ping::after{animation:hsPing .75s cubic-bezier(.16,.84,.3,1)}
.rhs .hs-ind-line{width:28px;height:3px;border-radius:2px;background:var(--data)}
@keyframes hsPing{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.55)}}

.rhs .hs-stage{position:relative;margin-top:26px}
.rhs .hs-stage.is-morph{transition:height .55s cubic-bezier(.16,.84,.3,1)}
.rhs .hs-panel{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--card-shadow);overflow:hidden}
.rhs .hs-panel[hidden]{display:none}
.rhs .hs-img{position:relative;display:block;align-self:center;border-radius:14px;overflow:hidden;cursor:pointer}
.rhs .hs-body{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:6px 18px 6px 0}
.rhs .hs-title{display:flex;align-items:center;gap:14px}
.rhs .hs-tt{min-width:0}
.rhs .hs-logo{flex:none;width:52px;height:52px;border-radius:14px;background:var(--rhs-tile);padding:5px;object-fit:contain;border:1px solid var(--line-soft)}
.rhs .hs-title h3{font-size:24px;font-weight:800;line-height:1.3;color:var(--fg)}
.rhs .hs-title p{margin-top:3px;font-size:13px;line-height:1.5;color:var(--muted)}
.rhs .hs-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:99px;border:1px solid var(--accent-line);color:var(--accent);font-size:11px;font-weight:700;vertical-align:3px;white-space:nowrap}
.rhs .hs-desc{margin-top:18px;max-width:520px;font-size:15px;line-height:1.9;color:var(--fg-2)}
.rhs .hs-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.rhs .hs-tags li{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:6px;background:var(--panel-2);font-size:12.5px;color:var(--fg-2)}
.rhs .hs-tags li::before{content:"";width:9px;height:5px;border-left:2px solid var(--data);border-bottom:2px solid var(--data);transform:translateY(-2px) rotate(-45deg)}
.rhs .hs-fit{margin-top:20px;padding:2px 0 2px 14px;border-left:3px solid var(--data)}
.rhs .hs-fit-k{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--data)}
.rhs .hs-fit p{margin-top:4px;font-size:14px;font-weight:600;line-height:1.7;color:var(--fg)}
.rhs .hs-fit .hs-note{font-size:12.5px;font-weight:500;color:var(--muted)}
.rhs .hs-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.rhs .hs-ctas .action{gap:10px}
.rhs .hs-count{display:flex;align-items:center;gap:14px;margin-top:26px;font-size:14px;font-weight:700;color:var(--data);font-variant-numeric:tabular-nums}
.rhs .hs-count i{position:relative;width:120px;height:1px;background:var(--line)}
.rhs .hs-count i::after{content:"";position:absolute;left:0;top:-1px;height:3px;width:calc(var(--p) * 100%);background:var(--data);border-radius:2px}
.rhs .hs-count span{color:var(--muted)}
.rhs .hs-no{position:absolute;right:26px;bottom:-30px;font-size:180px;font-weight:900;line-height:1;letter-spacing:-.03em;color:transparent;-webkit-text-stroke:1.5px color-mix(in srgb,var(--data) 22%,transparent);pointer-events:none}

/* page turn: the old panel slides away, the new one slides in, a light sweeps across the scene, text rises in order */
.rhs .hs-panel.is-leave{position:absolute;left:0;right:0;top:0;z-index:2;pointer-events:none;animation:hsLeave .5s cubic-bezier(.55,0,.75,.3) both}
.rhs .hs-panel.is-show{animation:hsEnter .75s cubic-bezier(.16,.84,.3,1) .06s both}
.rhs .hs-panel.is-show .hs-img{animation:hsWipe .85s cubic-bezier(.77,0,.18,1) .12s both}
.rhs .hs-panel.is-show.is-back .hs-img{animation-name:hsWipeBack}
.rhs .hs-panel.is-show .hs-img::after{content:"";position:absolute;top:0;bottom:0;z-index:3;width:4px;background:linear-gradient(var(--data),var(--accent));box-shadow:0 0 18px 4px color-mix(in srgb,var(--data) 55%,transparent);animation:hsSweep .85s cubic-bezier(.77,0,.18,1) .12s both}
.rhs .hs-panel.is-show.is-back .hs-img::after{animation-name:hsSweepBack}
.rhs .hs-panel.is-show .hs-body > *{animation:hsUp .7s cubic-bezier(.16,.84,.3,1) .2s both}
.rhs .hs-panel.is-show .hs-body > :nth-child(2){animation-delay:.27s}
.rhs .hs-panel.is-show .hs-body > :nth-child(3){animation-delay:.34s}
.rhs .hs-panel.is-show .hs-body > :nth-child(4){animation-delay:.41s}
.rhs .hs-panel.is-show .hs-body > :nth-child(5){animation-delay:.48s}
.rhs .hs-panel.is-show .hs-body > :nth-child(6){animation-delay:.55s}
.rhs .hs-panel.is-show .hs-title .hs-logo{animation:hsLogo .8s cubic-bezier(.34,1.56,.64,1) .25s both}
.rhs .hs-panel.is-show .hs-no{animation:hsNo 1s cubic-bezier(.16,.84,.3,1) .15s both}
.rhs .hs-panel.is-show .hs-count i::after{animation:hsBar .9s cubic-bezier(.16,.84,.3,1) .45s both}
@keyframes hsLeave{to{opacity:0;transform:translateX(calc(var(--dir,1) * -56px)) rotate(calc(var(--dir,1) * -1.2deg)) scale(.95)}}
@keyframes hsEnter{from{opacity:0;transform:translateX(calc(var(--dir,1) * 48px)) scale(.97)}to{opacity:1;transform:none}}
@keyframes hsWipe{from{clip-path:inset(0 100% 0 0 round 14px)}to{clip-path:inset(0 0 0 0 round 14px)}}
@keyframes hsWipeBack{from{clip-path:inset(0 0 0 100% round 14px)}to{clip-path:inset(0 0 0 0 round 14px)}}
@keyframes hsSweep{0%{left:0;opacity:1}85%{opacity:1}100%{left:calc(100% - 4px);opacity:0}}
@keyframes hsSweepBack{0%{left:calc(100% - 4px);opacity:1}85%{opacity:1}100%{left:0;opacity:0}}
@keyframes hsUp{from{opacity:0;transform:translate(calc(var(--dir,1) * 22px),14px)}to{opacity:1;transform:none}}
@keyframes hsLogo{0%{transform:scale(.4) rotate(-14deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes hsNo{from{opacity:0;transform:translateX(calc(var(--dir,1) * 70px))}to{opacity:1;transform:none}}
@keyframes hsBar{from{width:calc(var(--p0,0) * 100%)}}

/* container queries: the IDE sidebar eats width, so key off the showcase's own width, not the viewport */
@container rhs (max-width:900px){
  .rhs .hs-tabs{justify-content:flex-start;gap:2px;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 4px 4px;scrollbar-width:none}
  .rhs .hs-tabs::-webkit-scrollbar{display:none}
  .rhs .hs-tab{flex:none;min-width:88px;padding-left:6px;padding-right:6px;scroll-snap-align:center}
}
@container rhs (max-width:820px){
  .rhs .hs-panel{grid-template-columns:1fr;gap:22px;padding:14px}
  .rhs .hs-body{padding:0 8px 10px}
  .rhs .hs-no{font-size:120px;right:12px;bottom:-20px}
}
@container rhs (max-width:520px){
  .rhs .hs-tab{min-width:78px;gap:8px}
  .rhs .hs-ti,.rhs .hs-ind-box{width:52px;height:52px;border-radius:14px}
  .rhs .hs-ind-box::after{border-radius:14px}
  .rhs .hs-ti img{width:32px;height:32px}
  .rhs .hs-tn{font-size:12px}
  .rhs .hs-stage{margin-top:16px}
  .rhs .hs-title h3{font-size:20px}
  .rhs .hs-logo{width:46px;height:46px}
  .rhs .hs-desc{font-size:14.5px}
  .rhs .hs-ctas{flex-direction:column}
  .rhs .hs-ctas .action{width:100%}
  .rhs .hs-no{display:none}
}
@media (prefers-reduced-motion:reduce){
  .rhs .hs-panel.is-show,.rhs .hs-panel.is-show .hs-img,.rhs .hs-panel.is-show .hs-img::after,.rhs .hs-panel.is-show .hs-body > *,.rhs .hs-panel.is-show .hs-title .hs-logo,.rhs .hs-panel.is-show .hs-no,.rhs .hs-panel.is-show .hs-count i::after,.rhs .hs-ind-box.is-ping::after{animation:none}
  .rhs .hs-panel.is-show .hs-img::after{display:none}
  .rhs .hs-stage.is-morph,.rhs .hs-tab,.rhs .hs-ti,.rhs .hs-tn,.rhs .hs-tab::after{transition:none}
}
