/* ==========================================================================
   APPS 365 - SharePoint Productivity Apps
   Design system: "unified premium". Plus Jakarta Sans + Inter + JetBrains Mono.
   Brand indigo primary, warm coral accent, per-product accent theming.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0f1222;
  --ink-fixed:  #0f1222;   /* always-dark surface (does NOT invert in dark mode) */
  --ink-2:      #2a2e45;
  --muted:      #5b6076;
  --faint:      #8a90a6;
  --line:       #e7e8f0;
  --line-2:     #eef0f6;
  --bg:         #ffffff;
  --surface:    #f7f7fb;
  --surface-2:  #f1f2f8;
  --card:       #ffffff;

  --brand:      #5b4be1;   /* electric indigo */
  --brand-2:    #7c6bf0;   /* lighter violet  */
  --brand-ink:  #3a2fb0;
  --brand-soft: #efeafe;
  --accent:     #ff6a3d;   /* warm coral      */
  --accent-2:   #ff8a5b;

  --save:       #16a34a;   /* success green   */
  --save-soft:  #e6f6ec;

  --grad:       linear-gradient(120deg, #5b4be1 0%, #7c6bf0 55%, #9f7cf5 100%);
  --grad-warm:  linear-gradient(120deg, #ff6a3d 0%, #ff8a5b 100%);

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --shadow-sm:  0 1px 2px rgba(16,18,34,.06), 0 2px 8px rgba(16,18,34,.05);
  --shadow:     0 10px 30px -12px rgba(23,20,60,.22);
  --shadow-lg:  0 30px 70px -28px rgba(23,20,60,.35);
  --ring:       0 0 0 4px rgba(91,75,225,.16);

  --container:  1200px;
  --gutter:     clamp(16px, 4vw, 40px);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

:root[data-theme="dark"] {
  --ink:        #f3f4fb;
  --ink-fixed:  #171a2e;
  --ink-2:      #d6d8e6;
  --muted:      #a2a7bd;
  --faint:      #7b8098;
  --line:       #262a40;
  --line-2:     #202336;
  --bg:         #0c0e1a;
  --surface:    #11131f;
  --surface-2:  #171a2a;
  --card:       #191c2e;
  --brand-soft: #211d3f;
  --save-soft:  #12251a;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 18px 40px -18px rgba(0,0,0,.6);
  --shadow-lg:  0 40px 80px -30px rgba(0,0,0,.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:#f3f4fb; --ink-fixed:#171a2e; --ink-2:#d6d8e6; --muted:#a2a7bd; --faint:#7b8098;
    --line:#262a40; --line-2:#202336; --bg:#0c0e1a; --surface:#11131f;
    --surface-2:#171a2a; --card:#191c2e; --brand-soft:#211d3f; --save-soft:#12251a;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow:0 18px 40px -18px rgba(0,0,0,.6);
    --shadow-lg:0 40px 80px -30px rgba(0,0,0,.7);
  }
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
strong { font-weight: 700; }
::selection { background: rgba(91,75,225,.18); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
/* First section on a page starts closer to the top (top spacing halved) */
main > section.section:first-child { padding-top: clamp(28px, 4vw, 60px); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink-fixed); color: #fff; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--grad-warm); }
.eyebrow--light { color: #c9c3ff; }

/* ---------- Headings scale ---------- */
.h-display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.02; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.6; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head.center { margin-inline: auto; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(91,75,225,.6); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(91,75,225,.7); }
.btn--accent { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,106,61,.6); }
.btn--accent:hover { color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); }
.btn--on-ink { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--on-ink:hover { color: #fff; background: rgba(255,255,255,.26); border-color: #fff; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
/* Product Tour - attention button: coral accent (btn--accent) + pulsing ring.
   The ring keyframes keep the accent drop-shadow in every frame so it is not lost. */
.btn--tour { animation: tourPulse 1.8s cubic-bezier(.4,0,.6,1) infinite; }
.btn--tour svg { width: 15px; height: 15px; }
@keyframes tourPulse {
  0%   { box-shadow: 0 10px 24px -10px rgba(255,106,61,.6), 0 0 0 0 rgba(255,106,61,.55); }
  70%  { box-shadow: 0 10px 24px -10px rgba(255,106,61,.6), 0 0 0 14px rgba(255,106,61,0); }
  100% { box-shadow: 0 10px 24px -10px rgba(255,106,61,.6), 0 0 0 0 rgba(255,106,61,0); }
}
@media (prefers-reduced-motion: reduce) { .btn--tour { animation: none; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* AppSource badge button */
.btn-appsource {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  border-radius: 12px; background: #fff; color: #1b1b1b; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.btn-appsource:hover { color: #1b1b1b; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-appsource .ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 20px; height: 20px; flex: none; }
.btn-appsource .ms-grid i { display: block; border-radius: 1px; }
.btn-appsource .ms-grid i:nth-child(1){ background:#f25022; }
.btn-appsource .ms-grid i:nth-child(2){ background:#7fba00; }
.btn-appsource .ms-grid i:nth-child(3){ background:#00a4ef; }
.btn-appsource .ms-grid i:nth-child(4){ background:#ffb900; }
.btn-appsource small { display: block; font-size: .66rem; color: var(--faint); font-family: var(--font-body); font-weight: 500; line-height: 1.1; }
.btn-appsource b { display: block; font-size: .92rem; line-height: 1.15; }

/* AppSource star rating (real ratings, links to the listing) */
.apprating { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-family: var(--font-body); }
.apprating:hover { color: var(--ink); }
.apprating:hover .apprating__txt { text-decoration: underline; }
.apprating__txt b { color: var(--ink); font-weight: 700; }
.apprating__stars { --pct: 100%; position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; flex: none; }
.apprating__stars::before { content: "\2605\2605\2605\2605\2605"; color: var(--line-2); }
.apprating__stars::after { content: "\2605\2605\2605\2605\2605"; color: #f5a623; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; white-space: nowrap; }

/* ---------- Real app-icon images ---------- */
img.app-icon { object-fit: cover; background: transparent; padding: 0; color: transparent; }
img.prodcard__ico { box-shadow: 0 10px 24px -12px rgba(16,18,34,.4); }
img.pbadge__ico, img.viz-tile__ico, img.menu__ico { box-shadow: none; }
.viz-tile img.viz-tile__ico { border-radius: 9px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
@media (max-width: 520px) { .brand__logo { height: 40px; } }
.brand__name { font-size: 1.12rem; line-height: 1; }
.brand__name b { color: var(--brand); }

/* socials */
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #c3c6da; transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 9px 13px; border-radius: 10px; position: relative; white-space: nowrap; }
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { display:block; width:18px; height:2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--ink); border-radius:2px; transition:.2s; }
.nav__burger span::before { top:-6px; } .nav__burger span::after { top:6px; }

/* dropdown */
.has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px; width: 560px; opacity: 0; visibility: hidden; transition: .18s ease; z-index: 120;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg);
}
.has-menu:hover .nav__menu, .has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu__item { display: flex; gap: 12px; padding: 11px; border-radius: 12px; align-items: flex-start; }
.menu__item:hover { background: var(--surface); }
.menu__ico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; }
.menu__ico svg { width: 20px; height: 20px; }
.menu__t { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.menu__d { font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.menu__foot { grid-column: 1 / -1; margin-top: 4px; padding: 12px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }

/* mobile menu */
.mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 6vw, 80px); }
/* Decorative layers must never intercept clicks (let them pass to content beneath) */
.hero__bg, .hero__bg::before, .hero__bg::after, .hero__bg .aurora,
.phero__bg, .phero__bg::before, .bundle::before, .viz-badge,
.stage-imgmap .grid-lines, .mockup__bar { pointer-events: none; }

.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 80%;
  background:
    radial-gradient(45% 55% at 78% 20%, rgba(124,107,240,.28), transparent 70%),
    radial-gradient(40% 50% at 15% 10%, rgba(255,106,61,.16), transparent 70%);
  filter: blur(10px);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 44ch; }
.hero__cta { margin-top: 30px; }
.hero__trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; color: var(--faint); font-size: .86rem; }
.hero__trust b { color: var(--ink-2); }
.hero__trust svg { width: 18px; height: 18px; flex: none; color: var(--accent, var(--brand)); }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--save); box-shadow: 0 0 0 4px var(--save-soft); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* animated hero aurora */
.hero__bg .aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero__bg .a1 { width: 460px; height: 460px; top: -160px; right: -60px; background: radial-gradient(circle, #7c6bf0, transparent 65%); animation: float1 14s ease-in-out infinite; }
.hero__bg .a2 { width: 380px; height: 380px; top: 40px; left: -120px; background: radial-gradient(circle, #ff6a3d, transparent 62%); opacity: .32; animation: float2 18s ease-in-out infinite; }
.hero__bg .a3 { width: 300px; height: 300px; bottom: -120px; left: 40%; background: radial-gradient(circle, #2ec5c5, transparent 62%); opacity: .22; animation: float1 16s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-24px,26px) scale(1.08); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(30px,-20px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero__bg .aurora { animation: none; } }

/* hero product tiles visual */
.hero__viz { position: relative; }
.viz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px; position: relative;
}
.viz-card__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.viz-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.viz-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.viz-tile { border-radius: 14px; padding: 14px 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line-2)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); display: flex; flex-direction: column; gap: 10px; min-height: 92px; transition: transform .25s ease, box-shadow .25s ease; }
.viz-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.viz-tile__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.viz-tile__ico svg { width: 18px; height: 18px; }
.viz-tile b { font-family: var(--font-display); font-size: .82rem; color: var(--ink); line-height: 1.1; }
.viz-badge {
  position: absolute; right: -14px; bottom: -16px; background: var(--ink-fixed); color: #fff;
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-family: var(--font-display);
  display: flex; align-items: center; gap: 10px;
}
.viz-badge b { font-size: 1.15rem; } .viz-badge small { color: #b9bdd0; font-size: .72rem; display: block; }
.viz-badge .save { color: #6ee7a0; }

/* ---------- "In action" stage ---------- */
.stage { position: relative; max-width: 960px; margin-inline: auto; }
.stage-frame { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg); position: relative; }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage-bar .u { margin-left: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.85); }

.stage-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: color-mix(in srgb, #F59E0B 14%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, #F59E0B 26%, var(--line-2)); border-left: 4px solid #F59E0B; }
.stage-alert b { font-family: var(--font-display); font-size: .9rem; color: var(--ink); }
.stage-tabs { display: flex; align-items: center; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line-2); position: relative; }
.stage-tabs a { padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stage-tabs a.on { color: #8B5CF6; border-color: #8B5CF6; }
.stage-tabs .pill { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: #8B5CF6; }
.stage-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; padding: 18px; }
.stage-main > * { min-width: 0; }
.stage-imgmap { position: relative; border-radius: 14px; min-height: 220px; background: linear-gradient(135deg, #ffe3d6, #ffd0be 40%, #e9d5ff); overflow: hidden; }
:root[data-theme="dark"] .stage-imgmap, :root:not([data-theme="light"]) .stage-imgmap { background: linear-gradient(135deg, #3a2018, #2a1f3a); }
.stage-imgmap .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb,#E8562A 20%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb,#E8562A 20%, transparent) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; }
.stage-imgmap .hs { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #E8562A; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); transform: translate(-50%,-50%); }
.stage-imgmap .hs::after { content:""; position:absolute; inset:-8px; border-radius:50%; border:2px solid #E8562A; opacity:.5; animation: pulse2 2.2s ease-out infinite; }
@keyframes pulse2 { 0%{ transform: scale(.6); opacity:.6 } 100%{ transform: scale(1.5); opacity:0 } }
.stage-imgmap .pill { position: absolute; left: 12px; bottom: 12px; background: #E8562A; }
.stage-launch { position: relative; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: var(--surface); }
.stage-launch .pill { position: absolute; right: 12px; top: 12px; background: #2E7DF6; }
.stage-launch h5 { font-family: var(--font-display); font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 12px; }
.stage-launch .lg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage-launch .lt { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px; font-size: .72rem; font-weight: 500; color: var(--ink-2); }
.stage-launch .lt span { width: 20px; height: 20px; border-radius: 5px; flex: none; display: grid; place-items: center; }
.stage-launch .lt span svg { width: 12px; height: 12px; }
.stage-popup { position: absolute; right: -14px; bottom: -18px; width: 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; z-index: 3; }
.stage-popup .pill { position: absolute; right: 12px; top: 12px; background: #EC4899; }
.stage-popup .ic { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb,#EC4899 16%, transparent); color: #EC4899; display: grid; place-items: center; margin-bottom: 10px; }
.stage-popup .ic svg { width: 18px; height: 18px; }
.stage-popup b { font-family: var(--font-display); font-size: .92rem; display: block; }
.stage-popup p { font-size: .78rem; color: var(--muted); margin: 4px 0 10px; }
.stage-popup .cta { display: inline-block; background: #EC4899; color: #fff; font-size: .74rem; font-family: var(--font-display); font-weight: 600; padding: 7px 13px; border-radius: 8px; }
@media (max-width: 640px) {
  .stage-main { grid-template-columns: 1fr; }
  .stage-popup { position: static; width: auto; margin: 0 18px 18px; }
}

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; color: var(--faint); }
.logos span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; opacity: .7; }

/* ---------- Problem cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand); }
.card__ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- Product cards (accent-themed) ---------- */
.prodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prodcard {
  --accent: var(--brand);
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.prodcard::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: var(--accent); opacity:.9; }
.prodcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.prodcard__ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 10px 22px -10px var(--accent); margin-bottom: 18px; }
.prodcard__ico svg { width: 25px; height: 25px; }
.prodcard__group { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.prodcard h3 { margin: 6px 0 8px; font-size: 1.28rem; }
.prodcard p { color: var(--muted); font-size: .96rem; flex: 1; }
.prodcard__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.prodcard__link { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.prodcard:hover .prodcard__link svg { transform: translateX(3px); }
.prodcard__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.prodcard__from { font-size: .82rem; color: var(--faint); }
.prodcard__from b { color: var(--ink); font-family: var(--font-display); }

/* ---------- Bundle band ---------- */
.bundle { position: relative; overflow: clip; background: var(--ink-fixed); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px); }
.bundle::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 90% at 85% 20%, rgba(124,107,240,.35), transparent 65%), radial-gradient(50% 70% at 10% 90%, rgba(255,106,61,.22), transparent 60%); }
.bundle__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,48px); align-items: center; }
.bundle__inner > * { min-width: 0; }
.bundle h2 { color: #fff; }
.bundle p { color: #c9cbe0; }
.bundle .eyebrow { color: #c9c3ff; }
.bundle .eyebrow::before { background: linear-gradient(90deg,#9f7cf5,#ff8a5b); }
.savecard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px); }
.savecard__row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.savecard__row:last-of-type { border: 0; }
.savecard__row span { color: #b9bdd0; }
.savecard__row b { font-family: var(--font-display); font-size: 1.05rem; }
.savecard__save { margin-top: 14px; background: rgba(110,231,160,.14); border: 1px solid rgba(110,231,160,.3); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.savecard__save b { color: #7ff0ab; font-family: var(--font-display); font-size: 1.35rem; }
.strike { text-decoration: line-through; color: #8f93ab; }

/* ---------- Feature list (product page) ---------- */
.features { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.feature { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.feature__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.feature__ico svg { width: 20px; height: 20px; }
.feature b { font-family: var(--font-display); display: block; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* checklist */
.checks { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check svg { width: 22px; height: 22px; flex: none; color: var(--accent, var(--brand)); margin-top: 1px; }
.check span { color: var(--ink-2); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }

/* ---------- Product hero ---------- */
.phero { --accent: var(--brand); position: relative; overflow: clip; padding: clamp(22px,3vw,42px) 0 clamp(30px,4vw,56px); }
.phero__bg { position:absolute; inset:0; z-index:-1; }
.phero__bg::before { content:""; position:absolute; inset:-30% -10% 40% -10%; background: radial-gradient(45% 60% at 80% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); filter: blur(12px); }
.phero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,56px); align-items: center; }
.phero__grid > * { min-width: 0; }
.pbadge { display: inline-flex; align-items: center; gap: 10px; }
.pbadge__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 12px 24px -10px var(--accent); }
.pbadge__ico svg { width: 24px; height: 24px; }
.pbadge__grp { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.pbadge__grp small { display:block; color: var(--faint); letter-spacing: .04em; }
.phero h1 { margin: 20px 0 16px; font-size: clamp(2rem,4.4vw,3.2rem); }
.mockup { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; }
.mockup__bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup__url { margin-left: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 10px; }
.mockup__body { padding: 22px; min-height: 260px; display: grid; place-items: center; }

/* ---------- Proof band ---------- */
.quote { border-left: 3px solid var(--accent, var(--brand)); padding: 6px 0 6px 22px; }
.quote p { font-family: var(--font-display); font-size: clamp(1.15rem,2vw,1.5rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
.quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: .92rem; }
.quote cite b { color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem,3.4vw,2.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; margin-top: 6px; display: block; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.plan--feat { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--feat::before { content:""; position:absolute; inset:0; border-radius: var(--radius); padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .74rem; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 2px; }
.plan__price b { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: -.03em; }
.plan__price span { color: var(--faint); font-size: .9rem; }
.plan__meta { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--save); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- Comparison table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.compare thead th { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: var(--surface); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 500; color: var(--ink); }
table.compare .price { font-family: var(--font-display); font-weight: 700; }
table.compare .tag { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; padding:3px 9px; border-radius:999px; background: var(--brand-soft); color: var(--brand); font-weight:600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 22px; height: 22px; flex: none; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content:""; position:absolute; top:50%; left:50%; width:12px; height:2px; background: var(--brand); border-radius:2px; transform: translate(-50%,-50%); transition: .2s; }
.faq summary .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq details[open] summary .plus::after { transform: translate(-50%,-50%) rotate(0); opacity: 0; }
.faq p { color: var(--muted); padding: 0 0 18px; }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: clip; background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px,6vw,72px); text-align: center; }
.ctaband::after { content:""; position:absolute; inset:0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); }
.ctaband > * { position: relative; }
.ctaband h2 { color: #fff; }
.ctaband p { color: rgba(255,255,255,.88); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 13px 16px; border-radius: 12px; font-size: .92rem; }
.flash--ok { background: var(--save-soft); color: #14663a; border: 1px solid #b7e3c6; }
.flash--err { background: #fdecec; color: #a12020; border: 1px solid #f4c4c4; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-fixed); color: #c3c6da; padding: clamp(48px,6vw,80px) 0 32px; }
.footer a { color: #c3c6da; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__name b { color: #b7abff; }
.footer__brand p { color: #9a9eb8; margin-top: 14px; max-width: 34ch; font-size: .92rem; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: var(--font-display); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a { font-size: .92rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 24px; color: #8a8ea8; font-size: .84rem; }
.footer__bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Product mock visuals ---------- */
.mk { --accent: var(--brand); width: 100%; }
.mk-cap { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--faint); }
.mk i { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.mk-lines { display: grid; gap: 9px; }
.mk-lines i { width: 100%; }

.mk-img { position: relative; height: 200px; border-radius: 14px; background:
  linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff), color-mix(in srgb, var(--accent) 8%, #fff)); border: 1px solid var(--line-2); overflow: hidden; }
:root[data-theme="dark"] .mk-img, :root:not([data-theme="light"]) .mk-img { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #0c0e1a), color-mix(in srgb, var(--accent) 12%, #0c0e1a)); }
.mk-img .hs { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); transform: translate(-50%,-50%); animation: pulse 2.4s ease-in-out infinite; }
.mk-img .hs:nth-child(2){ animation-delay:.4s } .mk-img .hs:nth-child(3){ animation-delay:.8s } .mk-img .hs:nth-child(4){ animation-delay:1.2s }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent) } 50%{ box-shadow:0 0 0 11px color-mix(in srgb, var(--accent) 6%, transparent) } }

.mk-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mk-tiles i { height: 62px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line-2)); }

.mk-tabbar { display: flex; gap: 8px; border-bottom: 2px solid var(--line-2); padding-bottom: 10px; margin-bottom: 16px; }
.mk-tabbar b { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: -12px; font-family: var(--font-display); font-size: .85rem; }
.mk-tabbar span { color: var(--faint); font-size: .85rem; }

.mk-pop { position: relative; }
.mk-pop .mk-page { display: grid; gap: 10px; filter: blur(1px); opacity: .5; padding: 6px; }
.mk-pop .mk-page i { height: 12px; }
.mk-modal { position: absolute; inset: 20% 12% auto 12%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 9px; }
.mk-modal b { display: block; height: 12px; width: 45%; border-radius: 6px; background: var(--accent); }
.mk-modal i { height: 9px; background: var(--line-2); border-radius: 5px; }
.mk-btn { justify-self: start; margin-top: 6px; background: var(--accent); color: #fff; font-size: .8rem; padding: 7px 14px; border-radius: 8px; font-family: var(--font-display); font-weight: 600; }

.mk-banner { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line-2)); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .92rem; }

.mk-url { text-align: center; }
.mk-long { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; word-break: break-all; }
.mk-arrow { color: var(--accent); font-size: 1.4rem; margin: 8px 0; }
.mk-short { display: inline-flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); border-radius: 12px; padding: 12px 18px; }
.mk-short b { font-family: var(--font-mono); color: var(--accent); font-size: 1.05rem; }
.mk-short .mk-qr { width: 30px; height: 30px; color: var(--ink); }
.mk-short .mk-qr svg { width: 30px; height: 30px; }

/* GovernPoint governance scorecard */
.mk-govern { --accent: #10B981; }
.mk-gov-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.mk-gov-donut { width: 78px; height: 78px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0 calc(var(--v) * 1%), color-mix(in srgb, var(--accent) 16%, var(--surface)) calc(var(--v) * 1%) 100%); }
.mk-gov-donut::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.mk-gov-donut b { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.mk-gov-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mk-gov-meta > b { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.mk-gov-meta > span { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.mk-gov-chip { margin-top: 4px; font-size: .66rem; font-weight: 600; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.mk-gov-cats { display: grid; gap: 10px; }
.mk-gov-cat span { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.mk-gov-cat span em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.mk-gov-cat i { display: block; height: 6px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.mk-gov-cat i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }

/* ---------- Prose (legal / help) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { text-decoration: underline; }
.prose .updated { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

/* ---------- Tour ---------- */
.tour__stage { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour__left { min-width: 0; }
.tour__player { min-width: 0; }
.tour__player .mockup { box-shadow: var(--shadow-lg); }
.tour__video-wrap { position: relative; aspect-ratio: 16 / 9; background: #0b0d14; overflow: hidden; }
.tour__video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b0d14; }
.tour__play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.94); border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .18s ease, opacity .25s ease; }
.tour__play svg { width: 40px; height: 40px; color: var(--brand); }
.tour__play:hover { transform: scale(1.06); }
.tour__video-wrap.playing .tour__play { opacity: 0; pointer-events: none; }
.mockup__bar .tour__live { margin-left: auto; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: #e8401e; padding: 3px 10px; border-radius: 999px; display: none; align-items: center; gap: 6px; }
.mockup__bar .tour__live.on { display: inline-flex; }
.mockup__bar .tour__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.tour__rail { display: flex; align-items: center; gap: 12px; margin-top: clamp(26px, 4vw, 44px); }
.tour__track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 2px; flex: 1; scrollbar-width: none; }
.tour__track::-webkit-scrollbar { display: none; }
.tour-card { flex: 0 0 auto; width: 172px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.tour-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.tour-card.on { border-color: var(--accent); box-shadow: 0 10px 24px -12px var(--accent); }
.tour-card__ico { width: 40px; height: 40px; border-radius: 11px; display: block; margin-bottom: 10px; object-fit: cover; }
.tour-card__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.15; }
.tour-card__d { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.tour__nav { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.tour__nav:hover { border-color: var(--brand); color: var(--brand); }
/* Fit the whole tour (header + player + rail) within one viewport on desktop */
main > section.section.tour { padding-top: clamp(12px, 1.8vw, 24px); padding-bottom: clamp(16px, 2vw, 30px); }
.tour .section__head { margin-bottom: clamp(12px, 1.6vw, 20px) !important; }
.tour .section__head .h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.tour .section__head .lead { font-size: clamp(.92rem, 1.3vw, 1.05rem); }
.tour__rail { margin-top: clamp(16px, 2vw, 26px); }
@media (min-width: 861px) {
  /* Scale the player to the viewport so the header, video and card rail all fit
     one screen. ~360px is the fixed chrome above/below the video (nav, header,
     rail, paddings); the floor keeps the video usable on very short screens. */
  .tour__video-wrap { max-height: max(240px, calc(100vh - 420px)); }
}
@media (max-width: 860px) {
  .tour__stage { grid-template-columns: 1fr; }
  .tour__player { order: -1; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .prodgrid { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: repeat(2,1fr); gap: 26px 18px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  /* Compact the nav so it still fits between the mobile breakpoint (920) and 1000 */
  .nav__inner { gap: 14px; }
  .nav__cta { gap: 8px; }
  .nav__cta .btn { padding: 12px 16px; }
  .nav__link { padding: 9px 10px; }
}
@media (max-width: 920px) {
  /* The nav carries a long product label + links + buttons; collapse it to the
     menu here so the bar never crams. Page layout still stacks lower down (860). */
  .nav__links, .nav__cta .btn--ghost, .nav__cta .btn--tour { display: none; }
  .nav__burger { display: inline-flex; }
  .mobile.open { display: block; }
  .mobile {
    position: fixed; inset: 68px 0 0; background: var(--bg); z-index: 90; padding: 24px var(--gutter);
    overflow-y: auto; border-top: 1px solid var(--line);
  }
  .mobile a { display: block; padding: 14px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
  .mobile .btn { margin-top: 20px; }
  .mobile__grp { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 18px 4px 4px; }
}
@media (max-width: 860px) {
  .hero__grid, .phero__grid, .bundle__inner { grid-template-columns: 1fr; }
  .hero__viz { order: -1; }
  .grid-2, .grid-3, .plans, .features, .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prodgrid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .viz-badge { position: static; margin-top: 16px; display: inline-flex; }
}
