@font-face{font-family:Manrope;src:url(fonts/manrope.woff2) format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(fonts/jetbrains.woff2) format("woff2");font-weight:400 600;font-display:swap}
:root{--bg:#0b0f17;--surface:#121826;--raised:#172033;--ink:#f8fafc;--muted:#94a3b8;--quiet:#64748b;--raised:#1d2024;--ink:#f3f2ed;--muted:#aeb2ad;--quiet:#70756f;--accent:#2b7fff;--accent-ink:#ffffff;--primary:#0b46f6;--line:#343941;--wash:#111316;--soft-accent:rgba(43,127,255,0.15);--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);color-scheme:dark}
:root[data-theme="light"]{--bg:#f3ecd9;--surface:#faf8f1;--raised:#f4efe4;--ink:#16130c;--muted:#5c5447;--quiet:#5c5447;--accent:#0b46f6;--accent-ink:#ffffff;--primary:#0b46f6;--line:rgba(22,19,12,0.12);--wash:#fffdf9;--soft-accent:rgba(11,70,246,0.12);color-scheme:light}
.hex-bg-pattern{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='83.138' viewBox='0 0 48 83.138'%3E%3Cpath d='M24 0 L48 13.856 L48 41.569 L24 55.425 L0 41.569 L0 13.856 Z M0 83.138 L24 69.282 L48 83.138 M24 55.425 L24 69.282' fill='none' stroke='%23343941' stroke-width='0.7' stroke-opacity='0.16'/%3E%3C/svg%3E");background-size:48px 83.138px;background-repeat:repeat;opacity:.28;filter:blur(0.75px);transition:opacity .3s ease}
:root[data-theme="light"] .hex-bg-pattern{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='83.138' viewBox='0 0 48 83.138'%3E%3Cpath d='M24 0 L48 13.856 L48 41.569 L24 55.425 L0 41.569 L0 13.856 Z M0 83.138 L24 69.282 L48 83.138 M24 55.425 L24 69.282' fill='none' stroke='%23d9ceb8' stroke-width='0.7' stroke-opacity='0.35'/%3E%3C/svg%3E");opacity:.30;filter:blur(0.75px)}
.hex-spotlight{position:absolute;inset:0;background:radial-gradient(650px circle at var(--mouse-x,50vw) var(--mouse-y,50vh),rgba(43,127,255,0.06),transparent 75%);pointer-events:none}
:root[data-theme="light"] .hex-spotlight{background:radial-gradient(650px circle at var(--mouse-x,50vw) var(--mouse-y,50vh),rgba(11,70,246,0.05),transparent 75%)}
*{box-sizing:border-box}html{scroll-padding-top:110px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,"Segoe UI",sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:clip}main{position:relative;z-index:1}
button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{opacity:.5;cursor:wait}img,svg{vertical-align:middle}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
::selection{background:var(--accent);color:var(--accent-ink)}input,textarea{caret-color:var(--accent)}body{scrollbar-color:var(--line) var(--bg);scrollbar-width:thin}::-webkit-scrollbar{width:9px}::-webkit-scrollbar-thumb{background:var(--line);border:2px solid var(--bg);border-radius:10px}::-webkit-scrollbar-track{background:var(--bg)}
[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.section-wrap{width:min(1280px,calc(100% - 112px));margin-inline:auto}.site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:50;background:rgba(0,0,0,0.72);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,0.08)}:root[data-theme="light"] .site-header{background:rgba(243,236,217,0.88);border-bottom:1px solid rgba(22,19,12,0.08)}.nav-wrap{width:min(1280px,calc(100% - 112px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px;height:70px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:23px;font-weight:800;letter-spacing:-.045em;white-space:nowrap}.brand-logo{height:34px;width:auto;display:block;max-width:none}.site-footer .brand-logo{height:28px}:root .brand-logo.light-only{display:none}:root .brand-logo.dark-only{display:block}:root[data-theme="light"] .brand-logo.light-only{display:block}:root[data-theme="light"] .brand-logo.dark-only{display:none}.brand-dot{color:var(--accent);letter-spacing:0}.desktop-nav{display:flex;gap:32px;font-size:13px;font-weight:600}.desktop-nav a{color:var(--muted);text-underline-offset:8px;white-space:nowrap}.desktop-nav a:hover{color:var(--ink);text-decoration:underline}.nav-actions{display:flex;align-items:center;gap:20px}.theme-toggle{display:flex;gap:8px;align-items:center;border:0;padding:10px 0;background:transparent;min-height:44px;font-size:12px;color:var(--muted);font-weight:600}
.button{min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 22px;background:var(--accent);color:var(--accent-ink);border:0;border-radius:8px;font-weight:800;font-size:13px;transition:transform 160ms var(--ease-out),background-color 180ms ease;white-space:nowrap}.button-small{font-size:12px;min-height:43px;padding:10px 16px}.button .icon{width:18px;height:18px}.button:active{transform:scale(.97)}.text-link{display:inline-flex;align-items:center;gap:12px;font-weight:700;font-size:13px;line-height:1.5;background:none;border:0;padding:10px 0;text-underline-offset:6px}.text-link .icon{width:18px;height:18px}.mobile-nav{display:none}.skip-link{position:fixed;top:10px;left:10px;padding:10px;background:var(--accent);color:var(--accent-ink);transform:translateY(-150%);z-index:100}.skip-link:focus{transform:translateY(0)}
.hero{position:relative;display:grid;grid-template-columns:.94fr 1.18fr;column-gap:25px;padding-block:63px 0;align-items:center;min-height:745px}.hero-copy{align-self:center;padding-bottom:54px;z-index:2}.hero h1{font-size:clamp(48px,4.9vw,72px);line-height:1.12;letter-spacing:-.04em;font-weight:800;margin:0 0 27px}.hero h1 span{color:var(--accent)}.hero-lead{font-size:18px;line-height:1.7;max-width:410px;margin:0 0 17px;font-weight:500}.hero-description{font-size:14px;line-height:1.9;color:var(--muted);max-width:405px;margin:0}.hero-actions{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;margin-top:30px}.hero-promise{display:flex;flex-wrap:wrap;gap:10px 17px;font-size:11px;color:var(--muted);margin-top:24px}.hero-promise span{display:inline-flex;gap:6px;align-items:center}.hero-promise .icon{width:15px;height:15px;color:var(--accent)}
.hero-stage{position:relative;min-width:0;height:608px;isolation:isolate}.stage-plane{position:absolute;inset:34px -20px 34px;overflow:hidden;z-index:-1;background:radial-gradient(ellipse at 47% 48%,var(--soft-accent),transparent 63%);opacity:.8;mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent)}.stage-orbit{position:absolute;width:490px;height:490px;left:45%;top:48%;transform:translate(-50%,-50%);border:1px solid var(--line);border-radius:50%;opacity:.65}.orbit-two{width:580px;height:580px}.stage-plane:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(50% - .5px),var(--line) 50%,transparent calc(50% + .5px));opacity:.4}
.signal-note{position:absolute;top:1px;left:20px;display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);line-height:1.5}.signal-note strong{font-size:15px;color:var(--ink);font-weight:700}.signal-note .icon{margin-left:10px;color:var(--accent);width:18px}.status-dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent);vertical-align:middle}
.call-annotation{position:absolute;left:0;top:216px;width:150px;display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--quiet);line-height:1.7}.call-annotation .mono{font:9px "JetBrains Mono",monospace;letter-spacing:.12em;color:var(--accent)}.call-annotation strong{font-size:12px;color:var(--ink);font-weight:700}.annotation-line{position:relative;height:1px;width:112px;background:var(--line);margin-top:15px}.annotation-line:after{content:"";position:absolute;right:0;top:-3px;width:6px;height:6px;border:1px solid var(--accent);background:var(--bg)}
.phone-wrap{position:absolute;top:15px;left:45%;width:277px;transform:translateX(-50%);z-index:3;will-change:transform}.phone{position:relative;border-radius:42px;background:#111c27;padding:7px;border:2px solid #576776;box-shadow:15px 26px 58px #01050b50,3px 3px 0 #233542;transform:rotate(-2deg)}.phone:before,.phone:after{content:"";position:absolute;width:3px;background:#667889;border-radius:3px;left:-4px;top:93px;height:46px}.phone:after{height:68px;left:auto;right:-4px;top:137px}.phone-screen{background:#09131f;border-radius:32px;overflow:hidden;color:#eef6fa;min-height:528px;padding:0 15px 18px;position:relative}
.phone-status{height:36px;display:flex;align-items:center;justify-content:space-between;font:9px "JetBrains Mono",monospace;padding:3px 4px 0;color:#c8d7e2}.phone-island{height:18px;width:72px;background:#030912;border-radius:20px;position:absolute;left:50%;transform:translateX(-50%);top:9px}.phone-status-bars{display:inline-flex;align-items:flex-end;gap:2px}.phone-status-bars i{display:block;width:2px;background:#c8d7e2;height:3px}.phone-status-bars i:nth-child(2){height:5px}.phone-status-bars i:nth-child(3){height:7px}.phone-status-bars span{display:inline-block;width:14px;height:7px;border:1px solid #c8d7e2;border-radius:2px;position:relative;margin-left:3px}.phone-status-bars span:after{content:"";position:absolute;inset:1px 3px 1px 1px;background:#c8d7e2}.phone-heading{display:flex;gap:10px;align-items:center;margin-top:15px;margin-bottom:15px}.caller-avatar{width:37px;height:37px;display:grid;place-items:center;background:#15404a;border-radius:50%;color:#5ee5df}.caller-avatar .icon{width:18px}.phone-label{font:7px "JetBrains Mono",monospace;letter-spacing:.05em;color:#95adb9}.phone-heading h2{font-size:17px;line-height:1.4;margin:2px 0 0;font-weight:750;letter-spacing:-.015em}
.demo-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid #263949;border-radius:7px;margin-bottom:13px}.demo-tabs button{background:transparent;border:0;font-size:9px;padding:6px 0;color:#a0b7c6;border-radius:4px;min-height:30px}.demo-tabs button[aria-pressed="true"]{color:#edfaff;background:#223b4b;font-weight:700}.call-state{display:flex;align-items:center;gap:6px;color:#b4ccd6;font:8px "JetBrains Mono",monospace;margin-block:10px}.call-state .status-dot{background:#56dad3;width:5px;height:5px}.call-state #phone-clock{margin-left:auto;color:#80aaa9;font-variant-numeric:tabular-nums}.waveform{height:29px;display:flex;align-items:center;justify-content:center;gap:2px;margin-block:12px 17px;overflow:hidden}.waveform i{display:block;width:2px;min-height:2px;background:#315063;border-radius:2px;flex:none}.waveform i.is-past{background:#63e4dd}
.phone-transcript{height:219px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#34505f #09131f;padding-right:4px;scroll-behavior:smooth;mask-image:linear-gradient(#000 92%,transparent)}.bubble{max-width:95%;background:#172939;padding:9px 11px;margin-bottom:10px;border-radius:8px;font-size:10px;line-height:1.7;color:#dce9f1;transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out)}.bubble span{font:6.5px "JetBrains Mono",monospace;letter-spacing:.09em;display:block;margin-bottom:3px;color:#89acbd}.bubble p{margin:0}.bubble.caller{margin-left:auto;background:#113e47;color:#d4f4f2}.bubble.caller span{color:#84d5cf}.bubble.is-active{background:#204355;color:#fff}.bubble.caller.is-active{background:#175662}.bubble.is-future{display:none}
.phone-player{margin-top:15px}.seek-row{display:flex;align-items:center;gap:9px;color:#8da7b9;font:8px "JetBrains Mono",monospace}.seek-row input{width:100%;accent-color:#54ded9;height:15px;cursor:pointer}.play-row{display:flex;gap:7px;margin-top:10px}.phone-play{background:#4adbd7;border:0;border-radius:6px;color:#072027;display:flex;justify-content:center;align-items:center;gap:7px;flex:1;padding:8px;font-weight:800;font-size:10px;min-height:34px}.phone-play .icon{width:14px;height:14px}.phone-play:active,.replay:active{transform:scale(.97)}.replay{display:grid;place-items:center;width:34px;border:1px solid #304753;border-radius:6px;background:none;color:#b1c8d5}.replay .icon{width:13px}.phone-home{width:77px;height:3px;background:#62717f;border-radius:8px;margin:15px auto 0}.audio-error{font-size:9px;line-height:1.5;color:#ffbfa6}
.booking-scene{min-height:323px}.booking-context{font-size:10px;color:#b5ccd9;line-height:1.7;margin-top:15px}.booking-result{display:flex;align-items:flex-start;flex-direction:column;border:1px solid #315260;border-radius:10px;padding:14px;margin-block:15px;background:#122e3b;gap:3px}.booking-result .icon{color:#69e0db;margin-bottom:7px}.booking-result span{font:7px "JetBrains Mono",monospace;letter-spacing:.09em;color:#88bbb8}.booking-result strong{font-size:16px;margin-top:5px}.booking-result b{font-size:12px;color:#74e0dc}.booking-result small{font-size:8px;color:#b0c7d0}.booking-quote{font-size:10px;line-height:1.7;padding:10px;background:#172939;border-radius:7px}.booking-quote span{font:7px "JetBrains Mono",monospace;color:#9dc4d3}.booking-quote p{margin:5px 0}.booking-source{color:#88a3b2;font-size:8px;line-height:1.7}
.hud-frame{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--wash)}.hud-frame:before,.hud-frame:after{content:"";position:absolute;width:12px;height:12px;border-color:var(--accent);border-style:solid;pointer-events:none}.hud-frame:before{top:-1px;left:-1px;border-width:1px 0 0 1px;border-radius:10px 0 0}.hud-frame:after{right:-1px;bottom:-1px;border-width:0 1px 1px 0;border-radius:0 0 10px}
.call-intake{position:absolute;right:-8px;top:156px;width:186px;padding:16px;z-index:4}.intake-heading{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700;margin-bottom:17px}.intake-heading .icon{width:14px;color:var(--accent)}.intake-field{padding-block:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.intake-field span{font-size:9px;color:var(--quiet)}.intake-field strong{font-size:12px;line-height:1.6;font-weight:700}.intake-foot{display:flex;align-items:center;gap:6px;margin-top:12px;font:8px "JetBrains Mono",monospace;color:var(--accent);line-height:1.6}.intake-foot .status-dot{width:4px;height:4px}.call-path{position:absolute;left:5%;right:0;bottom:1px;display:flex;align-items:center;justify-content:center;gap:8px;font:9px "JetBrains Mono",monospace;color:var(--quiet);white-space:nowrap}.call-path span{display:flex;align-items:center;gap:6px}.call-path .icon{height:14px;width:14px}.call-path i{height:1px;background:var(--line);flex:1;max-width:38px}.call-path .path-center{color:var(--accent)}
.demo-caption{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:25px;padding-block:29px 25px;border-bottom:1px solid var(--line);margin-top:31px;font-size:10px;color:var(--quiet)}.demo-caption>span{display:flex;align-items:center;gap:8px}.full-transcript{position:relative;max-width:650px}.full-transcript summary{cursor:pointer;color:var(--muted);font-size:11px;padding:9px;white-space:nowrap}.transcript-document{position:absolute;top:42px;right:0;z-index:10;width:540px;max-width:80vw;max-height:450px;overflow:auto;padding:24px;border:1px solid var(--line);background:var(--bg);border-radius:10px;font-size:13px;color:var(--ink)}.transcript-document ol{padding-left:22px}.transcript-document li{margin-bottom:14px}.transcript-document li strong{color:var(--accent);display:block;font-size:10px}.source-note{font-size:11px;color:var(--muted);margin-top:0}
h2{font-size:clamp(31px,3.3vw,46px);font-weight:800;letter-spacing:-.035em;line-height:1.22;margin:0;text-wrap:balance}h3{letter-spacing:-.02em}p{text-wrap:pretty}.pain-section{padding-top:96px;padding-bottom:110px}.pain-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:60px;padding-bottom:37px}.pain-intro p{color:var(--muted);font-size:15px;max-width:345px;margin:0 0 4px}.pain-rows{border-top:1px solid var(--line)}.pain-row{display:grid;grid-template-columns:.67fr 1.05fr 1.1fr;gap:38px;padding-block:27px;border-bottom:1px solid var(--line);align-items:center}.pain-moment{font-size:11px;color:var(--quiet);display:flex;gap:10px;align-items:center}.pain-moment .icon{width:16px;color:var(--accent)}.pain-row h3{font-size:18px;line-height:1.55;margin:0;font-weight:650}.pain-row p{margin:0;color:var(--muted);font-size:13px;line-height:1.9}
.story{padding-bottom:110px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:55px}.section-heading p{max-width:330px;color:var(--muted);font-size:15px;margin:0 0 5px}.story-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px;align-items:start}.story-step{position:relative;padding:25px 0 35px 42px;min-height:315px;border-left:1px solid var(--line);color:var(--muted);transition:color 200ms ease}.story-step:last-child{min-height:300px}.step-number{position:absolute;left:-13px;top:29px;width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font:10px "JetBrains Mono",monospace;background:var(--bg);color:var(--quiet)}.story-step.is-active .step-number{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.story-step h3{font-size:26px;line-height:1.4;margin:0 0 16px;color:var(--ink);font-weight:750}.story-step p{font-size:13px;line-height:1.9;max-width:345px;margin:0 0 8px}.scene-link{color:var(--accent);font-size:11px}.story-display{position:sticky;top:125px;min-width:0;background:var(--wash);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-height:478px}
.display-browser{display:flex;align-items:center;gap:5px;padding:13px 19px;border-bottom:1px solid var(--line)}.display-browser>span:not(.display-badge){width:5px;height:5px;background:var(--line);border-radius:50%}.display-browser p{font:8px "JetBrains Mono",monospace;margin:0 0 0 12px;color:var(--quiet);letter-spacing:.05em}.display-badge{margin-left:auto;font-size:8px;color:var(--quiet)}.display-title{display:flex;align-items:center;gap:16px;padding:27px 28px 20px}.display-title h3{font-size:23px;line-height:1.35;margin:0;font-weight:750}.record-tabs{margin-inline:28px;display:flex;gap:23px;border-bottom:1px solid var(--line)}.record-tabs button{border:0;background:none;color:var(--quiet);font-size:11px;padding:11px 0;min-height:42px;border-bottom:2px solid transparent;margin-bottom:-1px}.record-tabs button[aria-pressed="true"]{border-bottom-color:var(--accent);color:var(--accent);font-weight:700}.record-content{padding:24px 28px;min-height:213px}.record-label{font:8px "JetBrains Mono",monospace;letter-spacing:.08em;color:var(--quiet);margin:0 0 14px}.record-quote{font-size:18px;line-height:1.65;margin:0;color:var(--ink);font-weight:600}.record-callout{margin-top:20px;display:flex;align-items:center;gap:10px;font-size:11px;color:var(--accent)}.record-callout .icon{width:16px}.record-date{font-size:28px;font-weight:800;line-height:1.4;letter-spacing:-.03em;margin-bottom:6px}.record-date span{display:block;font-size:17px;color:var(--accent);letter-spacing:0}.record-detail{font-size:12px;color:var(--muted);margin-block:9px}.record-brief{margin:0}.record-brief div{display:grid;grid-template-columns:120px 1fr;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line);gap:20px}.record-brief dt{color:var(--quiet)}.record-brief dd{margin:0;font-weight:600;color:var(--ink)}.display-bottom{padding:14px 28px;display:flex;gap:9px;align-items:center;background:var(--surface);margin-top:0}.display-bottom p{font-size:10px;color:var(--muted);margin:0}.display-bottom .status-dot{width:4px;height:4px}
/* Legacy rules-section removed. Modern implementation defined below. */
.questions{display:grid;grid-template-columns:.65fr 1.05fr;gap:110px;padding-block:110px 115px}.questions-intro h2{font-size:37px;max-width:280px}.questions-intro p{font-size:14px;color:var(--muted);max-width:275px;margin-top:20px}.faq-list{border-top:1px solid var(--line)}.faq-list details{border-bottom:1px solid var(--line)}.faq-list summary{display:flex;gap:20px;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;font-weight:650;list-style:none;padding-block:22px;min-height:64px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary .icon{width:17px;height:17px;color:var(--accent);transition:transform 200ms var(--ease-out)}.faq-list details[open] summary .icon{transform:rotate(45deg)}.faq-list details p{font-size:13px;line-height:1.95;color:var(--muted);padding-right:25px;margin:0 0 23px}
.contact-section{display:grid;grid-template-columns:1fr 1fr;gap:120px;padding-bottom:103px;border-bottom:1px solid var(--line);align-items:center}.contact-copy h2{font-size:clamp(39px,4.2vw,58px);line-height:1.16}.contact-copy h2 span{color:var(--accent)}.contact-copy>p{font-size:15px;color:var(--muted);max-width:340px;line-height:1.9;margin:24px 0}.contact-email{display:inline-flex;align-items:center;gap:16px;font-size:15px;font-weight:700}.contact-email .icon{width:17px;color:var(--accent)}.contact-note{display:block;color:var(--quiet);font-size:11px;margin-top:15px}.contact-form{background:var(--surface);border-radius:12px;padding:32px}.contact-form h3{font-size:19px;margin:0 0 23px;font-weight:750}.contact-form label{font-size:11px;font-weight:650;display:block;color:var(--muted);margin-bottom:19px}.contact-form input,.contact-form textarea{width:100%;display:block;background:var(--bg);border:1px solid var(--line);border-radius:7px;color:var(--ink);padding:12px;margin-top:7px;font-size:13px;min-width:0}.contact-form textarea{resize:vertical;min-height:89px}.contact-form textarea::placeholder{color:var(--quiet)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.contact-form .button{width:100%;margin-top:2px}.form-note{font-size:10px;line-height:1.8;color:var(--quiet);margin-bottom:0}.form-status{font-size:11px;color:var(--accent);line-height:1.8}.contact-form .text-link{font-size:11px;color:var(--accent)}.site-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding-block:38px 22px}.site-footer .brand{font-size:19px}.site-footer>p{font-size:12px;color:var(--muted);margin:0}.back-top{display:flex;align-items:center;gap:12px;font-size:10px;color:var(--quiet)}.back-top .icon{transform:rotate(-90deg);width:14px}.footer-bottom{flex-basis:100%;display:flex;justify-content:space-between;color:var(--quiet);font-size:9px;padding-top:14px;font-variant-numeric:tabular-nums}
[data-reveal].reveal-ready{opacity:0;transform:translateY(18px);transition:opacity 650ms var(--ease-out),transform 650ms var(--ease-out)}[data-reveal].is-visible{opacity:1;transform:translateY(0)}
@media(hover:hover) and (pointer:fine){.button:hover{transform:translateY(-2px)}.text-link:hover,.contact-email:hover{text-decoration:underline}.theme-toggle:hover{color:var(--ink)}.phone-play:hover{background:#77e8e4}.replay:hover{background:#193b4a}.faq-list summary:hover{color:var(--accent)}}
@media(min-width:1600px){.hero h1{font-size:76px}.hero-stage{height:620px}.hero{padding-top:76px}}
@media(max-width:1250px){.section-wrap,.nav-wrap{width:calc(100% - 72px)}.hero{grid-template-columns:.9fr 1.1fr;gap:15px;padding-top:50px;min-height:700px}.hero h1{font-size:60px}.hero-stage{height:588px}.phone-wrap{width:261px;left:45%;top:10px}.phone-screen{min-height:516px}.call-intake{width:158px;right:-6px;top:189px;padding:13px}.intake-heading{font-size:9px;gap:5px}.call-annotation{width:110px;font-size:9px;top:169px}.call-annotation strong{font-size:10px}.annotation-line{width:84px}.signal-note{left:0;top:-13px}.hero-lead{font-size:16px}.hero-description{font-size:13px}.hero-actions{gap:12px}.hero-actions .button{font-size:12px;padding-inline:16px}.hero-actions .text-link{font-size:11px}.story-layout,.rules-layout{gap:55px}.questions{gap:60px}.contact-section{gap:70px}.pain-row{gap:25px}}
@media(max-width:1050px){.desktop-nav{gap:22px}.nav-actions{gap:14px}.hero{grid-template-columns:.9fr 1.05fr;gap:7px}.hero h1{font-size:50px}.hero-stage{height:570px}.phone-wrap{left:46%;width:252px}.call-annotation{display:none}.call-intake{right:-10px;width:140px;top:241px}.intake-heading{font-size:8px}.intake-heading .icon{display:none}.intake-field strong{font-size:10px}.intake-foot{font-size:7px}.signal-note{left:21px}.hero-copy{padding-bottom:0}.hero-description{max-width:330px}.hero-promise{font-size:10px}.call-path{left:0;font-size:8px;gap:5px}.call-path i{max-width:20px}.pain-row{grid-template-columns:.7fr 1.1fr 1.15fr}.pain-row h3{font-size:16px}.story-layout{gap:36px;grid-template-columns:.8fr 1.2fr}.story-step{padding-left:30px}.story-step h3{font-size:23px}.display-title h3{font-size:21px}.display-title,.record-content{padding-inline:22px}.record-tabs{margin-inline:22px}.rules-layout{gap:45px}.questions{gap:40px}.contact-section{gap:50px}.contact-form{padding:26px}}
@media(max-width:850px){.section-wrap,.nav-wrap{width:calc(100% - 44px)}.nav-wrap{height:74px;gap:20px}.desktop-nav{display:none}.mobile-nav{display:block;position:relative;order:-1}.mobile-nav summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:36px;height:44px;color:var(--muted)}.mobile-nav summary::-webkit-details-marker{display:none}.mobile-nav nav{position:absolute;right:-150px;top:48px;width:230px;background:var(--surface);border:1px solid var(--line);border-radius:9px;display:grid;padding:12px;gap:4px}.mobile-nav nav a{font-size:13px;padding:10px}.hero{grid-template-columns:1fr;min-height:0;padding-top:49px}.hero-copy{padding-bottom:0;max-width:600px}.hero h1{font-size:clamp(45px,8vw,64px);margin-bottom:22px}.hero h1 br:first-child{display:none}.hero h1{max-width:640px}.hero-lead{font-size:17px;max-width:490px}.hero-description{max-width:500px;font-size:14px}.hero-actions{gap:22px}.hero-actions .button{font-size:13px}.hero-stage{width:min(620px,100%);height:593px;justify-self:center;margin-top:40px}.phone-wrap{width:274px;left:46%;top:20px}.call-intake{right:8px;top:203px;width:181px;padding:15px}.intake-heading{font-size:10px}.intake-heading .icon{display:block}.intake-field strong{font-size:12px}.intake-foot{font-size:8px}.call-annotation{display:flex;top:210px;width:130px}.annotation-line{width:98px}.call-path{bottom:0;left:5%;font-size:9px}.signal-note{top:0;left:15px}.demo-caption{margin-top:27px;font-size:9px}.pain-section{padding-block:74px}.pain-intro{align-items:start;gap:30px}.pain-intro h2{font-size:33px}.pain-intro p{max-width:240px;font-size:13px}.pain-row{grid-template-columns:.7fr 1.2fr;gap:13px 20px}.pain-row p{grid-column:2;font-size:12px}.pain-row h3{font-size:18px}.pain-moment{align-self:start;padding-top:5px}.section-heading{gap:24px}.section-heading h2{font-size:35px}.section-heading p{font-size:13px;max-width:230px}.story-layout{gap:30px;grid-template-columns:.8fr 1.05fr}.story-step{padding-left:24px;min-height:330px}.story-step h3{font-size:21px}.story-step p{font-size:12px}.display-title{padding:20px 17px 16px;gap:10px}.display-title img{width:25px;height:25px}.display-title h3{font-size:19px}.display-browser{padding-inline:17px}.display-browser p{font-size:7px;margin-left:5px}.display-badge{display:none}.record-tabs{margin-inline:17px;gap:17px}.record-tabs button{font-size:10px}.record-content{padding-inline:17px}.record-quote{font-size:16px}.record-brief div{grid-template-columns:85px 1fr;font-size:10px;gap:15px}.display-bottom{padding-inline:17px}.rules-layout{grid-template-columns:.85fr 1.15fr;gap:34px}.rules-layout h2{font-size:34px}.rules-lead{font-size:13px}.rules-console{padding-inline:19px}.rules-console-header>span:last-child{display:none}.questions{grid-template-columns:.6fr 1fr;gap:34px;padding-block:78px}.questions-intro h2{font-size:32px}.contact-section{gap:35px;padding-bottom:75px}.contact-copy h2{font-size:42px}.contact-copy>p{font-size:13px}.contact-form{padding:23px}.form-row{grid-template-columns:1fr;gap:0}.contact-form h3{font-size:16px}.site-footer>p{font-size:10px}}
@media(max-width:600px){html{scroll-padding-top:85px}.section-wrap,.nav-wrap{width:calc(100% - 38px)}.nav-wrap{height:68px;gap:10px}.brand{font-size:21px;gap:8px}.brand img:not(.brand-logo){width:27px;height:27px}.brand .brand-logo{height:28px;width:auto}.nav-actions{gap:9px}.button-small{font-size:10px;padding:9px 12px;min-height:39px}.button-small .icon{width:14px;height:14px}.theme-toggle{width:30px;justify-content:center;padding:0}.theme-toggle span{display:none}.theme-toggle .icon{width:19px}.mobile-nav{display:none}.hero{padding-top:39px}.hero h1{font-size:47px;line-height:1.13;letter-spacing:-.04em}.hero h1 br:first-child{display:initial}.hero-lead{font-size:15px;line-height:1.8;max-width:330px}.hero-description{font-size:12px;line-height:1.9}.hero-actions{gap:10px;margin-top:24px}.hero-actions .button{font-size:12px;padding-inline:16px;min-height:48px}.hero-actions .text-link{font-size:10px;gap:8px}.hero-promise{font-size:9px;gap:7px 12px;margin-top:19px}.hero-stage{margin-top:30px;height:590px}.phone-wrap{left:43%;top:28px;width:260px}.phone-screen{min-height:516px}.signal-note{left:7px;top:0;gap:7px;font-size:9px}.signal-note strong{font-size:12px}.signal-note .icon{display:none}.call-annotation{display:none}.call-intake{width:127px;right:-7px;top:188px;padding:12px;background:var(--bg)}.intake-heading{font-size:8px;line-height:1.5;margin-bottom:10px;gap:4px}.intake-heading .icon{width:11px;height:11px}.intake-field{padding-block:9px}.intake-field span{font-size:8px}.intake-field strong{font-size:10px}.intake-foot{font-size:6px;gap:4px}.call-path{font-size:8px;left:0;right:0;gap:6px;bottom:0}.call-path i{max-width:15px}.call-path .icon{width:11px;height:11px}.call-path img{width:13px;height:13px}.stage-plane{inset-inline:-30px}.stage-orbit{width:370px;height:370px}.orbit-two{width:470px;height:470px}.demo-caption{display:block;padding-block:20px 18px;line-height:1.8;margin-top:17px}.demo-caption>span{align-items:start}.demo-caption>span .status-dot{margin-top:6px}.full-transcript{margin-top:4px}.full-transcript summary{padding-left:0;font-size:10px}.transcript-document{left:0;right:auto;width:calc(100vw - 38px);max-width:none;padding:20px;top:33px}.pain-section{padding-top:60px;padding-bottom:65px}.pain-intro{display:block;padding-bottom:25px}.pain-intro h2{font-size:31px}.pain-intro p{max-width:320px;margin:20px 0 0;font-size:13px}.pain-row{grid-template-columns:1fr;gap:10px;padding-block:23px}.pain-row p{grid-column:1;font-size:12px;max-width:350px}.pain-row h3{font-size:17px}.pain-moment{font-size:10px;gap:8px;padding:0}.pain-moment .icon{width:14px;height:14px}.section-heading{display:block;margin-bottom:30px}.section-heading h2{font-size:32px}.section-heading p{margin-top:18px;max-width:330px;font-size:13px}.story{padding-bottom:64px}.story-layout{display:flex;flex-direction:column;gap:35px}.story-display{position:relative;top:auto;width:100%;order:-1;min-height:438px}.story-steps{padding-left:13px}.story-step{min-height:0;padding:12px 0 32px 30px;opacity:1}.story-step:last-child{min-height:0;padding-bottom:0}.story-step h3{font-size:23px}.story-step p{max-width:340px;font-size:12px}.step-number{top:16px}.display-title{padding:23px 22px 20px}.display-title h3{font-size:23px}.display-title img{width:32px;height:32px}.display-browser{padding-inline:22px}.display-browser p{font-size:7px}.display-badge{display:initial;font-size:7px}.record-tabs{margin-inline:22px;gap:25px}.record-tabs button{font-size:11px}.record-content{padding-inline:22px;min-height:206px}.record-quote{font-size:17px}.record-brief div{font-size:11px;grid-template-columns:90px 1fr}.display-bottom{padding-inline:22px}.rules-section{padding-block:61px}.rules-layout{grid-template-columns:1fr;gap:32px}.rules-layout h2{font-size:37px}.rules-lead{max-width:345px;font-size:13px;margin-block:22px 12px}.rules-console{padding-inline:22px}.rules-list>div{padding-block:18px}.rules-list dt{font-size:15px}.rules-list dd{font-size:12px}.rule-state{font-size:8px}.rules-console-header>span:last-child{display:initial;font-size:8px}.rules-console-footer{font-size:9px}.questions{grid-template-columns:1fr;gap:25px;padding-block:64px}.questions-intro h2{max-width:none;font-size:32px}.questions-intro p{max-width:350px;font-size:13px;margin-top:17px}.faq-list summary{font-size:12px;line-height:1.7;padding-block:19px;gap:16px}.faq-list details p{font-size:12px;line-height:1.85;padding-right:10px}.contact-section{grid-template-columns:1fr;gap:31px;padding-bottom:60px}.contact-copy h2{font-size:44px}.contact-copy>p{font-size:13px;margin-block:22px;max-width:325px}.contact-email{font-size:14px}.contact-note{font-size:10px}.contact-form{padding:25px}.contact-form h3{font-size:18px}.form-row{grid-template-columns:1fr 1fr;gap:12px}.contact-form label{font-size:10px}.contact-form input,.contact-form textarea{font-size:16px;padding:10px}.contact-form .button{font-size:12px}.site-footer{gap:20px;padding-top:29px}.site-footer .brand{font-size:19px}.site-footer>p{order:4;flex-basis:100%;font-size:11px}.site-footer .back-top{margin-left:auto}.footer-bottom{font-size:8px;gap:15px;align-items:start;order:5;padding-top:0}.footer-bottom>span:last-child{max-width:235px;text-align:right}}
@media(max-width:370px){.hero h1{font-size:43px}.phone-wrap{left:42%;width:248px}.call-intake{width:115px;right:-4px}.intake-heading .icon{display:none}.hero-actions .text-link{font-size:9px}.button-small{padding-inline:10px;font-size:9px}.nav-actions{gap:5px}.form-row{grid-template-columns:1fr;gap:0}.display-badge{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.phone-transcript{scroll-behavior:auto}.phone-wrap{will-change:auto}[data-reveal].reveal-ready{opacity:1;transform:none}.button,.bubble,.story-step,.faq-list summary .icon,[data-reveal]{transition-duration:100ms!important;transition-property:opacity,color,background-color!important}.button:active,.phone-play:active,.replay:active{transform:none}}
.phone-status{height:30px}.phone-heading{margin-top:10px;margin-bottom:10px}.demo-tabs{margin-bottom:9px}.call-state{margin-block:7px}.waveform{height:24px;margin-block:9px 10px}.phone-transcript{height:207px}.phone-player{margin-top:12px}.phone-home{margin-top:12px}.bubble{font-size:11px}.booking-scene{height:343px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#34505f #09131f}
.incoming-state{height:250px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.incoming-ring{position:relative;width:64px;height:64px;border-radius:50%;background:#123c46;color:#70e7e2;display:grid;place-items:center;margin-bottom:17px}.incoming-ring:after{content:"";position:absolute;inset:-7px;border:1px solid #376a73;border-radius:50%;animation:incoming-signal 2.2s var(--ease-out) infinite}.incoming-ring .icon{width:27px;height:27px}.incoming-state strong{font-size:22px;line-height:1.3;letter-spacing:-.025em}.incoming-state p{font-size:12px;color:#b6cbd7;margin:14px 0 10px;line-height:1.8}.incoming-state>span{font-size:8px;color:#91a9b9}@keyframes incoming-signal{0%{transform:scale(.95);opacity:.8}100%{transform:scale(1.24);opacity:0}}
@media(min-width:1251px){.phone-wrap{width:300px}}
@media(min-width:851px) and (max-width:1250px){.phone-wrap{width:274px}}
@media(max-width:600px){.hero-stage{height:707px}.stage-plane{inset-inline:0}.phone-wrap{left:50%;width:278px}.call-intake{top:auto;bottom:42px;left:5px;right:5px;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px 17px;padding:12px 16px;background:var(--wash)}.intake-heading{grid-column:1/-1;margin:0;font-size:9px}.intake-heading .icon{width:12px;height:12px;display:initial}.intake-field{padding-block:6px 0}.intake-field strong{font-size:10px}.intake-foot{display:none}.call-path{bottom:4px}.hero-description{font-size:13px}.pain-row p,.story-step p,.rules-lead,.questions-intro p,.faq-list details p,.contact-copy>p{font-size:13.5px}.faq-list summary{font-size:13px}.contact-form label{font-size:11px}}
@media(prefers-reduced-motion:reduce){.incoming-ring:after{animation:none}.incoming-state{transition:none}}

/* --- Full-Bleed Cinematic Hero with Scroll-Driven Handoff --- */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse 85% 65% at 50% 30%, #17191e 0%, #0c0e12 55%, #050608 100%);
  width: 100%;
  isolation: isolate;
}
@media (min-width: 851px) {
  .hero-cinematic {
    min-height: 280vh; /* Tightened scroll runway (280vh) per scroll-craft */
  }
}
.hero-sticky-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(68px, 9vh, 88px) max(4vw, 24px) clamp(16px, 3vh, 32px);
  box-sizing: border-box;
  isolation: isolate;
}
@media (min-width: 851px) {
  .hero-sticky-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 24%;
  filter: brightness(1.14) contrast(1.03) saturate(1.08);
}
@media (min-width: 1200px) {
  .hero-video {
    object-position: right 30%;
  }
}
@media (min-width: 1600px) {
  .hero-video {
    object-position: center;
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 75% 45% at 50% -5%, rgba(243, 236, 217, 0.20) 0%, rgba(217, 206, 184, 0.08) 45%, transparent 75%),
    radial-gradient(ellipse 52% 42% at 20% 42%, rgba(43, 127, 255, 0.22) 0%, rgba(94, 229, 223, 0.10) 38%, transparent 70%),
    radial-gradient(circle 550px at 76% 50%, rgba(243, 236, 217, 0.10) 0%, transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 40%, rgba(0, 0, 0, 0.06) 70%, transparent 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, transparent 24%);
  pointer-events: none;
}

/* --- 21st.dev Data-Rain Canvas Background Engine --- */
.hero-data-rain-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.dr-root {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.dr-bloom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(14px) brightness(1.25);
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dr-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dr-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 25%, rgba(5, 7, 12, 0.72) 75%, #050608 100%);
}

/* --- Hero Two-Column Grid Stage --- */
.hero-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(460px, 520px) 1fr;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3.5vw, 48px);
  pointer-events: none;
}

/* --- Left Column: Copy & Actions --- */
.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 520px;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  padding-top: clamp(16px, 3.5vh, 40px);
  padding-bottom: 0;
}

/* --- Right Column: Phone Mockup & Rail Cards Stage --- */
.hero-device-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 36px);
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  perspective: 1200px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  will-change: opacity, transform;
}
.hero-device-stage.is-active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.hero-device-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 96%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28) 0%, rgba(234, 88, 12, 0.12) 42%, transparent 72%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

/* Floating Badges removed per user request */
.hero-floating-chip {
  display: none !important;
}

/* --- iPhone 16 Pro Hardware Mockup Frame --- */
.iphone-mockup {
  position: relative;
  z-index: 2;
  height: clamp(500px, calc(100dvh - 128px), 780px);
  aspect-ratio: 9 / 18.8;
  width: auto;
  padding: 5.5px;
  border-radius: 44px;
  background: #14171d;
  box-shadow:
    0 0 0 1px rgba(254, 215, 170, 0.55),
    0 0 0 1.5px #ea580c,
    0 0 18px rgba(249, 115, 22, 0.42),
    0 0 38px rgba(234, 88, 12, 0.22),
    0 24px 60px -12px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
  transform: translateZ(0);
  overflow: hidden;
  pointer-events: auto;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.iphone-btn-action,
.iphone-btn-vol-up,
.iphone-btn-vol-down,
.iphone-btn-power {
  position: absolute;
  background: #ea580c;
  box-shadow: 0 0 4px rgba(249, 115, 22, 0.6);
  border-radius: 2px;
}
.iphone-btn-action {
  left: -4px;
  top: 102px;
  width: 2.5px;
  height: 22px;
}
.iphone-btn-vol-up {
  left: -4px;
  top: 138px;
  width: 2.5px;
  height: 42px;
}
.iphone-btn-vol-down {
  left: -4px;
  top: 192px;
  width: 2.5px;
  height: 42px;
}
.iphone-btn-power {
  right: -4px;
  top: 150px;
  width: 2.5px;
  height: 64px;
}

/* --- Phone Screen Surface --- */
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: #080c14;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 13px 10px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  user-select: none;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.iphone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 36%, transparent 52%);
  pointer-events: none;
  border-radius: 40px;
}

/* --- Interactive Stage Rail Cards (Positioned to the RIGHT of Phone) --- */
.lp-3d-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(300px, 25vw, 380px);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  flex-shrink: 0;
}

.lp-3d-art {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  outline: none;
  border-radius: 18px;
}

.lp-3d-art-inner {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1117;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  color: #f1f5f9;
  padding: 13px 18px;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.65);
}

.lp-3d-art:hover .lp-3d-art-inner {
  border-color: rgba(255, 255, 255, 0.24);
  background: #141821;
}

.lp-3d-art-label {
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  line-height: 1;
}

.lp-3d-art-label svg {
  color: #fb923c;
  flex: none;
  width: 14px;
  height: 14px;
}

.lp-3d-art-line {
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  display: block;
}

.lp-3d-art-body {
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.35s ease;
  opacity: 0;
  grid-template-rows: 0fr;
  display: grid;
  overflow: hidden;
  margin-top: 0;
}

.lp-3d-art-body > div {
  min-height: 0;
}

.lp-3d-art-title {
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.lp-3d-art-meta {
  color: #94a3b8;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
}

.lp-3d-art-text {
  color: #cbd5e1;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.lp-3d-art-sub {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  gap: 2px;
  margin-top: 9px;
  padding: 8px 11px;
  font-size: 12px;
  display: grid;
}

.lp-3d-art-k {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 2px;
  font-size: 9.5px;
  font-weight: 700;
  display: block;
}

.lp-3d-art-quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 12.5px;
  border-left: 2px solid #ea580c;
  padding-left: 9px;
  margin-top: 7px;
}

/* ACTIVE STATE */
.lp-3d-art[data-state="active"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lp-3d-art[data-state="active"] .lp-3d-art-inner {
  border-color: rgba(234, 88, 12, 0.85);
  background: #121620;
  box-shadow: 
    0 18px 50px -8px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(234, 88, 12, 0.28),
    0 0 0 1px rgba(234, 88, 12, 0.55);
  padding: 16px 20px 18px;
}

.lp-3d-art[data-state="active"] .lp-3d-art-label {
  color: #f8fafc;
}

.lp-3d-art[data-state="active"] .lp-3d-art-label svg {
  color: #f97316;
}

.lp-3d-art[data-state="active"] .lp-3d-art-line {
  display: none;
}

.lp-3d-art[data-state="active"] .lp-3d-art-body {
  opacity: 1;
  grid-template-rows: 1fr;
  margin-top: 3px;
}

/* PAST STATE */
.lp-3d-art[data-state="past"] {
  opacity: 0.72;
}
.lp-3d-art[data-state="past"]:hover {
  opacity: 0.95;
}
.lp-3d-art[data-state="past"] .lp-3d-art-label {
  color: #94a3b8;
}

/* FUTURE STATE */
.lp-3d-art[data-state="future"] {
  opacity: 0.52;
}
.lp-3d-art[data-state="future"]:hover {
  opacity: 0.85;
}

/* --- Multi-View Phone Screen Architecture --- */
.hps-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 8px 12px 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}
.hps-view.is-active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 5;
}
.hps-screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  height: 100%;
}
.hps-screen-inner::-webkit-scrollbar { display: none; }

/* Status Bar AI Pill */
.hps-ai-pill {
  font-size: 8.5px;
  font-weight: 700;
  color: #fb923c;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* --- VIEW 1: INCOMING CALL SCREEN --- */
.hps-incoming-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8px;
}
.hps-incoming-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.incoming-sonar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  animation: sonarPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.incoming-sonar-ring.ring-2 {
  inset: -22px;
  border-color: rgba(249, 115, 22, 0.35);
  animation-delay: 1.2s;
}
@keyframes sonarPulse {
  0% { transform: scale(0.85); opacity: 0.95; }
  100% { transform: scale(1.45); opacity: 0; }
}
.hps-incoming-avatar {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45), 0 0 45px rgba(234, 88, 12, 0.28);
  overflow: hidden;
}
.grace-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.hps-incoming-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}
.hps-incoming-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 12px;
}
.hps-incoming-ringing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.ring-dot {
  color: #fb923c;
  animation: dotBlink 1.4s infinite;
}
.ring-dot.dot-2 { animation-delay: 0.25s; }
.ring-dot.dot-3 { animation-delay: 0.5s; }
@keyframes dotBlink {
  0%, 20% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}
.hps-incoming-number {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.hps-incoming-meta {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 16px;
}
.hps-incoming-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.hps-pill-sparkle {
  color: #fbbf24;
  font-size: 12px;
}
.hps-pill-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
}
.hps-pill-text strong {
  font-size: 10.5px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
}
.hps-pill-text span {
  font-size: 9px;
  color: #94a3b8;
}
.hps-pill-tag {
  font-size: 8px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 4px;
}
.hps-incoming-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 14px 16px 8px;
}
.hps-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hps-circle-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hps-circle-btn:active {
  transform: scale(0.92);
}
.btn-decline {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}
.btn-decline:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}
.btn-accept {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.5);
  animation: acceptPulse 2s infinite;
}
.btn-accept:hover {
  filter: brightness(1.12);
  transform: scale(1.08);
}
@keyframes acceptPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 4px 18px rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 4px 22px rgba(34, 197, 94, 0.7);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 4px 18px rgba(34, 197, 94, 0.5);
  }
}
.btn-icon {
  width: 24px;
  height: 24px;
}
.btn-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #e2e8f0;
}

/* View 1B Active Call with Grace */
.active-avatar {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}
.avatar-monogram-sm {
  font-size: 13px;
  font-weight: 800;
  color: #1a1306;
}
.hps-end-btn {
  font-size: 9.5px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hps-end-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* --- Subview Navigation Bar --- */
.hps-subview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.nav-back { color: #fb923c; cursor: pointer; }
.nav-title { font-weight: 700; color: #ffffff; }
.nav-action, .nav-duration { color: #94a3b8; font-variant-numeric: tabular-nums; }

/* --- View 2: Booking Card --- */
.hps-booking-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  padding: 6px 2px;
  flex: 1;
}
.hps-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  width: fit-content;
}
.hps-card-badge.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.hps-booking-main {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}
.hps-time-highlight {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.time-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.08em;
  display: block;
}
.time-value {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 1px;
}
.time-duration {
  font-size: 9.5px;
  color: #94a3b8;
}
.hps-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 10.5px;
  gap: 8px;
}
.row-label { color: #94a3b8; }
.row-val { color: #ffffff; text-align: right; }
.row-val.price { color: #22c55e; font-size: 12px; font-weight: 800; }
.hps-booking-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #94a3b8;
  padding: 2px 4px;
  margin-top: auto;
}
.status-indicator-live {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* --- View 3: Summary Card --- */
.hps-summary-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  padding: 6px 2px;
  flex: 1;
}
.hps-summary-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
}
.hps-summary-agent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.grace-avatar-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.agent-info-mini {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.agent-info-mini strong { font-size: 11px; color: #ffffff; }
.agent-info-mini span { font-size: 8.5px; color: #94a3b8; }
.hps-sentiment-pill {
  font-size: 9px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 7px;
  border-radius: 999px;
}
.hps-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.summary-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}
.metric-title {
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  display: block;
}
.metric-num {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
  display: block;
}
.metric-num.booked { color: #4ade80; }
.hps-summary-notes {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
}
.hps-summary-notes h5 {
  font-size: 8.5px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.hps-summary-notes ul {
  margin: 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hps-summary-notes li {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.35;
}
.hps-summary-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.hps-summary-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.hps-summary-btn.primary {
  background: #ea580c;
  color: #ffffff;
}
.hps-summary-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* --- View 4: Customer Email Placeholder Screen --- */
.hps-mail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.mail-nav-back { color: #38bdf8; cursor: pointer; }
.mail-nav-title { font-weight: 700; color: #ffffff; }
.mail-nav-count { font-size: 9.5px; color: #94a3b8; }
.hps-mail-header {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.mail-subject {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.mail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mail-sender-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mail-sender-details {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  flex: 1;
  min-width: 0;
}
.mail-from { color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-to { color: #94a3b8; }
.mail-time { font-size: 9px; color: #64748b; }
.hps-mail-placeholder-notice {
  background: rgba(234, 88, 12, 0.12);
  border: 1px dashed rgba(234, 88, 12, 0.5);
  border-radius: 10px;
  padding: 7px 10px;
  text-align: center;
  margin-bottom: 8px;
}
.notice-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.06em;
}
.notice-desc {
  font-size: 8.5px;
  color: #fdba74;
  margin: 2px 0 0;
}
.hps-mail-body {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.email-brand-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.08em;
}
.email-headline {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.email-greeting {
  font-size: 9.5px;
  line-height: 1.4;
  color: #475569;
  margin: 0;
}
.email-receipt-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
}
.receipt-row strong { color: #0f172a; }
.receipt-row.highlight {
  border-top: 1px solid #e2e8f0;
  padding-top: 4px;
  margin-top: 2px;
}
.receipt-row.highlight strong {
  color: #ea580c;
  font-size: 10.5px;
}
.email-cta-box {
  text-align: center;
  margin: 2px 0;
}
.email-cta-btn {
  display: block;
  padding: 6px;
  background: #ea580c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
}
.email-footer-signoff {
  font-size: 8px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
  margin-top: auto;
  padding-top: 6px;
}
.email-footer-signoff strong { color: #0f172a; }

/* Pinned Home Indicator */
.iphone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  margin: 0;
  z-index: 20;
  pointer-events: none;
}


/* Replay Button */
.hero-replay-btn {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.hero-replay-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.hps-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 2px 8px 6px;
  flex-shrink: 0;
}
.hps-island {
  width: 68px;
  height: 16px;
  background: #000000;
  border-radius: 999px;
  margin-top: -2px;
}
.hps-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.hps-battery {
  width: 16px;
  height: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 2.5px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}
.hps-battery i {
  display: block;
  width: 100%;
  height: 100%;
  background: #22c55e;
  border-radius: 1px;
}
.hps-battery:after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 1.5px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 0 1px 1px 0;
}
.hps-call-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.hps-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b46f6, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 70, 246, 0.4);
  flex-shrink: 0;
}
.hps-avatar.active-avatar {
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}
.grace-avatar-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.hps-mark-icon {
  width: 22px;
  height: 22px;
}
.hps-caller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.hps-caller-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.hps-call-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}
.hps-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: hpsPulse 1.8s infinite;
}
.hps-timer {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
@keyframes hpsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hps-waveform-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 26px;
  padding: 5px 0;
  margin: 4px 0 2px;
  flex-shrink: 0;
}
.hps-waveform-bar span {
  width: 3px;
  height: 8px;
  background: linear-gradient(180deg, #38bdf8, #0b46f6);
  border-radius: 999px;
  transition: height 0.15s ease;
}
.hps-waveform-bar.is-playing span {
  animation: hpsWave 1.2s ease-in-out infinite alternate;
}
.hps-waveform-bar.is-playing span:nth-child(2n) { animation-duration: 0.9s; animation-delay: 0.2s; }
.hps-waveform-bar.is-playing span:nth-child(3n) { animation-duration: 1.4s; animation-delay: 0.4s; }
.hps-waveform-bar.is-playing span:nth-child(4n) { animation-duration: 1.1s; animation-delay: 0.1s; }
@keyframes hpsWave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}
.hps-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 2px;
  scrollbar-width: none;
}
.hps-feed::-webkit-scrollbar { display: none; }
.hps-bubble {
  max-width: 90%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.45;
  animation: hpsSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hpsSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hps-bubble-author {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.hps-bubble.hps-agent {
  align-self: flex-start;
  background: rgba(15, 30, 50, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #f0fdf4;
}
.hps-bubble.hps-agent .hps-bubble-author {
  color: #38bdf8;
}
.hps-bubble.hps-agent.is-speaking {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}
.hps-bubble.hps-user {
  align-self: flex-end;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
.hps-bubble.hps-user .hps-bubble-author {
  color: #94a3b8;
  text-align: right;
}
.hps-bubble p {
  margin: 0;
}
.hps-controls {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.hps-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hps-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}
.hps-ctrl-btn:active {
  transform: scale(0.97);
}
.hps-ctrl-icon {
  width: 12px;
  height: 12px;
}
.hps-live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-family: monospace;
  color: #94a3b8;
}
.hps-rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ef4444;
  animation: hpsPulse 1.2s infinite;
}
@media (max-width: 1024px) {
  .hero-container {
    gap: 32px;
  }
  .hero-floating-chip.chip-top-left {
    left: -12px;
  }
  .hero-floating-chip.chip-bottom-right {
    right: -10px;
  }
}

@media (max-width: 900px) {
  .hero-cinematic {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 105px 20px 50px;
    overflow-y: visible;
    overflow-x: hidden;
    align-items: flex-start;
  }
  .hero-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
    padding-top: 10px;
  }
  .hero-copy {
    max-width: 580px;
    align-items: center;
    text-align: center;
  }
  .hero-subline,
  .hero-promise {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-device-stage {
    margin-left: 0;
    max-width: 340px;
  }
  .hero-floating-chip {
    display: none;
  }
  .iphone-mockup {
    height: clamp(380px, 54vh, 480px);
    max-height: calc(100dvh - 130px);
    aspect-ratio: 9 / 18.5;
    width: auto;
    border-radius: 42px;
  }
  .iphone-screen {
    border-radius: 36px;
  }
}

@media (max-width: 480px) {
  .hero-cinematic {
    padding: 95px 16px 40px;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 8.5vw, 44px);
    margin-bottom: 16px;
  }
  .hero-subline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions button,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .iphone-mockup {
    height: clamp(350px, 48vh, 440px);
    max-height: calc(100dvh - 110px);
    aspect-ratio: 9 / 18.5;
    width: auto;
    border-radius: 38px;
    padding: 6px;
  }
  .iphone-screen {
    border-radius: 34px;
    padding: 8px 10px 8px;
  }
  .hps-island {
    width: 66px;
    height: 16px;
  }
  .hps-avatar {
    width: 32px;
    height: 32px;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-badge .badge-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3b82f6;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}
.headline-gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, #38bdf8 0%, #60a5fa 50%, #ffffff 100%);
}
.hero-subline {
  font-size: clamp(0.95rem, 1.12vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 35rem;
  margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.hero-subline-guide {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 clamp(24px, 3.2vh, 32px);
}
.hero-promise {
  --orange: #f97316;
  --amber: #fbbf24;
  --text: #fef3c7;
  font-family: 'Georgia', serif;
  font-size: clamp(14px, 1.42vw, 20.5px);
  color: var(--text);
  font-weight: 300;
  line-height: 1.35;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.6vh, 26px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-promise-lead {
  color: var(--text);
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
}

.tw-03__slot {
  display: inline-flex !important;
  align-items: flex-start !important;
  overflow: hidden !important;
  height: 1.28em !important;
  vertical-align: bottom !important;
  border-right: 3px solid var(--orange) !important;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(251, 191, 36, 0.10)) !important;
  border-radius: 4px !important;
  padding: 0 8px !important;
  box-sizing: content-box !important;
  animation: tw-03-width 6s steps(1) infinite, tw-03-blink 0.65s steps(2) infinite !important;
  flex-shrink: 0 !important;
}

.tw-03__words {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  animation: tw-03-scroll 6s steps(1) infinite !important;
}

.tw-03__words span {
  font-style: italic !important;
  font-weight: 600 !important;
  color: var(--orange) !important;
  flex-shrink: 0 !important;
  height: 1.28em !important;
  line-height: 1.28 !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

@keyframes tw-03-scroll {
  0%, 49.99% {
    transform: translateY(0);
  }
  50%, 100% {
    transform: translateY(-1.28em);
  }
}

@keyframes tw-03-width {
  0%, 49.99% {
    width: 22.5ch;
  }
  50%, 100% {
    width: 19.2ch;
  }
}

@keyframes tw-03-blink {
  0%, 100% {
    border-color: var(--orange);
  }
  50% {
    border-color: transparent;
  }
}

@media (max-width: 480px) {
  .hero-promise {
    font-size: clamp(12px, 3.4vw, 14px);
    gap: 0.25em;
  }
  .tw-03__slot {
    padding: 0 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-03__slot {
    animation: none;
    width: auto;
    border-right-color: var(--orange);
  }
  .tw-03__words {
    animation: none;
  }
}
.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 0;
}
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d68ff 0%, #3b82f6 50%, #1d68ff 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(43, 127, 255, 0.42);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary-glow:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(43, 127, 255, 0.65);
}
.btn-primary-glow .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-primary-glow .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.btn-primary-glow .btn-sub {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 2px;
}
.btn-primary-glow .btn-main {
  font-size: 14.5px;
  font-weight: 800;
}
.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}
.btn-secondary-glass .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 24px);
  margin-top: clamp(14px, 2vh, 20px);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .icon {
  width: 15px;
  height: 15px;
  color: #60a5fa;
}
.hero-scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.hero-cinematic.is-ready .hero-scroll {
  opacity: 1;
  pointer-events: auto;
}
.mouse-pill {
  width: 22px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4px;
}
.mouse-wheel {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: #3b82f6;
  animation: mouseWheel 2s ease-in-out infinite;
}
@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}
.hero-skip {
  display: none;
  position: absolute;
  z-index: 5;
  right: max(5vw, 24px);
  top: 106px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(7, 18, 32, 0.7);
  color: white;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-skip:hover {
  background: rgba(43, 127, 255, 0.2);
  border-color: #3b82f6;
}
.hero-cinematic.is-playing .hero-skip {
  display: block;
}

/* Responsive Mobile Rules for Hero & iPhone Mockup */
@media (max-width: 767px) {
  .hero-cinematic {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 85px 16px 40px;
    overflow-y: visible;
    overflow-x: hidden;
  }
  .hero-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
    width: 100%;
  }
  .hero-copy {
    width: 100%;
    max-width: 480px;
    text-align: center;
    align-items: center;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.12;
    margin-bottom: 14px;
  }
  .hero-subline {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
    max-width: 380px;
  }
  .hero-subline-guide {
    margin-bottom: 22px;
  }
  .hero-promise {
    margin-bottom: 20px;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 10px;
  }
  .btn-primary-glow, .btn-secondary-glass {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .hero-trust {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    align-items: center;
  }
  .hero-device-stage {
    margin: 20px auto 0;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .lp-3d-rail {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .lp-3d-art:not([data-state="active"]) {
    display: none;
  }
  .hero-floating-chip {
    display: none !important;
  }
  .iphone-mockup {
    height: clamp(340px, 46vh, 420px);
    max-height: calc(100dvh - 120px);
    aspect-ratio: 9 / 18.5;
    width: auto;
    border-radius: 38px;
    padding: 5px;
  }
  .iphone-screen {
    border-radius: 34px;
    padding: 8px 10px 8px;
  }
  .hero-skip {
    top: 80px;
    right: 14px;
  }
}

@media(max-width:850px){.hero-cinematic{--nav-h:75px}}
@media(max-width:600px){.hero-cinematic{--nav-h:69px}}

/* Short screen optimization */

@media (max-height: 650px) and (min-width: 768px) {
  .site-header { height: 62px; }
  .nav-wrap { height: 62px; }
  .hero-cinematic { padding: 70px max(4vw, 20px) 24px !important; }
  .hero-copy { max-width: 440px; }
  .hero-badge { margin-bottom: 12px !important; padding: 4px 12px !important; font-size: 10px !important; }
  .hero-copy h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; margin-bottom: 10px !important; }
  .hero-subline { font-size: 0.88rem !important; line-height: 1.45 !important; margin-bottom: 10px !important; }
  .hero-promise { margin-bottom: 16px !important; }
  .btn-primary-glow { padding: 10px 20px !important; }
  .btn-secondary-glass { padding: 10px 18px !important; font-size: 13px !important; }
  .hero-trust { margin-top: 14px !important; font-size: 11px !important; }
  .hero-scroll { bottom: 10px !important; }
}

/* --- Viewport-fit pass: copy never clips under header, phone scales to available height --- */
@media (min-width: 851px) {
  .hero-sticky-stage {
    padding-top: clamp(78px, calc(70px + 1.5vh), 90px);
    padding-bottom: clamp(16px, 2vh, 26px);
  }
  .hero-copy h1 {
    font-size: clamp(2rem, min(3.8vw, 6.5vh), 4.4rem);
    margin-bottom: clamp(10px, 2vh, 20px);
  }
  .hero-badge { margin-bottom: clamp(12px, 2.4vh, 24px); }
  .hero-subline {
    font-size: clamp(0.88rem, min(1.06vw, 1.95vh), 1.08rem);
    margin-bottom: clamp(8px, 1.2vh, 12px);
  }
  .hero-subline-guide {
    margin-bottom: clamp(24px, 3.2vh, 32px);
  }
  .hero-promise {
    margin-bottom: clamp(20px, 2.6vh, 26px);
  }
  .hero-trust { margin-top: clamp(14px, 1.8vh, 18px); }
  .hero-device-stage { 
    max-width: 860px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 32px);
  }
  .iphone-mockup {
    height: clamp(520px, calc(100dvh - 128px), 800px);
    max-height: none;
  }
}

@media (min-width: 851px) and (min-height: 980px) {
  .iphone-mockup {
    height: clamp(540px, calc(100dvh - 130px), 820px);
  }
}

@media (max-width: 850px) {
  .hero-floating-chip {
    display: none !important;
  }
  .hero-device-stage {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 360px;
    margin: 16px auto 0;
  }
  .iphone-mockup {
    height: clamp(380px, 54vh, 480px);
    max-height: calc(100dvh - 120px);
    margin: 0 auto;
  }
  .lp-3d-rail {
    width: 100%;
    max-width: 320px;
  }
  .lp-3d-art:not([data-state="active"]) {
    display: none;
  }
}

/* ==========================================================================
   REVENUE OPPORTUNITY LEDGER (Scroll-Driven Interactive Section)
   Adapted from The NYC Maid · Revenue Opportunity Report
   ========================================================================== */

.revenue-section {
  position: relative;
  background: #080a0f;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

:root[data-theme="light"] .revenue-section {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid rgba(22, 19, 12, 0.08);
  border-bottom: 1px solid rgba(22, 19, 12, 0.08);
}

:root[data-theme="light"] .revenue-header h2 {
  color: #0f172a;
}

:root[data-theme="light"] .revenue-subline {
  color: #475569;
}

:root[data-theme="light"] .revenue-tier-nav {
  background: rgba(22, 19, 12, 0.04);
  border: 1px solid rgba(22, 19, 12, 0.09);
  box-shadow: none;
}

:root[data-theme="light"] .tier-pill {
  color: #64748b;
}

:root[data-theme="light"] .tier-pill:hover {
  background: rgba(22, 19, 12, 0.06);
  color: #0f172a;
}

:root[data-theme="light"] .tier-pill.is-active {
  background: #121620;
  border-color: rgba(234, 88, 12, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .tier-pill:not(.is-active) .tier-pill-text strong {
  color: #0f172a;
}

:root[data-theme="light"] .tier-pill.is-active .tier-pill-text strong {
  color: #ffffff;
}

:root[data-theme="light"] .tier-pill.is-active .tier-pill-icon {
  background: #ea580c;
  color: #ffffff;
}

/* Revenue Section Container & Stage (Natural responsive flow) */
.revenue-scroll-container {
  position: relative;
  width: 100%;
}

.revenue-sticky-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.8vh, 22px) 20px clamp(10px, 1.4vh, 16px);
  box-sizing: border-box;
}

.revenue-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 11px);
}

/* Header & Eyebrow */
.revenue-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.revenue-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #fb923c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pulse-sparkle {
  color: #ea580c;
  animation: pulseSparkle 2s ease-in-out infinite;
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.revenue-header h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 3px;
  color: #ffffff;
}

.revenue-subline {
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.35;
  color: #94a3b8;
  max-width: 660px;
  margin: 0 0 6px;
}

/* Tier Selector Pills (Compact & Refined) */
.revenue-tier-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 22, 32, 0.85);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 14px;
}

.tier-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.tier-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.tier-pill.is-active {
  background: #171d29;
  border-color: rgba(59, 130, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.2);
}

.tier-pill-icon {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.tier-pill.is-active .tier-pill-icon {
  background: #2563eb;
  color: #ffffff;
}

.tier-pill-icon .icon {
  width: 10px;
  height: 10px;
}

.tier-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tier-pill-text strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
}

.tier-pill-text small {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
}

.tier-pill.is-active .tier-pill-text small {
  color: #93c5fd;
}

.tier-pill-badge {
  position: absolute;
  top: auto;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #ea580c;
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1.5px 6.5px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.6);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

/* Revenue Ledger Comparison Card */
.revenue-ledger-card {
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Ledger Rows & Grid Structure (Compact & Balanced - No Dead Space) */
.rev-row {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.05fr 1.15fr;
  align-items: center;
  padding: 3.5px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.rev-row:hover:not(.rev-head-row) {
  background: rgba(255, 255, 255, 0.02);
}

.rev-head-row {
  background: #121722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5.5px 16px;
  color: #94a3b8;
}

.rev-head-row .rev-col {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none !important;
  line-height: 1.2;
}

.rev-head-row .col-metric {
  color: #94a3b8;
}

.rev-head-row .col-without {
  font-size: 11px !important;
  font-weight: 700;
  color: #f87171;
  text-transform: none !important;
}

.rev-head-row .col-with {
  font-size: 11px !important;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: none !important;
}

.rev-head-row .col-keep {
  font-size: 11px !important;
  font-weight: 700;
  color: #4ade80;
  text-align: right;
  justify-content: flex-end;
  text-transform: none !important;
}

.rev-col {
  display: flex;
  align-items: center;
}

.col-metric {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.col-metric strong {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.15;
}

.rev-sub {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.15;
}

.col-without {
  font-size: 12.5px;
  font-weight: 700;
  color: #f87171;
}

.col-with {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.col-detail {
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.05;
}

.col-keep {
  justify-content: flex-end;
  text-align: right;
}

/* Values Styling */
.val-bleed {
  color: #f87171;
  font-weight: 700;
}

.val-fixed {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 12.5px;
}

.val-num {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 12.5px;
}

.val-gain {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4ade80;
  font-weight: 800;
  font-size: 12.5px;
}

.val-gain-gold {
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
}

.val-neutral {
  color: #64748b;
  font-weight: 600;
}

/* Highlight Hero Total Row (Compact & Punchy) */
.rev-total-row {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(18, 22, 32, 0.95) 100%);
  border-top: 1.5px solid rgba(34, 197, 94, 0.4);
  border-bottom: 1.5px solid rgba(34, 197, 94, 0.4);
  padding: 5px 16px;
}

.total-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 1px;
}

.total-num {
  font-size: 14.5px !important;
  font-weight: 800;
}

.hero-gain-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.total-hero {
  font-size: 15.5px !important;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 25px rgba(34, 197, 94, 0.45);
}

.hero-gain-badge small {
  font-size: 8.5px;
  color: #86efac;
  font-weight: 600;
  margin-top: 1px;
}

/* Annual Compound Row */
.rev-annual-row {
  background: rgba(251, 191, 36, 0.04);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

/* Qualitative Brand Row */
.rev-footer-qualitative {
  background: #090c12;
  border-bottom: none;
  padding: 4.5px 16px;
}

.col-qual-text {
  font-size: 10px;
  line-height: 1.25;
  color: #94a3b8;
  font-weight: 500;
}

.brand-reputation-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-weight: 700;
  font-size: 10.5px;
}

.brand-reputation-live svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Footnote & Bottom CTA Bar (Tight & Compact) */
.revenue-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.revenue-footnote {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  text-align: center;
  max-width: 800px;
  margin: 0;
}

.revenue-footnote strong {
  color: #f1f5f9;
}
.revenue-footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Downward Cue Pill (Scroll Down to Scanner) */
.revenue-scroll-cue {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.scanner-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: #121620;
  border: 1px solid rgba(234, 88, 12, 0.85);
  border-radius: 999px;
  color: #fed7aa;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 
    0 8px 24px -4px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(234, 88, 12, 0.28),
    0 0 0 1px rgba(234, 88, 12, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scanner-jump-pill:hover {
  background: #181d2a;
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 
    0 12px 32px -4px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(234, 88, 12, 0.45),
    0 0 0 1px rgba(249, 115, 22, 0.75);
  transform: translateY(-1px);
}

.cue-arrow-bounce {
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
  display: inline-block;
  animation: cueBounce 1.8s ease-in-out infinite;
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Mobile & Tablet Responsive Rules */
@media (max-width: 900px) {
  .revenue-sticky-stage {
    padding: 50px 16px 40px;
  }
  .rev-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
  .rev-head-row {
    display: none; /* Hide multi-column header on mobile */
  }
  .col-keep {
    justify-content: flex-start;
    text-align: left;
  }
  .hero-gain-badge {
    align-items: flex-start;
  }
  .revenue-tier-nav {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }
  .tier-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========================================================
   REVENUE LEAKING ANALYSIS & SCANNER SECTION
   Particle Title + Border Beam Search + Security Defense
   ======================================================== */
.revenue-scanner-section {
  position: relative;
  width: 100%;
  padding: clamp(32px, 4.5vh, 48px) 20px clamp(28px, 4vh, 44px);
  box-sizing: border-box;
  scroll-margin-top: 50px;
  background: radial-gradient(circle at 50% 25%, rgba(37, 99, 235, 0.08) 0%, rgba(9, 12, 18, 0) 65%), #080b10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

:root[data-theme="light"] .revenue-scanner-section {
  background: var(--bg);
  border-top: 1px solid rgba(22, 19, 12, 0.08);
  border-bottom: 1px solid rgba(22, 19, 12, 0.08);
}

:root[data-theme="light"] .scanner-ambient-glow {
  background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, rgba(11, 70, 246, 0.03) 50%, transparent 70%);
}

:root[data-theme="light"] .scanner-subline {
  color: #475569;
}

:root[data-theme="light"] .scanner-subline strong {
  color: #0f172a;
}

:root[data-theme="light"] .particle-title-heading {
  color: #0f172a;
}

:root[data-theme="light"] .particle-blob {
  opacity: 0.15;
}

.scanner-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, rgba(234, 88, 12, 0.04) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.scanner-inner {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

/* Section Eyebrow (Identical template and style to Revenue Opportunity Ledger) */
.scanner-eyebrow {
  margin-bottom: 8px;
}

/* ========================================================
   Particle Title Engine (21st.dev @yingwuyi6l6/particle-title)
   ======================================================== */
.particle-title-box {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  max-width: 980px;
  height: clamp(68px, 9vw, 92px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
}

.particle-blobs-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.particle-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(28px);
}

.blob-0 {
  left: 4%;
  top: 8%;
  width: 62%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(86, 112, 160, 0.5), rgba(86, 112, 160, 0) 100%);
}

.blob-1 {
  left: 44%;
  top: 22%;
  width: 54%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(140, 130, 190, 0.28), rgba(140, 130, 190, 0) 100%);
}

.blob-2 {
  left: 30%;
  top: 44%;
  width: 44%;
  height: 56%;
  background: radial-gradient(closest-side, rgba(150, 104, 84, 0.34), rgba(150, 104, 84, 0) 100%);
}

.particle-title-canvas {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.particle-title-heading {
  position: absolute;
  margin: -1px;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  color: rgba(244, 244, 246, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .particle-title-canvas {
    display: none;
  }
  .particle-title-heading {
    position: relative;
    margin: 0;
    height: auto;
    width: auto;
    overflow: visible;
    clip: auto;
    text-align: center;
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 600;
    color: rgba(244, 244, 246, 0.95);
  }
}

/* Subline */
.scanner-subline {
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  line-height: 1.5;
  color: #94a3b8;
  max-width: 650px;
  margin: 6px auto clamp(16px, 2.2vh, 22px);
}

.scanner-subline strong {
  color: #e2e8f0;
}

/* ========================================================
   Border Beam Search Container & MorphOrb Animation System
   ======================================================== */
.border-beam-container {
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: clamp(36px, 4.5vh, 52px) auto clamp(28px, 3.5vh, 40px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Stage Center Halo Glow */
.mo-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin-top: -160px;
  margin-left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(99, 102, 241, 0.12) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: var(--oCenter, 0);
  transition: opacity 0.3s ease;
  z-index: 1;
}

[data-theme="light"] .mo-halo {
  opacity: calc(var(--oCenter, 0) * 0.12) !important;
}

/* Mover: translates along curved flight path */
.mo-mover {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* 6 Ghost trails behind mover */
.mo-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5) 0%, rgba(59, 130, 246, 0.22) 45%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform, opacity;
  z-index: 5;
}

/* Actor: Morphing container */
.mo-actor.border-beam-card {
  position: relative;
  width: var(--w, 100%);
  height: var(--h, auto);
  min-height: var(--h, auto);
  border-radius: var(--r, 18px);
  background: #0d121b;
  border: 1px solid rgba(255, 255, 255, calc(0.12 * var(--oRing, 1)));
  box-shadow: 0 24px 70px -15px rgba(0, 0, 0, 0.9), 0 0 calc(28px * var(--bloom, 1)) rgba(37, 99, 235, calc(0.10 * var(--bloom, 1)));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
  will-change: width, height, border-radius, transform;
  z-index: 8;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent floating globe during assemble, think, resolve */
.border-beam-container[data-phase="assemble"] .mo-actor.border-beam-card,
.border-beam-container[data-phase="think"] .mo-actor.border-beam-card,
.border-beam-container[data-phase="resolve"] .mo-actor.border-beam-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.border-beam-container[data-phase="condense"] .mo-actor.border-beam-card {
  background: transparent !important;
  border-color: transparent !important;
}

/* Result Card Orange Light Membrane (matching .sim-console-window and active bento cards) */
.border-beam-container[data-phase="unfold"] .mo-actor.border-beam-card,
.border-beam-container[data-phase="answered"] .mo-actor.border-beam-card {
  border: 1px solid rgba(234, 88, 12, 0.85) !important;
  box-shadow: 
    0 24px 65px -12px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(234, 88, 12, 0.35),
    0 0 0 1px rgba(234, 88, 12, 0.65) !important;
}

/* Underglow - Softened Blue Background */
.mo-underglow {
  position: absolute;
  inset: -15px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
  filter: blur(25px);
  opacity: var(--oGlow, 1);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .mo-underglow {
  opacity: calc(var(--oGlow, 1) * 0.05);
}

/* Halo Green */
.mo-halo-green {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0.15) 50%, transparent 70%);
  filter: blur(25px);
  opacity: var(--oHalo, 0);
  pointer-events: none;
  z-index: 2;
}

/* Surface & Aurora - Subdued, gentle ambient transitions */
.mo-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--oAur, 1);
  z-index: 2;
}

.mo-aurora {
  position: absolute;
  inset: -50%;
  filter: blur(45px);
  opacity: 0.08;
  pointer-events: none;
}

[data-theme="light"] .mo-aurora {
  opacity: 0.04;
}

.mo-aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.mo-aurora i:nth-child(1) {
  top: 20%; left: 20%; width: 60%; height: 60%;
  background: rgba(37, 99, 235, 0.14);
  animation: moAuroraSpin 16s linear infinite;
}
.mo-aurora i:nth-child(2) {
  top: 10%; right: 20%; width: 50%; height: 50%;
  background: rgba(16, 185, 129, 0.10);
  animation: moAuroraSpin 22s linear infinite reverse;
}
.mo-aurora i:nth-child(3) {
  bottom: 20%; left: 30%; width: 55%; height: 55%;
  background: rgba(99, 102, 241, 0.12);
  animation: moAuroraSpin 20s linear infinite;
}
.mo-aurora i:nth-child(4) {
  bottom: 10%; right: 10%; width: 45%; height: 45%;
  background: rgba(56, 189, 248, 0.10);
  animation: moAuroraSpin 18s linear infinite reverse;
}

@keyframes moAuroraSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Ball State */
.mo-ball {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 30%, #1e293b 0%, #090d16 100%);
  opacity: var(--oBall, 0);
  pointer-events: none;
  z-index: 3;
}

/* Green Badge State */
.mo-green {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: var(--oGreen, 0);
  transform: scale(var(--gs, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7);
}

/* Card Surface State */
.mo-card {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(9, 13, 24, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: var(--oCard, 0);
  transform: scale(var(--cs, 1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 4;
}

.border-beam-container[data-phase="unfold"] .mo-card,
.border-beam-container[data-phase="answered"] .mo-card {
  border: 1px solid rgba(234, 88, 12, 0.85) !important;
  box-shadow: inset 0 0 16px rgba(234, 88, 12, 0.12);
}

/* Ring */
.mo-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: var(--oRing, 1);
  pointer-events: none;
  z-index: 5;
}

/* Scanner Form (inputs, labels, buttons) */
.scanner-form.mo-input {
  position: relative;
  width: 100%;
  padding: clamp(20px, 3vw, 30px);
  opacity: var(--oInput, 1);
  transform: scale(var(--inScale, 1));
  transform-origin: center center;
  pointer-events: auto;
  z-index: 7;
  box-sizing: border-box;
}

/* Dotted Orb Canvas */
.mo-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

/* Pulse Ripple */
.mo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.85);
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  will-change: transform, opacity;
}

/* Answer Card Content */
.mo-answer {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: var(--oCard, 0);
  pointer-events: none;
  z-index: 8;
  box-sizing: border-box;
  text-align: left;
}

.border-beam-container[data-phase="unfold"] .mo-answer,
.border-beam-container[data-phase="answered"] .mo-answer {
  pointer-events: auto;
}

.mo-a-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  opacity: var(--hOp, 0);
}

.mo-a-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  transform: scale(var(--dotS, 0));
}

.mo-a-body {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.6;
  color: #e2e8f0;
  margin: 10px 0 14px 0;
}

.mo-w {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.mo-a-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.mo-reset {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ea580c;
  border: 1px solid #f97316;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mo-reset svg {
  color: #ffffff;
  stroke: #ffffff;
  transition: transform 0.25s ease;
}

.mo-reset:hover {
  background: #f97316;
  border-color: #fb923c;
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.65);
  transform: translateY(-1px);
}

.mo-reset:hover svg {
  transform: rotate(-45deg);
}

/* Status Label (below orb) */
.mo-status {
  position: absolute;
  top: calc(50% + 80px);
  left: 50%;
  transform: translate(-50%, calc(var(--sTy, 0) * 1px));
  opacity: var(--sOp, 0);
  pointer-events: none;
  z-index: 12;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

[data-theme="light"] .mo-status {
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mo-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}

.mo-dots i {
  display: inline-block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: moDotPulse 1.2s infinite ease-in-out;
}

.mo-dots i:nth-child(2) { animation-delay: 0.2s; }
.mo-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes moDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.25); }
}

/* Accessible Screen-Reader Live Region & Hidden Utilities */
.mo-live,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Error Shake on Actor */
.mo-actor[data-shake] {
  animation: moShake 0.26s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes moShake {
  10%, 90% { transform: translate(-50%, 0) translateX(-3px); }
  20%, 80% { transform: translate(-50%, 0) translateX(4px); }
  30%, 50%, 70% { transform: translate(-50%, 0) translateX(-5px); }
  40%, 60% { transform: translate(-50%, 0) translateX(5px); }
}

/* Border Beam Animated Traveling Line */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.border-beam-line {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  opacity: var(--oRing, 1);
  background: conic-gradient(
    from var(--beam-angle, 0deg) at 50% 50%,
    transparent 0deg,
    transparent 280deg,
    rgba(59, 130, 246, 0.35) 310deg,
    #3b82f6 335deg,
    #60a5fa 350deg,
    #fb923c 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderBeamSweep 6s linear infinite;
  z-index: 2;
  transition: opacity 0.3s ease;
}

@keyframes borderBeamSweep {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

/* Inputs Grid (Website & Email) */
.scanner-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.scanner-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.scanner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scanner-label .label-icon {
  color: #60a5fa;
  display: inline-flex;
}

.scanner-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.scanner-input::placeholder {
  color: #475569;
  font-size: 12.5px;
}

.scanner-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(22, 30, 48, 0.95);
}

.scanner-input.has-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25) !important;
}

/* Submit Button & Action Bar */
.scanner-action-bar {
  width: 100%;
}

.scanner-submit-btn {
  position: relative;
  width: 100%;
  padding: 12.5px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.scanner-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.scanner-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-beam-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.scanner-submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

.scanner-submit-btn.is-loading .btn-icon,
.scanner-submit-btn.is-loading .btn-arrow {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Trust Signals Bar */
.scanner-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}

.trust-badge .icon {
  width: 12px;
  height: 12px;
  color: #22c55e;
}

/* Live Security / Validation Error Feedback Box */
.scanner-feedback {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 9px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 14px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.scanner-feedback.is-warning {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.35);
  color: #fdba74;
}

/* Progress Radar & Live Scanning State */
.scanner-progress-state {
  margin-top: 18px;
  padding: 16px;
  background: rgba(14, 20, 30, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.progress-radar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(14, 20, 30, 0.8) 70%);
  flex-shrink: 0;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(59, 130, 246, 0.5) 0deg, transparent 90deg, transparent 360deg);
  border-radius: 50%;
  animation: radarSweep 1.6s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #60a5fa;
}

.progress-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-step-text {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #22c55e);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

#progress-percent {
  color: #60a5fa;
  font-weight: 700;
}

/* Success Card */
.scanner-success-card {
  margin-top: 18px;
  padding: 18px;
  background: rgba(22, 101, 52, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  text-align: left;
}

.success-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.success-check-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.success-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f0fdf4;
  margin: 0 0 3px;
}

.success-header p {
  font-size: 11.5px;
  color: #bbf7d0;
  margin: 0;
  line-height: 1.4;
}

.success-header strong {
  color: #ffffff;
  font-weight: 700;
}

.success-inbox-tip {
  font-size: 11px !important;
  color: #86efac !important;
  margin-top: 6px !important;
  opacity: 0.95;
}

.success-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-open-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}

.btn-open-report:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.btn-rescan-again {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rescan-again:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Mobile Responsiveness for Scanner */
@media (max-width: 680px) {
  .particle-title-box {
    height: clamp(56px, 11vw, 76px);
  }
  .scanner-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .border-beam-card {
    padding: 18px;
  }
  .scanner-progress-state {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   ONBOARDING SIMULATOR (From Website Scan to Live Answering in 3 Minutes)
   Matches TinoCall's actual setup.html bento deck, puck icons & clay cards
   ========================================================================== */

.onboarding-simulator-section {
  position: relative;
  background: #090d14;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

:root[data-theme="light"] .onboarding-simulator-section {
  background: var(--bg);
  border-bottom: 1px solid rgba(22, 19, 12, 0.08);
}

@media (min-width: 1025px) {
  .onboarding-simulator-section {
    min-height: 220vh; /* Tightened scroll runway across 4 setup steps */
    padding: 0;
  }
}

.simulator-sticky-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
}

@media (min-width: 1025px) {
  .simulator-sticky-stage {
    position: sticky;
    top: 70px; /* sit below the fixed 70px header */
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    overflow: hidden;
    align-items: flex-start; /* never push content above the stage */
    padding: 12px max(4vw, 24px) 12px;
  }
  /* Fit-to-viewport scale is applied by JS (--sim-fit); 1 on tall screens */
  .simulator-inner {
    transform: scale(var(--sim-fit, 1));
    transform-origin: top center;
  }
}

.simulator-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.simulator-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.simulator-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
  animation: sim-title-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sim-title-enter {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.simulator-eyebrow {
  margin: 0 auto 8px;
}

.simulator-heading {
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #f8fafc;
  margin: 0 0 4px;
}

:root[data-theme="light"] .simulator-heading {
  color: #0f172a;
}

.simulator-subline {
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 640px;
}

:root[data-theme="light"] .simulator-subline {
  color: #475569;
}

/* 2-Column Grid Layout: Equal Height Alignment (Top and Bottom Perfectly Aligned) */
.simulator-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch; /* Both columns match height exactly: top and bottom aligned */
}

/* Progressive Steps Rail (Fixed 320px width, spans top to bottom of console window) */
.sim-steps-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
}

.sim-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: #f8fafc;
  width: 100%;
  flex: 1; /* Each card takes equal proportion, perfectly filling top to bottom */
  min-height: 74px;
  box-sizing: border-box;
  outline: none;
}

.sim-step-card:focus {
  outline: none;
}

.sim-step-card:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}

.sim-step-card:hover:not(.is-active) {
  background: #121826;
  border-color: rgba(234, 88, 12, 0.38);
  transform: translateX(4px);
}

.sim-step-card.is-active {
  background: #121620;
  border-color: rgba(234, 88, 12, 0.85);
  box-shadow: 
    0 14px 40px -8px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(234, 88, 12, 0.35),
    0 0 0 1px rgba(234, 88, 12, 0.65);
  transform: translateX(4px);
}

.sim-step-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
}

.sim-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background: #141b28;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.sim-step-card.is-active .sim-step-num {
  background: #ea580c;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
}

.sim-step-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-step-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.sim-step-timer {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
}

.sim-step-card.is-active .sim-step-timer {
  color: #fb923c;
  background: rgba(234, 88, 12, 0.15);
}

.sim-step-tag {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.sim-step-card.is-active .sim-step-tag {
  color: #94a3b8;
}

.sim-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 2px;
  line-height: 1.25;
}

.sim-step-card.is-active .sim-step-title {
  color: #ffffff;
}

.sim-step-desc {
  font-size: 10.5px;
  line-height: 1.4;
  color: #64748b;
  margin: 0 0 4px;
}

.sim-step-card.is-active .sim-step-desc {
  color: #94a3b8;
}

.sim-step-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #00e5ff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.sim-step-card.is-active .sim-step-action {
  color: #f97316;
}

.sim-step-card:hover .sim-step-action,
.sim-step-card.is-active .sim-step-action {
  opacity: 1;
}

/* ========================================================
   LIGHT MODE: Progressive Rail Card Transitions
   Inactive: Light elegant cards on linen background
   Active: Transitions smoothly to solid black console card with orange accent
   ======================================================== */
:root[data-theme="light"] .sim-step-card {
  background: transparent;
  border: 1px solid rgba(22, 19, 12, 0.08);
  color: #0f172a;
  box-shadow: none;
}

:root[data-theme="light"] .sim-step-card:hover:not(.is-active) {
  background: rgba(22, 19, 12, 0.03);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: none;
  transform: translateX(4px);
}

:root[data-theme="light"] .sim-step-card .sim-step-num {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .sim-step-card .sim-step-timer {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
}

:root[data-theme="light"] .sim-step-card .sim-step-tag {
  color: #64748b;
}

:root[data-theme="light"] .sim-step-card .sim-step-title {
  color: #0f172a;
  transition: color 0.22s ease;
}

:root[data-theme="light"] .sim-step-card .sim-step-desc {
  color: #475569;
  transition: color 0.22s ease;
}

:root[data-theme="light"] .sim-step-card .sim-step-action {
  color: #0284c7;
  opacity: 0.9;
  transition: all 0.22s ease;
}

/* ACTIVE CARD IN LIGHT MODE -> TRANSITIONS TO SOLID BLACK CONSOLE */
:root[data-theme="light"] .sim-step-card.is-active {
  background: #121620;
  border: 1px solid rgba(234, 88, 12, 0.85);
  color: #f8fafc;
  box-shadow: 
    0 14px 40px -8px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(234, 88, 12, 0.35),
    0 0 0 1px rgba(234, 88, 12, 0.65);
  transform: translateX(4px);
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-num {
  background: #ea580c;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-timer {
  color: #fb923c;
  background: rgba(234, 88, 12, 0.15);
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-tag {
  color: #94a3b8;
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-title {
  color: #ffffff;
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-desc {
  color: #94a3b8;
}

:root[data-theme="light"] .sim-step-card.is-active .sim-step-action {
  color: #f97316;
  opacity: 1;
}

/* Right Column: Console Window (Continuously glowing orange) */
.sim-console-window {
  background: #0d121c;
  border: 1px solid rgba(234, 88, 12, 0.85);
  border-radius: 20px;
  box-shadow: 
    0 24px 65px -12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(234, 88, 12, 0.28),
    0 0 0 1px rgba(234, 88, 12, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Window Topbar */
.sim-window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #090d15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sim-window-dots {
  display: flex;
  gap: 6px;
}

.w-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; opacity: 0.85; }
.dot-yellow { background: #eab308; opacity: 0.85; }
.dot-green { background: #22c55e; opacity: 0.85; }

.sim-window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.sim-title-lock {
  font-size: 10px;
}

.sim-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 700;
  color: #3fdc9c;
  background: rgba(63, 220, 156, 0.1);
  border: 1px solid rgba(63, 220, 156, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Stepper Tabs Bar (Matches setup.html) */
.sim-stepper-bar {
  display: flex;
  align-items: center;
  background: #0a0f18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 8px;
  gap: 4px;
  overflow-x: auto;
}

.sim-stepper-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: max-content;
}

.sim-stepper-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}

.sim-stepper-tab.is-active {
  background: #131a29;
  border-color: rgba(0, 229, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 16px -4px rgba(0, 229, 255, 0.15);
}

.st-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sim-stepper-tab.is-active .st-num {
  background: #00e5ff;
  color: #090d14;
}

.st-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.st-label strong {
  font-size: 11px;
  font-weight: 700;
}

.st-label small {
  font-size: 9px;
  color: #64748b;
}

.sim-stepper-tab.is-active .st-label small {
  color: #38bdf8;
}

.st-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
}

/* Viewport & Panels */
.sim-viewport {
  padding: 14px 18px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-panel {
  display: none;
  animation: sim-panel-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-panel.is-active {
  display: block;
}

@keyframes sim-panel-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 1: Scan Panel */
.sim-panel-card {
  background: #111724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
}

.sim-scan-intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 14px;
}

.sim-box-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 5px;
}

.sim-box-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.sim-scan-input-box {
  background: #0a0e16;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.sim-scan-input-box:focus-within {
  border-color: #00e5ff;
}

.sim-scan-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.sim-input-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sim-url-field-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
}

.sim-url-icon {
  font-size: 13px;
  opacity: 0.7;
}

.sim-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #38bdf8;
  width: 100%;
}

.sim-btn-scan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #00e5ff;
  color: #090d14;
  font-weight: 800;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sim-btn-scan:hover {
  background: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
}

.sim-btn-scan:active {
  transform: translateY(0);
}

.sim-scan-hint {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 7px;
}

.sim-scan-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.sim-last-scan {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #94a3b8;
}

.sim-check-badge {
  color: #3fdc9c;
  font-weight: 800;
}

.sim-review-link {
  color: #00e5ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sim-skip-note {
  font-size: 10.5px;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
}

/* Step 2 & 3 Header */
.sim-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sim-stage-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 2px;
}

.sim-stage-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.sim-readiness-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111724;
  border: 1px solid rgba(63, 220, 156, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}

.sim-gauge-circle {
  transform: rotate(-90deg);
  width: 24px;
  height: 24px;
}

.sim-readiness-badge strong {
  display: block;
  font-size: 11px;
  color: #3fdc9c;
  line-height: 1.1;
}

.sim-readiness-badge span {
  font-size: 8.5px;
  color: #94a3b8;
}

/* 10 Bento Cards Grid */
.sim-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.sim-bento-grid.grid-6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sim-bento-card {
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 6px 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sim-bento-card:hover {
  background: #161e30;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.sim-bento-card.card-interactive {
  cursor: pointer;
}

.sim-bento-card.card-interactive:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 16px -4px rgba(0, 229, 255, 0.15);
}

.sim-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.sim-card-puck {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sim-card-puck svg {
  width: 13px;
  height: 13px;
}

.puck-cyan { background: rgba(0, 229, 255, 0.12); color: #00e5ff; }
.puck-green { background: rgba(63, 220, 156, 0.12); color: #3fdc9c; }
.puck-purple { background: rgba(169, 139, 255, 0.12); color: #a98bff; }
.puck-pink { background: rgba(255, 111, 177, 0.12); color: #ff6fb1; }
.puck-orange { background: rgba(244, 184, 96, 0.12); color: #f4b860; }
.puck-blue { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.puck-amber { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.sim-card-info {
  flex: 1;
  min-width: 0;
}

.sim-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 1px;
}

.sim-card-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-card-summary {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.badge-done {
  background: rgba(63, 220, 156, 0.12);
  color: #3fdc9c;
  border: 1px solid rgba(63, 220, 156, 0.3);
}

.badge-opt {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-card-toggle-icon {
  color: #64748b;
  font-size: 10px;
  transition: transform 0.25s ease;
}

/* Expandable Drawer */
.sim-card-drawer {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: drawer-fade-down 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawer-fade-down {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-bento-card.is-open {
  grid-column: 1 / -1;
  background: #141c2c;
  border-color: #00e5ff;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 10px 30px -10px rgba(0, 229, 255, 0.2);
}

.sim-bento-card.is-open .sim-card-toggle-icon {
  transform: rotate(180deg);
  color: #00e5ff;
}

.sim-bento-card.is-open .sim-card-drawer {
  display: block;
}

@media (min-width: 1025px) {
  #sim-panel-2 .sim-bento-grid.has-open-drawer,
  #sim-panel-2 .sim-bento-grid:has(.sim-bento-card.is-open) {
    max-height: clamp(260px, calc(100dvh - 485px), 405px);
    overflow-y: auto;
    overscroll-behavior: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.35) rgba(255, 255, 255, 0.05);
  }
  #sim-panel-2 .sim-bento-grid.has-open-drawer::-webkit-scrollbar,
  #sim-panel-2 .sim-bento-grid:has(.sim-bento-card.is-open)::-webkit-scrollbar {
    width: 5px;
  }
  #sim-panel-2 .sim-bento-grid.has-open-drawer::-webkit-scrollbar-track,
  #sim-panel-2 .sim-bento-grid:has(.sim-bento-card.is-open)::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
  }
  #sim-panel-2 .sim-bento-grid.has-open-drawer::-webkit-scrollbar-thumb,
  #sim-panel-2 .sim-bento-grid:has(.sim-bento-card.is-open)::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.35);
    border-radius: 999px;
  }
}

.sim-drawer-lead {
  font-size: 10px;
  color: #94a3b8;
  margin: 0 0 6px;
}

.sim-drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin-bottom: 8px;
}

.sim-form-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-form-field.full-width {
  grid-column: 1 / -1;
}

.sim-form-field label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sim-field-input {
  background: #090d15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
  color: #e2e8f0;
  outline: none;
}

.sim-drawer-footer {
  display: flex;
  justify-content: flex-end;
}

.sim-btn-looks-good {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-looks-good:hover {
  background: #10b981;
  transform: translateY(-1px);
}

/* Bottom Navigation Between Panels */
.sim-panel-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 4px;
}

.sim-btn-prev {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-prev:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sim-btn-next {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-next:hover {
  background: #00e5ff;
  color: #090d14;
  border-color: #00e5ff;
}

/* Step 4: Verification Stage */
.sim-verify-stage {
  padding: 16px 18px;
}

.sim-verify-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.verify-icon-shield {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(63, 220, 156, 0.12);
  border: 1px solid rgba(63, 220, 156, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sim-verify-box {
  background: #0a0e16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.carrier-code-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.carrier-tag {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.carrier-digits {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 0.04em;
}

.carrier-note {
  font-size: 10px;
  color: #64748b;
}

.probe-test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-btn-probe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-probe:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.25);
}

.probe-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

.probe-result-badge.is-verified {
  color: #3fdc9c;
}

.probe-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fdc9c;
  box-shadow: 0 0 6px #3fdc9c;
}

.sim-verify-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verified-summary-chip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.sim-audit-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.9), rgba(249, 115, 22, 0.8));
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
}

.sim-audit-jump-btn:hover {
  background: linear-gradient(135deg, rgba(234, 88, 12, 1), rgba(249, 115, 22, 0.95));
  transform: translateY(-1px);
}

/* Disclaimer Footer */
.sim-console-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 14px;
  background: #070a10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.disclaimer-sparkle {
  color: #f59e0b;
  font-size: 11px;
  line-height: 1.4;
  flex-shrink: 0;
}

.sim-console-disclaimer p {
  font-size: 9.5px;
  line-height: 1.35;
  color: #64748b;
  margin: 0;
}

.sim-console-disclaimer strong {
  color: #94a3b8;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .onboarding-simulator-section {
    min-height: auto;
    padding: 44px 0 56px;
  }
  .simulator-sticky-stage {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 0 16px;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
  .sim-steps-rail {
    height: auto;
    gap: 10px;
  }
  .sim-step-card {
    flex: none;
  }
}

@media (max-width: 680px) {
  .onboarding-simulator-section {
    padding: 40px 0 60px;
  }
  .sim-bento-grid {
    grid-template-columns: 1fr;
  }
  .sim-drawer-form-grid {
    grid-template-columns: 1fr;
  }
  .sim-input-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sim-btn-scan {
    width: 100%;
    justify-content: center;
  }
  .sim-stepper-bar {
    padding-inline: 6px;
  }
  .sim-viewport {
    padding: 12px;
  }
  .sim-panel-card {
    padding: 16px 14px;
  }
}

/* ==========================================================================
   SECTION 2: YOUR RULES — THE 5 OWNER-CONTROLLED GUARDRAILS
   Left: Bento Grid (Solid dark console cards, non-expanding)
   Right: CodeFronts Chat Application Bubbles (Solid dark window console)
   Streaming/Animative Live Message Flow + Zero Vendor Mentions
   ========================================================================== */

/* Dark Mode Tokens */
:root {
  --rules-bg: #0b0f17;
  --rules-ambient: radial-gradient(circle at 50% 20%, rgba(234, 88, 12, 0.09) 0%, rgba(14, 165, 233, 0.04) 45%, transparent 70%);
  --rules-border-subtle: rgba(255, 255, 255, 0.08);
  --rules-bento-card-bg: #0d121c;
  --rules-bento-card-border: rgba(255, 255, 255, 0.08);
  --rules-bento-card-hover: #121826;
  --rules-bento-card-active: #121620;
  --rules-bento-card-active-border: rgba(234, 88, 12, 0.85);
  --rules-bento-card-active-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.75), 0 0 28px rgba(234, 88, 12, 0.35), 0 0 0 1px rgba(234, 88, 12, 0.65);
  --rules-chat-bg: #0d121c;
  --rules-chat-border: rgba(234, 88, 12, 0.85);
  --rules-chat-shadow: 0 24px 65px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 88, 12, 0.28), 0 0 0 1px rgba(234, 88, 12, 0.6);
  --rules-chat-header-bg: #090d15;
  --rules-caller-bubble-bg: #162032;
  --rules-caller-bubble-border: rgba(255, 255, 255, 0.09);
  --rules-caller-text: #f1f5f9;
  --rules-agent-bubble-bg: linear-gradient(135deg, rgba(234, 88, 12, 0.18) 0%, rgba(20, 29, 46, 0.98) 100%);
  --rules-agent-bubble-border: rgba(234, 88, 12, 0.5);
  --rules-agent-text: #ffffff;
  --rules-typing-bg: rgba(255, 255, 255, 0.04);
  --rules-typing-border: rgba(255, 255, 255, 0.08);
  --rules-text-title: #f8fafc;
  --rules-text-muted: #94a3b8;
  --rules-text-dim: #64748b;
  --rules-compliance-bg: #0d121c;
  --rules-compliance-border: rgba(255, 255, 255, 0.08);
}

/* Light Mode Tokens (Section BG matches simulator's var(--bg) linen tone, inactive cards transparent, active card sleek black console) */
:root[data-theme="light"] {
  --rules-bg: var(--bg);
  --rules-ambient: radial-gradient(circle at 50% 20%, rgba(234, 88, 12, 0.05) 0%, rgba(11, 70, 246, 0.03) 45%, transparent 70%);
  --rules-border-subtle: rgba(22, 19, 12, 0.08);
  --rules-bento-card-bg: transparent;
  --rules-bento-card-border: rgba(22, 19, 12, 0.08);
  --rules-bento-card-hover: rgba(22, 19, 12, 0.03);
  --rules-bento-card-active: #121620;
  --rules-bento-card-active-border: rgba(234, 88, 12, 0.85);
  --rules-bento-card-active-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.75), 0 0 28px rgba(234, 88, 12, 0.35), 0 0 0 1px rgba(234, 88, 12, 0.65);
  --rules-chat-bg: #0d121c;
  --rules-chat-border: rgba(234, 88, 12, 0.85);
  --rules-chat-shadow: 0 24px 65px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 88, 12, 0.28), 0 0 0 1px rgba(234, 88, 12, 0.6);
  --rules-chat-header-bg: #090d15;
  --rules-caller-bubble-bg: #162032;
  --rules-caller-bubble-border: rgba(255, 255, 255, 0.09);
  --rules-caller-text: #f1f5f9;
  --rules-agent-bubble-bg: linear-gradient(135deg, rgba(234, 88, 12, 0.18) 0%, rgba(20, 29, 46, 0.98) 100%);
  --rules-agent-bubble-border: rgba(234, 88, 12, 0.5);
  --rules-agent-text: #ffffff;
  --rules-typing-bg: rgba(255, 255, 255, 0.04);
  --rules-typing-border: rgba(255, 255, 255, 0.08);
  --rules-text-title: #0f172a;
  --rules-text-muted: #475569;
  --rules-text-dim: #64748b;
  --rules-compliance-bg: rgba(22, 19, 12, 0.03);
  --rules-compliance-border: rgba(22, 19, 12, 0.08);
}

:root[data-theme="light"] .rules-bento-card {
  color: #0f172a;
  box-shadow: none;
}

:root[data-theme="light"] .rules-bento-card:hover:not(.is-active) {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: none;
  transform: translateX(3px);
}

:root[data-theme="light"] .rules-bento-card:not(.is-active) .bento-card-title {
  color: #0f172a;
}

:root[data-theme="light"] .rules-bento-card:not(.is-active) .bento-card-desc {
  color: #475569;
}

:root[data-theme="light"] .rules-bento-card:not(.is-active) .bento-card-num {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .rules-bento-card:not(.is-active) .bento-category-tag {
  color: #0369a1;
}

:root[data-theme="light"] .rules-bento-card:not(.is-active) .bento-status-dot {
  background: rgba(22, 19, 12, 0.2);
}

:root[data-theme="light"] .rules-bento-card.is-active {
  background: #121620;
  border-color: rgba(234, 88, 12, 0.85);
  box-shadow: 
    0 14px 40px -8px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(234, 88, 12, 0.35),
    0 0 0 1px rgba(234, 88, 12, 0.65);
  color: #ffffff;
  transform: translateX(4px);
}

:root[data-theme="light"] .rules-bento-card.is-active .bento-card-title {
  color: #ffffff;
}

:root[data-theme="light"] .rules-bento-card.is-active .bento-card-desc {
  color: #94a3b8;
}

:root[data-theme="light"] .rules-bento-card.is-active .bento-card-num {
  background: #ea580c;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
}

:root[data-theme="light"] .rules-bento-card.is-active .bento-category-tag {
  color: #fb923c;
}

:root[data-theme="light"] .rules-bento-card.is-active .bento-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

:root[data-theme="light"] .rules-compliance-bar strong {
  color: #0f172a;
}

:root[data-theme="light"] .rules-compliance-bar p {
  color: #475569;
}

.rules-section {
  position: relative;
  width: 100%;
  background: var(--rules-bg);
  color: var(--rules-text-title);
  border-bottom: 1px solid var(--rules-border-subtle);
  overflow: visible;
  scroll-margin-top: 70px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.rules-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 550px;
  background: var(--rules-ambient);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.rules-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

.rules-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  padding-top: 50px;
}

.rules-eyebrow {
  margin: 0 auto 12px;
}

.rules-heading {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--rules-text-title);
  margin: 0 0 12px;
}

.rules-subline {
  font-size: 15px;
  line-height: 1.65;
  color: var(--rules-text-muted);
  margin: 0 auto;
  max-width: 680px;
}

/* Runway for Scroll Progression (Desktop) */
@media (min-width: 901px) {
  .rules-scroll-runway {
    position: relative;
    min-height: 320vh; /* Generous runway so scrolling steps cleanly through all 5 rules without skipping */
  }
  
  .rules-stage-sticky {
    position: sticky;
    top: 85px;
    height: calc(100vh - 105px);
    max-height: 740px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .rules-scroll-runway {
    position: relative;
  }
  .rules-stage-sticky {
    position: static;
  }
}

/* Bento 2-Column Grid Layout */
.rules-bento-layout {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

/* LEFT COLUMN: SOLID DARK BENTO CARDS (Matches Simulator) */
.rules-bento-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.rules-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 13px 18px 12px;
  background: var(--rules-bento-card-bg);
  border: 1px solid var(--rules-bento-card-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  outline: none;
  box-sizing: border-box;
}

.rules-bento-card:hover:not(.is-active) {
  background: var(--rules-bento-card-hover);
  border-color: rgba(234, 88, 12, 0.38);
  transform: translateX(4px);
}

.rules-bento-card.is-active {
  background: var(--rules-bento-card-active);
  border-color: var(--rules-bento-card-active-border);
  box-shadow: var(--rules-bento-card-active-shadow);
  transform: translateX(6px);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 5px;
}

.bento-card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #141b28;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.rules-bento-card.is-active .bento-card-num {
  background: #ea580c;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
}

.bento-category-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.rules-bento-card.is-active .bento-category-tag {
  color: #fb923c;
}

.bento-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-left: auto;
  transition: all 0.2s ease;
}

.rules-bento-card.is-active .bento-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.bento-card-title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin: 0 0 3px;
  color: #f8fafc;
  line-height: 1.3;
}

.bento-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.rules-bento-card.is-active .bento-card-footer {
  opacity: 1;
  height: auto;
  margin-top: 6px;
}

.bento-active-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #10b981;
}

.bento-chevron {
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.rules-bento-card.is-active .bento-chevron {
  transform: translateX(3px);
}

/* RIGHT COLUMN: SOLID DARK CONSOLE WINDOW (Matches Simulator) */
.rules-chat-column {
  display: flex;
  flex-direction: column;
}

.chat-messenger-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
  background: var(--rules-chat-bg);
  border: 1px solid var(--rules-chat-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--rules-chat-shadow);
}

/* Window Frame Header (Matches Onboarding Setup Console) */
.rules-window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #090d15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rules-window-dots {
  display: flex;
  gap: 6px;
}

.rules-window-dots .w-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rules-window-dots .dot-red { background: #ef4444; opacity: 0.85; }
.rules-window-dots .dot-yellow { background: #eab308; opacity: 0.85; }
.rules-window-dots .dot-green { background: #22c55e; opacity: 0.85; }

.rules-window-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rules-window-title span:last-child {
  font-weight: 600;
}

/* Subbar: Agent Info */
.chat-messenger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0b0f18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 12px;
}

.chat-agent-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-ring {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #13254f;
  border: 1.5px solid rgba(22, 198, 224, 0.4);
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(22, 198, 224, 0.2);
}

.agent-avatar-icon {
  display: block;
  border-radius: 4px;
}

.agent-live-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #0d121c;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.chat-agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.agent-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-agent-name {
  font-size: 14px;
  font-weight: 750;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.chat-badge-verified {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #3fdc9c;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.chat-status-text {
  font-size: 11px;
  color: #94a3b8;
}

/* Chat Viewport & Scenarios */
.chat-viewport {
  position: relative;
  flex: 1;
  min-height: 400px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0d121c;
}

.chat-scenario {
  position: absolute;
  inset: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  pointer-events: none;
  background: #0d121c;
  z-index: 1;
}

.chat-scenario.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.scenario-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 16px;
}

.scenario-test-case {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
}

.scenario-test-case code {
  color: #fb923c;
  font-weight: 700;
}

.scenario-policy-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

/* Chat Feed Stream */
.chat-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.row-caller {
  justify-content: flex-start;
}

.row-agent {
  justify-content: flex-end;
}

.bubble-avatar-col {
  flex-shrink: 0;
  margin-bottom: 18px;
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.bubble-avatar.avatar-agent {
  background: #13254f;
  border-color: rgba(22, 198, 224, 0.5);
  box-shadow: 0 0 10px rgba(22, 198, 224, 0.25);
}

.bubble-content-col {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.row-caller .bubble-content-col {
  align-items: flex-start;
}

.row-agent .bubble-content-col {
  align-items: flex-end;
}

.bubble-speaker-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.agent-speaker-label {
  color: #fb923c;
}

/* CODEFRONTS ASYMMETRIC CHAT BUBBLES (Solid dark console look) */
.chat-bubble {
  padding: 13px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  position: relative;
  transition: transform 0.2s ease;
}

.chat-bubble p {
  margin: 0;
}

/* Caller Bubble: CodeFronts Tail at Bottom-Left (18px 18px 18px 4px) */
.bubble-caller {
  border-radius: 18px 18px 18px 4px;
  background: #162032;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Grace (AI) Bubble: CodeFronts Tail at Bottom-Right (18px 18px 4px 18px) */
.bubble-agent {
  border-radius: 18px 18px 4px 18px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.18) 0%, rgba(20, 29, 46, 0.98) 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.5);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(234, 88, 12, 0.15);
}

.bubble-agent strong {
  color: #f97316;
  font-weight: 750;
}

.bubble-timestamp {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.agent-timestamp {
  color: #fb923c;
}

/* CodeFronts 3-Dot Typing & Verification Row */
.chat-verification-row {
  display: flex;
  justify-content: center;
  margin: -4px 0;
}

.verification-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #94a3b8;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-indicator i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ea580c;
  animation: dot-bounce 1.4s infinite ease-in-out;
}

.typing-indicator i:nth-child(1) { animation-delay: 0s; }
.typing-indicator i:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* LIVE STREAMING MESSAGE ANIMATIONS */
.chat-scenario.is-active .row-caller {
  animation: stream-msg-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.chat-scenario.is-active .chat-verification-row {
  animation: stream-msg-up 0.26s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}

.chat-scenario.is-active .row-agent {
  animation: stream-msg-up 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.chat-scenario.is-active .scenario-assertion-footer {
  animation: stream-msg-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

@keyframes stream-msg-up {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Assertion Footer in Card */
.scenario-assertion-footer {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
}

.assertion-lead {
  font-size: 11.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.assertion-lead strong {
  color: #f8fafc;
}

.assertion-shield {
  margin-right: 5px;
}

/* Bottom Messenger Status Bar */
.chat-messenger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #090d15;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  gap: 12px;
}

.footer-assertion-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: #94a3b8;
}

.footer-assertion-status strong {
  color: #10b981;
}

.footer-latency-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #94a3b8;
}

/* Global Compliance Bar */
.rules-compliance-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  margin-top: 24px;
  margin-bottom: 50px;
  background: var(--rules-compliance-bg);
  border: 1px solid var(--rules-compliance-border);
  border-radius: 14px;
}

.compliance-scale {
  font-size: 15px;
  line-height: 1.2;
}

.rules-compliance-bar p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
}

.rules-compliance-bar strong {
  color: #94a3b8;
}

/* Responsive / Mobile Adjustments */
@media (max-width: 900px) {
  .rules-bento-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rules-bento-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rules-bento-card {
    padding: 12px 16px;
  }
  .rules-bento-card.is-active {
    transform: none;
  }
  .chat-messenger-card {
    min-height: 480px;
  }
  .chat-viewport {
    min-height: 380px;
    padding: 16px;
  }
  .chat-scenario {
    inset: 16px;
  }
}


/* ==========================================================================
   SECTION 4: #your-demo — LIVE BROWSER DEMO (A), PHONE LINE (B) & LEAD SETUP (C)
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.demo-hub-section {
  padding-top: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.demo-hub-header {
  max-width: 680px;
  margin: 0 auto 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-hub-header h2 {
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 4px 0 4px;
  color: var(--ink);
}

.demo-hub-header h2 span {
  color: #f97316;
}

.demo-hub-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 540px;
}

/* Single Unified Container Box with Dark Console & Orange Rim Glow */
.demo-hub-box {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(165deg, #0d121d 0%, #090d15 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.52);
  box-shadow:
    0 0 0 1px rgba(254, 215, 170, 0.22),
    0 0 20px rgba(249, 115, 22, 0.18),
    0 16px 40px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  color: #f8fafc;
}

:root[data-theme="light"] .demo-hub-box {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(165deg, #0d121d 0%, #090d15 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.52);
  box-shadow:
    0 0 0 1px rgba(254, 215, 170, 0.22),
    0 0 20px rgba(249, 115, 22, 0.18),
    0 16px 40px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  color: #f8fafc;
}

.demo-hub-top-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-col {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-col-browser {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.09), transparent 60%);
}

.demo-col-phone {
  background: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.06), transparent 60%);
}

.demo-col-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.demo-col-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fb923c;
}

.demo-mode-pill,
.demo-col-status-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
}

.demo-col h3,
.demo-lead-intro h3 {
  font-size: clamp(15.5px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Column A: Form & Controls */
.demo-start-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-field-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.demo-field-label em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

.demo-field-label input,
.demo-field-label textarea,
.demo-code-drawer input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  padding: 6px 11px;
  color: #ffffff;
  font-size: 12.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-field-label input::placeholder,
.demo-field-label textarea::placeholder,
.demo-code-drawer input::placeholder {
  color: #64748b;
}

.demo-field-label input:focus,
.demo-field-label textarea:focus,
.demo-code-drawer input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.demo-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 7px 18px;
  border-radius: 8px;
  border: 1px solid rgba(254, 215, 170, 0.4);
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(234, 88, 12, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
}

.demo-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px -6px rgba(234, 88, 12, 0.72);
}

.demo-primary-btn:active {
  transform: scale(0.98);
}

.demo-primary-btn .icon {
  width: 18px;
  height: 18px;
}

.demo-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.demo-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(249, 115, 22, 0.55);
}

.demo-meta-note {
  margin: 4px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}

/* STATE 2: ACTIVE CALL */
.demo-active-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 0 24px rgba(249, 115, 22, 0.08);
}

.demo-active-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.demo-active-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: demoLivePulse 1.4s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes demoLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.45; }
}

.demo-active-identity strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.demo-active-sub {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.demo-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fdba74;
  font-variant-numeric: tabular-nums;
}

.demo-countdown-pill .icon {
  width: 14px;
  height: 14px;
}

.demo-wave-stage {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(9, 13, 22, 0.75);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.demo-wave-stage span {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c 0%, #38bdf8 100%);
  animation: demoWaveBounce 1.1s ease-in-out infinite;
}

.demo-wave-stage span:nth-child(odd) {
  animation-duration: 0.85s;
}
.demo-wave-stage span:nth-child(3n) {
  animation-delay: 0.18s;
}
.demo-wave-stage span:nth-child(4n) {
  animation-delay: 0.34s;
}
.demo-wave-stage span:nth-child(5n) {
  animation-delay: 0.5s;
}

@keyframes demoWaveBounce {
  0%, 100% { height: 6px; opacity: 0.45; }
  50% { height: 28px; opacity: 1; }
}

.demo-active-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
  font-style: italic;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 13px;
  border-radius: 9px;
  border-left: 3px solid #f97316;
}

.demo-active-actions {
  display: flex;
  justify-content: flex-end;
}

.demo-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.demo-end-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* STATE 3: ENDED / POST-CALL */
.demo-ended-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 16px;
  padding: 22px;
}

.demo-ended-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.demo-ended-card h3,
.demo-ended-card h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.demo-ended-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #94a3b8;
}

.demo-ended-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-ended-actions .demo-primary-btn,
.demo-ended-actions .demo-secondary-btn {
  flex: 1 1 180px;
}

.demo-reset-link {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.demo-reset-link:hover {
  color: #ffffff;
}

/* Status Messages & Fallback Sample Audio */
.demo-status-msg {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
}

.demo-status-msg.is-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.demo-status-msg.is-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
  color: #dcfce7;
  font-weight: 700;
}

.demo-fallback-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-fallback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-sample-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fdba74;
}

.demo-fallback-caption {
  font-size: 12px;
  color: #94a3b8;
}

.demo-fallback-box audio {
  width: 100%;
  height: 38px;
}

/* Demo Code Footer */
.demo-code-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-code-toggle {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.demo-code-toggle:hover {
  color: #fdba74;
}

.demo-code-drawer {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.demo-code-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.demo-code-submit:hover {
  background: #ea580c;
}

.demo-code-submit .icon {
  width: 15px;
  height: 15px;
}

/* Column B: Phone Demo Line */
.demo-phone-display {
  margin: 2px 0 6px;
}

.demo-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.14);
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  color: #ffffff;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.18s ease, background 0.18s ease;
}

.demo-phone-number:hover {
  transform: translateY(-2px);
  background: rgba(249, 115, 22, 0.24);
}

.demo-phone-number .icon {
  width: 24px;
  height: 24px;
  color: #fb923c;
}

.demo-phone-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.coming-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 8px #fb923c;
}

.demo-phone-note {
  margin: 0 0 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #cbd5e1;
}

.demo-disclosure-card {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-disclosure-card .icon {
  width: 18px;
  height: 18px;
  color: #fb923c;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-disclosure-card p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: #94a3b8;
}

.demo-disclosure-card strong {
  color: #f1f5f9;
}

/* Bottom Row (C): Lead Form */
.demo-lead-panel {
  padding: 10px 22px 12px;
  background: rgba(7, 10, 18, 0.65);
}

.demo-lead-intro {
  max-width: 680px;
  margin-bottom: 6px;
}

.demo-lead-intro h3 {
  margin: 6px 0 8px;
}

.demo-lead-intro p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #94a3b8;
}

.demo-lead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-field-full {
  grid-column: 1 / -1;
}

.demo-lead-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-lead-reassurance {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
}

@media (max-width: 920px) {
  .demo-hub-top-grid {
    grid-template-columns: 1fr;
  }
  .demo-col-browser {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .demo-col,
  .demo-lead-panel {
  padding: 10px 22px 12px;
  background: rgba(7, 10, 18, 0.65);
}
  .demo-lead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
}

@media (max-width: 560px) {
  .demo-col,
  .demo-lead-panel {
  padding: 10px 22px 12px;
  background: rgba(7, 10, 18, 0.65);
}
  .demo-lead-submit {
    width: 100%;
  }
  .demo-code-drawer {
    flex-direction: column;
  }
  .demo-code-submit {
    min-height: 44px;
    justify-content: center;
  }
}

/* Round 90: Turnstile slot (stays empty unless Cloudflare asks for a click) and the post-call note. */
/* Round 95: Absolute Invisible Turnstile & Lead Slot isolation */
.demo-turnstile,
.demo-turnstile-invisible,
.demo-lead-invisible-ts {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  z-index: -9999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.demo-turnstile iframe,
.demo-turnstile-invisible iframe,
.demo-lead-invisible-ts iframe {
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.demo-ended-note { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 122, 26, .35); text-align: left; }
.demo-ended-note p { margin: 6px 0 0; white-space: pre-wrap; }


/* ========================================================
   CIRCULAR GLOWING ORB DEMO BUTTON & LAYOUT
   ======================================================== */
.demo-orb-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 0px;
}

.demo-orb-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes loaderCircle {
  0% {
    transform: rotate(90deg);
    box-shadow:
      0 6px 12px 0 #38bdf8 inset,
      0 12px 18px 0 #005dff inset,
      0 36px 36px 0 #1e40af inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
  50% {
    transform: rotate(270deg);
    box-shadow:
      0 6px 12px 0 #60a5fa inset,
      0 12px 6px 0 #0284c7 inset,
      0 24px 36px 0 #005dff inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
  100% {
    transform: rotate(450deg);
    box-shadow:
      0 6px 12px 0 #4dc8fd inset,
      0 12px 18px 0 #005dff inset,
      0 36px 36px 0 #1e40af inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
}

@keyframes loaderCircleRed {
  0% {
    transform: rotate(90deg);
    box-shadow:
      0 6px 12px 0 #f87171 inset,
      0 12px 18px 0 #ef4444 inset,
      0 36px 36px 0 #991b1b inset,
      0 0 3px 1.2px rgba(248, 113, 113, 0.4),
      0 0 6px 1.8px rgba(239, 68, 68, 0.3);
  }
  50% {
    transform: rotate(270deg);
    box-shadow:
      0 6px 12px 0 #fca5a5 inset,
      0 12px 6px 0 #dc2626 inset,
      0 24px 36px 0 #ef4444 inset,
      0 0 3px 1.2px rgba(248, 113, 113, 0.4),
      0 0 6px 1.8px rgba(239, 68, 68, 0.3);
  }
  100% {
    transform: rotate(450deg);
    box-shadow:
      0 6px 12px 0 #f87171 inset,
      0 12px 18px 0 #ef4444 inset,
      0 36px 36px 0 #991b1b inset,
      0 0 3px 1.2px rgba(248, 113, 113, 0.4),
      0 0 6px 1.8px rgba(239, 68, 68, 0.3);
  }
}

.demo-orb-btn {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0d1e3d 0%, #060b17 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 20px -4px rgba(0, 93, 255, 0.45);
  flex-shrink: 0;
}

.demo-orb-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 36px -6px rgba(56, 189, 248, 0.6);
}

.demo-orb-btn:active {
  transform: scale(0.97);
}

.demo-orb-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  animation: loaderCircle 5s linear infinite;
}

.demo-orb-btn.is-active {
  background: radial-gradient(circle at 50% 50%, #2e0813 0%, #120307 100%);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 10px 30px -8px rgba(239, 68, 68, 0.55);
}

.demo-orb-btn.is-active:hover {
  box-shadow: 0 14px 36px -6px rgba(239, 68, 68, 0.7);
}

.demo-orb-btn.is-active .demo-orb-glow {
  animation: loaderCircleRed 4s linear infinite;
}

.demo-orb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  gap: 4px;
  user-select: none;
}

.demo-orb-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.demo-orb-icon.mic-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
}

.demo-orb-icon.hangup-icon {
  color: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.75));
}

.demo-orb-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.demo-orb-btn.is-active .demo-orb-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.demo-orb-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo-orb-right .demo-start-form {
  gap: 12px;
}

@media (max-width: 640px) {
  .demo-orb-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 0px;
}
  .demo-orb-right {
    width: 100%;
  }
}


/* ========================================================
   FROSTED-GLASS FAQ ACCORDION (CFA-07)
   On TinoCall's Native Dark & Light Backgrounds
   ======================================================== */
.cfa-07,
.cfa-07 *,
.cfa-07 *::before,
.cfa-07 *::after {
  box-sizing: border-box;
}

.cfa-07 {
  --ink: #f8fafc;
  --mut: #94a3b8;
  --blur: 18px;
  --accent: #ff6a00;
  width: 100%;
  display: block;
  position: relative;
  font-family: inherit;
  color: var(--ink);
}

:root[data-theme="light"] .cfa-07 {
  --ink: #16130c;
  --mut: #6b6355;
  --accent: #0b46f6;
}

.cfa-07__scene {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(50px, 6vw, 90px) 20px;
  background: transparent;
}

.cfa-07__wrap {
  width: min(100%, 780px);
  margin-inline: auto;
}

.cfa-07__head {
  text-align: center;
  margin-bottom: 34px;
}

.cfa-07__head h1,
.cfa-07__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 12px;
}

.cfa-07__head p {
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mut);
  max-width: 620px;
}

.cfa-07__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  interpolate-size: allow-keywords;
}

/* Frosted glass card */
.cfa-07__item {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, -webkit-backdrop-filter .35s, backdrop-filter .35s;
}

.cfa-07__item[open] {
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 106, 0, 0.15);
}

:root[data-theme="light"] .cfa-07__item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(22, 19, 12, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .cfa-07__item[open] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 70, 246, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 22px 44px rgba(0, 0, 0, 0.09), 0 0 16px rgba(11, 70, 246, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
  .cfa-07__item {
    background: #11151e;
  }
  .cfa-07__item[open] {
    background: #181e2b;
  }
  :root[data-theme="light"] .cfa-07__item {
    background: #ffffff;
  }
  :root[data-theme="light"] .cfa-07__item[open] {
    background: #ffffff;
  }
}

.cfa-07__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  color: var(--ink);
  transition: color 200ms ease;
}

.cfa-07__q::-webkit-details-marker {
  display: none;
}

.cfa-07__q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 18px;
}

.cfa-07__q:hover {
  color: var(--accent);
}

.cfa-07__q i {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  position: relative;
  transition: rotate .4s cubic-bezier(.4, 0, .2, 1), background .3s, border-color .3s;
}

:root[data-theme="light"] .cfa-07__q i {
  border-color: rgba(22, 19, 12, 0.25);
}

.cfa-07__q i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -1.5px;
}

.cfa-07__item[open] .cfa-07__q i {
  rotate: 180deg;
  background: rgba(255, 106, 0, 0.18);
  border-color: #ff6a00;
  color: #ff6a00;
}

:root[data-theme="light"] .cfa-07__item[open] .cfa-07__q i {
  background: rgba(11, 70, 246, 0.12);
  border-color: #0b46f6;
  color: #0b46f6;
}

.cfa-07__q:hover i {
  background: rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] .cfa-07__q:hover i {
  background: rgba(22, 19, 12, 0.06);
}

.cfa-07__a p {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mut);
  margin: 0;
}

@supports (interpolate-size: allow-keywords) {
  .cfa-07__item::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height .4s cubic-bezier(.4, 0, .2, 1), opacity .32s ease, content-visibility .4s allow-discrete;
  }

  .cfa-07__item[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

.cfa-07__foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--mut);
}

.cfa-07__foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cfa-07__foot a:hover {
  filter: brightness(1.15);
}

@media (max-width: 600px) {
  .cfa-07__q {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .cfa-07__a p {
    padding: 0 18px 18px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfa-07 *,
  .cfa-07 .cfa-07__item::details-content {
    transition-duration: 0.01ms !important;
  }
}

/* --- DITHERED FOOTER (TINOCALL) --- */
.df-footer {
  --df-accent: #ff6a00;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  margin-top: 60px;
}
.df-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.df-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) {
  .df-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .df-top-grid {
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}
.df-brand-col {
  grid-column: 1 / -1;
}
@media (min-width: 960px) {
  .df-brand-col {
    grid-column: span 1;
  }
}
.df-brand {
  margin-bottom: 12px;
}
.df-tagline {
  margin: 12px 0 24px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.df-subscribe-form {
  max-width: 380px;
}
.df-subscribe-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.df-input-row {
  display: flex;
  gap: 8px;
}
.df-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.df-input:focus {
  border-color: var(--df-accent);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.25);
}
.df-submit-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: var(--df-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}
.df-submit-btn:hover {
  opacity: 0.9;
}
.df-submit-btn:active {
  transform: scale(0.97);
}
.df-subscribe-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.df-subscribe-status.is-success {
  color: #10b981;
}
.df-subscribe-status.is-error {
  color: #ef4444;
}
.df-nav-col {
  display: flex;
  flex-direction: column;
}
.df-nav-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.df-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.df-nav-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 150ms ease;
  text-decoration: none;
}
.df-nav-list a:hover {
  color: var(--ink);
}
.df-band {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg);
}
.df-field {
  position: absolute;
  inset: 0;
}
.df-field.df-lit {
  -webkit-mask-image: radial-gradient(circle 190px at var(--df-x, 50%) var(--df-y, 50%), #000 35%, rgb(0 0 0 / .22) 100%);
  mask-image: radial-gradient(circle 190px at var(--df-x, 50%) var(--df-y, 50%), #000 35%, rgb(0 0 0 / .22) 100%);
}
.df-dots {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 360px);
  background: var(--df-accent);
  -webkit-mask-image: radial-gradient(circle, #000 0.9px, transparent 1.3px), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27360%27%20height%3D%27240%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270.04%27%20stop-color%3D%27%23000%27%2F%3E%3Cstop%20offset%3D%270.96%27%20stop-color%3D%27%23fff%27%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%27f%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%20color-interpolation-filters%3D%27sRGB%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.45%27%20numOctaves%3D%272%27%20seed%3D%277%27%20stitchTiles%3D%27stitch%27%20result%3D%27n%27%2F%3E%3CfeColorMatrix%20in%3D%27n%27%20type%3D%27matrix%27%20values%3D%271%200%200%200%200%201%200%200%200%200%201%200%200%200%200%200%200%200%200%201%27%20result%3D%27ng%27%2F%3E%3CfeComposite%20in%3D%27SourceGraphic%27%20in2%3D%27ng%27%20operator%3D%27arithmetic%27%20k2%3D%270.5%27%20k3%3D%270.5%27%20result%3D%27s%27%2F%3E%3CfeComponentTransfer%20in%3D%27s%27%20result%3D%27t%27%3E%3CfeFuncR%20type%3D%27discrete%27%20tableValues%3D%270%201%27%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20in%3D%27t%27%20type%3D%27matrix%27%20values%3D%270%200%200%200%201%200%200%200%200%200.5%200%200%200%200%200%201%200%200%200%200%27%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20fill%3D%27url%28%23g%29%27%20filter%3D%27url%28%23f%29%27%2F%3E%3C%2Fsvg%3E");
  mask-image: radial-gradient(circle, #000 0.9px, transparent 1.3px), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27360%27%20height%3D%27240%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270.04%27%20stop-color%3D%27%23000%27%2F%3E%3Cstop%20offset%3D%270.96%27%20stop-color%3D%27%23fff%27%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%27f%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%20color-interpolation-filters%3D%27sRGB%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.45%27%20numOctaves%3D%272%27%20seed%3D%277%27%20stitchTiles%3D%27stitch%27%20result%3D%27n%27%2F%3E%3CfeColorMatrix%20in%3D%27n%27%20type%3D%27matrix%27%20values%3D%271%200%200%200%200%201%200%200%200%200%201%200%200%200%200%200%200%200%200%201%27%20result%3D%27ng%27%2F%3E%3CfeComposite%20in%3D%27SourceGraphic%27%20in2%3D%27ng%27%20operator%3D%27arithmetic%27%20k2%3D%270.5%27%20k3%3D%270.5%27%20result%3D%27s%27%2F%3E%3CfeComponentTransfer%20in%3D%27s%27%20result%3D%27t%27%3E%3CfeFuncR%20type%3D%27discrete%27%20tableValues%3D%270%201%27%2F%3E%3C%2FfeComponentTransfer%3E%3CfeColorMatrix%20in%3D%27t%27%20type%3D%27matrix%27%20values%3D%270%200%200%200%201%200%200%200%200%200.5%200%200%200%200%200%201%200%200%200%200%27%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20fill%3D%27url%28%23g%29%27%20filter%3D%27url%28%23f%29%27%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 4px 4px, 360px 240px;
  mask-size: 4px 4px, 360px 240px;
  -webkit-mask-repeat: repeat, repeat-x;
  mask-repeat: repeat, repeat-x;
  -webkit-mask-position: 0 0, left bottom;
  mask-position: 0 0, left bottom;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (prefers-reduced-motion: no-preference) {
  .df-dots {
    animation: df-drift 40s linear infinite;
  }
  @supports (animation-timeline: view()) {
    .df-band {
      view-timeline: --df-band;
    }
    .df-mark {
      animation: df-rise linear both;
      animation-timeline: --df-band;
      animation-range: entry 20% entry 100%;
    }
  }
}
@keyframes df-drift {
  to {
    transform: translateX(-360px);
  }
}
@keyframes df-rise {
  from {
    transform: translateY(30%);
  }
}
.df-mark {
  pointer-events: none;
  position: absolute;
  bottom: -0.05em;
  left: 1rem;
  user-select: none;
  font-size: clamp(4.5rem, 19vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--bg);
  margin: 0;
  z-index: 2;
}
.df-mark::before {
  content: attr(data-text);
}
@media (min-width: 640px) {
  .df-mark {
    left: 2rem;
  }
}
.df-bottom-bar {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.df-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .df-bottom-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.df-bottom-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.df-bottom-legal p {
  margin: 0;
}
.df-bottom-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.df-bottom-legal a:hover {
  color: var(--ink);
}
.df-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.df-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.df-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.df-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.df-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted);
  transition: color 150ms ease, background-color 150ms ease;
}
.df-socials a:hover {
  color: var(--ink);
  background: var(--surface);
}
.df-icon {
  width: 16px;
  height: 16px;
}
.df-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}
.df-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 150ms ease;
}
.df-back-to-top:hover {
  color: var(--ink);
}
.df-icon-sm {
  width: 14px;
  height: 14px;
}

.demo-field-full textarea {
  min-height: 32px !important;
  height: 32px !important;
  resize: vertical;
}


/* ========================================================
   RESPONSIVE MOBILE STYLES FOR DEMO HUB & PHONE VIEWPORTS
   ======================================================== */
@media (max-width: 768px) {
  .demo-hub-section {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .demo-hub-top-grid {
    grid-template-columns: 1fr;
  }
  .demo-col-browser {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .demo-col,
  .demo-lead-panel {
    padding: 18px 16px;
  }
  .demo-orb-layout {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
  }
  .demo-orb-wrapper {
    margin: 0 auto;
  }
  .demo-orb-btn {
    width: 120px;
    height: 120px;
  }
  .demo-orb-right {
    width: 100%;
  }
  .demo-orb-right .demo-field-label input {
    height: 38px;
    font-size: 13.5px;
  }
  .demo-meta-note {
    text-align: center;
    font-size: 11px;
    margin-top: 6px;
  }
  .demo-code-footer {
    text-align: center;
  }
  .demo-phone-display {
    text-align: center;
    margin: 8px 0;
  }
  .demo-phone-number {
    width: 100%;
    justify-content: center;
    font-size: 18px;
    padding: 10px 16px;
  }
  .demo-phone-note {
    text-align: center;
  }
  .demo-lead-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .demo-lead-grid input {
    height: 38px;
    font-size: 13.5px;
  }
  .demo-field-full textarea {
    min-height: 48px !important;
    height: 48px !important;
    font-size: 13.5px;
  }
  .demo-lead-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
  }
  .demo-lead-submit {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    justify-content: center;
  }
  .demo-lead-reassurance {
    text-align: center;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .demo-col,
  .demo-lead-panel {
    padding: 14px 12px;
  }
  .demo-hub-header h2 {
    font-size: 20px;
  }
  .demo-hub-subtitle {
    font-size: 12px;
  }
  .demo-col h3,
  .demo-lead-intro h3 {
    font-size: 16px;
  }
  .demo-col-badge-row {
    flex-wrap: wrap;
  }
}


/* Option C: Hyper-Compact Desktop Layout */
.demo-lead-panel {
  padding: 10px 20px 12px;
  background: rgba(7, 10, 18, 0.65);
}

.demo-lead-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.demo-lead-intro-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.demo-lead-intro h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.demo-lead-desc {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.demo-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.3fr;
  gap: 8px;
}

.demo-field-needs {
  grid-column: auto;
}

.demo-lead-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-lead-submit {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 8px;
}

.demo-lead-reassurance {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #94a3b8;
}


/* ========================================================
   STANDARDIZED UNIFIED SECTION HEADINGS (FPCOS TYPOGRAPHY)
   Standardized across:
   1. #revenue-title (Revenue Ledger)
   2. #simulator-title (Onboarding Simulator)
   3. #rules-heading (Your Rules)
   4. #your-demo-title (Demo Hub)
   5. #questions-title (FAQ)
   ======================================================== */
#revenue-title,
.simulator-heading,
#simulator-title,
.rules-heading,
#rules-heading,
#your-demo-title,
.demo-hub-header h2,
#questions-title,
.cfa-07__head h1,
.cfa-07__head h2 {
  font-family: Manrope, "Segoe UI", sans-serif !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.03em !important;
  color: var(--ink) !important;
  margin: 6px 0 10px !important;
  text-wrap: balance !important;
}

#your-demo-title span {
  color: #f97316 !important;
}

:root[data-theme="dark"] #revenue-title,
:root[data-theme="dark"] .simulator-heading,
:root[data-theme="dark"] #simulator-title,
:root[data-theme="dark"] .rules-heading,
:root[data-theme="dark"] #rules-heading,
:root[data-theme="dark"] #your-demo-title,
:root[data-theme="dark"] .demo-hub-header h2,
:root[data-theme="dark"] #questions-title,
:root[data-theme="dark"] .cfa-07__head h1,
:root[data-theme="dark"] .cfa-07__head h2 {
  color: #f8fafc !important;
}

/* Standardized Subtitles */
.revenue-subline,
.simulator-subline,
.rules-subline,
.demo-hub-subtitle,
.cfa-07__head p {
  font-family: Manrope, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
  max-width: 660px !important;
  margin: 0 auto !important;
}

:root[data-theme="dark"] .revenue-subline,
:root[data-theme="dark"] .simulator-subline,
:root[data-theme="dark"] .rules-subline,
:root[data-theme="dark"] .demo-hub-subtitle,
:root[data-theme="dark"] .cfa-07__head p {
  color: #94a3b8 !important;
}

/* Standardized Eyebrows */
.revenue-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(234, 88, 12, 0.12) !important;
  border: 1px solid rgba(234, 88, 12, 0.35) !important;
  color: #fb923c !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}
:root[data-theme="light"] .revenue-eyebrow {
  background: rgba(234, 88, 12, 0.14) !important;
  border-color: rgba(194, 65, 12, 0.4) !important;
  color: #9a3412 !important;
}

/* ========================================================
   ONBOARDING SIMULATOR: single-line subline (more room for the console)
   ======================================================== */
@media (min-width: 1025px) {
  .simulator-header {
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
  .simulator-header .simulator-subline {
    max-width: 800px !important;
    width: 100% !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-wrap: balance;
  }
  .simulator-header #simulator-title {
    margin: 4px 0 6px !important;
  }
  /* Console grows with screen height (never below the original 380px) */
  .sim-viewport {
    min-height: clamp(380px, calc(100dvh - 368px), 640px);
  }
}
/* ========================================================
   YOUR RULES (#your-rules): Header + Slightly Compacted Cards Fit Together in Viewport
   ======================================================== */
@media (min-width: 901px) {
  .rules-stage-sticky {
    position: sticky !important;
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow: visible !important;
    padding: 12px 0 12px !important;
    box-sizing: border-box !important;
  }
  .rules-sticky-inner {
    width: 100%;
    transform: scale(var(--rules-fit, 1));
    transform-origin: top center;
  }
  .rules-header {
    padding-top: 0 !important;
    margin: 0 auto 12px !important;
    max-width: 100% !important;
  }
  .rules-eyebrow {
    margin: 0 auto 4px !important;
  }
  .rules-header #rules-heading {
    margin: 4px 0 6px !important;
  }
  .rules-header .rules-subline {
    max-width: 760px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-wrap: balance;
  }
  .rules-bento-layout {
    gap: 22px !important;
  }
  .rules-bento-column {
    gap: 7px !important;
  }
  .rules-bento-card {
    padding: 9px 15px 8px !important;
    border-radius: 12px !important;
  }
  .bento-card-header {
    margin-bottom: 3px !important;
  }
  .bento-card-title {
    font-size: 13.5px !important;
    margin: 0 0 2px !important;
  }
  .bento-card-desc {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
  .rules-bento-card.is-active .bento-card-footer {
    margin-top: 4px !important;
  }
  .chat-messenger-card {
    min-height: 440px !important;
  }
  .chat-messenger-header {
    padding: 8px 16px !important;
  }
  .chat-avatar-ring {
    width: 32px !important;
    height: 32px !important;
  }
  .chat-viewport {
    min-height: 320px !important;
    padding: 12px 18px !important;
  }
  .chat-scenario {
    inset: 12px 18px !important;
  }
  .scenario-meta-bar {
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
  }
  .chat-feed-stream {
    gap: 8px !important;
  }
  .chat-bubble {
    padding: 9px 14px !important;
    font-size: 12.5px !important;
    line-height: 1.42 !important;
  }
  .scenario-assertion-footer {
    padding: 7px 12px !important;
    margin-top: 6px !important;
  }
  .chat-messenger-footer {
    padding: 6px 16px !important;
  }
}

/* ========================================================
   CODEFRONTS INFINITE MARQUEE (PURE CSS SEAMLESS LOOP)
   Applied to #revenue-cost and #how-it-works sublines
   Source: https://codefronts.com/motion/css-infinite-marquee/as-seen-in-press-logo-marquee/
   ======================================================== */
.site-marquee-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 6px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  --marquee-gap: 44px;
  --marquee-speed: 40s;
  box-sizing: border-box;
}

.site-marquee-viewport {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: var(--marquee-gap);
  overflow: hidden !important;
  padding-block: 5px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
  cursor: default;
}

.site-marquee-group {
  flex: none;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: var(--marquee-gap);
  animation: siteMarqueeScroll var(--marquee-speed) linear infinite;
  will-change: transform;
  white-space: nowrap !important;
}

@keyframes siteMarqueeScroll {
  to {
    transform: translateX(calc(-100% - var(--marquee-gap)));
  }
}

/* Pause automatically on hover or focus-within */
.site-marquee-viewport:hover .site-marquee-group,
.site-marquee-viewport:focus-within .site-marquee-group {
  animation-play-state: paused;
}

.site-marquee-item {
  flex: none;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  user-select: text;
  transition: color 0.2s ease;
}

:root[data-theme="light"] .site-marquee-item {
  color: #475569;
}

:root[data-theme="dark"] .site-marquee-item {
  color: #94a3b8;
}

.site-marquee-item:hover {
  color: var(--ink);
}

:root[data-theme="dark"] .site-marquee-item:hover {
  color: #f8fafc;
}

.site-marquee-sep {
  flex: none;
  font-size: 10px;
  color: #ea580c;
  opacity: 0.85;
  display: inline-block;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-marquee-group {
    animation: none;
  }
  .site-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 640px) {
  .site-marquee-wrap {
    max-width: 100%;
    margin: 4px auto 8px;
  }
  .site-marquee-item {
    font-size: 12.5px;
  }
}

/* ========================================================
   DARK MODE AMBIENT AURORA LIGHTING
   Top-Left Subtle Orange & Bottom-Right Subtle Blue Glow
   Permanently pinned in viewport across all sections during scroll
   ======================================================== */
.dark-ambient-aurora {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 30;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

:root[data-theme="dark"] .dark-ambient-aurora,
:root:not([data-theme="light"]) .dark-ambient-aurora {
  opacity: 1;
}

:root[data-theme="light"] .dark-ambient-aurora {
  display: none !important;
  opacity: 0 !important;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Top-Left Subtle Orange Glow (Brand Primary Accent) */
.aurora-top-left {
  top: -120px;
  left: -120px;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle at 45% 45%, rgba(234, 88, 12, 0.32) 0%, rgba(249, 115, 22, 0.14) 45%, transparent 70%);
  filter: blur(100px);
  will-change: transform;
}

/* Bottom-Right Subtle Electric Blue Glow (AI & Trust Accent) */
.aurora-bottom-right {
  bottom: -140px;
  right: -140px;
  width: 740px;
  height: 740px;
  background: radial-gradient(circle at 55% 55%, rgba(11, 70, 246, 0.36) 0%, rgba(2, 132, 199, 0.16) 45%, transparent 70%);
  filter: blur(110px);
  will-change: transform;
}

@media (max-width: 768px) {
  .aurora-top-left {
    width: 460px;
    height: 460px;
    filter: blur(120px);
  }
  .aurora-bottom-right {
    width: 500px;
    height: 500px;
    filter: blur(130px);
  }
}

/* ========================================================
   SECTION: PRICING — INTERACTIVE FOCUSED CAROUSEL
   Enlarged cards, generous spacing, stacked option pills
   ======================================================== */
.lp-pstage-band {
  --pstage-ease: cubic-bezier(.22, 1, .36, 1);
  --pstage-ms: .52s;
  --ps-off-opacity: .42;
  --ps-off-blur: 7px;
  position: relative;
  padding-block: clamp(54px, 6vw, 88px) clamp(48px, 5.5vw, 80px);
  scroll-margin-top: 75px;
  overflow: hidden;
  width: 100%;
}

:root[data-theme="light"] .lp-pstage-band {
  --ps-off-opacity: .50;
  --ps-off-blur: 5px;
}

.pricing-container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.pricing-header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.pricing-eyebrow {
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 11px;
  display: inline-flex;
}

.pricing-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.pricing-title-accent {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .pricing-title-accent {
  background: linear-gradient(135deg, #0b46f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-lede {
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto;
}

/* Controls: Stacked Vertically (Alt Alta) */
.lp-pstage-controls {
  display: flex;
  flex-direction: column; /* Alt alta */
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.lp-pstage-seg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  align-items: center;
  gap: 2px;
  padding: 4px;
  display: inline-flex;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .lp-pstage-seg {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lp-pstage-seg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: linear-gradient(to right, #f8b13a, #f2524a, #ef4f9d);
  background-size: 200% 100%;
  background-position: left;
  box-shadow: 0 4px 18px rgba(242, 82, 74, 0.45);
  border-radius: 9999px;
  transition: transform .45s var(--pstage-ease), width .45s var(--pstage-ease), background-position .5s ease, box-shadow .4s ease;
  pointer-events: none;
  opacity: 0;
}

:root[data-theme="light"] .lp-pstage-seg-pill {
  background: linear-gradient(to right, #f8b13a, #f2524a, #ef4f9d);
  background-size: 200% 100%;
  background-position: left;
  box-shadow: 0 4px 16px rgba(242, 82, 74, 0.40);
}

.lp-pstage-seg:hover .lp-pstage-seg-pill {
  background-position: right;
  box-shadow: 0 6px 22px rgba(242, 82, 74, 0.55);
}

.lp-pstage-seg-btn {
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lp-pstage-seg-btn:hover {
  color: var(--ink);
}

.lp-pstage-seg-btn[aria-selected="true"],
.lp-pstage-seg-btn[aria-pressed="true"] {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"] .lp-pstage-seg-btn[aria-selected="true"],
:root[data-theme="light"] .lp-pstage-seg-btn[aria-pressed="true"] {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

.lp-pstage-seg-bill .lp-pstage-seg-btn {
  padding: 6px 16px;
  font-size: 12.5px;
}

.lp-pstage-free {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.90;
  letter-spacing: 0.02em;
}

.lp-pstage-free::before {
  content: "·";
  margin-inline: 4px;
}

/* Stage & Track */
.lp-pstage {
  position: relative;
  width: 100%;
  margin-top: 26px;
  overflow: visible;
}

.lp-pstage-track {
  --w: min(400px, calc(100vw - 44px));
  --gap: clamp(14px, 2.2vw, 30px);
  display: flex;
  gap: var(--gap);
  width: max-content;
  position: relative;
  left: 50%;
  transform: translateX(calc(-1 * (var(--pi) * (var(--w) + var(--gap)) + var(--w) / 2)));
  transition: transform var(--pstage-ms) var(--pstage-ease);
  padding-block: 8px 22px;
}

/* Slot & Inactive State */
.lp-pstage-slot {
  width: var(--w);
  flex: none;
  opacity: var(--ps-off-opacity);
  filter: blur(var(--ps-off-blur)) saturate(.85);
  transition: opacity var(--pstage-ms) var(--pstage-ease), transform var(--pstage-ms) var(--pstage-ease), filter var(--pstage-ms) var(--pstage-ease);
  position: relative;
  display: flex;
  cursor: pointer;
}

.lp-pstage-slot[data-active="true"] {
  opacity: 1;
  filter: none;
  cursor: default;
}

.lp-pstage-peek {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.lp-pstage-slot[data-active="true"] .lp-pstage-peek {
  display: none;
  pointer-events: none;
}

/* Moderately Scaled Card */
.lp-pstage-card {
  width: 100%;
  background: rgba(13, 21, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 22px 24px 20px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-pstage-card:hover {
  border-color: rgba(248, 177, 58, 0.35);
}

:root[data-theme="light"] .lp-pstage-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .lp-pstage-card:hover {
  border-color: rgba(242, 82, 74, 0.30);
}

@property --lp-beam-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Hero / Growth Card - Moving Border-Beam Glow (Codefronts Reference) */
.lp-pstage-card[data-hero="true"] {
  --beam: #f8b13a;
  --beam-hot: #f2524a;
  position: relative;
  background: rgba(13, 21, 38, 0.94);
  border-color: rgba(248, 177, 58, 0.22);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.75);
}

:root[data-theme="light"] .lp-pstage-card[data-hero="true"] {
  --beam: #f2524a;
  --beam-hot: #f8b13a;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(242, 82, 74, 0.20);
  box-shadow: 0 20px 42px -18px rgba(0, 0, 0, 0.08);
}

.lp-pstage-card[data-hero="true"]::before,
.lp-pstage-card[data-hero="true"]::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 21.5px;
  background: conic-gradient(from var(--lp-beam-a), transparent 0deg 280deg, var(--beam) 332deg, #ffffff 348deg, var(--beam-hot) 356deg, transparent 360deg);
  animation: lp-beam-spin 4s linear infinite;
  pointer-events: none;
}

.lp-pstage-card[data-hero="true"]::before {
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  z-index: 2;
}

.lp-pstage-card[data-hero="true"]::after {
  filter: blur(18px);
  opacity: 0.50;
  z-index: -1;
  mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 1) 90%);
  -webkit-mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 1) 90%);
}

:root[data-theme="light"] .lp-pstage-card[data-hero="true"]::after {
  filter: blur(16px);
  opacity: 0.32;
  mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 1) 90%);
  -webkit-mask: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 1) 90%);
}

@keyframes lp-beam-spin {
  to {
    --lp-beam-a: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pstage-card[data-hero="true"]::before,
  .lp-pstage-card[data-hero="true"]::after {
    animation: none;
    background: conic-gradient(from 210deg, transparent 0 300deg, var(--beam) 330deg, transparent 360deg);
  }
}

.card-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lp-pstage-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.lp-pstage-rec {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f8b13a;
  white-space: nowrap;
}

:root[data-theme="light"] .lp-pstage-rec {
  color: #e0443d;
}

.lp-pstage-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 3px 0 12px 0;
  min-height: auto;
  line-height: 1.4;
}

/* Price */
.lp-pstage-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 2px;
}

:root[data-theme="light"] .lp-pstage-price {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lp-pstage-cur {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.lp-pstage-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lp-pstage-per {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.lp-pstage-note-row {
  margin-top: 4px;
}

.lp-pstage-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.lp-pstage-save-row {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  min-height: 16px;
  line-height: 1.35;
}

.lp-pstage-save {
  color: #f8b13a;
  font-weight: 600;
}

:root[data-theme="light"] .lp-pstage-save {
  color: #e0443d;
}

/* CTAs */
.lp-pstage-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 40px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

:root[data-theme="light"] .lp-pstage-cta {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.lp-pstage-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

:root[data-theme="light"] .lp-pstage-cta:hover {
  background: rgba(0, 0, 0, 0.08);
}

.lp-pstage-cta-hero {
  background: linear-gradient(to right, #f8b13a, #f2524a, #ef4f9d);
  background-size: 200% 100%;
  background-position: left;
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(242, 82, 74, 0.55);
  transition: background-position 0.5s ease, box-shadow 0.5s ease, transform 0.2s ease;
}

:root[data-theme="light"] .lp-pstage-cta-hero {
  background: linear-gradient(to right, #f8b13a, #f2524a, #ef4f9d);
  background-size: 200% 100%;
  background-position: left;
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(242, 82, 74, 0.50);
}

.lp-pstage-cta-hero:hover {
  background-position: right;
  box-shadow: 0 14px 34px -8px rgba(242, 82, 74, 0.70);
  transform: translateY(-1px);
}

:root[data-theme="light"] .lp-pstage-cta-hero:hover {
  background-position: right;
  box-shadow: 0 14px 34px -8px rgba(242, 82, 74, 0.65);
  transform: translateY(-1px);
}

.lp-pstage-cta-hero:active {
  transform: scale(0.98);
}

.lp-pstage-cta-arrow {
  transition: transform .2s ease;
  width: 13px;
  height: 13px;
}

.lp-pstage-cta:hover .lp-pstage-cta-arrow {
  transform: translateX(4px);
}

/* Feature Rows */
.lp-pstage-rows {
  list-style: none;
  margin: 14px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7.5px;
}

:root[data-theme="light"] .lp-pstage-rows {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lp-pstage-rows li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}

.lp-pstage-icon {
  flex: none;
  margin-top: 2px;
  color: var(--muted);
  width: 13px;
  height: 13px;
}

.lp-pstage-icon[data-accent="true"] {
  color: #f8b13a;
}

:root[data-theme="light"] .lp-pstage-icon[data-accent="true"] {
  color: #e0443d;
}

@media (max-width: 640px) {
  .lp-pstage-controls {
    gap: 8px;
  }
  .lp-pstage-card {
    padding: 18px 16px 16px;
  }
  .lp-pstage-num {
    font-size: 32px;
  }
}

/* ========================================================
   COMPARE EVERY FEATURE TABLE
   MULTI-LAYER BREATHING GLOW PULSE BUTTON (CODEFRONTS GBB-09)
   ======================================================== */
.lp-pstage-compare-wrap {
  --pulse: #f8b13a;
  margin-top: 40px;
  margin-bottom: 12px;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

:root[data-theme="light"] .lp-pstage-compare-wrap {
  --pulse: #f2524a;
}

.lp-pstage-compare-btn {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--pulse);
  border-radius: 999px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: color-mix(in srgb, var(--pulse) 16%, rgba(13, 21, 38, 0.94));
  animation: gbb09-breathe 3.4s ease-in-out infinite;
  transition: box-shadow .25s ease, transform .18s ease, background .25s ease, color .25s ease;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

:root[data-theme="light"] .lp-pstage-compare-btn {
  color: #0f172a;
  background: color-mix(in srgb, var(--pulse) 10%, rgba(255, 255, 255, 0.98));
}

/* Sonar ping ring (compositor-only scale + opacity pulse) */
.lp-pstage-compare-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--pulse);
  pointer-events: none;
  animation: gbb09-ping 2.2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.lp-pstage-compare-btn:hover,
.lp-pstage-compare-btn:focus-visible {
  animation: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pulse) 25%, transparent), 0 0 44px color-mix(in srgb, var(--pulse) 55%, transparent);
}

.lp-pstage-compare-btn:hover::after,
.lp-pstage-compare-btn:focus-visible::after {
  animation-play-state: paused;
  opacity: 0;
}

.lp-pstage-compare-btn:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 4px;
}

.lp-pstage-compare-btn:active {
  transform: scale(0.97);
}

.lp-pstage-compare-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--pulse) 24%, rgba(13, 21, 38, 0.98));
}

:root[data-theme="light"] .lp-pstage-compare-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--pulse) 18%, rgba(255, 255, 255, 0.98));
}

.lp-pstage-compare-arrow {
  transition: transform .32s var(--pstage-ease);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lp-pstage-compare-btn[aria-expanded="true"] .lp-pstage-compare-arrow {
  transform: rotate(90deg);
}

@keyframes gbb09-breathe {
  0%, 100% {
    box-shadow: 0 0 14px color-mix(in srgb, var(--pulse) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 34px color-mix(in srgb, var(--pulse) 55%, transparent);
  }
}

@keyframes gbb09-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pstage-compare-btn {
    animation: none;
    box-shadow: 0 0 24px color-mix(in srgb, var(--pulse) 45%, transparent);
  }
  .lp-pstage-compare-btn::after {
    animation: none;
    opacity: 0;
  }
}

.lp-pstage-compare {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--pstage-ease), opacity 0.45s var(--pstage-ease);
  margin-inline: auto;
  max-width: 960px;
  width: 100%;
}

.lp-pstage-compare[data-open="true"] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.lp-pstage-compare-inner {
  min-height: 0;
  overflow: hidden;
  transition: padding-top 0.45s var(--pstage-ease);
}

.lp-pstage-compare[data-open="true"] .lp-pstage-compare-inner {
  padding-top: 36px;
  padding-bottom: 24px;
}

/* Desktop Sheet */
.lp-pstage-sheet {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13.5px;
}

.lp-pstage-sheet th,
.lp-pstage-sheet td {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 13px 14px;
}

:root[data-theme="light"] .lp-pstage-sheet th,
:root[data-theme="light"] .lp-pstage-sheet td {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lp-pstage-sheet thead th {
  text-align: center;
  vertical-align: bottom;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  width: 20%;
  padding: 0 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

:root[data-theme="light"] .lp-pstage-sheet thead th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.lp-pstage-sheet thead th.lp-pstage-sheet-corner {
  width: 40%;
  text-align: left;
  padding-left: 0;
}

.lp-pstage-sheet thead th[data-hero="true"] {
  box-shadow: inset 0 -2px 0 #f8b13a;
  color: #f8b13a;
}

:root[data-theme="light"] .lp-pstage-sheet thead th[data-hero="true"] {
  box-shadow: inset 0 -2px 0 #f2524a;
  color: #f2524a;
}

.lp-pstage-sheet tbody th[scope="row"] {
  text-align: left;
  padding-left: 0;
  font-weight: 400;
  color: var(--ink);
}

.lp-pstage-sheet td {
  text-align: center;
}

.lp-pstage-sheet td[data-hero="true"] {
  background: rgba(248, 177, 58, 0.06);
  font-weight: 600;
}

:root[data-theme="light"] .lp-pstage-sheet td[data-hero="true"] {
  background: rgba(242, 82, 74, 0.05);
}

.lp-pstage-sheet-group th {
  text-align: left;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 0;
  padding: 38px 0 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.lp-pstage-sheet tbody:first-of-type .lp-pstage-sheet-group th {
  padding-top: 20px;
}

.lp-pstage-sheet td svg.lucide-check {
  color: #f8b13a;
  display: inline-block;
  vertical-align: middle;
}

:root[data-theme="light"] .lp-pstage-sheet td svg.lucide-check {
  color: #e0443d;
}

.lp-pstage-none {
  color: var(--muted);
  opacity: 0.55;
}

/* Mobile compare list */
.lp-pstage-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }
  .visible-mobile {
    display: block !important;
  }
  .lp-pstage-mgroup-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: 28px 0 10px 0;
  }
  .lp-pstage-mheaders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
  }
  :root[data-theme="light"] .lp-pstage-mheaders {
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    color: #0f172a;
  }
  .lp-pstage-mheaders div[data-hero="true"] {
    color: #f8b13a;
    box-shadow: inset 0 -2px 0 #f8b13a;
    padding-bottom: 6px;
  }
  :root[data-theme="light"] .lp-pstage-mheaders div[data-hero="true"] {
    color: #f2524a;
    box-shadow: inset 0 -2px 0 #f2524a;
  }
  .lp-pstage-mrow {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
    padding: 12px 0;
  }
  :root[data-theme="light"] .lp-pstage-mrow {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .lp-pstage-mrow dt {
    grid-column: 1 / -1;
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 500;
  }
  .lp-pstage-mrow dd {
    justify-content: center;
    align-items: center;
    min-height: 24px;
    font-size: 13px;
    display: flex;
    margin: 0;
    color: var(--ink);
  }
  .lp-pstage-mrow dd[data-hero="true"] {
    font-weight: 600;
    background: rgba(248, 177, 58, 0.08);
    border-radius: 4px;
  }
  :root[data-theme="light"] .lp-pstage-mrow dd[data-hero="true"] {
    background: rgba(242, 82, 74, 0.06);
  }
  .lp-pstage-mrow dd svg.lucide-check {
    color: #f8b13a;
  }
  :root[data-theme="light"] .lp-pstage-mrow dd svg.lucide-check {
    color: #e0443d;
  }
}


.demo-lead-consent {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted, rgba(255, 255, 255, 0.6));
  margin: 8px 0 0 0;
  text-align: center;
}

:root[data-theme="light"] .demo-lead-consent {
  color: rgba(15, 23, 42, 0.65);
}

.demo-lead-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.demo-lead-consent a:hover {
  color: #f8b13a;
}

:root[data-theme="light"] .demo-lead-consent a:hover {
  color: #f2524a;
}

:root[data-theme="light"] .revenue-footnote {
  color: #1e293b;
}
:root[data-theme="light"] .revenue-footnote strong {
  color: #0f172a;
}

/* --- Early Access Priority Waitlist Modal --- */
.ea-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.ea-modal-wrap.is-open {
  opacity: 1;
  visibility: visible;
}
.ea-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
:root[data-theme="light"] .ea-modal-backdrop {
  background: rgba(22, 19, 12, 0.5);
}
.ea-modal-card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #0d121c;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 32px 28px;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="light"] .ea-modal-card {
  background: #faf8f2;
  color: #16130c;
  border: 1px solid rgba(22, 19, 12, 0.12);
  box-shadow: 0 24px 60px -12px rgba(22, 19, 12, 0.25), 0 0 0 1px rgba(22, 19, 12, 0.04);
}
.ea-modal-wrap.is-open .ea-modal-card {
  transform: scale(1) translateY(0);
}
.ea-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}
:root[data-theme="light"] .ea-modal-close {
  background: rgba(22, 19, 12, 0.05);
  border: 1px solid rgba(22, 19, 12, 0.1);
  color: #6b6355;
}
.ea-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}
:root[data-theme="light"] .ea-modal-close:hover {
  background: rgba(22, 19, 12, 0.1);
  color: #16130c;
}
.ea-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(43, 127, 255, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(43, 127, 255, 0.25);
  margin-bottom: 12px;
}
:root[data-theme="light"] .ea-badge {
  background: rgba(11, 70, 246, 0.08);
  color: #0b46f6;
  border-color: rgba(11, 70, 246, 0.2);
}
.ea-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}
:root[data-theme="light"] .ea-badge-dot {
  background: #0b46f6;
  box-shadow: 0 0 6px #0b46f6;
}
.ea-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.25;
}
.ea-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 20px;
  line-height: 1.5;
}
:root[data-theme="light"] .ea-subtitle {
  color: #6b6355;
}
.ea-plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ea-plan-opt {
  cursor: pointer;
}
.ea-plan-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ea-plan-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  text-align: center;
}
:root[data-theme="light"] .ea-plan-pill {
  background: rgba(22, 19, 12, 0.03);
  border-color: rgba(22, 19, 12, 0.08);
}
.ea-plan-opt.is-selected .ea-plan-pill {
  background: rgba(43, 127, 255, 0.12);
  border-color: #3b82f6;
  box-shadow: 0 0 16px -2px rgba(43, 127, 255, 0.35);
}
:root[data-theme="light"] .ea-plan-opt.is-selected .ea-plan-pill {
  background: rgba(11, 70, 246, 0.08);
  border-color: #0b46f6;
  box-shadow: 0 0 12px -2px rgba(11, 70, 246, 0.25);
}
.ea-plan-name {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ea-pill-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  text-transform: uppercase;
}
.ea-plan-price {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
:root[data-theme="light"] .ea-plan-price {
  color: #6b6355;
}
.ea-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .ea-fields-grid {
    grid-template-columns: 1fr;
  }
}
.ea-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ea-label {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}
:root[data-theme="light"] .ea-label {
  color: #2b2518;
}
.ea-req {
  color: #ef4444;
}
.ea-opt {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
}
:root[data-theme="light"] .ea-opt {
  color: #5c5447;
}
.ea-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 13.5px;
  transition: all 0.15s ease;
  outline: none;
}
:root[data-theme="light"] .ea-input {
  background: #ffffff;
  border: 1px solid rgba(22, 19, 12, 0.14);
  color: #16130c;
}
.ea-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.2);
}
:root[data-theme="light"] .ea-input:focus {
  border-color: #0b46f6;
  box-shadow: 0 0 0 3px rgba(11, 70, 246, 0.15);
}
.ea-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ea-legal-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.55;
  color: #94a3b8;
}
:root[data-theme="light"] .ea-legal-box {
  background: rgba(22, 19, 12, 0.03);
  border-color: rgba(22, 19, 12, 0.08);
  color: #6b6355;
}
.ea-legal-box p {
  margin: 0 0 6px;
}
.ea-legal-box p:last-child {
  margin-bottom: 0;
}
.ea-legal-box a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:root[data-theme="light"] .ea-legal-box a {
  color: #0b46f6;
}
.ea-legal-entity {
  font-size: 10px;
  color: #64748b;
  margin-top: 6px !important;
}
.ea-submit-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}
.ea-submit-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
.ea-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ea-status {
  margin: 12px 0 0;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
}
.ea-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
:root[data-theme="light"] .ea-status.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.2);
}

/* Success View */
.ea-success-wrap {
  text-align: center;
  padding: 10px 4px;
}
.ea-success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ea-queue-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
:root[data-theme="light"] .ea-queue-badge {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}
.ea-queue-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}
.ea-success-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.ea-success-p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 22px;
  line-height: 1.6;
}
:root[data-theme="light"] .ea-success-p {
  color: #6b6355;
}
.ea-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  text-align: left;
}
:root[data-theme="light"] .ea-perks-list {
  background: rgba(22, 19, 12, 0.03);
  border-color: rgba(22, 19, 12, 0.08);
}
.ea-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
:root[data-theme="light"] .ea-perk-item {
  color: #2b2518;
}
.ea-perk-item svg {
  color: #22c55e;
  flex-shrink: 0;
}
.ea-done-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
:root[data-theme="light"] .ea-done-btn {
  background: rgba(22, 19, 12, 0.06);
  border-color: rgba(22, 19, 12, 0.12);
  color: #16130c;
}
.ea-done-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
:root[data-theme="light"] .ea-done-btn:hover {
  background: rgba(22, 19, 12, 0.1);
}

/* ===== Round 169 (Emre, 28 Oct): hero call in English or Spanish + the real screens that follow the call ===== */
.hero-lang-switch {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  position: relative;
  z-index: 3;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 20, 0.45);
  font-size: 12px;
}
.hero-lang-label { color: rgba(255, 255, 255, 0.6); padding: 0 8px 0 10px; }
.hero-lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hero-lang-switch button[aria-pressed="true"] { background: #fb923c; color: #1a0e05; }
.hero-lang-switch button:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }

/* transcript: the visible jump where the read-back was cut */
.hps-bubble.hps-note {
  align-self: center;
  max-width: 94%;
  background: transparent;
  border: 1px dashed rgba(251, 146, 60, 0.55);
  color: #fdba74;
  font-size: 10px;
  text-align: center;
  padding: 6px 10px;
}
.hps-bubble.hps-note p::before { content: "⏩ "; }

/* iOS-style notification when the booking lands and when the caller's text goes out */
.hps-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 44px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 16px;
  background: #262c38;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font-size: 10.5px;
  line-height: 1.35;
  color: #e2e8f0;
  animation: hpsBannerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hps-banner[hidden] { display: none; }
.hps-banner-app { font-size: 8.5px; color: #94a3b8; font-weight: 700; }
.hps-banner strong { color: #ffffff; font-size: 11px; }
.hps-banner span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes hpsBannerIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hps-banner { animation: none; } }

/* calendar event */
.hps-event-title { font-size: 14px; line-height: 1.25; margin: 0 0 4px; }
.hps-event-desc p { margin: 0 0 5px; font-size: 10px; line-height: 1.4; color: #cbd5e1; overflow-wrap: anywhere; }
.hps-event-desc p:last-child { color: #94a3b8; font-style: italic; margin-bottom: 0; }

/* portal call page */
.hps-portal h5 { margin: 8px 0 3px; }
.hps-portal h5:first-child { margin-top: 0; }
.hps-portal p { margin: 0; font-size: 10px; line-height: 1.4; color: #cbd5e1; }
.hps-portal dl { margin: 0; display: grid; gap: 3px; }
.hps-portal dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.hps-portal dt { color: #94a3b8; }
.hps-portal dd { margin: 0; color: #ffffff; text-align: right; }
.hps-portal-done { color: #4ade80 !important; font-weight: 700; }

/* text to the caller, email to the owner */
.hps-sms-who { margin: 6px 2px 4px; font-size: 9px; font-weight: 700; color: #94a3b8; }
.hps-sms-bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 16px 16px 16px 4px;
  background: #2c2f36;
  color: #f8fafc;
  font-size: 10.5px;
  line-height: 1.45;
}
.hps-sms-meta { margin: 4px 2px 8px; font-size: 8.5px; color: #64748b; line-height: 1.4; }
.hps-owner-mail {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #cbd5e1;
}
.hps-owner-mail-head { display: flex; justify-content: space-between; color: #94a3b8; font-size: 9px; }
.hps-owner-mail-head strong { color: #ffffff; }
.hps-owner-mail-subject { display: block; margin: 2px 0; color: #ffffff; font-size: 11px; }
.hps-owner-mail p { margin: 0; }
#hps-view-email .hps-screen-inner { flex-direction: column; overflow-y: auto; scrollbar-width: none; }

/* ===== Round 172 (Emre, 28 Oct): hero B "the night on one line" in the live hero ===== */
/* night line: left of the phone, top to bottom */
.hero-night-line {
  position: relative;
  align-self: stretch;
  flex: 0 0 104px;
  margin: 28px 0;
  pointer-events: none;
  font-family: "JetBrains Mono", monospace;
}
.hnl-track { position: absolute; right: 4px; top: 0; bottom: 0; width: 1px; background: #2c2420; }
.hnl-fill { position: absolute; left: 0; top: 0; width: 2px; margin-left: -0.5px; height: 0; background: #ff7a1a; transition: height .35s linear; }
.hnl-ticks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.hnl-ticks li { position: absolute; right: 0; top: calc(var(--y) * 1%); transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; padding-right: 18px; text-align: right; }
.hnl-ticks li::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid #5a4a3d; background: #0b0908; }
.hnl-t { font-size: 10.5px; color: #8f8982; white-space: nowrap; }
.hnl-l { font-family: Manrope, sans-serif; font-size: 12px; font-weight: 600; color: #8f8982; white-space: nowrap; margin-top: 1px; }
.hnl-ticks li.is-on::after { background: #ff7a1a; border-color: #ff7a1a; }
.hnl-ticks li.is-on .hnl-l { color: #d9d2ca; }
.hnl-ticks li.is-on .hnl-t { color: #b4aea6; }
.hnl-ticks li.is-now::after { box-shadow: 0 0 0 5px rgba(255, 122, 26, .2); }
.hnl-ticks li.is-now .hnl-l { color: #fff; font-weight: 800; }
.hnl-ticks li.is-now .hnl-t { color: #ff9b52; }
.hnl-ticks li.is-later .hnl-l { color: #6f6a64; }
@media (max-width: 1180px), (max-height: 640px) { .hero-night-line { display: none; } }
@media (min-width: 851px) {
  .hero-device-stage { max-width: 960px; }
  .lp-3d-rail { width: clamp(280px, 22vw, 370px); }
}

/* shared screen bits */
#hero-phone-screen .lv-mono, .lv-timer, .cal-spare-l, .cal-deadline-l, .pt-marks, .pt-len { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }

/* live call */
#hps-view-active { background: #0e0d0c; padding: 8px 12px 14px; }
.lv-head { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.lv-mark { display: flex; }
.lv-biz { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lv-biz strong { font-size: 12px; font-weight: 700; color: #f5f2ee; }
.lv-biz span { font-size: 11px; color: #b4aea6; }
.lv-timer { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #1d1a17; font-size: 11px; font-weight: 600; color: #f5f2ee; }
.lv-timer i { width: 6px; height: 6px; border-radius: 50%; background: #ff7a1a; box-shadow: 0 0 0 3px rgba(255, 122, 26, .22); }
.lv-who { display: flex; flex-direction: column; margin-top: 16px; }
.lv-who-k { font-size: 12px; font-weight: 600; color: #b4aea6; }
.lv-who-name { font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-top: 3px; color: #f5f2ee; }
.lv-who-sub { font-size: 11.5px; color: #b4aea6; margin-top: 4px; }
.lv-capt { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; flex: 1 1 auto; overflow: hidden; }
.lv-prev { margin: 0; font-size: 12px; line-height: 1.45; color: #8f8982; }
.lv-prev b { color: #b4aea6; font-weight: 700; }
.lv-now { margin: 0; font-size: 17.5px; line-height: 1.32; font-weight: 600; letter-spacing: -.012em; color: #f5f2ee; }
.lv-now .lv-who-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0; color: #b4aea6; margin-bottom: 3px; }
.lv-now .lv-rest { color: #5f5850; }
.lv-note { margin: 0; font-size: 14px; line-height: 1.4; color: #ffb27a; }
.lv-hud { position: relative; margin-top: 10px; padding: 12px 12px 10px; background: #161412; border-radius: 4px; flex: none; }
.lv-hud > i { position: absolute; width: 10px; height: 10px; border: 0 solid #ff7a1a; }
.lv-hud > i:nth-child(1) { left: -1px; top: -1px; border-left-width: 1.5px; border-top-width: 1.5px; }
.lv-hud > i:nth-child(2) { right: -1px; top: -1px; border-right-width: 1.5px; border-top-width: 1.5px; }
.lv-hud > i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.lv-hud > i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.lv-hud-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font-size: 12px; font-weight: 700; color: #f5f2ee; }
.lv-hud-head .lv-mono { font-size: 10.5px; color: #b4aea6; font-weight: 500; }
.lv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #26221f; }
.lv-f { background: #161412; padding: 7px 8px; min-height: 44px; transition: background .5s, box-shadow .5s; }
.lv-f span { display: block; font-size: 10px; color: #8f8982; }
.lv-f strong { display: block; font-size: 11.5px; font-weight: 600; color: #f5f2ee; margin-top: 2px; line-height: 1.3; }
.lv-f.is-wait strong { color: #5f5850; font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 10.5px; }
.lv-f.is-new { background: #1f150d; box-shadow: inset 0 0 0 1px #ff7a1a; }
.lv-f.is-new span { color: #ffb27a; }
#hps-view-active .hps-waveform-bar { margin: 10px 0 0; flex: none; }
#hps-view-active .hps-waveform-bar span { background: #ff7a1a; }
#hps-view-active .hps-controls { margin-top: 10px; }

/* calendar */
.cal-view { background: #0e0d0c; font-family: Inter, -apple-system, system-ui, sans-serif; padding: 8px 12px 14px; }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 14px; color: #ff8a3d; }
.cal-top span:last-child { font-size: 12px; color: #b4aea6; }
.cal-week { display: flex; justify-content: space-between; padding: 10px 0 8px; border-bottom: 1px solid #26221f; }
.cal-week span { width: 38px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cal-week i { font-style: normal; font-size: 10px; font-weight: 600; color: #8f8982; }
.cal-week b { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #f5f2ee; }
.cal-week .is-today b { color: #ff8a3d; }
.cal-week .is-sel b { background: #ff7a1a; color: #1a0e05; }
.cal-day { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; color: #f5f2ee; }
.cal-grid { position: relative; height: 330px; margin-top: 10px; flex: none; --row: 43px; }
.cal-h { position: absolute; left: 0; right: 0; top: calc(var(--i) * var(--row)); display: flex; }
.cal-h span { width: 44px; text-align: right; padding-right: 8px; font-size: 10px; color: #8f8982; transform: translateY(-6px); }
.cal-h::after { content: ""; flex: 1; border-top: 1px solid #221f1c; }
.cal-event { position: absolute; left: 50px; right: 52px; top: calc(2 * var(--row)); height: calc(2 * var(--row)); border-radius: 7px; background: #3a2010; padding: 6px 8px; box-sizing: border-box; display: flex; flex-direction: column; gap: 1px; }
.cal-event strong { font-size: 12px; color: #ffd2b0; }
.cal-event > span { font-size: 10.5px; color: #ffb27a; }
.cal-event > span:last-child { color: #e9c3a6; }
.cal-spare { position: absolute; right: 24px; top: calc(4 * var(--row) + 3px); height: calc(3 * var(--row) - 5px); width: 8px; border: 1.5px solid #ff7a1a; border-left: 0; }
.cal-spare-l { position: absolute; right: 38px; top: calc(5.2 * var(--row)); font-size: 10.5px; font-weight: 600; color: #ff9b52; text-align: right; line-height: 1.3; }
.cal-deadline { position: absolute; left: 50px; right: 0; top: calc(7 * var(--row)); border-top: 1.5px dashed #ff7a1a; }
.cal-deadline-l { position: absolute; left: 52px; top: calc(7 * var(--row) - 16px); font-size: 10px; font-weight: 600; color: #ff9b52; }
.cal-details { margin-top: 8px; background: #171513; border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.cal-k-head, .cal-by { font-size: 10.5px; color: #8f8982; }
.cal-by { border-top: 1px solid #26221f; padding-top: 7px; }
.cal-details dl { margin: 0; display: grid; gap: 5px; }
.cal-details dl div { display: grid; grid-template-columns: 58px minmax(0, 1fr); font-size: 11.5px; line-height: 1.35; }
.cal-details dt { color: #8f8982; }
.cal-details dd { margin: 0; color: #f5f2ee; }

/* portal call page */
.pt-view { background: #0e0d0c; padding: 8px 14px 14px; }
.pt-nav { display: flex; justify-content: space-between; align-items: center; height: 34px; border-bottom: 1px solid #1f1c19; font-size: 13px; }
.pt-nav .nav-back { color: #ff8a3d; font-weight: 600; }
.pt-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #f5f2ee; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 12px; }
.pt-head strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.025em; color: #f5f2ee; }
.pt-head div span { display: block; font-size: 11px; color: #b4aea6; margin-top: 2px; }
.pt-pill { margin-top: 3px; padding: 3px 9px; border-radius: 999px; background: #10301c; color: #6ee7a0; font-size: 11px; font-weight: 700; }
.pt-todo { margin-top: 11px; padding: 10px 0; border-top: 1px solid #26221f; border-bottom: 1px solid #26221f; display: flex; flex-direction: column; gap: 3px; }
.pt-k { font-size: 10.5px; font-weight: 600; color: #8f8982; }
.pt-todo strong { font-size: 15.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: #f5f2ee; }
.pt-todo > span:last-child { font-size: 11.5px; color: #b4aea6; line-height: 1.4; }
.pt-rec { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pt-play { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #f5f2ee; display: flex; align-items: center; justify-content: center; }
.pt-wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; }
.pt-wave span { flex: 1; border-radius: 2px; background: #4a443e; }
.pt-marks { position: relative; height: 30px; margin-left: 42px; }
.pt-marks div { position: absolute; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pt-marks i { width: 1px; height: 6px; background: #ff7a1a; }
.pt-marks b { font-size: 10px; font-weight: 500; color: #ff9b52; }
.pt-marks em { font-style: normal; font-family: Manrope, sans-serif; font-size: 10px; color: #b4aea6; }
.pt-len { display: flex; justify-content: space-between; margin-left: 42px; font-size: 10px; color: #8f8982; }
.pt-block { margin-top: 12px; }
.pt-block p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: #f5f2ee; }
.pt-rows { margin: 10px 0 0; }
.pt-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #1f1c19; font-size: 11.5px; }
.pt-rows dt { color: #b4aea6; }
.pt-rows dd { margin: 0; font-weight: 600; text-align: right; color: #f5f2ee; }
.pt-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.pt-btn { flex: 1; height: 40px; border-radius: 12px; background: #1d1a17; color: #f5f2ee; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pt-btn.is-primary { background: #f5f2ee; color: #0e0d0c; font-weight: 800; }

/* lock screen */
.lk-view { background: #120d0a; font-family: Inter, -apple-system, system-ui, sans-serif; padding: 8px 10px 14px; color: #fff; }
.lk-wall { position: absolute; inset: 0; pointer-events: none; }
.lk-wall i { position: absolute; display: block; }
.lk-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #1b130e; }
.lk-house { left: 12%; bottom: 40%; width: 32%; height: 24%; background: #1a120d; }
.lk-house2 { right: 9%; bottom: 40%; width: 38%; height: 17%; background: #17100c; }
.lk-win { width: 7%; height: 4.4%; }
.lk-win.a { left: 17%; bottom: 53%; background: #3a2512; }
.lk-win.b { left: 29%; bottom: 53%; background: #2a1c11; }
.lk-win.c { left: 17%; bottom: 46%; background: #2a1c11; }
.lk-win.d { left: 29%; bottom: 46%; background: #5a3416; }
.lk-bar, .lk-date, .lk-clock, .lk-stack { position: relative; z-index: 1; }
.lk-date { text-align: center; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); margin-top: 18px; }
.lk-clock { text-align: center; font-family: Manrope, sans-serif; font-size: 84px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff3e8; }
.lk-stack { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding-bottom: 18px; }
.lk-nc { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .75); padding: 0 6px 2px; }
.lk-note { background: rgba(44, 34, 27, .95); border-radius: 18px; padding: 10px 11px; display: flex; gap: 9px; font-size: 12px; line-height: 1.32; }
.lk-note > div { flex: 1; min-width: 0; }
.lk-note p { margin: 1px 0 0; color: rgba(255, 255, 255, .85); }
.lk-row { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; }
.lk-row > span { color: rgba(255, 255, 255, .6); flex: none; }
.lk-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.lk-ic-mail { background: #2f80ed; }
.lk-ic-cal { background: #fff; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.lk-ic-cal i { width: 100%; height: 9px; background: #ff7a1a; font-style: normal; font-size: 7px; font-weight: 700; color: #fff; text-align: center; line-height: 9px; }
.lk-ic-cal b { font-size: 16px; font-weight: 600; color: #1a1a1a; line-height: 22px; }
@media (min-width: 1181px) and (max-width: 1400px) {
  .hero-night-line { flex-basis: 76px; }
  .hnl-ticks li { padding-right: 14px; }
  .hnl-t { font-size: 9.5px; }
  .hnl-l { font-size: 11px; }
  .lp-3d-rail { width: clamp(250px, 21vw, 300px); }
}
@media (max-height: 860px) {
  .cal-grid { --row: 36px; height: 276px; }
  .lv-capt { min-height: 110px; }
  .pt-rows div:nth-child(4) { display: none; }
}
.cal-event { overflow: hidden; }
.cal-event strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Round 173 (Emre, 28 Oct): new phone screens drawn at 320 px and scaled to the phone ===== */
#hero-phone-screen .hps-view.hps-scaled {
  right: auto;
  bottom: auto;
  width: 320px;
  height: var(--hps-h, 668px);
  transform-origin: top left;
  transform: translateY(10px) scale(var(--hps-k, 1));
}
#hero-phone-screen .hps-view.hps-scaled.is-active { transform: scale(var(--hps-k, 1)); }
.lv-mark { width: 30px; height: 30px; border-radius: 8px; background: #0b0f17; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; flex: none; }
.lv-mark img, .pt-brand img { display: block; }
#hps-view-active { cursor: pointer; }
.lv-tap { display: block; text-align: center; font-size: 10.5px; color: #8f8982; margin-top: 6px; flex: none; }
/* the 320 x ~668 drawing: tighter vertical rhythm so every screen fits whole */
.cal-grid { --row: 33px; height: 252px; margin-top: 8px; }
.cal-week { padding: 8px 0 6px; }
.cal-week b { width: 26px; height: 26px; font-size: 13px; }
.cal-week span { width: 34px; }
.cal-details { padding: 9px 11px; gap: 5px; }
.lv-who { margin-top: 12px; }
.lv-who-name { font-size: 23px; }
.lv-capt { min-height: 96px; margin-top: 10px; }
.lv-now { font-size: 16px; }
.pt-rows div:nth-child(4) { display: none; }
.pt-head strong { font-size: 18px; }
.pt-todo strong { font-size: 14.5px; }
.pt-block p { font-size: 11.5px; }
.lk-clock { font-size: 76px; }
/* Round 174: the previous line keeps two lines; captions scroll inside their own box */
.lv-prev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.lv-capt { position: relative; }
.lv-now { flex: none; }
/* Round 176: the night and the visit day, each under its own heading, a dashed break between them */
.hnl-head { position: absolute; right: 18px; top: calc(var(--y) * 1%); transform: translateY(-100%); margin-top: -26px; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #ff9b52; white-space: nowrap; }
.hnl-head-fri { margin-top: 0; transform: translateY(-50%); color: #b4aea6; }
.hnl-gap { position: absolute; right: 4px; top: 63%; height: 11%; width: 1px; margin-right: -0.5px; background: #0b0908; border-left: 1px dashed #5a4a3d; box-sizing: border-box; z-index: 1; }
.hero-night-line { margin-top: 44px; }

/* Round 180: mobile overflow guard. Decorative glows no longer widen the page; the fixed header follows the real viewport. */
html { overflow-x: clip; max-width: 100%; }
.simulator-ambient-glow, .rules-ambient-glow, .scanner-ambient-glow, .hero-device-ambient-glow { max-width: 100%; }
@media (max-width: 900px) {
  .simulator-ambient-glow { width: min(900px, 100%); }
  .rules-ambient-glow { width: min(950px, 100%); }
}

/* Round 180: mobile readability.
   1) The one-line scrolling tickers become wrapped, centered paragraphs on phones.
   2) The revenue ledger rows show a labelled three-column strip under each metric. */
@media (max-width: 700px) {
  .site-marquee-wrap .site-marquee-viewport { display: block !important; overflow: visible !important; mask-image: none !important; -webkit-mask-image: none !important; padding-block: 0; }
  .site-marquee-wrap .site-marquee-group { display: block !important; white-space: normal !important; animation: none !important; transform: none !important; }
  .site-marquee-wrap .site-marquee-group[aria-hidden="true"], .site-marquee-wrap .site-marquee-sep { display: none !important; }
  .site-marquee-wrap .site-marquee-item { display: block; white-space: normal !important; text-align: center; font-size: 14px; line-height: 1.55; margin: 0 auto 6px; max-width: 34em; }
}
@media (max-width: 900px) {
  .rev-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; align-items: start; }
  .rev-row > .col-metric { grid-column: 1 / -1; }
  .rev-row > .col-without::before, .rev-row > .col-with::before, .rev-row > .col-keep::before { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.2; color: #94a3b8; margin-bottom: 4px; }
  .rev-row > .col-without::before { content: "Without"; }
  .rev-row > .col-with::before { content: "With TinoCall"; }
  .rev-row > .col-keep::before { content: "You keep"; }
  .rev-row .col-detail { display: block; font-size: 10.5px; line-height: 1.3; }
}
@media (max-width: 900px) {
  .rev-row > .col-without, .rev-row > .col-with, .rev-row > .col-keep { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; text-align: left; }
}

/* Round 182: phone hero. The video gate (video, Enter, action buttons) is the first screen in normal flow,
   the story content follows below it. Desktop keeps the pinned stage untouched. */
@media (max-width: 850px) {
  .hero-cinematic .hero-sticky-stage { flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 0; }
  .hero-cinematic .hero-sticky-stage > .hero-video-wrap {
    position: relative; inset: auto; flex: none; z-index: 10;
    width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw);
    height: calc(100vh - 105px); height: calc(100svh - 105px); min-height: 480px; max-height: 920px;
  }
  .hero-cinematic .hero-sticky-stage > .hero-container { margin-top: 28px; }
}
@media (max-width: 767px) {
  .hero-cinematic .hero-sticky-stage > .hero-video-wrap { height: calc(100vh - 85px); height: calc(100svh - 85px); }
}
@media (max-width: 850px) {
  .hero-cinematic .hero-sticky-stage { overflow: visible; }
}
@media (max-width: 768px) {
  .hero-video-wrap .onyx-hud .onyx-path-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-video-wrap .onyx-hud .onyx-path-btn { min-height: 50px; padding: 6px 18px 6px 12px; }
  .hero-video-wrap .onyx-hud .onyx-path-btn .btn-label { font-size: 16px; }
  .hero-video-wrap .onyx-hud { bottom: max(14px, env(safe-area-inset-bottom)); gap: 6px; }
}

/* Round 182: phone story is pinned. The phone (with its caption card) stays in view while the stages advance. */
@media (max-width: 850px) {
  .hero-cinematic { overflow: visible; overflow-x: clip; }
  .hero-cinematic .hero-sticky-stage > .hero-container::after { content: ""; display: block; height: 280vh; width: 1px; }
  .hero-cinematic .hero-container > .hero-device-stage { position: sticky; top: 76px; align-self: start; z-index: 2; }
  .hero-cinematic .hero-device-stage .iphone-mockup { height: clamp(280px, calc(100vh - 430px), 456px); height: clamp(280px, calc(100svh - 430px), 456px); max-height: none; }
}
@media (max-width: 850px) and (max-height: 720px) {
  .hero-cinematic .hero-device-stage .iphone-mockup { height: clamp(190px, calc(100vh - 420px), 456px); height: clamp(190px, calc(100svh - 420px), 456px); }
  .hero-cinematic .hero-device-stage .hero-replay-btn { display: none; }
  .hero-cinematic .hero-device-stage .hero-lang-switch { margin-top: 6px; }
}
/* Round 182: touch scrolling. The 3D sphere used to swallow every vertical swipe (touch-action: none),
   which froze page scrolling whenever a finger started on it. Sideways drags still rotate it. */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .demo-col-sphere .sphere-3d-stage, #sphere-3d-container.sphere-3d-stage { touch-action: pan-y; }
}
@media (max-width: 768px) {
  /* Readable over the white shirt: darker glass behind the two action buttons */
  .hero-video-wrap .onyx-hud .onyx-path-btn.btn-pitch { background: linear-gradient(180deg, rgba(8, 60, 36, 0.82), rgba(6, 44, 28, 0.78)); }
  .hero-video-wrap .onyx-hud .onyx-path-btn.btn-phone-demo { background: linear-gradient(180deg, rgba(14, 38, 92, 0.82), rgba(10, 28, 70, 0.78)); }
  .hero-video-wrap .onyx-hud .onyx-scroll-cue .bn-01__label { letter-spacing: 0.12em; font-size: 0.7rem; }
}

/* ===== TWBS/RFS (Bootstrap Responsive Resizing Engine) & Mobile Stabilization Suite START ===== */
/* Fluid Typography, Spacing & Layout Rules powered by twbs/rfs (Bootstrap Responsive Resizing Engine) */
:root {
  --rfs-section-py: calc(1.35rem + 4.2vw);
  --rfs-container-px: calc(1.05rem + 0.6vw);
  --rfs-card-pad: calc(1.05rem + 0.6vw);
  --rfs-h1: calc(1.225rem + 2.7vw);
  --rfs-h2: calc(1.125rem + 1.5vw);
  --rfs-h3: calc(1.035rem + 0.42vw);
  --rfs-lead: calc(1.00625rem + 0.075vw);
  --rfs-scanner-title: calc(1.085rem + 1.02vw);
  --rfs-stage-pad-y: calc(1.1rem + 1.2vw);
}
@media (min-width: 1200px) {
  :root {
  --rfs-section-py: 4.5rem;
  --rfs-container-px: 1.5rem;
  --rfs-card-pad: 1.5rem;
  --rfs-h1: 3.25rem;
  --rfs-h2: 2.25rem;
  --rfs-h3: 1.35rem;
  --rfs-lead: 1.0625rem;
  --rfs-scanner-title: 1.85rem;
  --rfs-stage-pad-y: 2rem;
  }
}

.revenue-header h2,
.sim-header h2,
.rules-header h2,
.demo-sec-header h2,
.lp-pstage-head h2,
.faq-header h2 {
  font-size: calc(1.125rem + 1.5vw);
}

@media (min-width: 1200px) {
  .revenue-header h2,
.sim-header h2,
.rules-header h2,
.demo-sec-header h2,
.lp-pstage-head h2,
.faq-header h2 {
  font-size: 2.25rem;
  }
}

.revenue-subline,
.scanner-subline,
.sim-subline,
.rules-subline,
.demo-sec-subline,
.lp-pstage-sub,
.faq-subline {
  font-size: calc(1.00625rem + 0.075vw);
}

@media (min-width: 1200px) {
  .revenue-subline,
.scanner-subline,
.sim-subline,
.rules-subline,
.demo-sec-subline,
.lp-pstage-sub,
.faq-subline {
  font-size: 1.0625rem;
  }
}

.lp-3d-art-title {
  font-size: calc(1.0125rem + 0.15vw);
}

@media (min-width: 1200px) {
  .lp-3d-art-title {
  font-size: 1.125rem;
  }
}

.lp-pstage-num {
  font-size: calc(1.225rem + 2.7vw);
}

@media (min-width: 1200px) {
  .lp-pstage-num {
  font-size: 3.25rem;
  }
}

.particle-title-heading {
  font-size: calc(1.115rem + 1.38vw);
}

@media (min-width: 1200px) {
  .particle-title-heading {
  font-size: 2.15rem;
  }
}

.hero-mobile-stages {
  display: none;
}

/* 1. HERO: Eliminate mobile canvas thrashing, disable scroll-jacking, enlarge iPhone frame & shrink bottom caption card */
@media (max-width: 960px) {
  html {
    scroll-behavior: auto !important;
    overflow-x: visible !important;
  }
  body {
    overflow-x: clip !important;
    position: relative !important;
  }
}
@media (max-width: 850px) {
  .hero-cinematic .hero-data-rain-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100svh !important;
    max-height: 100svh !important;
    margin-bottom: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }
  /* Disable heavy full-screen CSS blur filter on mobile GPUs to prevent scroll frame drops */
  .hero-cinematic .hero-data-rain-wrap .dr-bloom {
    display: none !important;
  }
  /* Remove artificial 220svh/280vh scroll runway on mobile so touch scrolling is 100% native */
  .hero-cinematic .hero-sticky-stage > .hero-container::after {
    display: none !important;
    height: 0 !important;
    content: none !important;
  }
  .hero-cinematic .hero-container > .hero-device-stage {
    position: relative !important;
    top: auto !important;
    align-self: center !important;
    z-index: 2 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    max-width: 360px !important;
    width: 100% !important;
    gap: 7px !important;
    margin: 8px auto 0 !important;
  }
  /* Enlarge Hero iPhone Mockup to ~244px x 510px (--hps-k ~0.72x) so all internal call/calendar/portal screens are crisp and the whole unit + bottom card fits in 1 mobile screen */
  .hero-cinematic .hero-device-stage .iphone-mockup {
    width: min(244px, 68vw) !important;
    height: auto !important;
    aspect-ratio: 9 / 18.8 !important;
    max-height: none !important;
    padding: 7px !important;
    border-radius: 38px !important;
    margin: 0 auto !important;
  }
  .hero-cinematic .hero-device-stage .iphone-screen {
    border-radius: 32px !important;
    padding: 0 !important;
  }
  /* Compact bottom rail + 5-pill touch stage switcher */
  .hero-cinematic .hero-device-stage .lp-3d-rail {
    width: 100% !important;
    max-width: 348px !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    margin: 0 auto !important;
  }
  .hero-cinematic .hero-device-stage .hero-lang-switch {
    align-self: center !important;
    margin: 0 auto 5px !important;
    padding: 2px 3px !important;
    font-size: 11px !important;
  }
  .hero-cinematic .hero-device-stage .hero-lang-switch button {
    padding: 4px 10px !important;
  }
  .hero-cinematic .hero-device-stage .hero-mobile-stages {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3px !important;
    width: 100% !important;
    margin: 0 0 5px !important;
    padding: 3px !important;
    border-radius: 11px !important;
    background: rgba(8, 12, 20, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
  }
  .hero-cinematic .hero-device-stage .hero-mobile-stage-btn {
    flex: 1 1 auto !important;
    appearance: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
    padding: 7px 4px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
  }
  .hero-cinematic .hero-device-stage .hero-mobile-stage-btn.is-active {
    background: rgba(249, 115, 22, 0.22) !important;
    border-color: rgba(249, 115, 22, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.28) !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art[data-state="active"] .lp-3d-art-inner {
    padding: 8px 12px 9px !important;
    border-radius: 12px !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art[data-state="active"] .lp-3d-art-label {
    font-size: 9.5px !important;
    gap: 5px !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art[data-state="active"] .lp-3d-art-line {
    display: inline !important;
    margin-left: auto !important;
    font-size: 9.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art-title {
    font-size: 13.5px !important;
    margin-top: 1px !important;
    line-height: 1.22 !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art-text {
    font-size: 11.5px !important;
    line-height: 1.32 !important;
    margin-top: 2px !important;
  }
  .hero-cinematic .hero-device-stage .lp-3d-art-sub,
  .hero-cinematic .hero-device-stage .lp-3d-art-meta {
    display: none !important;
  }
  .hero-cinematic .hero-device-stage .hero-replay-btn {
    margin-top: 4px !important;
    padding: 5px 12px !important;
    font-size: 10.5px !important;
  }
}

/* 2. REVENUE OPPORTUNITY LEDGER: Fix overlapping tier badge & structure 3-column mobile cells */
@media (max-width: 900px) {
  .revenue-sticky-stage {
    padding: --rfs-stage-pad-y 14px !important;
  }
  .revenue-tier-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 440px !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }
  .tier-pill {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    gap: 10px !important;
  }
  .tier-pill-text {
    gap: 2px !important;
    line-height: 1.25 !important;
  }
  .tier-pill-badge {
    position: static !important;
    transform: none !important;
    order: 3 !important;
    margin-left: auto !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    font-size: 9px !important;
    padding: 3px 7px !important;
  }
  .rev-head-row > .col-without::before,
  .rev-head-row > .col-with::before,
  .rev-head-row > .col-keep::before {
    display: none !important;
    content: none !important;
  }
  .revenue-ledger-card {
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  .rev-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 6px !important;
    padding: 13px 12px !important;
    align-items: stretch !important;
  }
  .rev-row > .col-metric {
    grid-column: 1 / -1 !important;
    padding-bottom: 5px !important;
    margin-bottom: 2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  :root[data-theme="light"] .rev-row > .col-metric {
    border-bottom-color: rgba(22, 19, 12, 0.08) !important;
  }
  .rev-row > .col-without,
  .rev-row > .col-with,
  .rev-row > .col-keep {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 7px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  :root[data-theme="light"] .rev-row > .col-without,
  :root[data-theme="light"] .rev-row > .col-with,
  :root[data-theme="light"] .rev-row > .col-keep {
    background: rgba(22, 19, 12, 0.03);
    border-color: rgba(22, 19, 12, 0.08);
  }
  .rev-row > .col-keep {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
  }
  :root[data-theme="light"] .rev-row > .col-keep {
    background: rgba(22, 163, 74, 0.07);
    border-color: rgba(22, 163, 74, 0.22);
  }
  .keep-badge {
    font-size: 11px !important;
    padding: 3px 6px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Qualitative footer row has a long paragraph in col-without and a badge in col-keep */
  .rev-row.rev-footer-qualitative {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .rev-row.rev-footer-qualitative > .col-without {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .rev-row.rev-footer-qualitative > .col-with {
    display: none !important;
  }
  .rev-row.rev-footer-qualitative > .col-keep {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .rev-row.rev-footer-qualitative > .col-keep::before {
    margin-bottom: 0 !important;
  }
}

/* 3. REVENUE SCANNER: Crisp multi-line RFS heading on mobile & full unclipped form card height */
@media (max-width: 768px) {
  .particle-title-canvas,
  .particle-blobs-layer {
    display: none !important;
  }
  .particle-title-box,
  .particle-title-container {
    height: auto !important;
    min-height: 0 !important;
    padding: 4px 0 8px !important;
    overflow: visible !important;
  }
  .particle-title-heading,
  .particle-title-heading.sr-only-when-canvas {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    white-space: normal !important;
    font-size: --rfs-scanner-title !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    color: #f8fafc !important;
    text-align: center !important;
    display: block !important;
  }
  :root[data-theme="light"] .particle-title-heading,
  :root[data-theme="light"] .particle-title-heading.sr-only-when-canvas {
    color: #0f172a !important;
  }
  .border-beam-container {
    min-height: 0 !important;
    margin: 20px auto 24px !important;
  }
  .border-beam-container:not([data-phase="condense"]):not([data-phase="assemble"]):not([data-phase="think"]):not([data-phase="resolve"]) .mo-actor.border-beam-card {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .scanner-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* 4. ONBOARDING SIMULATOR: 2x2 grid for console stepper tabs so steps 3 & 4 are never cut off */
@media (max-width: 768px) {
  .sim-titlebar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }
  .sim-titlebar-title {
    font-size: 11px !important;
  }
  .sim-titlebar-status {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }
  .sim-stepper-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
  }
  .st-divider,
  .sim-stepper-Divider {
    display: none !important;
  }
  .sim-stepper-tab {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    justify-content: flex-start !important;
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-sizing: border-box !important;
  }
  :root[data-theme="light"] .sim-stepper-tab {
    background: rgba(22, 19, 12, 0.03);
    border-color: rgba(22, 19, 12, 0.08);
  }
  .sim-stepper-tab.is-active {
    background: rgba(234, 88, 12, 0.14) !important;
    border-color: rgba(234, 88, 12, 0.55) !important;
  }
  .sim-panel-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .sim-btn-next,
  .sim-btn-prev,
  .sim-btn-activate {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 5. YOUR RULES & LIVE DEMO SPHERE: Fix Guardrail Console box overflow on mobile & contain 3D sphere */
@media (max-width: 900px) {
  .rules-bento-card.is-active {
    transform: none !important;
  }
  .chat-messenger-card {
    height: auto !important;
    min-height: 0 !important;
  }
  .rules-window-topbar {
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    padding: 9px 12px !important;
  }
  .rules-window-topbar .sim-window-title {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    flex: 1 1 170px !important;
    min-width: 0 !important;
  }
  .rules-window-topbar .sim-live-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 9px !important;
    padding: 3px 8px !important;
  }
  .chat-messenger-header {
    padding: 10px 14px !important;
  }
  .agent-name-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .chat-badge-verified {
    white-space: nowrap !important;
  }
  .chat-viewport {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px !important;
    display: block !important;
  }
  .chat-scenario {
    position: relative !important;
    inset: auto !important;
  }
  .chat-scenario:not(.is-active) {
    display: none !important;
  }
  .chat-scenario.is-active {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .scenario-meta-bar {
    margin-bottom: 4px !important;
  }
  .chat-feed-stream {
    flex: none !important;
    gap: 12px !important;
  }
  .bubble-content-col {
    max-width: 86% !important;
  }
  .chat-bubble {
    padding: 11px 14px !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }
  .scenario-assertion-footer {
    margin-top: 6px !important;
    padding: 10px 12px !important;
  }
  .chat-messenger-footer {
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    padding: 10px 14px !important;
  }
  #sphere-3d-container.sphere-3d-stage {
    min-height: 300px !important;
    height: 320px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* 6. PRICING STAGE & MOBILE COMPARISON TABLE: Clip inactive card bleed & sticky table headers */
@media (max-width: 960px) {
  .lp-pstage {
    overflow-x: clip !important;
  }
  .lp-pstage-slot:not([data-active="true"]) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .lp-pstage-controls {
    flex-direction: column !important;
    width: 100% !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .lp-pstage-seg-plans {
    width: 100% !important;
    max-width: 360px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .lp-pstage-seg-plans .lp-pstage-seg-btn {
    width: 100% !important;
    justify-content: center !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
  }
  .lp-pstage-mheaders {
    position: sticky !important;
    top: 64px !important;
    z-index: 5 !important;
    background: rgba(14, 17, 24, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  :root[data-theme="light"] .lp-pstage-mheaders {
    background: rgba(247, 244, 237, 0.96) !important;
    border-bottom-color: rgba(22, 19, 12, 0.1) !important;
  }
  .lp-pstage-mcells {
    gap: 6px !important;
  }
  .lp-pstage-mcell {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    padding: 8px 6px !important;
  }
  :root[data-theme="light"] .lp-pstage-mcell {
    background: rgba(22, 19, 12, 0.03) !important;
    border-color: rgba(22, 19, 12, 0.08) !important;
  }
}
/* ===== TWBS/RFS (Bootstrap Responsive Resizing Engine) & Mobile Stabilization Suite END ===== */

/* Round 247: Sign in link for existing customers (7.11a) */
.nav-signin{font-size:13px;font-weight:700;color:var(--muted);text-decoration:none;padding:8px 4px;white-space:nowrap}
.nav-signin:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--accent)}
.nav-signin:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:4px}
@media(max-width:600px){.nav-signin{font-size:11px;padding:6px 2px}}

/* Round 249: spotlight card of the "Services, Capabilities & Rules" sphere. The React modal uses Tailwind class names the
   site does not ship (p-6, mb-2); it also renders inside the transformed sphere stage, so it must fit that box: smaller
   photo, padded text and a scrolling body instead of text running out of the card. */
#sphere-3d-root .fixed.inset-0.z-50 { padding: 12px !important; }
#sphere-3d-root .fixed.inset-0.z-50 .bg-white { display: flex !important; flex-direction: column !important; max-height: 100% !important; }
#sphere-3d-root .fixed.inset-0.z-50 .aspect-square { aspect-ratio: 16 / 7 !important; flex: none !important; }
#sphere-3d-root .fixed.inset-0.z-50 .aspect-square img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#sphere-3d-root .fixed.inset-0.z-50 .p-6 { padding: 18px 22px 22px !important; overflow-y: auto !important; min-height: 0 !important; }
#sphere-3d-root .fixed.inset-0.z-50 h3 { margin: 0 0 8px !important; line-height: 1.3 !important; font-size: 1.1rem !important; }
#sphere-3d-root .fixed.inset-0.z-50 .p-6 p { margin: 0 !important; line-height: 1.6 !important; font-size: .92rem !important; }
/* Round 250: the card's scrollbar takes the card's own colour (it used the page's cream track). */
#sphere-3d-root .fixed.inset-0.z-50 .p-6 { scrollbar-width: thin; scrollbar-color: rgba(203, 213, 225, .28) #0d121c; }
#sphere-3d-root .fixed.inset-0.z-50 .p-6::-webkit-scrollbar { width: 6px; background: #0d121c; }
#sphere-3d-root .fixed.inset-0.z-50 .p-6::-webkit-scrollbar-track { background: #0d121c; border: 0; }
#sphere-3d-root .fixed.inset-0.z-50 .p-6::-webkit-scrollbar-thumb { background: rgba(203, 213, 225, .28); border: 0; border-radius: 6px; }

/* Round 253: the footer has four link columns (Product, Solutions, Company, Help). */
@media (min-width: 960px) {
  .df-top-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
}


/* Round 254: hero typewriter (Emre's hero-section code, without React). The animated line sits on its own row with a
   fixed height, so the headline never jumps; a dashed frame and a blinking caret as in that code. */
.hero-type { position: relative; display: block; width: fit-content; white-space: nowrap; min-height: 1.12em; margin-top: .08em; padding: 0 .14em; }
.hero-type::before { content: ""; position: absolute; inset: -.04em -.08em; border: 2px dashed rgba(96, 165, 250, .55); border-radius: 16px; pointer-events: none; }
.hero-type-caret { display: inline-block; width: .06em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: #60a5fa; animation: hero-caret 1s steps(1) infinite; }
@keyframes hero-caret { 50% { opacity: 0; } }
@media (max-width: 900px) { .hero-type { margin-inline: auto; } }   /* the hero copy is centred from 900px down */
@media (prefers-reduced-motion: reduce) { .hero-type-caret { display: none; } }

/* Round 299: the free 5% buffer, shown on every plan card and in the comparison sheet (dark is the default theme) */
.lp-pstage-buffer { margin: 10px 0 0; padding: 7px 11px; border-radius: 10px; background: rgba(74, 222, 128, .12); color: #4ade80; font-size: 13px; line-height: 1.35; }
.lp-pstage-buffer strong { font-weight: 800; }
:root[data-theme="light"] .lp-pstage-buffer { background: rgba(22, 163, 74, .10); color: #15803d; }
.lp-pstage-sheet-buffer th, .lp-pstage-sheet-buffer td, .lp-pstage-sheet-buffer dt, .lp-pstage-sheet-buffer dd { color: #4ade80; font-weight: 700; }
:root[data-theme="light"] .lp-pstage-sheet-buffer th, :root[data-theme="light"] .lp-pstage-sheet-buffer td, :root[data-theme="light"] .lp-pstage-sheet-buffer dt, :root[data-theme="light"] .lp-pstage-sheet-buffer dd { color: #15803d; }
.lp-pstage-sheet-buffer th small { display: block; font-weight: 500; opacity: .8; font-size: 12px; }
.rev-year-row .total-badge { background: rgba(250, 204, 21, .14); color: #facc15; border-color: rgba(250, 204, 21, .35); }
.revenue-sources { margin: 8px auto 0; max-width: 760px; font-size: 13px; color: #cbd5e1; text-align: left; }
.revenue-sources summary { cursor: pointer; font-weight: 700; text-align: center; list-style-position: inside; }
.revenue-sources ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.revenue-sources a { color: inherit; text-decoration: underline; }
:root[data-theme="light"] .revenue-sources { color: #1e293b; }
/* Round 299: small helper lines start with a capital letter */
.rev-sub::first-letter, .col-detail::first-letter, .revenue-sources li::first-letter { text-transform: uppercase; }

/* Round 301: merchant-of-record line under the price cards */
.lp-pstage-mor { max-width: 62ch; margin: 18px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Round 303 (Emre): yearly billing is off until the company is set up. Delete these two rules to show it again. */
.lp-pstage-seg-bill[hidden] { display: none !important; }
.lp-pstage-save-text { display: none !important; }

/* SMS is not live yet (Emre, 5 Nov): the plan lines say "coming soon", underlined */
u.soon{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;font-style:normal}

/* ==========================================================================
   SCROLL-CRAFT ENHANCEMENTS: Hero 3D Phone Tilt & Stage Signal Beam,
   #how-it-works 3D Rail + Scroll-Scrubbed Console, #your-rules 3D Stack &
   Continuous Per-Step Scroll Fill Bars
   ========================================================================== */
.hero-video-wrap {
  will-change: opacity, transform;
  transform-origin: center center;
}

.sim-stepper-tab,
.sim-step-card,
.rules-bento-card {
  position: relative;
  overflow: hidden;
}

.sim-stepper-tab::after,
.sim-step-card::after,
.rules-bento-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, #ea580c, #00e5ff);
  transform: scaleX(var(--step-fill, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
  pointer-events: none;
}

.rules-bento-card::after {
  background: linear-gradient(90deg, #ea580c, #fb923c);
  transform: scaleX(var(--rule-fill, 0));
}

/* ==========================================================================
   VISUAL SCROLL-CRAFT CHOREOGRAPHIES (A: #how-it-works, B: #your-rules, C: #hero)
   ========================================================================== */

/* --- A. #how-it-works: Desktop 3D Rail Depth & Console Scroll-Scrubbing --- */
@media (min-width: 1025px) {
  #how-it-works .sim-steps-rail {
    perspective: 1000px;
  }
  #how-it-works .sim-step-card {
    will-change: transform, opacity;
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }
  #how-it-works .sim-step-card.is-past {
    opacity: 0.62;
    transform: scale(0.975) translateX(-2px);
  }
  #how-it-works .sim-step-card.is-active,
  :root[data-theme="light"] #how-it-works .sim-step-card.is-active {
    opacity: 1;
    transform: translateX(8px) scale(1.02);
    z-index: 2;
  }
  #how-it-works .sim-step-card.is-future {
    opacity: 0.78;
    transform: scale(0.985);
  }
}

.sim-scan-input-box {
  position: relative;
  overflow: hidden;
}

.sim-scan-input-box::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 110px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.24), rgba(249, 115, 22, 0.32), transparent);
  transform: translateX(calc(var(--scan-beam, 0) * 520% - 100%));
  opacity: calc(0.15 + var(--scan-beam, 0) * 0.85);
  pointer-events: none;
  will-change: transform, opacity;
}

.sim-scan-input-box.is-scanning-scroll {
  border-color: rgba(0, 229, 255, 0.55);
}

.sim-scan-input-box.is-scanning-scroll .sim-btn-scan {
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.42);
}

.sim-last-scan {
  will-change: transform, opacity;
  transition: opacity 0.14s ease-out, transform 0.14s ease-out;
}

.sim-gauge-circle circle:nth-of-type(2) {
  transition: stroke-dashoffset 0.14s ease-out;
}

.sim-bento-card {
  will-change: transform, opacity;
}

#sim-panel-4 .sim-verify-hero,
#sim-panel-4 .carrier-code-pill,
#sim-panel-4 .probe-test-row,
#sim-panel-4 .sim-verify-footer {
  will-change: transform, opacity;
  transition: opacity 0.14s ease-out, transform 0.14s ease-out;
}

/* --- B. #your-rules: 3D Guardrail Card Stack & Scroll-Driven Live Dialogue --- */
@media (min-width: 1025px) {
  #your-rules .rules-bento-column {
    perspective: 1000px;
  }
  #your-rules .rules-bento-card {
    will-change: transform, opacity;
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }
  #your-rules .rules-bento-card.is-past {
    opacity: 0.64;
    transform: scale(0.975) translateX(-2px);
  }
  #your-rules .rules-bento-card.is-active,
  :root[data-theme="light"] #your-rules .rules-bento-card.is-active {
    opacity: 1;
    transform: translateX(10px) scale(1.022);
    z-index: 2;
  }
  #your-rules .rules-bento-card.is-future {
    opacity: 0.80;
    transform: scale(0.985);
  }
}

.verification-pill {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.verification-pill.is-Checking {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

/* --- C. #hero: 3D Perspective Phone Tilt-to-Flat & Active Stage Signal Beam --- */
@media (min-width: 851px) {
  .hero-device-stage {
    perspective: 1200px;
    transform-style: preserve-3d;
  }
  .iphone-mockup {
    will-change: transform;
    transform-origin: center center;
  }
  #hero-rail-cards .lp-3d-art {
    position: relative;
  }
  #hero-rail-cards .lp-3d-art .lp-3d-art-inner {
    position: relative;
    overflow: hidden;
  }
  #hero-rail-cards .lp-3d-art .lp-3d-art-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #00e5ff, #f97316);
    opacity: 0;
    transform: scaleY(0.3);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #hero-rail-cards .lp-3d-art[data-state="active"] .lp-3d-art-inner::before {
    opacity: 1;
    transform: scaleY(1);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.65);
  }
  #hero-rail-cards .lp-3d-art .lp-3d-art-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #00e5ff, #f97316);
    transform-origin: left center;
    transform: scaleX(var(--stage-fill, 0));
    opacity: 0.92;
    pointer-events: none;
    transition: transform 0.08s linear;
  }
  #hero-rail-cards .lp-3d-art[data-state="future"] .lp-3d-art-inner::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-mockup,
  #how-it-works .sim-step-card,
  #your-rules .rules-bento-card,
  .sim-bento-card,
  .chat-scenario .row-caller,
  .chat-scenario .chat-verification-row,
  .chat-scenario .row-agent,
  .chat-scenario .scenario-assertion-footer {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Mobile Ergonomics, iOS Zoom Prevention & 320px Fit Hardening
   ========================================================================== */
@media (max-width: 1024px) {
  .simulator-inner,
  .simulator-grid {
    min-width: 0;
    max-width: 100%;
  }
  .sim-steps-rail {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .sim-step-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .sim-console-window,
  .demo-hub-box {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 850px) {
  .site-header .nav-wrap {
    min-width: 0;
  }
  .site-header .nav-actions {
    min-width: 0;
    gap: 8px;
  }
  .site-header .nav-signin {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
  }
  .site-header .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    justify-content: center;
  }
  .site-header .button-small {
    min-height: 44px;
    padding: 10px 14px;
    overflow: hidden;
  }
  .hero-cinematic .hero-device-stage .hero-mobile-stage-btn {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 3px !important;
  }
  .hero-cinematic .hero-device-stage .hero-lang-switch {
    padding: 3px !important;
  }
  .hero-cinematic .hero-device-stage .hero-lang-switch button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 12px !important;
  }
  .hero-cinematic .hero-device-stage .hero-replay-btn {
    min-height: 44px !important;
    padding: 8px 14px !important;
  }
  .hero-cinematic .hps-circle-btn {
    width: 66px !important;
    height: 66px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  #your-demo .cl-tab {
    min-height: 44px;
    min-width: 44px;
  }
  .df-socials {
    gap: 4px;
  }
  .df-socials a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .demo-orb-right .demo-field-label input,
  #scan-website,
  #scan-email {
    font-size: 16px !important;
    min-height: 44px;
    height: auto;
  }
  .sim-url-field-wrap {
    min-height: 44px;
    height: auto;
  }
  .sim-url-input,
  #sim-input-url {
    font-size: 16px !important;
    min-height: 44px;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(28px, 8.6vw, 43px);
    max-width: 100%;
  }
  .hero-type {
    max-width: 100%;
    font-size: clamp(24px, 7.6vw, 40px);
    padding: 0 0.1em;
  }
}

@media (max-width: 374px) {
  .site-header .nav-wrap {
    width: calc(100% - 16px);
    gap: 6px;
  }
  .site-header .brand {
    font-size: 17px;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .site-header .brand .brand-logo {
    height: 22px;
    width: auto;
  }
  .site-header .nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .site-header .nav-signin {
    font-size: 11px;
    padding: 6px 4px;
    min-width: 44px;
  }
  .site-header .theme-toggle {
    width: 44px;
    min-width: 44px;
  }
  .site-header .button-small {
    font-size: 10px;
    padding: 8px 9px;
    min-height: 44px;
    gap: 5px;
  }
  .site-header .button-small .icon {
    width: 12px;
    height: 12px;
  }
  .hero-type {
    font-size: clamp(21px, 7.2vw, 34px);
  }
}
