/* urmode.it product site — static, no build.
   Look = the app's New dashboard: the [data-ui="new"] tokens in src/styles/variables.css
   (charcoal + warm ink, ONE teal accent, IBM Plex, 7–8 px radii, flat bordered surfaces).
   Change both together. */
:root {
  /* dark — [data-ui="new"] */
  --bg: #16191E;
  --bg-2: #1D2127;
  --bg-3: #262B32;
  --sunken: #121418;
  --border: #2C3139;
  --border-strong: #3A4049;
  --divider: #23272D;
  --text: #F1EFEA;
  --text-2: #A3AAB5;
  --text-active: #D8DCE2;
  --muted: #7A818C;
  --accent: #3FB7AE;
  --accent-hover: #5FCBC3;
  --accent-contrast: #0B1F1D;
  --accent-tint: rgba(63, 183, 174, 0.12);
  --surface: rgba(241, 239, 234, 0.05);
  --surface-strong: rgba(241, 239, 234, 0.1);
  --shadow: rgba(0, 0, 0, 0.4);
  /* light — [data-ui="new"][data-theme="light"] */
  --l-bg: #FAF9F7;
  --l-card: #FFFFFF;
  --l-sunken: #F1EFEA;
  --l-text: #1B1E23;
  --l-text-2: #5B616B;
  --l-accent: #0E6E6A;
  --l-border: #E2E0DB;
  --radius: 8px;
  --radius-control: 7px;
  --max: 1720px;
  --gutter: clamp(20px, 4vw, 72px);
  --nav-h: 72px;
  --font: 'IBM Plex Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* No CSS smooth scrolling: main.js glides between pages; a second scroll animation fights it (flicker). */
/* While a glide runs nothing under the still mouse may react — hover lifts flashed card by card. */
html.paged body { pointer-events: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── Buttons (app: flat, 7 px, teal primary) ─────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-control);
  font: 600 15px var(--font); border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn svg { width: 16px; height: 16px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--bg); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; height: 100%; }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav-links a.on { color: var(--text); border-color: var(--accent); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-control); padding: 2px; background: var(--sunken);
}
.lang button {
  border: 0; background: transparent; color: var(--muted); font: 600 12px var(--mono);
  padding: 5px 10px; border-radius: 5px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.lang button { padding: 6px 10px; font-size: 12px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 480px) { .nav .btn span { display: none; } .nav-inner { gap: 12px; } .nav-logo img { height: 17px; } }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -10% -10% auto -10%; height: 820px; pointer-events: none;
  background: radial-gradient(700px 420px at 50% 20%, rgba(63, 183, 174, .13), transparent 70%);
}
.hero::after {
  /* faint map grid, like the app's basemap under the panels */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--divider) 1px, transparent 1px), linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 72px); align-items: center; text-align: left; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 8px 16px; border-radius: 999px; font: 600 14px var(--font); letter-spacing: .01em;
  background: var(--accent-tint); color: var(--accent); border: 1px solid rgba(63, 183, 174, .3);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(36px, 3.7vw, 62px); font-weight: 600; max-width: 14ch; margin: 0; letter-spacing: -0.03em; line-height: 1.04; }
.grad { color: var(--accent); }
.hero .lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-2); max-width: 560px; margin: 24px 0 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-copy .btn { padding: 12px 22px; font-size: 15px; }
.cta .hero-cta { justify-content: center; }
.hero-note { margin-top: 16px; font: 400 12.5px var(--mono); color: var(--muted); }

/* App window mock-up — same surfaces as the New dashboard */
.window {
  position: relative; border-radius: 10px; overflow: hidden; text-align: left;
  background: var(--bg); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.3);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--sunken); border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-url { margin-left: 12px; font: 400 12px var(--mono); color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); padding: 3px 12px; border-radius: 6px; }
.window-body { position: relative; display: grid; grid-template-columns: 240px 1fr; aspect-ratio: 16 / 10; }
.window-body .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.mock-side { background: var(--bg); border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.mock-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mock-tabs span { padding: 3px 8px; border-radius: 6px; color: var(--text-2); font-size: 11px; }
.mock-tabs span.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.mock-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 10px; }
.mock-card b { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mock-row { display: flex; align-items: center; gap: 8px; color: var(--text-active); font-size: 11.5px; margin: 5px 0; }
.mock-row .sw { width: 18px; height: 3px; border-radius: 2px; }
.mock-bar { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; margin-top: 4px; }
.mock-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); animation: grow 3s ease-in-out infinite alternate; }
.mock-btn { margin-top: auto; text-align: center; padding: 7px; border-radius: var(--radius-control); font-weight: 600; color: var(--accent-contrast); background: var(--accent); }
.mock-map { position: relative; overflow: hidden; background: var(--sunken); }
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Real basemap (scripts/build-site-hero.mjs) — img and svg both "cover" centred, so the lines stay on the streets */
.mock-map .map-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-attrib { position: absolute; z-index: 2; left: 50%; bottom: 4px; transform: translateX(-50%); font: 400 9.5px var(--mono); color: var(--muted); opacity: .8; white-space: nowrap; }
.map-chip {
  position: absolute; z-index: 2; background: rgba(22, 25, 30, .96); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; font-size: 11.5px; color: var(--text-2);
  box-shadow: 0 10px 24px -10px var(--shadow);
}
.map-chip strong { display: block; font: 500 19px var(--mono); color: var(--text); }
.chip-a { top: 16px; right: 16px; animation: float 6s ease-in-out infinite; }
.chip-b { bottom: 16px; left: 16px; animation: float 7s ease-in-out infinite reverse; }
.chip-ai { bottom: 16px; right: 16px; max-width: 250px; color: var(--text-active); animation: float 8s ease-in-out infinite; }
.chip-ai em { font-style: normal; color: var(--accent); font-weight: 600; display: block; font-size: 10.5px; margin-bottom: 3px; letter-spacing: .04em; }
@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; aspect-ratio: 4 / 3.4; }
  .mock-side { display: none; }
  .chip-ai { display: none; }
}

/* SVG map animation */
.route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.route-flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 18; animation: flow 1.6s linear infinite; stroke: rgba(241,239,234,.8); }
.iso { animation: breathe 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.iso.d2 { animation-delay: .6s; } .iso.d3 { animation-delay: 1.2s; }
.stop { fill: var(--text); }
.heat { animation: blink 4s ease-in-out infinite; }

/* ── Stats ───────────────────────────────────────────────── */
.hero-stats { position: relative; z-index: 1; margin-top: clamp(32px, 5vh, 56px); }
.hero-stats .stats-grid { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 500 26px var(--mono); color: var(--accent); letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ── Sections ────────────────────────────────────────────── */
section { position: relative; }
.section { padding: 104px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 17px; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(40px, 5vw, 96px); align-items: center; margin-bottom: 104px; }
.spot:last-child { margin-bottom: 0; }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 16px; }
.spot-text > p { color: var(--text-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--text-active); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 3px;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FB7AE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.spot-visual {
  position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4;
  background: var(--sunken); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -36px rgba(0,0,0,.9);
}
.spot-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot-visual .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; gap: 32px; margin-bottom: 76px; }
  .spot.flip .spot-text { order: 0; }
}

/* Feature grid — the app's section cards */
.features { background: var(--sunken); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 24px 22px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .15s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.icon {
  width: 40px; height: 40px; border-radius: var(--radius-control); display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-tint); color: var(--accent);
}
.icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card .tags span { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--bg-3); color: var(--text-active); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* Steps — the app's ① ② ③ stages */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 18px;
  font: 600 14px var(--mono); color: var(--accent); border: 1.5px solid var(--accent); background: var(--accent-tint);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Light band — the app's light theme */
.light { background: var(--l-bg); color: var(--l-text); }
.light .section-head p, .light .who p { color: var(--l-text-2); }
.light .kicker { color: var(--l-accent); }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who { background: var(--l-card); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--l-border); transition: border-color .15s ease, transform .2s ease; }
.who:hover { border-color: var(--l-accent); transform: translateY(-3px); }
.who .icon { background: rgba(14, 110, 106, .09); color: var(--l-accent); }
.who h3 { font-size: 17px; margin-bottom: 8px; }
.who p { font-size: 14.5px; }
@media (max-width: 980px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* AI chat — the Ask URMODE window */
.chat { position: absolute; inset: 22px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(10px); }
.in .msg { animation: msgIn .6s ease forwards; }
.msg.user { align-self: flex-end; background: var(--accent-tint); border: 1px solid rgba(63,183,174,.35); color: var(--text); }
.msg.bot { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-active); }
.msg.bot b { color: var(--accent); font-weight: 600; }
.in .msg:nth-child(2) { animation-delay: .9s; } .in .msg:nth-child(3) { animation-delay: 2s; } .in .msg:nth-child(4) { animation-delay: 2.9s; }
.ai-models { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ai-models span { font: 500 12.5px var(--mono); padding: 4px 11px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-2); }

/* Outputs */
.outputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.out { text-align: center; padding: 24px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); }
.out .icon { margin: 0 auto 14px; }
.out h3 { font-size: 15px; margin-bottom: 6px; }
.out p { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 980px) { .outputs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .outputs { grid-template-columns: repeat(2, 1fr); } }

/* Gallery (real screenshots — hidden until MEDIA lists some) */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.gallery img, .gallery video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 12px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(63,183,174,.16), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-strong);
}
.cta h2 { font-size: clamp(28px, 4.2vw, 46px); max-width: 20ch; margin: 0 auto; }
.cta p { color: var(--text-2); font-size: 17px; max-width: 540px; margin: 16px auto 0; }
.cta .hero-cta { margin-top: 30px; }
@media (max-width: 600px) { .cta { padding: 52px 20px; } }

/* Footer */
footer { padding: 40px 0 0; border-top: 1px solid var(--border); margin-top: 64px; color: var(--text-2); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot img { height: 18px; width: auto; margin-bottom: 12px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--accent); }
.copy { margin-top: 32px; font: 400 12px var(--mono); color: var(--muted); }

/* Reveal on scroll */
/* Fade-in only in the first screen; below it content is simply there (fading while a page glides in flickered). */
.hero .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hero .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .75; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes grow { from { width: 35%; } to { width: 88%; } }
@keyframes msgIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
}

/* ── Hero stacks on narrow screens ───────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 720px; margin: 0 auto; }
  .hero h1 { margin: 0 auto; }
  .hero .lead { margin: 24px auto 0; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 600px) { :root { --nav-h: 64px; } .nav-logo img { height: 20px; } }

/* ── Pages: one wheel flick / arrow key = next page (main.js pager), desktop + tablet ── */
@media (min-width: 900px) and (min-height: 620px) {
  .page {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 20px) 0 32px;
  }
  .page > .wrap { width: 100%; }
  .page .section-head { margin-bottom: clamp(20px, 3.4vh, 36px); }
  .page .section-head h2 { font-size: clamp(26px, 2.6vw, 40px); }
  .features .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .features .card { padding: 16px 16px 14px; }
  .features .icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .features .icon svg { width: 18px; height: 18px; }
  .features .card h3 { font-size: 15.5px; margin-bottom: 6px; }
  .features .card p { font-size: 13px; line-height: 1.5; }
  .features .card .tags { margin-top: 10px; }
  .page .spot-visual { aspect-ratio: 5 / 4; width: min(100%, calc(52vh * 1.25), 680px); justify-self: center; }
  .page-end .spot-visual { aspect-ratio: auto; width: 100%; height: min(34vh, 340px); }
  .page-end .spot-text h3 { font-size: clamp(22px, 2.2vw, 30px); }
  .page-end .spot-text > p { font-size: 15.5px; }
  .page-end .ticks { margin-top: 16px; gap: 8px; }
  .page-end .ai-models { margin-top: 16px; }
}
@media (min-width: 900px) and (min-height: 620px) and (max-height: 900px) {
  .features .card .tags { display: none; }
  .features .section-head p { display: none; }
}

/* Short screens (laptops ~768–900 px tall): tighter so each page still fits one screen */
@media (min-width: 900px) and (min-height: 620px) and (max-height: 920px) {
  .page { padding: calc(var(--nav-h) + 8px) 0 16px; }
  .page-end footer { margin-top: 14px; padding-top: 12px; }
  .page-end .cta { margin-top: 18px; padding: 22px 28px; }
  .page-end .spot-visual { height: min(30vh, 300px); }
}
@media (min-width: 900px) and (min-height: 620px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(32px, 3.2vw, 50px); }
  .hero .lead { font-size: 15.5px; margin-top: 16px; }
  .hero-cta { margin-top: 22px; }
  .eyebrow { margin-bottom: 16px; }
  .window-body { aspect-ratio: 16 / 9; }
  .hero-stats { margin-top: 18px; }
  .stat { padding: 10px 14px; }
  .stat strong { font-size: 21px; }
  .page .section-head { margin-bottom: 16px; }
  .page .section-head h2 { font-size: clamp(22px, 2.2vw, 32px); }
  .hl-tabs { margin-bottom: 16px; }
  .page .spot-visual { width: min(100%, calc(46vh * 1.25), 620px); }
  .spot-text h3 { font-size: 24px; margin-bottom: 10px; }
  .spot-text > p { font-size: 15px; }
  .ticks { margin-top: 14px; gap: 7px; font-size: 14.5px; }
  .features .card { padding: 12px 14px; }
  .features .icon { display: none; }
  .features .card p { font-size: 12.5px; }
  .page#how .section-head p { display: none; }
  .section-head.sub { margin-top: 22px; }
  .page#how .step, .page#how .who { padding: 14px 16px; }
  .page#how .who .icon { display: none; }
  .page#how .who p, .page#how .step p { font-size: 13px; }
  .page-end .cta p { display: none; }
  .page-end .cta .hero-cta { margin-top: 12px; }
  .page-end .spot-visual { height: min(32vh, 260px); }
  .page-end .ticks { margin-top: 10px; }
  .page-end .ai-models { display: none; }
}

/* ── Highlights: three cards side by side ────────────────── */
.hl-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 24px); }
.hl-card { display: flex; }
.hl-card .spot {
  display: flex; flex-direction: column; gap: 0; margin: 0; width: 100%;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: border-color .15s ease, transform .2s ease;
}
.hl-card .spot:hover { border-color: var(--accent); transform: translateY(-3px); }
.hl-card .spot-visual {
  order: -1; width: 100% !important; height: auto; aspect-ratio: 16 / 10 !important;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
.hl-card .spot-text { padding: clamp(14px, 2vh, 22px) clamp(16px, 1.4vw, 22px) clamp(16px, 2.2vh, 24px); }
.hl-card .kicker { margin-bottom: 8px; }
.hl-card .spot-text h3 { font-size: clamp(17px, 1.35vw, 22px); margin-bottom: 8px; }
.hl-card .spot-text > p { font-size: 14px; line-height: 1.55; }
.hl-card .ticks { margin-top: 12px; gap: 6px; font-size: 13.5px; }
.hl-card .ticks li::before { width: 17px; height: 17px; margin-top: 2px; background-size: 10px; }
@media (max-width: 1100px) { .hl-panels { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }
@media (min-width: 900px) and (min-height: 620px) and (max-height: 920px) {
  .hl-card .spot-visual { aspect-ratio: 16 / 8 !important; }
  .hl-card .spot-text > p { display: none; }
}
@media (min-width: 900px) and (min-height: 620px) and (max-height: 820px) {
  .hl-card .spot-visual { aspect-ratio: 16 / 7 !important; }
  .hl-card .ticks { font-size: 12.5px; gap: 4px; margin-top: 8px; }
}

/* ── How + Who on one light page ─────────────────────────── */
.light .step { background: var(--l-card); border-color: var(--l-border); }
.light .step p { color: var(--l-text-2); }
.light .step::before { color: var(--l-accent); border-color: var(--l-accent); background: rgba(14, 110, 106, .08); }
.section-head.sub { margin-top: clamp(32px, 6vh, 64px); }
.page .section-head.sub h2 { font-size: clamp(22px, 2vw, 30px); }
.page#how .section-head p { font-size: 15.5px; margin-top: 10px; }
.page#how .step { padding: 20px 22px; }
.page#how .step::before { width: 28px; height: 28px; font-size: 13px; margin-bottom: 12px; }
.page#how .step h3 { font-size: 17px; margin-bottom: 6px; }
.page#how .step p { font-size: 14px; }
.page#how .who { padding: 20px 20px; }
.page#how .who .icon { width: 34px; height: 34px; margin-bottom: 12px; }

/* ── Last page: AI + start + footer ──────────────────────── */
.page-end { justify-content: flex-start; }
.page-end > .wrap { margin-top: auto; }
.page-end footer { margin-top: auto !important; }
.page-end .cta { margin-top: clamp(24px, 5vh, 48px); padding: clamp(28px, 5vh, 48px) 32px; }
.page-end .cta h2 { font-size: clamp(22px, 2.2vw, 32px); max-width: none; }
.page-end .cta p { font-size: 15.5px; margin-top: 8px; }
.page-end .cta .hero-cta { margin-top: 20px; }
.page-end footer { margin-top: 24px; padding: 20px 0 0; }
.page-end footer .copy { margin-top: 14px; }

/* ── Page dots ───────────────────────────────────────────── */
.pager { position: fixed; right: clamp(10px, 1.4vw, 28px); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.pager button {
  position: relative; width: 10px; height: 10px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: transparent; transition: height .25s ease, background .2s ease, border-color .2s ease;
}
.pager button:hover { border-color: var(--accent); }
.pager button[aria-current=true] { height: 28px; background: var(--accent); border-color: var(--accent); }
.pager button::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font: 500 12px var(--font); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.pager button:hover::after { opacity: 1; }
.pager.on-light button { border-color: #CFCBC2; }
.pager.on-light button[aria-current=true] { background: var(--l-accent); border-color: var(--l-accent); }
@media (max-width: 899px) { .pager { display: none; } }
