/* TPV Red Telecom · public website (modules/RtPlatform/Resources/Views/site). Tokens follow resources/css/rt/_colors.css:
   navy is the action colour, brand red is an accent only (never text on white: it fails contrast).
   Motion: scenes (site.js Sequence) own the large movements, one per screen; controls answer in --t-fast; entrances use
   data-reveal variants. Everything degrades to static, complete content with prefers-reduced-motion. */
:root {
    --navy: #152d56;
    --navy-deep: #0d1f3f;
    --navy-soft: #273c64;
    --ink: #1c1c1c;
    --text: #3d4656;
    --soft: #60697a;
    --line: #dfe2e7;
    --surface: #f4f6fa;
    --surface-2: #e9eef6;
    --white: #ffffff;
    --red: #ff0000;
    --ring: #e3262f;
    --focus: #2e64a6;
    --ok: #1a763f;
    --error: #c51d28;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(13 31 63 / 6%), 0 12px 32px -12px rgb(13 31 63 / 22%);
    --shadow-lg: 0 2px 4px rgb(13 31 63 / 8%), 0 32px 64px -24px rgb(13 31 63 / 38%);
    --font: "Alexandria", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 32px);
    --header: 68px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-inout: cubic-bezier(.65, 0, .35, 1);
    --t-fast: .18s;
    --t-mid: .38s;
    --t-slow: .75s;
    --t-scene: 1.05s;
}

*, *::before, *::after { box-sizing: border-box; }
/* Author display rules (grid, flex) must never beat the hidden attribute. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--text); background: var(--white); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.wrap-wide { max-width: 1320px; }
.muted { color: var(--soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.note { font-size: .95rem; color: var(--soft); }

/* Buttons: lift on hover, press on click, a light sweep on the primary action. */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgb(13 31 63 / 60%); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 12px 24px -10px rgb(13 31 63 / 70%); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 22%) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-secondary { background: #fff; color: var(--navy); border-color: #c4ccda; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface-2); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header: compact on scroll, reading progress, the link of the section in view marked. */
.top { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(13 31 63 / 40%); }
.top-inner { display: flex; align-items: center; gap: 16px; height: var(--header); transition: height .2s; }
.top.is-scrolled .top-inner { height: 58px; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); opacity: .85; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand-tag { font-weight: 800; font-size: .8rem; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 4px 8px; border-radius: 6px; }
.menu { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.menu-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-links a { position: relative; display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; transition: background-color var(--t-fast), color var(--t-fast); }
.menu-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-mid) var(--ease); }
.menu-links a:hover { background: var(--surface); }
.menu-links a[aria-current="true"] { color: var(--navy); }
.menu-links a[aria-current="true"]::after { transform: scaleX(1); }
.menu-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }
@media (max-width: 1080px) { .menu-links a { padding: 8px 8px; font-size: .93rem; } .menu-links a::after { left: 8px; right: 8px; } }
@media (max-width: 960px) {
    .menu-toggle { display: grid; }
    .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(13 31 63 / 40%); max-height: calc(100dvh - var(--header)); overflow: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); }
    .menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .menu-links { flex-direction: column; }
    .menu-links a { padding: 12px; font-size: 1.05rem; }
    .menu-actions { flex-direction: column; }
    .menu-actions .btn { width: 100%; }
}

/* Sticky trial button on phones, between the hero and the form. */
.mobile-cta { display: none; }
@media (max-width: 760px) {
    .mobile-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgb(13 31 63 / 92%); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform var(--t-slow) var(--ease); }
    .mobile-cta.is-visible { transform: none; }
    .mobile-cta .btn { flex: 1; min-height: 46px; }
    .mobile-cta .btn-ghost { flex: none; color: #fff; }
}

/* Hero */
.hero { position: relative; padding: clamp(28px, 4.5vw, 64px) 0 32px; background: radial-gradient(1100px 520px at 50% -10%, var(--surface-2), transparent 70%), var(--white); overflow: hidden; }
.hero-head { text-align: center; max-width: 980px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(255 0 0 / 14%); animation: dot-pulse 2.4s var(--ease-inout) infinite; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 18px auto 18px; }
.hero h1 span { display: block; color: var(--navy); }
@media (prefers-reduced-motion: no-preference) { .hero h1 { animation: title-in .9s var(--ease) both; } .hero h1 span { animation: title-in 1.1s var(--ease) .08s both; } }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 44em; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 14px; }
.hero-note { font-size: .95rem; color: var(--soft); }
@media (max-width: 600px) {
    .hero { padding-top: 20px; }
    .hero-head { text-align: left; }
    .eyebrow { font-size: .8rem; padding: 5px 12px 5px 8px; }
    .hero h1 { margin: 14px 0; }
    .lead { font-size: 1rem; line-height: 1.55; }
    .hero-actions { justify-content: flex-start; margin: 18px 0 10px; gap: 10px; }
    .hero-actions .btn-lg { min-height: 48px; padding: 12px 18px; font-size: 1rem; }
    .hero-note { font-size: .88rem; margin-bottom: 0; }
}

/* Windows: the frame every real screen is shown in. */
.win { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #cfd6e2; box-shadow: var(--shadow-lg); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid #dde2ea; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d0db; flex: none; }
.win-bar span { margin-left: 10px; flex: 1; min-width: 0; max-width: 420px; font-size: .76rem; color: var(--soft); background: #fff; border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-view { position: relative; overflow: hidden; background: var(--surface); }
.win-zoomer { display: grid; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--zs, 1)); transition: transform var(--t-scene) var(--ease); }
.win-zoomer > img, .win-zoomer > .img-missing { grid-area: 1 / 1; width: 100%; height: auto; }
.win-zoomer > .frame { opacity: 0; transition: opacity .55s var(--ease); }
.win-zoomer > .frame.is-active { opacity: 1; }
.img-missing { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--soft); font-size: .85rem; border: 2px dashed var(--line); }
/* The ring outlines the area of the current step and dims the rest of the screen. */
.win-ring { position: absolute; left: var(--rx, 0); top: var(--ry, 0); width: var(--rw, 100%); height: var(--rh, 100%); border: 3px solid var(--ring); border-radius: 10px; box-shadow: 0 0 0 200vmax rgb(13 31 63 / 26%); opacity: 0; pointer-events: none; transition: left var(--t-slow) var(--ease), top var(--t-slow) var(--ease), width var(--t-slow) var(--ease), height var(--t-slow) var(--ease), opacity var(--t-mid); }
.win-ring.is-on { opacity: 1; animation: ring-pulse 1.8s var(--ease-inout) infinite; }
.demo-tag { position: absolute; z-index: 3; right: 12px; bottom: 12px; font-size: .74rem; font-weight: 600; color: #fff; background: rgb(13 31 63 / 78%); padding: 4px 10px; border-radius: 999px; pointer-events: none; }

/* Scene chrome shared by every demonstration: steps with a progress bar, caption and tools. */
.scene { --dur: 4200ms; }
.scene-tools { display: flex; align-items: center; gap: 8px; }
.tool { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background-color var(--t-fast); }
.tool:hover { border-color: var(--navy); transform: translateY(-1px); }
.tool:active { transform: scale(.94); }
.tool svg { width: 20px; height: 20px; }
.tool .i-play { display: none; }
.scene.is-paused .tool[data-toggle] .i-pause, .scene:not(.is-playing) .tool[data-toggle] .i-pause { display: none; }
.scene.is-paused .tool[data-toggle] .i-play, .scene:not(.is-playing) .tool[data-toggle] .i-play { display: block; }
.scene-caption { margin: 0; min-height: 3.1em; color: var(--ink); font-weight: 600; transition: opacity var(--t-mid); }
.scene-caption.is-changing { opacity: 0; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--navy); }

/* Hero scene: management and counter windows trade places; a step can zoom into a detail. */
.scene-hero { max-width: 1140px; margin: clamp(20px, 3vw, 36px) auto 0; }
.scene-stage { position: relative; aspect-ratio: 16 / 9.4; }
.scene-stage .win { position: absolute; width: 77%; transition: transform var(--t-scene) var(--ease), opacity var(--t-slow) var(--ease), filter var(--t-slow), box-shadow var(--t-slow); will-change: transform; }
.scene-stage .win[data-win="gestion"] { left: 0; top: 0; }
.scene-stage .win[data-win="mostrador"] { right: 0; bottom: 0; }
.scene-stage[data-state="gestion"] .win[data-win="gestion"], .scene-stage[data-state="mostrador"] .win[data-win="mostrador"] { z-index: 2; }
.scene-stage[data-state="gestion"] .win[data-win="mostrador"] { z-index: 1; transform: translate(4%, 3%) scale(.84); opacity: .62; filter: saturate(.75); box-shadow: var(--shadow); }
.scene-stage[data-state="mostrador"] .win[data-win="gestion"] { z-index: 1; transform: translate(-4%, -3%) scale(.84); opacity: .62; filter: saturate(.75); box-shadow: var(--shadow); }
.scene-stage .win.is-front { animation: win-lift var(--t-scene) var(--ease); }
.scene-stage .demo-tag { right: 12px; top: 12px; bottom: auto; }
.scene-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "steps tools" "caption caption"; gap: 10px 18px; align-items: center; margin-top: 16px; }
.scene-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scene-controls .scene-tools { grid-area: tools; }
.scene-controls .scene-caption { grid-area: caption; min-height: 1.6em; text-align: center; font-weight: 500; color: var(--text); }
.scene-step { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 8px 4px 0; border: 0; background: none; text-align: left; font: 600 .92rem var(--font); color: var(--soft); cursor: pointer; transition: color var(--t-fast); }
.scene-step:hover, .scene-step[aria-pressed="true"] { color: var(--navy); }
.scene-step-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.scene-step-bar i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: inherit; }
.scene-step.is-done .scene-step-bar i { width: 100%; background: #9aaacb; }
.scene-step[aria-pressed="true"] .scene-step-bar i { width: 100%; }
.scene.is-playing .scene-step[aria-pressed="true"] .scene-step-bar i { width: 0; animation: bar-fill var(--dur) linear forwards; }
@media (max-width: 760px) {
    .scene-stage { aspect-ratio: auto; display: grid; }
    .scene-stage .win { position: relative; grid-area: 1 / 1; width: 100%; }
    .scene-stage[data-state="gestion"] .win[data-win="mostrador"], .scene-stage[data-state="mostrador"] .win[data-win="gestion"] { transform: translateX(10%) scale(.94); opacity: 0; pointer-events: none; }
    .scene-controls { grid-template-columns: 1fr; grid-template-areas: "steps" "caption" "tools"; }
    .scene-stage .demo-tag { top: auto; bottom: 10px; right: 10px; }
    .scene-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scene-controls .scene-caption { text-align: left; }
}

/* Offer band */
.offer { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); }
.offer p { margin: 0; }
.offer-main { font-size: 1.1rem; color: var(--ink); }
.offer-prices { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > p:last-child { font-size: 1.1rem; }
.split-head { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px 48px; align-items: end; }
.split-head h2 { margin-bottom: 0; }
.split-head > p, .split-head > div > p { font-size: 1.08rem; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--red); }
.badge { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--navy); background: #dfe8f6; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #e3ebf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152d56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks li.minus::before { background: #eef0f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360697a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks li.minus { color: var(--soft); }
.checks li.plus { font-weight: 600; color: var(--ink); }
.section.dark { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 140%); color: #d8e0ee; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .kicker { color: #b9c8e3; }
.section.dark .checks li::before { background-color: rgb(255 255 255 / 92%); }

/* Frames and zoomable screenshots (outside the scenes) */
.frame { margin: 0; }
.frame-browser { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #cfd6e2; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid #dde2ea; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d0db; }
.frame-bar span { margin-left: 10px; flex: 1; max-width: 340px; font-size: .78rem; color: var(--soft); background: #fff; border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform var(--t-slow) var(--ease); }
.shot:hover img { transform: scale(1.02); }
.shot-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(13 31 63 / 82%); color: #fff; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; }
.shot-zoom svg { width: 20px; height: 20px; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot-zoom { opacity: 1; transform: none; } }
.shot-missing { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--soft); font-size: .85rem; border: 2px dashed var(--line); cursor: default; }

/* Sale demonstration */
.section-sale { background: linear-gradient(180deg, var(--white), var(--surface) 80%); }
.sale-player { display: grid; grid-template-columns: minmax(0, 8.4fr) minmax(0, 3.6fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.win-solo .win-zoomer { transition: transform var(--t-scene) var(--ease); }
.sale-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header) + 24px); }
.sale-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sale-stage { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; width: 100%; padding: 12px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: inherit; color: var(--text); cursor: pointer; overflow: hidden; transition: border-color var(--t-mid), box-shadow var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
.sale-stage:hover { border-color: #b6c2d6; transform: translateX(2px); }
.sale-stage-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--navy); font-weight: 800; transition: background-color var(--t-mid), color var(--t-mid); }
.sale-stage-text b { display: block; color: var(--ink); }
.sale-stage-text span { font-size: .9rem; color: var(--soft); }
.sale-stage-bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.sale-stage-bar i { display: block; height: 100%; width: calc(var(--stage-progress, 0) * 100%); background: var(--navy); border-radius: inherit; transition: width var(--t-slow) var(--ease); }
.sale-stage[aria-pressed="true"] { border-color: var(--navy); box-shadow: 0 10px 24px -16px rgb(13 31 63 / 60%); }
.sale-stage[aria-pressed="true"] .sale-stage-num, .sale-stage.is-done .sale-stage-num { background: var(--navy); color: #fff; }
.sale-stage.is-done .sale-stage-bar i { width: 100%; background: #9aaacb; }
.frame-count { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.scene-timer { display: block; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.scene-timer i { display: block; height: 100%; width: 0; background: var(--red); }
.scene.is-playing .scene-timer i.is-running { animation: bar-fill var(--dur) linear forwards; }
@media (max-width: 960px) {
    .sale-player { grid-template-columns: 1fr; }
    .sale-side { position: static; }
    .sale-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .sale-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px 14px; }
    .sale-stage-text span { display: none; }
    .sale-stage-num { width: 30px; height: 30px; font-size: .9rem; }
    .sale-stage-text b { font-size: .86rem; }
}
.effects { margin: clamp(40px, 6vw, 64px) 0 32px; }
.effects-title { font-size: 1.3rem; }
.effects-title span { font-weight: 500; font-size: .95rem; color: var(--soft); }
.effects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.effect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.effect-label { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.effect-change { display: flex; align-items: center; gap: 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.effect-change svg { width: 26px; height: 26px; color: var(--red); }
.effect-before { color: var(--soft); }
.effect-note { font-size: .92rem; color: var(--soft); }
.effect-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot-mini { border-radius: 8px; border: 1px solid var(--line); }

/* Control: three areas that advance on their own over a wide, readable screen that moves closer to the detail. */
.scene-control { display: grid; gap: clamp(20px, 3vw, 32px); }
.control-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.control-item { position: relative; display: flex; flex-direction: column; padding: 18px 20px 22px; border-radius: 18px; border: 1px solid rgb(255 255 255 / 14%); background: rgb(255 255 255 / 4%); overflow: hidden; transition: background-color var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--ease); }
.control-item:hover { border-color: rgb(255 255 255 / 30%); }
.control-item.is-open { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 45%); transform: translateY(-3px); }
.control-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0 0 10px; border: 0; background: none; color: #d8e0ee; font: 700 1.2rem var(--font); text-align: left; cursor: pointer; }
.control-head::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.control-head:focus-visible { outline: none; }
.control-item:has(.control-head:focus-visible) { outline: 3px solid #9dbbe3; outline-offset: 3px; }
.control-item.is-open .control-head { color: #fff; }
.control-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / 10%); flex: none; transition: background-color var(--t-mid), transform var(--t-mid) var(--ease); }
.control-item.is-open .control-icon { background: var(--red); transform: rotate(-6deg); }
.control-icon svg { width: 22px; height: 22px; }
.control-text { color: #c8d4ea; font-size: .97rem; }
.control-item .checks { font-size: .93rem; margin: 0; color: #d8e0ee; }
.control-bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 12%); overflow: hidden; }
.control-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.control-item.is-open .control-bar i { width: 100%; }
.scene.is-playing .control-item.is-open .control-bar i { width: 0; animation: bar-fill var(--dur) linear forwards; }
.control-visual { display: grid; gap: 14px; }
.control-visual .win { border-color: rgb(255 255 255 / 18%); }
.control-visual .scene-tools { justify-content: flex-end; }
.control-visual .tool { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 25%); color: #fff; }
.zoom-chip { position: absolute; z-index: 3; left: 14px; top: 14px; max-width: calc(100% - 28px); padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font-size: .9rem; font-weight: 700; box-shadow: 0 10px 20px -10px rgb(0 0 0 / 50%); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease); pointer-events: none; }
.zoom-chip.is-on { opacity: 1; transform: none; }
@media (max-width: 960px) {
    .control-list { grid-template-columns: 1fr; gap: 10px; }
    .control-item { padding: 14px 16px 18px; }
    .control-item:not(.is-open) .control-text, .control-item:not(.is-open) .checks { display: none; }
    .control-visual { order: -1; }
    .zoom-chip { left: 8px; top: 8px; padding: 4px 10px; font-size: .76rem; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* SAT: a track that draws itself as the order advances. */
.section-sat { background: linear-gradient(180deg, var(--white), var(--surface-2) 140%); }
.sat-track { position: relative; list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sat-track li:not(.sat-line) { position: relative; z-index: 1; display: flex; justify-content: center; }
.sat-line { position: absolute; left: 10%; right: 10%; top: 22px; height: 4px; border-radius: 4px; background: var(--line); }
.sat-line i { display: block; height: 100%; border-radius: inherit; background: var(--navy); transform-origin: 0 50%; transform: scaleX(var(--sat-progress, 0)); transition: transform var(--t-scene) var(--ease); }
.sat-node { display: grid; justify-items: center; gap: 10px; padding: 0 4px; border: 0; background: none; font: 600 .95rem var(--font); color: var(--soft); cursor: pointer; text-align: center; }
.sat-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: var(--soft); font-weight: 800; transition: background-color var(--t-mid), border-color var(--t-mid), color var(--t-mid), transform var(--t-mid) var(--ease); }
.sat-node:hover .sat-dot { border-color: #9aaacb; }
.sat-node.is-done .sat-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.sat-node[aria-pressed="true"] { color: var(--navy); }
.sat-node[aria-pressed="true"] .sat-dot { background: #fff; border-color: var(--red); color: var(--navy); transform: scale(1.12); box-shadow: 0 0 0 6px rgb(227 38 47 / 14%); }
.sat-stage { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.sat-copy-panel { display: grid; gap: 16px; }
.sat-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.sat-copy.is-entering { animation: copy-in var(--t-slow) var(--ease) both; }
@media (max-width: 960px) {
    .sat-stage { grid-template-columns: 1fr; }
    .sat-track { overflow-x: auto; grid-template-columns: repeat(5, minmax(96px, 1fr)); padding-bottom: 6px; scrollbar-width: thin; }
    .sat-line { left: 48px; right: 48px; }
    .sat-dot { width: 40px; height: 40px; }
    .sat-line { top: 18px; }
}

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: 64px; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.feature-reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature-reverse .feature-copy { order: 2; }
.tilt-stage { perspective: 1400px; }
.frame-tablet { background: #1b2433; padding: 14px; border-radius: 26px; box-shadow: var(--shadow-lg); transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-style: preserve-3d; transition: transform .2s linear; }
.frame-tablet .shot { border-radius: 12px; overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid); }
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4ccda; }
.mini svg { width: 34px; height: 34px; color: var(--navy); margin-bottom: 14px; }
.mini h3 { font-size: 1.1rem; }
.mini p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .feature, .feature-reverse { grid-template-columns: 1fr; } .feature-reverse .feature-copy { order: 0; } .feature-grid { grid-template-columns: 1fr; } }

/* Modules: cards that open in place and remember whether they are in the configuration. */
.plan-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; max-width: none; margin: 0 0 8px; }
.pm-plan { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.pm-plan b { color: var(--ink); font-size: 1rem; }
.pm-plan-adv { background: var(--navy); border-color: var(--navy); color: #c8d4ea; }
.pm-plan-adv b { color: #fff; }
.pm-link { display: block; grid-column: 1 / -1; width: 100%; height: 40px; color: #9aaacb; }
.pm-link path { vector-effect: non-scaling-stroke; }
@media (max-width: 960px) { .pm-link { display: none; } }
@media (max-width: 640px) { .plan-map { grid-template-columns: 1fr; margin-bottom: 24px; } }
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 32px; }
.module { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid); }
.module:hover, .module:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #b6c2d6; }
.module.is-added { border-color: var(--navy); }
.module.is-added::before { content: "En tu configuración"; position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; animation: pop-in var(--t-mid) var(--ease); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.module-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--navy); transition: transform var(--t-mid) var(--ease), background-color var(--t-mid), color var(--t-mid); }
.module:hover .module-icon, .module.is-added .module-icon { background: var(--navy); color: #fff; transform: rotate(-8deg) scale(1.05); }
.module-icon svg { width: 24px; height: 24px; }
.module-plan { font-size: .8rem; font-weight: 700; color: var(--navy); background: #dfe8f6; padding: 3px 10px; border-radius: 999px; }
.module-problem { margin-bottom: 12px; }
.module-price { color: var(--ink); margin-bottom: 14px; }
.module-price b { font-size: 1.35rem; }
.module-price span { color: var(--soft); font-size: .9rem; }
.module-detail { overflow: hidden; }
.module-detail-inner { padding: 4px 0 14px; border-top: 1px solid var(--line); }
.md-title { margin: 14px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.module-detail .checks { font-size: .95rem; }
.module-detail .shot { border-radius: 10px; border: 1px solid var(--line); }
.module-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.chev { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease); }
[data-module-toggle][aria-expanded="true"] .chev { transform: rotate(180deg); }
.module-add .ma-added { display: none; align-items: center; gap: 6px; }
.module-add .ma-added svg { width: 18px; height: 18px; }
.module-add[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.module-add[aria-pressed="true"] .ma-add { display: none; }
.module-add[aria-pressed="true"] .ma-added { display: inline-flex; }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto 48px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-featured { border: 2px solid var(--navy); }
.plan.is-selected { box-shadow: 0 0 0 4px #dfe8f6, var(--shadow-lg); }
.plan-flag { position: absolute; top: -14px; right: 24px; margin: 0; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-summary { color: var(--soft); min-height: 3.2em; }
.price { margin: 8px 0 4px; color: var(--ink); }
.price-value { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.price-unit { font-size: 1.1rem; font-weight: 600; margin-left: 4px; }
.price-terms { font-size: .95rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.price-terms strong { color: var(--ink); }
.plan .checks { flex: 1; }
.plan-actions { display: grid; gap: 10px; margin-top: 12px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px 22px; } .plan-summary { min-height: 0; } }
.included { max-width: 980px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.included .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
@media (max-width: 640px) { .included { padding: 20px; } .included .checks { grid-template-columns: 1fr; } }
.compare { max-width: 980px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem; }
.compare caption { text-align: left; font-weight: 700; color: var(--ink); padding: 0 0 12px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody tr { transition: background-color var(--t-fast); }
.compare tbody tr:hover { background: #f8fafd; }
.compare .row-strong th, .compare .row-strong td { font-weight: 700; color: var(--ink); background: #f8fafd; }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 8px; font-size: .88rem; } .compare thead th { font-size: .85rem; } }

/* Configurator */
.config { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.choice { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
.choice:hover { transform: translateX(2px); }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 3px #dfe8f6; }
.choice input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.choice b { display: block; color: var(--ink); }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; transition: border-color var(--t-mid), background-color var(--t-mid); }
.addon.is-on { border-color: var(--navy); background: #f6f9fe; }
.addon label { cursor: pointer; }
.addon label b { display: block; color: var(--ink); }
.addon label span { font-size: .92rem; color: var(--soft); }
.addon.is-locked { background: #f8f9fb; }
.stepper { display: flex; align-items: center; border: 1px solid #c4ccda; border-radius: 10px; overflow: hidden; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer; transition: background-color var(--t-fast); }
.stepper button:hover { background: var(--surface); }
.stepper button:active { background: var(--surface-2); }
.stepper input { width: 52px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 1rem var(--font); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.switch { appearance: none; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #c4ccda; position: relative; cursor: pointer; transition: background-color .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .25s var(--ease); }
.switch:checked { background: var(--navy); }
.switch:checked::after { transform: translateX(22px); }
.confirm { background: #fff8e8; border: 1px solid #f0c98f; border-radius: 12px; padding: 18px 20px; }
.confirm:not([hidden]) { animation: confirm-in var(--t-mid) var(--ease); }
.confirm-title { font-weight: 700; color: var(--ink); }
.summary { position: sticky; top: calc(var(--header) + 16px); background: var(--navy); color: #dce4f2; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.summary h3 { color: #fff; }
.summary .muted { color: #b9c8e3; }
.sum-lines { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid rgb(255 255 255 / 18%); display: grid; gap: 8px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; }
.sum-lines li.is-new { animation: line-in var(--t-slow) var(--ease); }
.sum-lines li.is-gone { animation: line-out var(--t-mid) var(--ease) forwards; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; color: #fff; }
.sum-total b { white-space: nowrap; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sum-after { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.val-swap { display: inline-block; animation: val-swap var(--t-slow) var(--ease); }
.sum-delta { display: inline-block; margin: 2px 0 0; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: rgb(255 255 255 / 14%); color: #fff; animation: delta-in 2.6s var(--ease) forwards; }
.sum-delta-slot { min-height: 1.9em; margin: 0 0 10px; }
.scene:not(.is-playing) .win-ring.is-on { animation: none; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--navy-deep); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); transform: translate(-50%, 160%); opacity: 0; transition: transform var(--t-slow) var(--ease), opacity var(--t-mid); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: #fff; margin-left: 8px; }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 16px; } }
.sum-foot { font-size: .88rem; color: #b9c8e3; margin: 14px 0 0; }
.summary-actions { display: grid; gap: 10px; margin-top: 20px; }
.summary .btn-primary { background: #fff; color: var(--navy); }
.summary .btn-primary:hover { background: var(--surface-2); }
.summary .btn-secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / 40%); }
.summary .btn-secondary:hover { border-color: #fff; }
.flash { animation: flash .6s ease; }
@media (max-width: 960px) { .config { grid-template-columns: 1fr; } .summary { position: static; } }

/* Start + form */
.start { background: linear-gradient(180deg, var(--white), var(--surface)); }
.start-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.start-steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; margin: 24px 0 28px; }
.start-steps li { counter-increment: s; position: relative; padding-left: 52px; }
.start-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; }
.start-steps b { color: var(--ink); }
.contact { font-size: 1.05rem; }
.contact a { font-weight: 700; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kinds legend { width: 100%; }
.kinds label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.kinds label:active { transform: scale(.97); }
.kinds label:has(input:checked) { border-color: var(--navy); background: #eef3fb; }
.kinds input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.selection { background: var(--surface); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: .95rem; transition: background-color var(--t-mid); }
.selection.flash { background: #e6eefb; }
.selection p { margin: 0; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #c4ccda; border-radius: 10px; font: 400 1rem var(--font); color: var(--ink); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--ease); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--focus); box-shadow: 0 0 0 4px #dfe8f6; }
.field [aria-invalid="true"], .consent [aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; margin: 6px 0 0; animation: copy-in var(--t-mid) var(--ease); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .95rem; }
.consent + .field-error { margin: -12px 0 18px 32px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.errors { border: 1px solid #f2a9ad; background: #fdf1f2; color: #7a1018; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; animation: shake .45s var(--ease-inout); }
.errors ul { margin: 0; padding-left: 20px; }
.errors p { margin: 0 0 4px; }
.sent { text-align: center; padding: 20px 6px; animation: copy-in var(--t-slow) var(--ease); }
.sent svg { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 12px; }
.sent svg circle, .sent svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s var(--ease) .15s forwards; }
.sent svg path { animation-delay: .55s; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 960px) { .start-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* FAQ: the answer opens with its height (site.js) and the marker turns. */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color var(--t-mid), box-shadow var(--t-mid) var(--ease); }
.faq details:hover { border-color: #c4ccda; }
.faq details[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .faq-answer { overflow: hidden; }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* Final call and footer */
.cta-final { background: var(--navy); color: #dce4f2; padding: clamp(64px, 9vw, 104px) 0; position: relative; overflow: hidden; }
.cta-dots { position: absolute; inset: 0; pointer-events: none; }
.cta-dots i { position: absolute; border-radius: 50%; background: var(--red); animation: float 9s var(--ease-inout) infinite; }
.cta-dots i:nth-child(1) { width: 120px; height: 120px; right: -30px; top: -30px; opacity: .9; }
.cta-dots i:nth-child(2) { width: 26px; height: 26px; right: 120px; top: 70px; animation-delay: -2s; }
.cta-dots i:nth-child(3) { width: 14px; height: 14px; left: 12%; bottom: 22%; opacity: .7; animation-delay: -4s; }
.cta-dots i:nth-child(4) { width: 60px; height: 60px; left: -20px; bottom: -20px; opacity: .5; animation-delay: -6s; }
.cta-final.is-offscreen .cta-dots i { animation-play-state: paused; }
.cta-inner { text-align: center; position: relative; }
.cta-final h2 { color: #fff; }
.cta-final p { font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.cta-actions .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 40%); }
.cta-actions .btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.foot { background: var(--navy-deep); color: #b9c8e3; font-size: .93rem; padding: 56px 0 24px; }
.foot a, .foot .link { color: #fff; }
.foot img { height: 42px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 16px; }
.foot h2 { font-size: 1rem; color: #fff; letter-spacing: 0; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.4fr; gap: 32px; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 40px; padding-top: 20px; }
.foot-bottom p { margin: 0; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .foot { padding-bottom: 96px; } }

/* Dialogs: enter and leave with motion; the opener gets the focus back (site.js). */
.dialog { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow-lg); color: var(--text); }
.dialog::backdrop { background: rgb(13 31 63 / 60%); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in .25s var(--ease); }
.dialog[open]::backdrop { animation: fade-in .25s var(--ease); }
.dialog.is-closing { animation: dialog-out .18s ease-in forwards; }
.dialog.is-closing::backdrop { animation: fade-out .18s ease-in forwards; }
.dialog-body { position: relative; padding: 32px 28px 28px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast); }
.dialog-close:hover { transform: rotate(90deg); background: var(--surface-2); }
.dialog-close svg { width: 20px; height: 20px; }
.dialog h3 { padding-right: 44px; }
.suffix-input { display: flex; align-items: stretch; border: 1.5px solid #c4ccda; border-radius: 10px; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--ease); }
.suffix-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px #dfe8f6; }
.suffix-input input { border: 0; border-radius: 0; min-width: 0; flex: 1; outline: none; }
.suffix-input span { display: flex; align-items: center; padding: 0 12px; background: var(--surface); color: var(--soft); font-size: .92rem; white-space: nowrap; }
@media (max-width: 420px) { .suffix-input { flex-direction: column; } .suffix-input span { padding: 8px 12px; } }
.dialog-zoom { width: min(1600px, calc(100vw - 24px)); background: var(--navy-deep); }
.zoom-body { position: relative; padding: 56px 12px 12px; }
.zoom-body img { width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; background: #fff; }
.zoom-body p { color: #dce4f2; margin: 10px 4px 0; font-size: .95rem; }
.zoom-body .dialog-close { background: rgb(255 255 255 / 12%); color: #fff; }
@media (max-width: 760px) {
    .zoom-body { max-height: calc(100dvh - 24px); overflow: auto; -webkit-overflow-scrolling: touch; }
    .zoom-body img { width: 1000px; max-width: none; max-height: none; }
    .zoom-body .dialog-close { position: fixed; top: 22px; right: 22px; z-index: 1; background: rgb(13 31 63 / 85%); }
}

/* Self-service trial progress (/alta/{token}) */
.signup { padding: clamp(32px, 8vw, 96px) 0; background: radial-gradient(900px 420px at 80% 0%, var(--surface-2), transparent 70%), var(--white); min-height: calc(100dvh - var(--header)); }
.signup-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.lead-sm { font-size: 1.05rem; color: var(--ink); }
.address { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; color: var(--navy); word-break: break-all; }
.progress { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 4px; }
.progress li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--soft); font-weight: 600; }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.progress-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c4ccda; background: #fff; display: grid; place-items: center; }
.progress li.is-done { color: var(--ink); }
.progress li.is-done .progress-mark { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.progress li.is-done:not(:last-child)::after { background: var(--ok); }
.progress li.is-active { color: var(--navy); }
.progress li.is-active .progress-mark { border-color: var(--navy); border-top-color: transparent; animation: spin 1s linear infinite; }
.enter { margin-top: 12px; }
.resend { margin: 16px 0 8px; }

/* Entrances: a few kinds, chosen per element, never one fade for everything. */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { transition: opacity .8s var(--ease), transform .9s var(--ease); }
    .js [data-reveal="rise"]:not(.is-revealed) { opacity: 0; transform: translateY(26px); }
    .js [data-reveal="from-left"]:not(.is-revealed) { opacity: 0; transform: translateX(-48px); }
    .js [data-reveal="from-right"]:not(.is-revealed) { opacity: 0; transform: translateX(48px); }
    .js [data-reveal="zoom"]:not(.is-revealed) { opacity: 0; transform: scale(.94); }
    .js [data-reveal="stagger"] > * { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
    .js [data-reveal="stagger"]:not(.is-revealed) > * { opacity: 0; transform: translateY(22px); }
    .js [data-reveal="stagger"]:not(.is-revealed) .draw path, .js [data-reveal="stagger"]:not(.is-revealed) .draw circle { stroke-dashoffset: 60; }
    .draw path, .draw circle { stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) .25s; }
    .js .scene-hero:not(.is-revealed) .win { opacity: 0; transform: translateY(40px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes title-in { from { transform: translateY(18px); } }
@keyframes bar-fill { from { width: 0; } to { width: 100%; } }
@keyframes win-lift { 0% { box-shadow: var(--shadow); } 40% { box-shadow: 0 50px 80px -30px rgb(13 31 63 / 55%); } 100% { box-shadow: var(--shadow-lg); } }
@keyframes ring-pulse { 0%, 100% { border-color: var(--ring); } 50% { border-color: #ff7a80; } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgb(255 0 0 / 14%); } 50% { box-shadow: 0 0 0 8px rgb(255 0 0 / 6%); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { opacity: 0; transform: translateX(16px); background: rgb(255 255 255 / 12%); } to { opacity: 1; transform: none; } }
@keyframes line-out { to { opacity: 0; transform: translateX(-16px); height: 0; } }
@keyframes val-swap { 0% { opacity: 0; transform: translateY(60%); } 100% { opacity: 1; transform: none; } }
@keyframes delta-in { 0% { opacity: 0; transform: translateY(6px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes confirm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, 14px); } }
@keyframes flash { from { box-shadow: 0 0 0 0 rgb(157 187 227 / 80%); } to { box-shadow: 0 0 0 14px rgb(157 187 227 / 0%); } }
