/* COSMO Vision para hotéis e resorts — movimento e 3D (08/11/2026), copiado do TRR.
   Estados só entram com JavaScript (.sm-js, .sm-3d, .sm-tour-on, .sm-switch-on, .sm-cover-on, .sm-tl-on);
   sem JavaScript, ou com movimento reduzido, a página continua completa e legível. */
@keyframes sm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes sm-slide { from { opacity: 0; transform: translateX(18px); } }
@keyframes sm-scan { to { top: 110%; } }
@keyframes sm-marquee { to { transform: translateX(-50%); } }
@keyframes sm-noise { to { transform: translateY(4px); } }
@keyframes sm-grow { from { transform: scaleY(0); } }
@keyframes sm-sweep { from { left: 76px; } to { left: calc(100% - 112px); } }
@keyframes sm-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes sm-progress { to { width: 100%; } }
@keyframes sm-ping { 0% { box-shadow: 0 0 0 0 rgba(197, 251, 5, .45); } 100% { box-shadow: 0 0 0 12px rgba(197, 251, 5, 0); } }
@keyframes sm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sm-grid { to { background-position: 0 56px; } }

.sm-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.sm-js [data-reveal].is-in { opacity: 1; transform: none; }
.sm-js .sm-hero-copy > * { animation: sm-rise .8s both; }
.sm-js .sm-hero-copy > :nth-child(2) { animation-delay: .1s; }
.sm-js .sm-hero-copy > :nth-child(3) { animation-delay: .2s; }
.sm-js .sm-hero-copy > :nth-child(4) { animation-delay: .3s; }
.sm-js .sm-hero-copy > :nth-child(5) { animation-delay: .4s; }

.sm-live { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(197, 251, 5, .12); color: var(--sm-lime); font: 600 10px/1.2 var(--sm-mono); letter-spacing: .08em; vertical-align: middle; }
.sm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sm-pulse 1.4s infinite; }
.sm-glow { background-image: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px), rgba(197, 251, 5, .10), transparent 70%); }
.sm-js .sm-tilt.is-in { transition: transform .25s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Hero 3D */
.sm-hero-stage { display: none; }
.sm-3d .sm-hero-stage { display: block; }
.sm-3d .sm-hero-shot, .sm-3d .sm-hero-bg { display: none; }
.sm-hero-stage canvas, .sm-tour-canvas canvas { display: block; width: 100%; height: 100%; }
.sm-hud { width: min(330px, 100%); padding: 14px 16px; border-radius: 16px; background: rgba(8, 10, 7, .8); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.sm-hud-head { margin: 0 0 10px; font: 500 11px/1.4 var(--sm-mono); color: #dde1d7; letter-spacing: .04em; }
.sm-hud ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sm-hud li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 181, 71, .35); }
.sm-hud li.is-lime { border-color: rgba(197, 251, 5, .3); }
.sm-hud li.is-red { border-color: rgba(255, 107, 107, .4); }
.sm-hud li.is-new { animation: sm-slide .5s both; }
.sm-hud li i { width: 8px; height: 8px; border-radius: 50%; background: var(--sm-amber); animation: sm-pulse 1.6s infinite; }
.sm-hud li.is-lime i { background: var(--sm-lime); }
.sm-hud li.is-red i { background: var(--sm-red); }
.sm-hud li b { font-size: 13px; font-weight: 600; color: #fff; }
.sm-hud li small { font: 500 10px var(--sm-mono); color: var(--sm-dim); }
.sm-hud-foot { margin: 10px 0 0; font: 500 10px var(--sm-mono); color: var(--sm-dim); }
@media (min-width: 1000px) {
  .sm-3d .sm-hero { min-height: min(820px, 92vh); display: flex; align-items: center; }
  .sm-3d .sm-hero-grid { position: static; width: 100%; }
  .sm-3d .sm-hero-stage { position: absolute; inset: 0; z-index: 0; }
  .sm-3d .sm-hero-shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .92) 32%, rgba(5, 5, 5, .35) 56%, rgba(5, 5, 5, 0) 78%), linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0) 22%); }
  .sm-3d .sm-hero-copy { position: relative; z-index: 2; flex: 0 1 560px; }
  .sm-hud { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1240px) / 2 + 40px)); bottom: 44px; }
}
@media (max-width: 999px) {
  .sm-3d .sm-hero-stage { position: relative; flex: 1 1 100%; height: 440px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(197, 251, 5, .25); }
  .sm-hud { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; width: auto; padding: 10px 12px; }
  .sm-hud li:nth-child(n+3), .sm-hud-foot { display: none; }
}

/* Labels over the 3D scenes */
.sm3d-labels { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sm3d-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; }
.sm3d-label.is-on { opacity: 1; }
.sm3d-label > div { transform: translate(-50%, -100%); display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(5, 5, 5, .84); border: 1px solid currentColor; font: 600 10px/1 var(--sm-mono); letter-spacing: .06em; white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.sm3d-label i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sm-pulse 1.2s infinite; }
.sm3d-label span { color: #fff; }
.sm3d-label.is-lime { color: var(--sm-lime); }
.sm3d-label.is-amber { color: var(--sm-amber); }
.sm3d-label.is-red { color: var(--sm-red); }

/* Capability ticker */
.sm-marquee { overflow: hidden; padding: 15px 0; background: #070906; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sm-marquee-track { display: flex; width: max-content; animation: sm-marquee 45s linear infinite; }
.sm-marquee:hover .sm-marquee-track { animation-play-state: paused; }
.sm-marquee span { display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; font: 500 12px/1 var(--sm-mono); letter-spacing: .12em; text-transform: uppercase; color: #c3c9bc; white-space: nowrap; }
.sm-marquee span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--sm-lime); transform: rotate(45deg); }

/* Scan line over every detection image */
.sm-detection-media { overflow: hidden; }
.sm-detection-media::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(197, 251, 5, .15), transparent); animation: sm-scan 4.5s linear infinite; pointer-events: none; }
.sm-detection:nth-child(2) .sm-detection-media::after, .sm-problem:nth-child(even) .sm-detection-media::after { animation-delay: -1.5s; }
.sm-detection:nth-child(3) .sm-detection-media::after { animation-delay: -3s; }

/* Step-by-step tour over the 3D mine: the stage stays pinned and each step shows one problem. */
.sm-tour-stage, .sm-tour-nav { display: none; }
.sm-tour-pin, .sm-tour-side { display: contents; }
.sm-tour-canvas { position: relative; height: 100%; border-radius: 24px; overflow: hidden; border: 1px solid rgba(197, 251, 5, .22); background: #050505; }
.sm-tour-hud { position: absolute; left: 16px; top: 16px; z-index: 2; margin: 0; padding: 9px 13px; border-radius: 12px; background: rgba(5, 5, 5, .82); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #fff; }
.sm-tour-hud span { margin-right: 6px; font: 500 12px var(--sm-mono); color: var(--sm-lime); }
.sm-tour-on .sm-tour { --step-h: 70vh; position: relative; display: block; height: calc(100vh + (var(--steps, 10) - 1) * var(--step-h)); margin-top: 24px; }
.sm-tour-on .sm-tour-pin { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 3vh 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.sm-tour-on .sm-tour-stage { display: block; height: 100%; max-height: 780px; }
.sm-tour-on .sm-tour-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sm-tour-on .sm-problems { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; }
.sm-tour-on .sm-problem { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.sm-tour-on .sm-problem.is-active { opacity: 1; visibility: visible; transform: none; border-color: rgba(197, 251, 5, .45); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); transition: opacity .35s ease .08s, transform .35s ease .08s, visibility 0s; }
.sm-tour-slot { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
html.sm-snap { scroll-snap-type: y proximity; }
html.sm-snap .sm-tour-slot { scroll-snap-align: start; scroll-snap-stop: always; }
.sm-tour-on .sm-tour-nav { display: flex; align-items: center; gap: 10px; }
.sm-tour-dots { display: flex; flex: 1; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sm-tour-dots li { flex: 1; }
.sm-tour-dots button { display: block; width: 100%; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.sm-tour-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); transition: background .3s ease; }
.sm-tour-dots button.is-done::before { background: rgba(197, 251, 5, .45); }
.sm-tour-dots button[aria-current="step"]::before { background: var(--sm-lime); }
.sm-tour-dots button:focus-visible { outline: 2px solid var(--sm-lime); outline-offset: 2px; border-radius: 6px; }
.sm-tour-arrow { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.sm-tour-arrow:hover:not(:disabled) { border-color: var(--sm-lime); }
.sm-tour-arrow:disabled { opacity: .3; cursor: default; }
.sm-tour-arrow:focus-visible { outline: 2px solid var(--sm-lime); outline-offset: 2px; }
.sm-tour-hint { margin: 0; font: 500 12px var(--sm-mono); letter-spacing: .04em; color: var(--sm-muted); }
@media (max-width: 899px) {
  .sm-tour-on .sm-tour { --step-h: 85svh; height: calc(100svh + (var(--steps, 10) - 1) * var(--step-h)); }
  .sm-tour-on .sm-tour-pin { height: 100svh; padding: 0 0 84px; grid-template-columns: 1fr; grid-template-rows: 38svh auto; align-items: start; align-content: start; gap: 12px; }
  .sm-tour-on .sm-tour-stage { margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); }
  .sm-tour-on .sm-tour-canvas { border-radius: 0 0 18px 18px; border-top: 0; }
  .sm-tour-on .sm-tour-side { gap: 10px; }
  .sm-tour-on .sm-problem .sm-detection-media img { aspect-ratio: auto; height: 19svh; }
  .sm-tour-on .sm-problem-body { padding: 12px 16px 14px; gap: 6px; }
  .sm-tour-on .sm-problem h3 { font-size: 17px; }
  .sm-tour-on .sm-problem p { font-size: 14px; }
  .sm-tour-on .sm-problem .sm-fix { padding-top: 8px; }
  .sm-tour-hint { display: none; }
}
@media (max-width: 899px) and (max-height: 740px) {
  .sm-tour-on .sm-problem .sm-detection-media { display: none; }
}

/* Comparison: live mosaic and alerts sliding in */
.sm-mosaic span { position: relative; overflow: hidden; }
.sm-mosaic span::before { content: ""; position: absolute; inset: -4px 0 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 4px); animation: sm-noise .5s steps(4) infinite; }
.sm-mosaic span::after { content: "● REC"; position: absolute; right: 6px; top: 6px; font: 500 8px var(--sm-mono); color: var(--sm-red); animation: sm-pulse 1.6s infinite; }
.sm-attention li { animation: sm-slide .55s both; }
.sm-attention li:nth-child(2) { animation-delay: .15s; }
.sm-attention li:nth-child(3) { animation-delay: .3s; }
.sm-attention li i { animation: sm-pulse 1.4s infinite; }
.sm-toggle button { transition: background-color .3s ease, color .3s ease; }

/* Simulations: bars grow, a live cursor sweeps, events arrive */
.sm-lane-bars i, .sm-hour i { transform-origin: bottom; }
.is-in .sm-lane-bars i, .is-in .sm-hour i { animation: sm-grow .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms); }
.sm-lanes { position: relative; }
.sm-lanes::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: 76px; width: 2px; background: var(--sm-lime); box-shadow: 0 0 14px var(--sm-lime); opacity: .7; animation: sm-sweep 7s linear infinite; }
.is-in .sm-table tbody tr { animation: sm-slide .5s both; }
.is-in .sm-table tbody tr:nth-child(2) { animation-delay: .15s; }
.is-in .sm-table tbody tr:nth-child(3) { animation-delay: .3s; }
.is-in .sm-table tbody tr:nth-child(4) { animation-delay: .45s; }
.sm-table tbody tr:first-child td:nth-child(2)::after { content: " ●"; color: var(--sm-amber); animation: sm-pulse 1.2s infinite; }
.sm-midcta { position: relative; overflow: hidden; }
.sm-midcta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(197, 251, 5, .12) 50%, transparent 70%); background-size: 250% 100%; animation: sm-shine 4s linear infinite; pointer-events: none; }

/* Roles switcher */
.sm-roles { margin-top: 32px; }
.sm-role-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sm-role-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--sm-line); background: var(--sm-surface); color: #c3c9bc; font: 600 15px/1.25 Inter, Arial, sans-serif; text-align: left; cursor: pointer; transition: border-color .3s, color .3s, background-color .3s; }
.sm-role-tabs button svg { flex-shrink: 0; color: var(--sm-lime); }
.sm-role-tabs button[aria-selected="true"] { color: #fff; background: #10140d; border-color: rgba(197, 251, 5, .45); }
.sm-progress { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--sm-lime); }
[aria-selected="true"] > .sm-progress { animation: sm-progress var(--dur, 6s) linear forwards; }
.is-paused [aria-selected="true"] > .sm-progress, .is-offscreen [aria-selected="true"] > .sm-progress { animation-play-state: paused; }
.is-manual [aria-selected="true"] > .sm-progress { animation: none; width: 100%; opacity: .5; }
.sm-role-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sm-switch-on .sm-role-panels { display: block; margin-top: 14px; }
.sm-role-panel { padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--sm-surface); border: 1px solid var(--sm-line); }
.sm-switch-on .sm-role-panel { min-height: 230px; animation: sm-rise .5s both; }
.sm-role-panel h3 { margin: 10px 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; color: #fff; }
.sm-role-panel p { margin: 0; max-width: 720px; font-size: 17px; color: var(--sm-soft); }
.sm-role-panel ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-role-panel li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(197, 251, 5, .35); color: var(--sm-lime); font: 500 12px var(--sm-mono); }
.sm-switch-on .sm-role-panel li { animation: sm-rise .5s both; }
.sm-switch-on .sm-role-panel li:nth-child(2) { animation-delay: .1s; }
.sm-switch-on .sm-role-panel li:nth-child(3) { animation-delay: .2s; }
@media (max-width: 760px) { .sm-role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm-role-tabs button { font-size: 13px; padding: 12px; } }

/* Platform: 3D carousel */
.sm-tabs button { position: relative; overflow: hidden; }
.sm-cover-on .sm-screens { position: relative; display: block; margin-top: 26px; perspective: 1800px; }
.sm-cover-on .sm-screen { position: absolute; top: 0; left: 50%; width: min(820px, 86%); display: block; cursor: pointer; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s ease, filter .8s ease; will-change: transform; }
.sm-cover-on .sm-screen > div:last-child { display: none; }
.sm-cover-on .sm-screen:not(.is-active) { filter: brightness(.55); }
.sm-cover-on .sm-screen.is-active .sm-screen-media { border-color: rgba(197, 251, 5, .45); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.sm-cover-caption { max-width: 760px; margin: 22px auto 0; text-align: center; }
.sm-cover-caption h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #fff; }
.sm-cover-caption p { margin: 0; font-size: 16px; color: var(--sm-soft); }
.sm-cover-caption.is-new { animation: sm-rise .5s both; }

/* Steps: timeline fills while scrolling */
.sm-tl-on .sm-steps { position: relative; }
.sm-tl-on .sm-steps::before, .sm-tl-on .sm-steps::after { content: ""; position: absolute; left: 0; top: 46px; height: 2px; }
.sm-tl-on .sm-steps::before { right: 0; background: rgba(255, 255, 255, .1); }
.sm-tl-on .sm-steps::after { width: var(--p, 0%); background: var(--sm-lime); box-shadow: 0 0 12px var(--sm-lime); transition: width .2s linear; }
.sm-tl-on .sm-steps li { position: relative; z-index: 1; }
.sm-tl-on .sm-step-n { transition: background-color .4s, color .4s; }
.sm-tl-on .sm-steps li:not(.is-on) .sm-step-n { background: #2a3024; color: var(--sm-dim); }
.sm-tl-on .sm-steps li.is-on .sm-step-n { animation: sm-ping 1.8s infinite; }
@media (max-width: 999px) {
  .sm-tl-on .sm-steps::before, .sm-tl-on .sm-steps::after { left: 41px; top: 0; height: auto; width: 2px; }
  .sm-tl-on .sm-steps::before { bottom: 0; right: auto; }
  .sm-tl-on .sm-steps::after { height: var(--p, 0%); width: 2px; transition: height .2s linear; }
}

/* Trust icons */
.sm-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(197, 251, 5, .1); color: var(--sm-lime); animation: sm-float 5s ease-in-out infinite; }
.sm-trust-card:nth-child(2) .sm-icon { animation-delay: -1.2s; }
.sm-trust-card:nth-child(3) .sm-icon { animation-delay: -2.4s; }
.sm-trust-card:nth-child(4) .sm-icon { animation-delay: -3.6s; }

/* Final call: moving 3D grid floor */
.sm-final::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -8%; height: 70%; background-image: linear-gradient(rgba(197, 251, 5, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(197, 251, 5, .22) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom; animation: sm-grid 2.6s linear infinite; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent); pointer-events: none; }
.sm-faq details[open] p { animation: sm-rise .35s both; }

/* Sections enter with a little depth */
.sm-js .sm-section > [data-reveal], .sm-js .sm-panel[data-reveal], .sm-js .sm-demo-box[data-reveal], .sm-js .sm-roles[data-reveal], .sm-js .sm-final[data-reveal] { transform: perspective(1200px) rotateX(9deg) translateY(34px); transform-origin: 50% 100%; }
.sm-js .sm-section > [data-reveal].is-in, .sm-js .sm-panel[data-reveal].is-in, .sm-js .sm-demo-box[data-reveal].is-in, .sm-js .sm-roles[data-reveal].is-in, .sm-js .sm-final[data-reveal].is-in { transform: none; }
.sm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sm-live-red { background: rgba(255, 107, 107, .14); color: var(--sm-red); }
.sm3d-label.is-off { color: #6f7569; }
.sm3d-label.is-off span { color: #a9afa1; }
.sm3d-label.is-off i { animation: none; }

/* Shared layout for the two 3D feature sections */
.sm-xt, .sm-auto { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.sm-xt-stage, .sm-auto-stage { display: none; }
.sm-3d .sm-xt-stage, .sm-3d .sm-auto-stage { display: block; min-height: 520px; }
.sm-xt-canvas, .sm-auto-canvas { position: relative; height: 100%; min-height: 520px; border-radius: 24px; overflow: hidden; background: #050505; border: 1px solid rgba(255, 255, 255, .12); }
.sm-xt-canvas { border-color: rgba(255, 107, 107, .35); box-shadow: 0 0 0 1px rgba(255, 107, 107, .08), 0 30px 90px rgba(255, 60, 60, .08); }
.sm-xt-canvas canvas, .sm-auto-canvas canvas { display: block; width: 100%; height: 100%; }
html:not(.sm-3d) .sm-xt, html:not(.sm-3d) .sm-auto { grid-template-columns: 1fr; }
@media (max-width: 899px) {
  .sm-xt, .sm-auto { grid-template-columns: 1fr; }
  .sm-3d .sm-xt-stage, .sm-3d .sm-auto-stage, .sm-xt-canvas, .sm-auto-canvas { min-height: 380px; height: 380px; }
}

/* Extreme situations */
.sm-xt-badge { position: absolute; left: 16px; top: 16px; z-index: 2; margin: 0; padding: 9px 13px; border-radius: 12px; background: rgba(5, 5, 5, .82); border: 1px solid rgba(255, 107, 107, .4); font-size: 14px; color: #fff; }
.sm-xt-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sm-xt-tabs[hidden] { display: none; }
.sm-xt-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sm-line); background: var(--sm-surface); color: #c3c9bc; font: 600 14px/1.2 Inter, Arial, sans-serif; text-align: left; cursor: pointer; transition: border-color .3s, color .3s, background-color .3s; }
.sm-xt-tabs button svg { flex-shrink: 0; color: var(--sm-red); }
.sm-xt-tabs button[aria-selected="true"] { color: #fff; background: #160d0d; border-color: rgba(255, 107, 107, .55); }
.sm-xt-tabs .sm-progress { background: var(--sm-red); }
.sm-xt-panels { display: grid; gap: 14px; }
.sm-xt-tabs:not([hidden]) + .sm-xt-panels { margin-top: 14px; }
.sm-xt-panel { padding: 24px; border-radius: 20px; background: var(--sm-surface); border: 1px solid var(--sm-line); }
.sm-xt-tabs:not([hidden]) + .sm-xt-panels .sm-xt-panel { animation: sm-rise .5s both; border-color: rgba(255, 107, 107, .25); }
.sm-xt-panel .sm-num { color: var(--sm-red); }
.sm-xt-panel h3 { margin: 8px 0; font-size: 24px; font-weight: 800; color: #fff; }
.sm-xt-panel > p { margin: 0 0 14px; font-size: 16px; color: var(--sm-soft); }
.sm-xt-panel ul { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sm-xt-panel li { position: relative; padding-left: 28px; font-size: 15px; color: #dde1d7; }
.sm-xt-panel li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sm-red); box-sizing: border-box; }
.sm-xt-panel li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--sm-red); }

/* Automations */
.sm-auto-clock { position: absolute; left: 16px; top: 16px; z-index: 2; margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(5, 5, 5, .82); border: 1px solid rgba(197, 251, 5, .35); }
.sm-auto-clock b { font: 600 34px/1 var(--sm-mono); color: var(--sm-lime); font-variant-numeric: tabular-nums; }
.sm-auto-clock small { font: 500 11px var(--sm-mono); color: #c3c9bc; letter-spacing: .06em; text-transform: uppercase; }
.sm-auto-side h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #fff; }
.sm-auto-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.sm-auto-controls[hidden] { display: none; }
.sm-auto-play { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(197, 251, 5, .45); background: transparent; color: var(--sm-lime); font: 600 14px Inter, Arial, sans-serif; cursor: pointer; }
.sm-auto-range { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font: 500 11px var(--sm-mono); color: var(--sm-dim); }
.sm-auto-range input { width: 100%; accent-color: var(--sm-lime); }
.sm-auto-list { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sm-auto-list li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--sm-line); background: var(--sm-surface); font-size: 14px; color: #a9afa1; transition: border-color .35s, color .35s, background-color .35s, transform .35s; }
.sm-auto-list time { font: 600 13px var(--sm-mono); color: var(--sm-dim); }
.sm-auto-list li.is-done { color: #dde1d7; }
.sm-auto-list li.is-done time { color: var(--sm-lime); }
.sm-auto-list li.is-now { border-color: rgba(197, 251, 5, .55); background: #10140d; color: #fff; transform: translateX(6px); }
.sm-auto-rules ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sm-auto-rules li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(197, 251, 5, .35); font-size: 14px; color: var(--sm-soft); }
.sm-auto-rules b { color: #fff; font-weight: 600; }
.sm-auto-rules i { font-style: normal; color: var(--sm-lime); animation: sm-pulse 1.6s infinite; }
@media (max-width: 520px) { .sm-auto-rules li { grid-template-columns: 1fr; gap: 4px; } .sm-auto-rules i { transform: rotate(90deg); justify-self: start; } }

/* Heat map */
.sm-heat { display: block; width: 100%; height: auto; }
.sm-heat-hour { font: 600 20px var(--sm-mono); color: var(--sm-lime); }

/* Bigger logo in the header and the footer of this page (size only; the logo itself is unchanged) */
body.sm-page > header.nav { height: 96px; grid-template-columns: minmax(230px, 1fr) auto auto auto; }
body.sm-page > header.nav .brand, body.sm-page > header.nav .brand img { width: 230px; }
body.sm-page > header.nav .brand img { height: 72px; }
body.sm-page .cosmo-footer-inner { grid-template-columns: 220px 1fr auto; min-height: 140px; }
body.sm-page .cosmo-footer-brand img { width: 200px !important; }
body.sm-page > footer.cosmo-simple-footer { min-height: 143px !important; }
@media (max-width: 1200px) { body.sm-page > header.nav > nav a:nth-child(n+4) { display: none; } }
@media (max-width: 900px) {
  body.sm-page > header.nav { height: 80px; }
  body.sm-page > header.nav .brand, body.sm-page > header.nav .brand img { width: 180px; }
  body.sm-page > header.nav .brand img { height: 58px; }
}
@media (max-width: 600px) {
  body.sm-page .cosmo-footer-inner { grid-template-columns: 170px 1fr; }
  body.sm-page .cosmo-footer-brand img { width: 160px !important; }
}
@media (max-width: 520px) { body.sm-page > header.nav .brand, body.sm-page > header.nav .brand img { width: 156px; } }
@media (max-width: 390px) { body.sm-page > header.nav .brand, body.sm-page > header.nav .brand img { width: 138px; } }

/* Shared: slow camera move on photos, 3D tilt that follows the pointer, floating alert chips */
@keyframes sm-kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -1.5%); } }
@keyframes sm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sm-type { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sm-kenburns { animation: sm-kenburns 18s ease-in-out infinite alternate; }
[data-tilt3d] { transform: perspective(1100px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -7deg)); transform-style: preserve-3d; transition: transform .4s ease; }
.sm-chips { position: absolute; inset: auto 14px 14px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transform: translateZ(40px); pointer-events: none; }
.sm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(5, 5, 5, .82); border: 1px solid rgba(197, 251, 5, .4); color: #fff; font: 600 12px/1.2 Inter, Arial, sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); animation: sm-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.6s); }
.sm-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sm-lime); animation: sm-pulse 1.4s infinite; }
.sm-chip.is-amber { border-color: rgba(255, 181, 71, .5); }
.sm-chip.is-amber i { background: var(--sm-amber); }
.sm-chip.is-red { border-color: rgba(255, 107, 107, .5); }
.sm-chip.is-red i { background: var(--sm-red); }

/* Roles with a photo each */
.sm-role-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.sm-role-media { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(197, 251, 5, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.sm-role-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-role-panels:not(.is-single) .sm-role-panel { grid-template-columns: 1fr; }
.sm-switch-on .sm-role-panels .sm-role-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 899px) { .sm-switch-on .sm-role-panels .sm-role-panel { grid-template-columns: 1fr; } }

/* How it works, in 3D */
.sm-pipe { margin-top: 28px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(197, 251, 5, .22); background: #050505; }
.sm-pipe-canvas { position: relative; display: none; height: 440px; }
.sm-3d .sm-pipe-canvas { display: block; }
.sm-pipe-canvas canvas { display: block; width: 100%; height: 100%; }
.sm-pipe-steps { margin: 0; padding: 16px; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: pipe; border-top: 1px solid rgba(255, 255, 255, .08); }
.sm-pipe-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--sm-surface); counter-increment: pipe; }
.sm-pipe-steps li::before { content: counter(pipe, decimal-leading-zero); font: 500 11px var(--sm-mono); color: var(--sm-lime); }
.sm-pipe-steps b { font-size: 14px; color: #fff; }
.sm-pipe-steps span { font-size: 12px; color: var(--sm-dim); }
@media (max-width: 899px) { .sm-pipe-canvas { height: 320px; } .sm-pipe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steps with photos */
.sm-steps .sm-step-head { order: 0; }
.sm-steps .sm-step-media { order: 1; margin: 6px 0 4px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.sm-steps .sm-step-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-steps h3 { order: 2; }
.sm-steps .sm-card > p { order: 3; }
.sm-tl-on .sm-steps li.is-on .sm-step-media { box-shadow: 0 0 0 1px rgba(197, 251, 5, .35); }

/* Privacy */
.sm-privacy { position: relative; margin: 24px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(197, 251, 5, .25); }
.sm-privacy img { display: block; width: 100%; height: auto; }
.sm-privacy::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(197, 251, 5, .18), transparent); animation: sm-scan 4s linear infinite; pointer-events: none; }
.sm-privacy figcaption { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* FAQ in two columns */
.sm-faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sm-faq-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.sm-faq-side .sm-eyebrow { margin: 0; }
.sm-faq-grid .sm-faq { margin-top: 0; }
.sm-faq-media { position: relative; margin: 0; width: 100%; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(197, 251, 5, .22); }
.sm-faq-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-wa-card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(5, 5, 5, .86); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateZ(40px); animation: sm-bob 5s ease-in-out infinite; }
.sm-wa-avatar { flex-shrink: 0; display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sm-lime); color: var(--sm-bg); font-weight: 800; }
.sm-wa-card b { display: block; font-size: 14px; color: #fff; }
.sm-wa-card small { display: block; font-size: 13px; color: var(--sm-soft); }
.sm-typing { display: inline-flex !important; gap: 4px; margin: 4px 0; }
.sm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sm-lime); animation: sm-type 1.2s infinite; }
.sm-typing i:nth-child(2) { animation-delay: .15s; }
.sm-typing i:nth-child(3) { animation-delay: .3s; }
@media (max-width: 899px) { .sm-faq-grid { grid-template-columns: 1fr; } .sm-faq-side { position: static; } }

/* Small 3D store in the final call, and a reflection under the active platform screen */
.sm-mini { display: none; position: relative; margin-top: 24px; height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(197, 251, 5, .25); }
.sm-3d .sm-mini { display: block; }
.sm-mini canvas { display: block; width: 100%; height: 100%; }
.sm-cover-on .sm-screen.is-active .sm-screen-media { -webkit-box-reflect: below 8px linear-gradient(transparent 72%, rgba(255, 255, 255, .16)); }

@media (prefers-reduced-motion: reduce) {
  .sm-kenburns, .sm-chip, .sm-chip i, .sm-privacy::after, .sm-wa-card, .sm-typing i { animation: none !important; }
  [data-tilt3d] { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-auto-rules i, .sm-xt-panel, .sm-auto-list li { animation: none !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-marquee-track, .sm-detection-media::after, .sm-mosaic span::before, .sm-lanes::after, .sm-final::before, .sm-icon, .sm-live::before,
  .sm3d-label i, .sm-hud li i, .sm-attention li i, .sm-midcta::after, .sm-table tbody tr:first-child td:nth-child(2)::after,
  .sm-js .sm-hero-copy > *, .is-in .sm-lane-bars i, .is-in .sm-hour i, .is-in .sm-table tbody tr, .sm-attention li { animation: none !important; }
  .sm-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sm-marquee-track { flex-wrap: wrap; width: auto; }
}
