/* ==========================================================================
   ROLR Pulse — Institutional Trader Workstation Design System
   Bloomberg Terminal × Swiss Editorial Grid × Precision Instrument
   ========================================================================== */

:root {
  /* Core palette (matched to ROLR Pulse desktop tokens) */
  --obsidian: #090b0f;
  --obsidian-elevated: #0f131b;
  --obsidian-card: #131823;
  --obsidian-line: #1e2533;
  --obsidian-line-strong: #2d374c;
  --obsidian-ink: #f4f6fa;
  --obsidian-muted: #98a4b8;

  --paper: #ffffff;
  --paper-cool: #f3f5f9;
  --paper-line: #d5dce7;
  --paper-line-strong: #b6c2d4;
  --paper-ink: #0a0d14;
  --paper-muted: #4a5568;

  --brand-dark: #7a9eff;
  --brand-dark-hover: #9bb7ff;
  --brand-light: #0540f2;
  --brand-light-hover: #0434c7;

  --pos: #12b76a;
  --neg: #f04438;

  /* Active surface semantic defaults (dark) */
  --bg: var(--obsidian);
  --band: var(--obsidian);
  --surface: var(--obsidian-elevated);
  --line: var(--obsidian-line);
  --line-strong: var(--obsidian-line-strong);
  --text: var(--obsidian-ink);
  --muted: var(--obsidian-muted);
  --accent: var(--brand-dark);
  --accent-hover: var(--brand-dark-hover);
  --on-accent: #090b0f;
  --grid-ink: rgba(244, 246, 250, 0.032);
  --cursor-ink: rgba(122, 158, 255, 0.16);

  /* Logo tokens */
  --logo-brand: var(--brand-dark);
  --logo-glint: #ffffff;

  /* Typography */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  color-scheme: dark;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

main {
  overflow-x: clip;
}

/* ==========================================================================
   Floating Overlay Scrollbar — Hidden by Default, Zero Rail/Track
   ========================================================================== */

.floating-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18px;
  z-index: 95;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.floating-scrollbar.is-visible,
.floating-scrollbar.is-dragging {
  opacity: 1;
}

.floating-scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 4px;
  width: 4px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(208, 220, 242, 0.44);
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
  transition: width 0.16s var(--ease), background-color 0.2s var(--ease);
}

/* Generous invisible grab zone with zero visible rail */
.floating-scrollbar__thumb::before {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -10px;
  right: -4px;
}

.floating-scrollbar.is-on-light .floating-scrollbar__thumb {
  background: rgba(10, 13, 20, 0.32);
}

.floating-scrollbar__thumb:hover,
.floating-scrollbar.is-dragging .floating-scrollbar__thumb {
  width: 6px;
  background: rgba(122, 158, 255, 0.85);
}

.floating-scrollbar.is-on-light .floating-scrollbar__thumb:hover,
.floating-scrollbar.is-on-light.is-dragging .floating-scrollbar__thumb {
  background: rgba(5, 64, 242, 0.72);
}

.floating-scrollbar.is-dragging .floating-scrollbar__thumb {
  cursor: grabbing;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.dialog-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  line-height: 1.62;
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

h2 {
  font-size: clamp(34px, 3.9vw, 58px);
  letter-spacing: -0.042em;
  line-height: 1.05;
}

h3 {
  letter-spacing: -0.028em;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ==========================================================================
   Shared Layout & Primitives
   ========================================================================== */

.section-shell {
  width: min(1320px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--brand-dark);
  color: #090b0f;
  font: 600 13px/1 var(--mono);
  padding: 14px 18px;
  border-radius: 4px;
  z-index: 120;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
  animation: led-pulse 2.6s ease-in-out infinite;
}

@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.16); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.06); opacity: 0.85; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 22px;
  border-radius: 4px;
  min-height: 50px;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button span:last-child {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.button:hover span:last-child {
  transform: translate(2px, 0);
}

.text-link {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
  padding: 7px 0;
  color: var(--text);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link span {
  transition: transform 0.2s var(--ease);
}

.text-link:hover span {
  transform: translate(2px, -1px);
}

/* ==========================================================================
   Official ROLR Pulse SVG Logo & Motion (synced with desktop RolrPulseLogo)
   ========================================================================== */

.rp-logo {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  user-select: none;
}

.rp-logo--header {
  height: 22px;
  width: auto;
}

.rp-logo--hero {
  height: clamp(44px, 5vw, 68px);
  width: auto;
  max-width: 100%;
  cursor: pointer;
}

.rp-logo--footer {
  height: 19px;
  width: auto;
}

.rp-logo__rolr {
  fill: var(--text);
}

.rp-logo__beat {
  fill: none;
  stroke: var(--logo-brand);
  stroke-width: 36;
  stroke-linejoin: miter;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

.rp-logo__word {
  fill: var(--logo-brand);
}

.rp-logo__glint {
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  /* Signature hero entrance on initial load */
  .rp-logo--hero.is-intro .rp-logo__rolr {
    animation: rp-rolr-in 0.42s var(--ease) both;
  }

  .rp-logo--hero.is-intro .rp-logo__beat {
    animation: rp-beat-intro 0.82s var(--ease) 0.14s both;
  }

  .rp-logo--hero.is-intro .rp-logo__word {
    animation: rp-word-in 0.46s var(--ease) 0.36s both;
  }

  .rp-logo--hero.is-intro .rp-logo__glint {
    animation: rp-logo-glint 0.78s linear 0.92s both;
  }

  /* Official replay (hover / focus / every 60s) matching desktop app 1:1 */
  .rp-logo--live.is-playing .rp-logo__beat {
    animation: rp-logo-redraw 1.4s linear;
  }

  .rp-logo--live.is-playing .rp-logo__glint {
    animation: rp-logo-glint 0.8s linear 1.36s;
  }
}

@keyframes rp-rolr-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes rp-beat-intro {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes rp-word-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rp-logo-redraw {
  0% { stroke-dashoffset: 0; }
  35% { stroke-dashoffset: -1; }
  35.01% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@keyframes rp-logo-glint {
  0% { transform: translateX(0); }
  100% { transform: translateX(1650px); }
}

/* ==========================================================================
   Sticky Header & Mobile Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(48px, calc((100% - 1320px) / 2));
  background: var(--obsidian);
  border-bottom: 1px solid var(--obsidian-line);
  transform: translateZ(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 450;
  color: #a6b2c6;
}

.desktop-nav a:not(.nav-cta) {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}

.desktop-nav a:not(.nav-cta):hover {
  color: #ffffff;
}

.desktop-nav a[aria-current]:not(.nav-cta) {
  color: #ffffff;
}

.desktop-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--brand-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.desktop-nav a[aria-current]:not(.nav-cta)::after {
  transform: scaleX(1);
}

.desktop-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(122, 158, 255, 0.48);
  border-radius: 4px;
  background: rgba(122, 158, 255, 0.08);
  color: #eef3ff;
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.desktop-nav .nav-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #090b0f;
}

.desktop-nav .nav-cta span {
  color: var(--brand-dark);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.desktop-nav .nav-cta:hover span {
  color: #090b0f;
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--obsidian-ink);
  transition: transform 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ==========================================================================
   Alternating Architectural Bands, Drafting Grid & Boundary Signal
   Dark:  00 Overview · 03 Intelligence · 05 ROLR · 07 Early Access + Footer
   Light: 01 Workstation (#F3F5F9) · 02 Your desk (#FFF) · 04 AI (#F3F5F9) · 06 FAQ (#FFF)
   ========================================================================== */

main > section {
  --band: var(--obsidian);
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
}

main > section::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-color: var(--band);
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: top center;
}

/* Light editorial paper bands */
#workstation,
#ai {
  --band: var(--paper-cool);
  --surface: #ffffff;
  --text: var(--paper-ink);
  --muted: var(--paper-muted);
  --line: var(--paper-line);
  --line-strong: var(--paper-line-strong);
  --accent: var(--brand-light);
  --accent-hover: var(--brand-light-hover);
  --on-accent: #ffffff;
  --grid-ink: rgba(10, 13, 20, 0.036);
  --cursor-ink: rgba(5, 64, 242, 0.11);
  color: var(--text);
}

#desk,
#faq {
  --band: var(--paper);
  --surface: var(--paper-cool);
  --text: var(--paper-ink);
  --muted: var(--paper-muted);
  --line: var(--paper-line);
  --line-strong: var(--paper-line-strong);
  --accent: var(--brand-light);
  --accent-hover: var(--brand-light-hover);
  --on-accent: #ffffff;
  --grid-ink: rgba(10, 13, 20, 0.028);
  --cursor-ink: rgba(5, 64, 242, 0.09);
  color: var(--text);
}

/* Cursor-revealed precision grid (cursor-grid.js) */
.cursor-grid {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  background-image:
    linear-gradient(var(--cursor-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--cursor-ink) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: top center;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 78%);
  mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 78%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.cursor-grid-on .cursor-grid {
  opacity: 1;
}

/* Scroll-drawn square-wave boundary signal (bands.js) */
.band-signal {
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  bottom: 100%;
  height: 28px;
  pointer-events: none;
  color: var(--accent);
  z-index: 4;
  opacity: 0.5;
}

.band-signal svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.band-signal path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.band-signal i {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
}

/* Scroll reveal */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   00 / OVERVIEW (Hero)
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(42px, 6.5vh, 76px) clamp(48px, 7vh, 84px);
}

.hero-label {
  color: var(--brand-dark);
  margin-bottom: clamp(22px, 3.6vh, 40px);
}

.hero-mark {
  display: flex;
  align-items: center;
  padding-bottom: clamp(28px, 4.4vh, 48px);
  border-bottom: 1px solid var(--obsidian-line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: end;
  margin-top: clamp(28px, 4.6vh, 52px);
}

.hero-title {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  color: #f6f8fc;
}

.hero h1 > span {
  color: var(--brand-dark);
}

.hero-descriptor {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.56;
  color: #a8b3c7;
  max-width: 620px;
  margin-top: clamp(20px, 3vh, 30px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-bottom: 4px;
}

.hero-copy .hero-cta {
  width: 100%;
}

.hero-copy .text-link {
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-layout > .hero-title {
    animation: hero-glide 0.6s var(--ease) 0.35s both;
  }

  .hero-layout > .hero-copy {
    animation: hero-glide 0.6s var(--ease) 0.46s both;
  }
}

@keyframes hero-glide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   01 / WORKSTATION (Product Showcase)
   ========================================================================== */

.product-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 7.5vh, 96px);
  overflow-x: clip;
}

.workstation-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workstation-intro .eyebrow {
  color: var(--accent);
}

.workstation-intro > p {
  font-size: 16px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 560px;
}

/* Tour tabs + pager */
.tour-controls {
  margin-top: 28px;
}

.tour-pager {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tour-pager .tour-step {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tour-pager .tour-step:hover,
.tour-pager .tour-step:focus-visible {
  background: var(--text);
  border-color: var(--text);
  color: var(--band);
}

.tour-controls [role="tablist"] {
  flex: 1;
  display: flex;
  border-bottom: 1px solid var(--line);
}

.tour-controls [role="tab"] {
  position: relative;
  flex: 1;
  text-align: left;
  padding: 14px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.tour-controls [role="tab"] span {
  font: 500 11px/1 var(--mono);
  margin-right: 10px;
  color: var(--muted);
  opacity: 0.78;
}

.tour-controls [role="tab"]:hover {
  color: var(--text);
  background: rgba(5, 64, 242, 0.04);
}

.tour-controls [role="tab"][aria-selected="true"] {
  color: var(--text);
  font-weight: 600;
  background: rgba(5, 64, 242, 0.06);
}

.tour-controls [role="tab"][aria-selected="true"] span {
  color: var(--accent);
  opacity: 1;
}

.tour-controls [role="tab"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.tour-controls [role="tab"][aria-selected="true"]::after {
  transform: scaleX(1);
}

.tour-controls [role="tab"].is-cycling::after {
  transform: scaleX(0);
  animation: tour-progress 7s linear forwards;
}

.tour-controls:hover [role="tab"]::after,
#workstation:has(.product-window:hover) [role="tab"]::after,
.tour-offscreen .tour-controls [role="tab"]::after {
  animation-play-state: paused;
}

@keyframes tour-progress {
  to { transform: scaleX(1); }
}

/* Showcase stage & precision product bezel */
.showcase-stage {
  position: relative;
  margin-top: 24px;
}

.stage-grid {
  position: absolute;
  inset: -16px -24px;
  background-image: radial-gradient(rgba(10, 13, 20, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 45%, transparent 100%);
  pointer-events: none;
}

.signal-line {
  position: absolute;
  top: 50%;
  left: -32px;
  right: -32px;
  width: calc(100% + 64px);
  height: 300px;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(5, 64, 242, 0.14);
  stroke-width: 1;
  pointer-events: none;
}

.moving-signal {
  stroke: var(--brand-light);
  stroke-width: 1.75;
  stroke-dasharray: 42 1800;
  animation: signal-sweep 11s linear infinite;
}

@keyframes signal-sweep {
  from { stroke-dashoffset: 1842; }
  to { stroke-dashoffset: 0; }
}

.product-window {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
  border: 1px solid #202838;
  border-radius: 7px;
  overflow: hidden;
  background: #0a0d12;
  box-shadow:
    0 24px 56px rgba(9, 13, 24, 0.22),
    0 4px 14px rgba(9, 13, 24, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.window-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #1d2433;
  background: #0d1118;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
  color: #c9d2e3;
}

.window-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b3447;
}

.window-dots i:first-child {
  background: #4b5875;
}

.window-nav {
  display: flex;
  gap: 3px;
}

.window-nav .tour-step {
  width: 24px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid #242d3e;
  color: #9ba8bf;
  font: 14px/1 var(--sans);
  display: grid;
  place-items: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.window-nav .tour-step:hover,
.window-nav .tour-step:focus-visible {
  background: #1c2434;
  border-color: #3a4866;
  color: #ffffff;
}

.dim {
  color: #54617a;
  margin: 0 6px;
}

.window-live {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #9ba8bf;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.window-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
}

.screenshot-button {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  background: #090b0f;
  overflow: hidden;
}

.screenshot-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.screenshot-button img.is-switching {
  animation: frame-snap 0.28s var(--ease);
}

@keyframes frame-snap {
  from { opacity: 0.42; transform: scale(1.008); }
  to { opacity: 1; transform: none; }
}

.expand-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(9, 11, 15, 0.88);
  color: #f4f6fa;
  border: 1px solid #35415a;
  padding: 8px 12px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s;
}

.screenshot-button:hover .expand-hint,
.screenshot-button:focus-visible .expand-hint {
  opacity: 1;
  transform: none;
  border-color: var(--brand-dark);
}

#tour-panel {
  position: relative;
  z-index: 1;
  display: grid;
  padding-top: 18px;
}

#tour-panel > p {
  grid-area: 1 / 1;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

#tour-panel .tour-ghost {
  visibility: hidden;
  pointer-events: none;
}

/* Desktop asymmetric side-by-side workstation layout (window dominates ~64% width) */
@media (min-width: 980px) {
  #workstation {
    display: grid;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(32px, 3.6vw, 52px);
    align-content: center;
    padding-inline: max(48px, calc((100% - 1320px) / 2));
  }

  #workstation > .section-shell,
  #workstation > .showcase-stage {
    width: auto;
    margin: 0;
  }

  #workstation .workstation-intro {
    grid-area: 1 / 1;
  }

  #workstation .workstation-intro h2 {
    font-size: clamp(34px, 3.1vw, 46px);
  }

  #workstation .workstation-intro > p {
    font-size: 15px;
  }

  #workstation .tour-controls {
    grid-area: 2 / 1;
    margin-top: 24px;
  }

  #workstation .tour-pager {
    display: grid;
    grid-template-columns: auto auto 1fr;
    row-gap: 14px;
    column-gap: 8px;
  }

  #workstation .tour-pager [role="tablist"] {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-direction: column;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  #workstation .tour-pager [role="tab"] {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  #workstation .tour-pager [role="tab"][aria-selected="true"] {
    border-left-color: var(--accent);
    background: #ffffff;
  }

  #workstation .tour-pager .tour-step[data-step="-1"] {
    grid-column: 1;
    grid-row: 2;
  }

  #workstation .tour-pager .tour-step[data-step="1"] {
    grid-column: 2;
    grid-row: 2;
  }

  #workstation #tour-panel {
    grid-area: 3 / 1;
    padding-top: 16px;
  }

  #workstation .showcase-stage {
    grid-area: 1 / 2 / 4 / 3;
    align-self: center;
    margin-top: 0;
  }

  #workstation .product-window {
    width: 100%;
  }
}

/* ==========================================================================
   WALKTHROUGH (CDN embed)
   ========================================================================== */

.walkthrough-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 7.2vh, 96px);
}

.walkthrough-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 56px;
  align-items: end;
}

.walkthrough-head .eyebrow {
  color: var(--brand-dark);
}

.walkthrough-head h2 {
  margin-top: 14px;
}

.walkthrough-summary {
  justify-self: end;
  max-width: 440px;
}

.walkthrough-summary p {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--muted);
}

.walkthrough-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: clamp(24px, 3.6vh, 38px);
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #07090d;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.46);
}

.walkthrough-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   02 / YOUR DESK (Architectural 3-Column Strip + Dark Micro-Instruments)
   ========================================================================== */

.desk-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(64px, 9vh, 108px);
}

.desk-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 18px 56px;
  align-items: end;
}

.desk-intro > .eyebrow {
  grid-column: 1 / -1;
  color: var(--accent);
}

.desk-intro > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.desk-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 5vh, 56px);
  border-top: 1px solid var(--line);
}

.desk-features article {
  display: flex;
  flex-direction: column;
  padding: 28px 34px 8px 0;
}

.desk-features article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.desk-features article:last-child {
  padding-right: 0;
}

.feature-number {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.desk-features h3 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.15;
  margin: 18px 0 14px;
  color: var(--text);
}

.desk-features p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 340px;
  margin-bottom: 28px;
}

/* Micro-instrument 01: Multi-pane dashboard layout */
.mini-layout {
  margin-top: auto;
  height: 146px;
  display: grid;
  grid-template-columns: 0.9fr 1.45fr;
  gap: 7px;
  padding: 10px;
  background: #0c0f15;
  border: 1px solid #1e2636;
  border-radius: 5px;
  transition: border-color 0.22s var(--ease);
}

.desk-features article:hover .mini-layout {
  border-color: rgba(5, 64, 242, 0.45);
}

.mini-layout > div {
  border: 1px solid #222b3d;
  background: #121722;
  border-radius: 3px;
  padding: 12px;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.desk-features article:hover .mini-layout > div:nth-child(2) {
  border-color: rgba(122, 158, 255, 0.55);
  background: #151c2b;
}

.mini-layout > div:nth-child(2) {
  grid-row: span 2;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(122, 158, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 158, 255, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.mini-layout i {
  display: block;
  width: 82%;
  height: 3px;
  margin-bottom: 7px;
  border-radius: 1px;
  background: #2f3b52;
  transition: width 0.35s var(--ease), background-color 0.25s;
}

.mini-layout i:nth-child(2) {
  width: 54%;
  background: var(--brand-dark);
}

.mini-layout i:nth-child(3) {
  width: 68%;
  margin-bottom: 0;
}

.desk-features article:hover .mini-layout i:nth-child(2) {
  width: 72%;
}

.mini-layout svg {
  width: 100%;
  height: 54px;
  fill: none;
  stroke: var(--brand-dark);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mini-layout svg path,
.mini-terminal svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .desk-features article.visible .mini-layout svg path {
    animation: spark-draw 1.1s var(--ease) 0.2s both;
  }

  .desk-features article.visible .mini-terminal svg path {
    animation: spark-draw 0.95s var(--ease) 0.25s both;
  }
}

@keyframes spark-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Micro-instrument 02: Institutional market tape */
.mini-terminal {
  margin-top: auto;
  height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0c0f15;
  border: 1px solid #1e2636;
  border-radius: 5px;
  padding: 12px 15px 11px;
  font: 500 10.5px/1.3 var(--mono);
  color: #8f9bb0;
  transition: border-color 0.22s var(--ease);
}

.desk-features article:hover .mini-terminal {
  border-color: rgba(5, 64, 242, 0.45);
}

.mini-terminal > div {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #1d2433;
}

.mini-terminal > div:first-child {
  padding-top: 0;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #6b7890;
}

.mini-terminal i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: #e6ecf7;
}

.mini-terminal b {
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
}

.mini-terminal svg {
  height: 18px;
  width: 72px;
  justify-self: end;
  fill: none;
  stroke: var(--pos);
  stroke-width: 1.8;
}

.mini-terminal > div:nth-child(3) svg {
  stroke: var(--neg);
}

.mini-terminal small {
  font-size: 10px;
  color: #707d94;
  display: block;
  margin-top: 6px;
}

/* Micro-instrument 03: Paper Trade desk ticket */
.paper-ticket {
  margin-top: auto;
  height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0c0f15;
  border: 1px solid #1e2636;
  border-left: 3px solid var(--pos);
  border-radius: 5px;
  padding: 14px 18px;
  color: #f4f6fa;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.desk-features article:hover .paper-ticket {
  border-color: #2f3c55;
  border-left-color: var(--pos);
}

.paper-ticket > span {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.1em;
  color: #8f9bb0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paper-ticket > span:last-child {
  color: var(--brand-dark);
  padding-top: 8px;
  border-top: 1px solid #1c2433;
}

.paper-ticket > div {
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #9ba8bf;
}

.paper-ticket strong {
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   03 / INTELLIGENCE (Signal-Routing Schematic)
   ========================================================================== */

.intelligence {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(44px, 5.8vh, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: end;
}

.section-heading .eyebrow {
  color: var(--brand-dark);
}

.section-heading h2 {
  margin-top: 14px;
}

.section-heading > p {
  font-size: 15.5px;
  line-height: 1.58;
  max-width: 420px;
  justify-self: end;
  color: var(--muted);
}

.scenario-pager {
  margin-top: clamp(20px, 2.8vh, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.scenario-controls {
  flex: 1;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 4px;
  background: var(--obsidian-elevated);
  overflow: hidden;
}

.scenario-controls button {
  position: relative;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.scenario-controls button + button {
  border-left: 1px solid var(--obsidian-line);
}

.scenario-controls button span {
  font: 500 11px/1 var(--mono);
  margin-right: 8px;
  color: #6b7890;
}

.scenario-controls button:hover {
  color: #ffffff;
  background: rgba(122, 158, 255, 0.06);
}

.scenario-controls button[aria-pressed="true"] {
  background: rgba(122, 158, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand-dark);
}

.scenario-controls button[aria-pressed="true"] span {
  color: var(--brand-dark);
}

.ripple-workspace {
  margin-top: 18px;
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 6px;
  background: #0c1017;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.ripple-toolbar {
  border-bottom: 1px solid var(--obsidian-line);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f141e;
}

.ripple-toolbar > span {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  color: #c2cce0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ripple-graph {
  position: relative;
  height: 326px;
  background-image: radial-gradient(rgba(152, 164, 184, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ripple-graph > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.graph-lines {
  stroke: #2a354b;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.graph-flow {
  stroke: var(--brand-dark);
  stroke-width: 2;
  stroke-dasharray: 0.14 0.86;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: circuit-pulse 3.8s linear infinite;
}

.graph-flow path:nth-child(2) {
  animation-delay: -1.1s;
}

.graph-flow path:nth-child(3),
.graph-flow path:nth-child(5) {
  stroke: var(--pos);
  animation-delay: -1.9s;
}

.graph-flow path:nth-child(4),
.graph-flow path:nth-child(6) {
  stroke: var(--pos);
  animation-delay: -2.7s;
}

@keyframes circuit-pulse {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: -1; }
}

.graph-ports circle {
  fill: #0c1017;
  stroke: var(--brand-dark);
  stroke-width: 1.5;
}

.graph-ports circle:nth-child(n + 6) {
  stroke: var(--pos);
}

.graph-node {
  position: absolute;
  border: 1px solid #2a3448;
  border-radius: 4px;
  background: #121723;
  padding: 15px 17px;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.graph-node > span {
  font: 500 10px/1.2 var(--mono);
  letter-spacing: 0.1em;
  color: #8293b2;
  display: block;
}

.graph-node strong {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  font-size: 14.5px;
  color: #f4f6fa;
}

.headline-node {
  top: 50%;
  left: 13%;
  width: 22%;
  border-color: #465d94;
  border-left: 3px solid var(--brand-dark);
  background: #141c2e;
  z-index: 2;
}

.headline-node > span {
  color: var(--brand-dark);
}

.headline-node h3 {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.28;
  margin-top: 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.headline-node small {
  font: 500 10px/1.2 var(--mono);
  color: #9bb0d6;
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(122, 158, 255, 0.18);
}

.entity-node {
  left: 49.5%;
  width: 17%;
  padding: 15px 16px;
}

.entity-one {
  top: 20.5%;
}

.entity-two {
  top: 79.5%;
}

.market-node {
  left: 87%;
  width: 22%;
  background: #0f1916;
  border-color: #244638;
  border-right: 2px solid var(--pos);
}

.market-node > span {
  color: #6bc497;
}

.market-node i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos);
  right: 14px;
  top: 16px;
}

.market-one { top: 20.5%; }
.market-two { top: 50%; }
.market-three { top: 79.5%; }

/* Calibrated left-to-right cascade when switching scenario */
.ripple-graph.is-pulsing .headline-node {
  animation: node-flash-blue 0.42s var(--ease);
}

.ripple-graph.is-pulsing .entity-node {
  animation: node-flash-blue 0.42s var(--ease) 0.08s;
}

.ripple-graph.is-pulsing .market-node {
  animation: node-flash-green 0.46s var(--ease) 0.16s;
}

@keyframes node-flash-blue {
  0% { border-color: var(--brand-dark); background: #1c2742; }
  100% { }
}

@keyframes node-flash-green {
  0% { border-color: var(--pos); background: #132820; }
  100% { }
}

.intelligence-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--obsidian-line);
}

.intelligence-notes article {
  display: flex;
  gap: 14px;
  padding: 18px 28px 0 0;
}

.intelligence-notes article + article {
  padding-left: 28px;
  border-left: 1px solid var(--obsidian-line);
}

.intelligence-notes article:last-child {
  padding-right: 0;
}

.tiny-icon {
  color: var(--brand-dark);
  font: 400 20px/1 var(--mono);
  flex-shrink: 0;
  margin-top: 2px;
}

.intelligence-notes h3 {
  font-size: 15.5px;
  font-weight: 500;
  color: #f4f6fa;
  margin-bottom: 8px;
}

.intelligence-notes p {
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--muted);
}

/* ==========================================================================
   04 / ON-DEVICE AI (Calibrated Local Compute Schematic + Desk Docket)
   ========================================================================== */

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vh, 108px);
}

.ai-copy .eyebrow {
  color: var(--accent);
}

.ai-copy h2 {
  margin: 18px 0 20px;
}

.ai-copy > p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 470px;
}

.ai-divider {
  height: 1px;
  background: var(--line-strong);
  width: 64px;
  margin: 26px 0;
}

.ai-copy h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.ai-copy .text-link {
  margin-top: 24px;
}

.scribe-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 86px;
  overflow: hidden;
}

/* Precision vernier / oscilloscope dial (replaces generic SaaS orb) */
.scribe-orbit {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 224px;
  height: 224px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.scribe-orbit > div {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(10, 13, 20, 0.22);
  animation: dial-turn 36s linear infinite;
}

.scribe-orbit > div:nth-child(2) {
  inset: 24px;
  border-style: solid;
  border-color: rgba(5, 64, 242, 0.26);
  border-top-color: var(--brand-light);
  animation: dial-turn 22s linear infinite reverse;
}

.scribe-orbit > div:nth-child(3) {
  inset: 48px;
  border-style: solid;
  border-color: rgba(10, 13, 20, 0.14);
  animation: none;
}

.scribe-orbit > div:first-child::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand-light);
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.scribe-orbit > span {
  font-size: 32px;
  line-height: 1;
  color: var(--brand-light);
  margin-top: -42px;
}

@keyframes dial-turn {
  to { transform: rotate(360deg); }
}

.brief-card {
  position: relative;
  z-index: 1;
  background: #0c0f15;
  color: #f4f6fa;
  border: 1px solid #222b3d;
  border-top: 2px solid var(--brand-dark);
  border-radius: 6px;
  padding: 26px 28px;
  margin-top: 32px;
  box-shadow: 0 22px 48px rgba(9, 13, 24, 0.18);
}

.brief-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--brand-dark);
}

.brief-heading > span:last-child {
  font-size: 10px;
  border: 1px solid rgba(18, 183, 106, 0.42);
  background: rgba(18, 183, 106, 0.1);
  color: #6ee7b7;
  padding: 4px 8px;
  border-radius: 3px;
}

.brief-card h3 {
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.16;
  margin: 20px 0 22px;
  color: #ffffff;
}

.brief-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 10px;
  margin-inline: -10px;
  border-top: 1px solid #1d2433;
  border-radius: 4px;
  transition: background-color 0.18s var(--ease);
}

.brief-row:hover {
  background: rgba(122, 158, 255, 0.06);
}

.brief-row > span:first-child {
  font: 500 11px/1.4 var(--mono);
  color: var(--brand-dark);
  padding-top: 2px;
}

.brief-row > span:last-child {
  margin-left: auto;
  font: 400 14px/1 var(--mono);
  color: #6c7a94;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.brief-row:hover > span:last-child {
  color: var(--brand-dark);
  transform: translate(2px, -2px);
}

.brief-row strong {
  display: block;
  font-weight: 500;
  font-size: 14.5px;
  color: #f4f6fa;
}

.brief-row p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  color: #94a2b8;
}

/* ==========================================================================
   05 / ROLR (Market Execution Frame — Assets & Caption Preserved)
   ========================================================================== */

.rolr-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(64px, 8.5vh, 104px);
}

.rolr-top .eyebrow {
  color: var(--brand-dark);
}

.rolr-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) 1.38fr;
  align-items: center;
  gap: clamp(32px, 4.5vw, 60px);
  margin-top: 24px;
}

.rolr-copy h2 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.rolr-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
  max-width: 420px;
}

.rolr-flow {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--obsidian-line);
}

.rolr-flow li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--obsidian-line);
  font-size: 15px;
  color: #e6ecf7;
}

.rolr-flow span {
  font: 500 11.5px/1 var(--mono);
  color: var(--brand-dark);
}

.rolr-shot {
  display: block;
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #0c0f14;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.rolr-shot:hover {
  border-color: var(--brand-dark);
  transform: translateY(-2px);
}

.rolr-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e2533;
  background: #10141c;
}

.rolr-browser > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #303a4f;
}

.rolr-browser > span {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1px solid #1f2736;
  background: #090b0f;
  font: 500 11px/1.2 var(--mono);
  color: #9ba8bf;
  flex: 0 1 220px;
}

.rolr-shot img {
  width: 100%;
  height: auto;
}

.rolr-shot-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid #1e2533;
  background: #0d1118;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: #96a3ba;
  transition: color 0.18s var(--ease);
}

.rolr-shot:hover .rolr-shot-caption {
  color: var(--brand-dark);
}

.rolr-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--obsidian-line);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: #7c89a1;
}

/* ==========================================================================
   06 / FAQ (Swiss Editorial Index + Dark Dossier Panel)
   ========================================================================== */

.faq-section {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 36px;
  padding-block: clamp(64px, 9vh, 112px);
}

.faq-section .eyebrow {
  color: var(--accent);
}

.faq-section h2 {
  margin-top: 16px;
}

.faqs details {
  border-bottom: 1px solid var(--line);
}

.faqs details:first-child {
  border-top: 1px solid var(--line);
}

.faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faqs summary > span {
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}

.faqs details[open] summary > span {
  transform: rotate(45deg);
}

.faqs details p {
  padding: 0 24px 22px 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
}

.faq-card {
  display: none;
}

@media (min-width: 901px) {
  .faq-section {
    grid-template-columns: minmax(320px, 0.88fr) 1.12fr;
    grid-template-rows: auto 1fr;
    gap: 40px 60px;
    align-items: start;
    counter-reset: faq;
  }

  .faq-section > .reveal {
    grid-column: 1 / -1;
  }

  .faqs details {
    counter-increment: faq;
  }

  .faqs summary {
    position: relative;
    justify-content: flex-start;
    padding: 20px 14px 20px 0;
    font-size: 16.5px;
    color: var(--muted);
    transition: color 0.18s var(--ease), padding-left 0.2s var(--ease);
  }

  .faqs summary::before {
    content: counter(faq, decimal-leading-zero);
    font: 500 11.5px/1 var(--mono);
    color: var(--muted);
    width: 24px;
    flex-shrink: 0;
  }

  .faqs summary:hover {
    color: var(--text);
  }

  .faqs summary > span {
    margin-left: auto;
    font-size: 0;
    transform: none !important;
    opacity: 0;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }

  .faqs summary > span::before {
    content: '→';
    font: 400 16px/1 var(--mono);
  }

  .faqs summary:hover > span {
    opacity: 0.65;
  }

  .faqs details[open] summary {
    padding-left: 16px;
    color: var(--text);
    font-weight: 600;
  }

  .faqs details[open] summary::before {
    color: var(--accent);
  }

  .faqs details[open] summary::after {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--accent);
  }

  .faqs details[open] summary > span {
    opacity: 1;
  }

  .faqs details p {
    display: none;
  }

  .faq-card {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding: 40px 44px;
    border-radius: 6px;
    background: #0c0f15;
    color: #f4f6fa;
    border: 1px solid #1e2636;
    border-top: 2px solid var(--brand-dark);
    box-shadow: 0 24px 52px rgba(10, 13, 20, 0.14);
  }

  .faq-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(122, 158, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(122, 158, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
  }

  .faq-card > * {
    position: relative;
  }

  .faq-card-number {
    position: absolute;
    right: 28px;
    top: 8px;
    font: 500 132px/1 var(--mono);
    letter-spacing: -0.05em;
    color: rgba(122, 158, 255, 0.08);
    pointer-events: none;
  }

  .faq-card-label {
    display: block;
    font: 500 11px/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
  }

  .faq-card h3 {
    margin: 18px 0 18px;
    max-width: 440px;
    font-size: clamp(24px, 2.2vw, 31px);
    line-height: 1.16;
    color: #ffffff;
  }

  .faq-card p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.66;
    color: #c5d0e2;
  }

  .faq-card.is-changing > :not(.faq-card-number) {
    animation: faq-slide 0.34s var(--ease) both;
  }

  .faq-card.is-changing .faq-card-number {
    animation: faq-num 0.42s var(--ease) both;
  }
}

@keyframes faq-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes faq-num {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   07 / EARLY ACCESS + FOOTER
   ========================================================================== */

.download-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(56px, 7vh, 88px);
  padding-bottom: 0;
}

.download-section > .download-top {
  margin-top: auto;
}

.download-top .eyebrow {
  color: var(--brand-dark);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  margin-top: 28px;
}

.download-pitch h2 {
  font-size: clamp(40px, 4.8vw, 70px);
}

.signup-perks {
  list-style: none;
  margin: 28px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.signup-perks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15.5px;
  color: #d6deec;
}

.signup-perks li::before {
  content: '✓';
  font: 600 13px/1 var(--mono);
  color: var(--brand-dark);
}

.signup-card {
  position: relative;
  padding: 28px 30px;
  border-radius: 6px;
  background: var(--obsidian-elevated);
  border: 1px solid var(--obsidian-line-strong);
  border-top: 2px solid var(--brand-dark);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.signup-head .eyebrow {
  font-size: 11px;
  color: #b4c0d4;
}

.signup-head h3 {
  margin: 12px 0 22px;
  font-size: 26px;
  color: #ffffff;
}

.signup-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #d6deec;
}

.signup-label span {
  font-weight: 400;
  color: #8492aa;
}

#inline-email {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #2d374c;
  border-radius: 4px;
  background: var(--obsidian);
  color: #f4f6fa;
  padding: 12px 14px;
  font: 15px/1.4 var(--sans);
  transition: border-color 0.18s var(--ease);
}

#inline-email::placeholder {
  color: #647189;
}

#inline-email:focus {
  border-color: var(--brand-dark);
}

#inline-email:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.signup-platforms {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
}

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

.signup-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 8px 11px;
  border: 1px solid #283246;
  border-radius: 4px;
  background: var(--obsidian);
  color: #c2cde0;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.signup-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-chip svg {
  width: 22px;
  height: 24px;
}

.signup-chip:hover {
  border-color: #4b5d82;
  color: #ffffff;
}

.signup-chip:has(input:checked) {
  border-color: var(--brand-dark);
  background: rgba(122, 158, 255, 0.14);
  color: #ffffff;
}

.signup-chip:has(input:focus-visible) {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.waitlist-honey {
  display: none;
}

.signup-submit {
  width: 100%;
  margin-top: 20px;
}

.signup-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.signup-privacy {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #8492aa;
}

.waitlist-status:empty {
  display: none;
}

.waitlist-status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6ee7b7;
}

.waitlist-status.is-error {
  color: #fca5a5;
}

.signup-success {
  padding: 8px 0 4px;
}

.signup-success strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
}

.signup-success p {
  margin-top: 8px;
  font-size: 15px;
  color: #b4c0d4;
}

.signup-card [hidden] {
  display: none !important;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-block: 26px 28px;
  border-top: 1px solid var(--obsidian-line);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #c8d2e4;
  transition: color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--brand-dark);
}

.footer-rolr-logo {
  display: block;
  width: 50px;
  height: auto;
  color: #f4f6fa;
  transition: color 0.18s var(--ease);
}

.footer-link:hover .footer-rolr-logo {
  color: var(--brand-dark);
}

.back-top {
  width: 34px;
  height: 34px;
  border: 1px solid var(--obsidian-line-strong);
  border-radius: 4px;
  font: 15px/1 var(--mono);
  color: #c8d2e4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.back-top:hover {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  background: rgba(122, 158, 255, 0.08);
}

.footer-legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #7c89a1;
}

.site-footer__legal {
  max-width: 980px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--obsidian-line);
  font-size: 12px;
  line-height: 1.6;
  color: #7c89a1;
}

.site-footer__legal p {
  margin: 0 0 12px;
}

.site-footer__legal .site-footer__disclosure {
  margin-bottom: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 13px;
}

.site-footer__links a {
  color: #c8d2e4;
  transition: color 0.18s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--brand-dark);
}

.privacy-link {
  white-space: nowrap;
}

.privacy-icon {
  display: inline-block;
  width: auto;
  height: 1.05em;
  aspect-ratio: 30 / 14;
  margin-left: 0.4em;
  vertical-align: -0.18em;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-shell {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-back {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--text);
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.legal__updated {
  margin: 0 0 48px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h2 {
  margin: 48px 0 12px;
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  scroll-margin-top: 24px;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #d4dae6;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--accent);
}

.legal strong {
  color: var(--text);
  font-weight: 700;
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal th,
.legal td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.legal th {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.legal td {
  color: #d4dae6;
}

.legal-page .site-footer {
  margin-top: 64px;
  padding-bottom: 48px;
}

.legal-page .site-footer__legal,
.error-page + .site-footer .site-footer__legal {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ==========================================================================
   Fullscreen Screenshot Lightbox Dialog
   ========================================================================== */

dialog {
  width: min(1480px, 95vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid #303c52;
  background: #0c0f15;
  color: #f4f6fa;
  border-radius: 7px;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.65);
}

dialog::backdrop {
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(6px);
}

.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #1e2636;
  font: 500 12px/1 var(--mono);
  color: #d6deec;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b4c0d4;
  padding: 6px 10px;
  border: 1px solid #283246;
  border-radius: 4px;
  font-size: 12px;
  transition: border-color 0.18s, color 0.18s;
}

.dialog-close:hover {
  border-color: var(--brand-dark);
  color: #ffffff;
}

.dialog-close span {
  font-size: 18px;
  line-height: 1;
}

.dialog-stage {
  position: relative;
  background: #090b0f;
}

dialog img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}

.dialog-step {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border: 1px solid #3a4864;
  border-radius: 4px;
  background: rgba(9, 11, 15, 0.85);
  color: #f4f6fa;
  font-size: 18px;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.dialog-step[data-dialog-step="-1"] { left: 16px; }
.dialog-step[data-dialog-step="1"] { right: 16px; }

.dialog-step:hover,
.dialog-step:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #090b0f;
}

/* 404 Page */
.error-page {
  min-height: 100svh;
  align-items: flex-start;
}

.error-page h1 {
  margin: 26px 0 18px;
  font-size: clamp(46px, 7.5vw, 96px);
}

.error-page .button {
  margin-top: 28px;
}

/* ==========================================================================
   Short Desktop Screens (e.g. 1366×768 laptops) — Crisp One-Screen Fit
   ========================================================================== */

@media (min-width: 980px) and (max-height: 820px) {
  :root {
    --header-h: 62px;
  }

  .hero {
    padding-block: 24px 30px;
  }

  .hero-label {
    margin-bottom: 16px;
  }

  .hero-mark {
    padding-bottom: 22px;
  }

  .rp-logo--hero {
    height: clamp(38px, 4.4vw, 54px);
  }

  .hero-layout {
    margin-top: 22px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.4vw, 74px);
  }

  .hero-descriptor {
    font-size: 15.5px;
    margin-top: 16px;
  }

  #workstation {
    padding-block: 26px;
  }

  #workstation .workstation-intro h2 {
    font-size: 36px;
  }

  #workstation .tour-controls {
    margin-top: 16px;
  }

  #workstation .tour-pager [role="tab"] {
    padding: 10px 12px;
  }

  .walkthrough-section {
    padding-block: 24px;
  }

  .walkthrough-head h2 {
    font-size: 38px;
  }

  .walkthrough-embed {
    margin-top: 16px;
  }

  .desk-section {
    padding-block: 30px;
  }

  .desk-features {
    margin-top: 26px;
  }

  .desk-features article {
    padding-top: 20px;
  }

  .desk-features p {
    margin-bottom: 18px;
  }

  /* Intelligence: side-by-side notes column beside schematic on short laptops */
  #intelligence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    column-gap: 34px;
    align-content: center;
    padding-block: 26px;
  }

  #intelligence > .section-heading {
    grid-column: 1 / -1;
  }

  #intelligence h2 {
    font-size: 38px;
  }

  #intelligence .section-heading > p {
    font-size: 14.5px;
  }

  #intelligence > .scenario-pager {
    grid-column: 1;
    margin-top: 16px;
  }

  #intelligence > .ripple-workspace {
    grid-column: 1;
    margin-top: 12px;
  }

  #intelligence .ripple-graph {
    height: 305px;
  }

  #intelligence > .intelligence-notes {
    grid-area: 2 / 2 / 4 / 3;
    margin-top: 16px;
    border-top: 0;
    border-left: 1px solid var(--obsidian-line);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }

  #intelligence .intelligence-notes article,
  #intelligence .intelligence-notes article + article {
    border-left: 0;
    padding: 0;
  }

  .ai-section {
    padding-block: 30px;
  }

  .ai-copy h2 {
    font-size: 40px;
    margin: 12px 0 14px;
  }

  .ai-divider {
    margin: 18px 0;
  }

  .scribe-visual {
    padding-top: 56px;
  }

  .scribe-orbit {
    width: 176px;
    height: 176px;
  }

  .brief-card {
    padding: 20px 24px;
    margin-top: 18px;
  }

  .brief-card h3 {
    font-size: 22px;
    margin: 14px 0 16px;
  }

  .brief-row {
    padding: 11px 8px;
  }

  .rolr-section {
    padding-block: 28px;
  }

  .rolr-copy h2 {
    font-size: 42px;
  }

  .rolr-footer {
    margin-top: 20px;
    padding-top: 14px;
  }

  .faq-section {
    padding-block: 32px;
    gap: 28px 48px;
  }

  .faq-card {
    min-height: 270px;
    padding: 32px 36px;
  }

  .download-section {
    padding-top: 24px;
  }

  .download-grid {
    margin-top: 16px;
  }

  .download-pitch h2 {
    font-size: 52px;
  }

  .signup-perks {
    margin: 20px 0 18px;
  }

  .signup-card {
    padding: 22px 24px;
  }

  .signup-head h3 {
    margin: 8px 0 16px;
    font-size: 23px;
  }

  .signup-chip {
    flex-direction: row;
    padding: 10px 8px;
  }

  .signup-chip svg {
    width: 17px;
    height: 18px;
  }

  .site-footer {
    padding-block: 16px 18px;
  }

  .footer-legal {
    margin-top: 10px;
  }
}

/* ==========================================================================
   Tablet & Narrow Desktop (<= 1120px)
   ========================================================================== */

@media (max-width: 1120px) {
  .section-shell {
    width: calc(100% - 64px);
  }

  .site-header {
    padding-inline: 32px;
  }

  .desktop-nav {
    gap: 18px;
    font-size: 12.5px;
  }

  .hero-layout {
    grid-template-columns: 1fr 250px;
    gap: 32px;
  }

  .product-window {
    width: calc(100% - 64px);
  }

  .desk-features article {
    padding-right: 22px;
  }

  .desk-features article + article {
    padding-left: 22px;
  }

  .rolr-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .walkthrough-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .walkthrough-summary {
    justify-self: start;
    max-width: 560px;
  }

  .download-grid {
    grid-template-columns: 1fr minmax(320px, 400px);
    gap: 40px;
  }
}

@media (max-width: 1040px) {
  .desktop-nav a[href="#desk"],
  .desktop-nav a[href="#ai"],
  .desktop-nav a[href="#faq"] {
    display: none;
  }
}

/* ==========================================================================
   Mobile & Small Tablet (<= 820px)
   ========================================================================== */

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .section-shell {
    width: calc(100% - 40px);
  }

  .site-header {
    padding-inline: 20px;
  }

  .rp-logo--header {
    height: 19px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0d1118;
    border-bottom: 1px solid var(--obsidian-line-strong);
    padding: 8px 20px 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  }

  .mobile-nav a {
    padding: 14px 4px;
    font-size: 15px;
    font-weight: 500;
    color: #d6deec;
    border-bottom: 1px solid var(--obsidian-line);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
    color: var(--brand-dark);
  }

  .mobile-nav a[aria-current] {
    color: var(--brand-dark);
  }

  main > section {
    min-height: auto;
  }

  .band-signal {
    height: 20px;
    bottom: 100%;
    top: auto;
  }

  /* Hero */
  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-block: 36px 48px;
  }

  .hero-label {
    margin-bottom: 20px;
  }

  .hero-mark {
    padding-bottom: 24px;
  }

  .rp-logo--hero {
    height: clamp(32px, 8.6vw, 46px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 26px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 60px);
  }

  .hero-descriptor {
    font-size: 15.5px;
    margin-top: 18px;
  }

  .hero-copy {
    max-width: 360px;
  }

  /* Workstation */
  .product-showcase {
    padding-block: 60px;
  }

  #workstation .tour-pager {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    row-gap: 12px;
    column-gap: 10px;
  }

  #workstation .tour-pager [role="tablist"] {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .tour-pager .tour-step {
    width: 34px;
    height: 34px;
  }

  #workstation .tour-pager .tour-step[data-step="-1"] {
    grid-column: 2;
    grid-row: 2;
  }

  #workstation .tour-pager .tour-step[data-step="1"] {
    grid-column: 3;
    grid-row: 2;
  }

  .tour-controls [role="tab"] {
    text-align: center;
    padding: 12px 4px;
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.25;
  }

  .tour-controls [role="tab"] span {
    display: none;
  }

  .product-window {
    width: calc(100% - 40px);
  }

  .window-chrome {
    padding: 9px 12px;
    font-size: 10px;
  }

  .window-nav,
  .window-live {
    display: none;
  }

  .expand-hint {
    opacity: 1;
    transform: none;
    bottom: 10px;
    right: 10px;
    padding: 6px 9px;
    font-size: 9.5px;
  }

  #tour-panel {
    text-align: center;
  }

  .walkthrough-section {
    padding-block: 60px;
  }

  /* Your Desk */
  .desk-section {
    padding-block: 64px;
  }

  .desk-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .desk-features {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .desk-features article,
  .desk-features article + article {
    border-left: 0;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
  }

  .desk-features article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .desk-features p {
    max-width: none;
    margin-bottom: 20px;
  }

  /* Intelligence */
  .intelligence {
    padding-block: 64px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading > p {
    justify-self: start;
  }

  .scenario-pager {
    gap: 8px;
  }

  .scenario-controls button {
    font-size: 12px;
    padding: 11px 6px;
  }

  .scenario-controls button span {
    display: none;
  }

  /* Mobile Vertical Schematic: crystal clear, zero collision */
  .ripple-graph {
    height: auto;
    padding: 20px 16px 22px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 10px;
  }

  .ripple-graph > svg {
    display: none;
  }

  .graph-node {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    padding: 14px 14px;
  }

  .headline-node {
    grid-column: 1 / -1;
  }

  .entity-one {
    grid-column: 1 / 4;
  }

  .entity-two {
    grid-column: 4 / 7;
  }

  .market-one {
    grid-column: 1 / -1;
  }

  .market-two {
    grid-column: 1 / -1;
  }

  .market-three {
    grid-column: 1 / -1;
  }

  .entity-node::before,
  .market-one::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 1px;
    height: 18px;
    background: #3a4a69;
  }

  .market-one::before {
    background: #2b6b4f;
  }

  .intelligence-notes {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .intelligence-notes article,
  .intelligence-notes article + article {
    border-left: 0;
    padding: 18px 0 0;
  }

  /* AI Section */
  .ai-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 64px;
  }

  .scribe-visual {
    padding-top: 66px;
  }

  .scribe-orbit {
    width: 188px;
    height: 188px;
  }

  .brief-card {
    padding: 22px 20px;
  }

  /* ROLR */
  .rolr-section {
    padding-block: 64px;
  }

  .rolr-shot:hover {
    transform: none;
  }

  .rolr-shot-caption {
    font-size: 10.5px;
  }

  /* FAQ */
  .faq-section {
    padding-block: 64px;
    gap: 24px;
  }

  /* Early Access & Footer */
  .download-section {
    padding-top: 64px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .signup-card {
    padding: 24px 20px;
  }

  #inline-email {
    font-size: 16px;
  }

  .site-footer {
    margin-top: 48px;
    padding-block: 24px 32px;
  }

  .footer-row {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .dialog-step {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 15px;
  }

  .dialog-step[data-dialog-step="-1"] { left: 8px; }
  .dialog-step[data-dialog-step="1"] { right: 8px; }
}

/* ==========================================================================
   Reduced Motion & Motion-Paused Override
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-grid {
    display: none;
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}

.motion-paused {
  scroll-behavior: auto;
}

.motion-paused .reveal {
  opacity: 1;
  transform: none;
}

.motion-paused .cursor-grid {
  display: none;
}
