/* ==========================================================================
   Exelidoc website: shared design system for every page.
   It mirrors the browser extension (popup.css and exelidoc-panel.css):
   navy header gradient, indigo-to-violet actions, Inter type, rounded cards
   and soft shadows.
   ========================================================================== */

:root {
  --navy-950: #0b1226;
  --navy-900: #101a31;
  --navy-800: #17233c;
  --navy-700: #283b73;
  --ink: #17233c;
  --ink-soft: #283550;
  --muted: #5d6a84;
  --muted-soft: #8a94a8;
  --line: #e4e8f0;
  --line-strong: #dce2ed;
  --page: #f7f8fc;
  --surface-soft: #fbfcff;
  --tint: #eef0ff;
  --tint-strong: #ccd4fa;
  --brand: #3156e8;
  --brand-2: #5946d5;
  --brand-ink: #3448c5;
  --pill-ink: #4a54b7;
  --ok: #148a58;
  --danger: #a12622;
  --danger-bg: #fdeceb;
  --warn-bg: #fff7e6;
  --warn-line: #f2d9a6;
  --warn-ink: #774a00;
  --grad: linear-gradient(135deg, #3156e8, #5946d5);
  --grad-navy: linear-gradient(130deg, #101a31, #283b73);
  --shadow-sm: 0 1px 2px rgba(20, 32, 58, 0.06), 0 4px 14px rgba(20, 32, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 32, 58, 0.1), 0 2px 8px rgba(20, 32, 58, 0.06);
  --shadow-lg: 0 18px 48px rgba(20, 32, 58, 0.18), 0 3px 10px rgba(20, 32, 58, 0.08);
  --radius-s: 9px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.022em; line-height: 1.14; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(89, 70, 213, 0.55); outline-offset: 2px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 14px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 86, 232, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2c4fdc, #5340c9);
  box-shadow: 0 10px 24px rgba(49, 86, 232, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: #b9c4e6;
  transform: translateY(-1px);
}

.btn-light { background: #fff; color: var(--navy-800); box-shadow: 0 6px 18px rgba(8, 14, 34, 0.25); }
.btn-light:hover { background: #f1f3ff; transform: translateY(-1px); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

.btn-lg { min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 15px; border-radius: var(--radius-s); font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover { color: var(--brand-2); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.site-header--solid,
.site-header.nav-open {
  background: rgba(16, 26, 49, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #c3cce4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 136px;
  background: var(--grad-navy);
  color: #fff;
  isolation: isolate;
}

.hero::before,
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

.hero::before {
  z-index: -2;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(89, 70, 213, 0.55), transparent 62%),
    radial-gradient(520px 380px at 6% 92%, rgba(49, 86, 232, 0.4), transparent 62%),
    radial-gradient(420px 300px at 50% -10%, rgba(94, 170, 255, 0.18), transparent 70%);
}

.hero::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 10%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 56px;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbe2f5;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.announce:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }
.announce .icon { width: 14px; height: 14px; }

.announce-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #9fb4ff, #c4b5ff 60%, #8fe3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lede { max-width: 560px; margin-top: 22px; color: #c3cce4; font-size: 19px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: grid; gap: 10px; margin-top: 34px; color: #c3cce4; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(143, 227, 255, 0.16); color: #8fe3ff; stroke-width: 2.6; }

.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.stage { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Product illustrations ---------- */

.stage { position: relative; min-height: 600px; }

.stage-glow {
  position: absolute;
  inset: 10% 0 0 10%;
  background: radial-gradient(closest-side, rgba(89, 70, 213, 0.5), transparent);
  filter: blur(30px);
}

.mock-window {
  position: absolute;
  top: 74px;
  left: 0;
  width: 84%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(5, 10, 25, 0.45);
}

.mock-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f1f3f9; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cdd4e4; }
.mock-title { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.mock-title .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.mock-menu { display: flex; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mock-menu span { width: 34px; height: 6px; border-radius: 3px; background: #e3e8f2; }

.mock-grid { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--ink); font-size: 11.5px; }

.mock-grid col:first-child { width: 30px; }
.mock-grid col:nth-child(2) { width: 28%; }
.app .mock-grid col:first-child { width: 26px; }
.app .mock-grid col:nth-child(2) { width: 31%; }

.mock-grid th,
.mock-grid td {
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid #e6eaf3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-grid td.hd { background: #f4f6fb; color: #7a869c; font-size: 10.5px; font-weight: 500; text-align: center; }
.mock-grid .r { text-align: right; font-variant-numeric: tabular-nums; }
.mock-grid .h { border-color: #3a56da; background: var(--grad); color: #fff; font-weight: 600; }
.mock-grid tr.band td:not(.hd) { background: #f5f7ff; }
.mock-grid tr.total td { border-top: 2px solid #b9c4f5; }
.mock-grid tr.total td:not(.hd) { background: var(--tint); font-weight: 700; }
.mock-grid .pad td { height: 31px; }
.mock-sheettabs { display: flex; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--line); background: #f4f6fb; }
.mock-sheettabs span { padding: 5px 12px; border-radius: 7px 7px 0 0; color: #66728a; font-size: 11px; font-weight: 600; }
.mock-sheettabs .on { background: #fff; color: var(--brand-ink); box-shadow: 0 -1px 0 var(--line), 0 1px 0 #fff; }

.launcher {
  position: absolute;
  bottom: 14px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #2746d8, #593dd4);
  box-shadow: 0 7px 22px rgba(40, 59, 175, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.launcher img { width: 24px; height: 24px; border-radius: 50%; }

/* The Exelidoc panel, as drawn by the extension */
.xp {
  display: flex;
  width: 340px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font: 400 13px/1.4 var(--font);
  text-align: left;
}

.xp-head { display: flex; min-height: 28px; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.xp-brand { display: inline-flex; align-items: center; gap: 8px; }
.xp-brand img { width: 24px; height: 24px; border-radius: 50%; }
.xp-pill { padding: 3px 8px; border-radius: 999px; background: #f0f2ff; color: var(--pill-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.xp-x { color: #5f6368; font-size: 22px; line-height: 1; }
.xp-note { color: #65718a; font-size: 11px; line-height: 1.5; }
.xp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #e1e6f0; }
.xp-tabs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xp-tab { padding: 8px 6px; border: 1px solid transparent; border-radius: 9px; background: #f3f5fa; color: #536079; font-size: 12px; font-weight: 600; text-align: center; }
.xp-tab.on { border-color: var(--tint-strong); background: var(--tint); color: var(--brand-ink); }
.xp-label { color: #65718a; font-size: 11px; font-weight: 600; }
.xp-field { min-height: 62px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); font-size: 12px; line-height: 1.5; }
.xp-field.sm { min-height: 0; }
.xp-select { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); font-size: 12px; }
.xp-select .icon { width: 14px; height: 14px; color: #65718a; }
.xp-picker { display: flex; flex-direction: column; gap: 7px; padding: 9px 10px; border: 1px solid #e1e6f0; border-radius: 12px; background: var(--surface-soft); }
.xp-picker > b { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.xp-picker > b .icon { width: 14px; height: 14px; }
.xp-result { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; line-height: 1.4; }
.xp-box { flex: none; width: 14px; height: 14px; margin-top: 1px; border: 1.5px solid #aeb8d4; border-radius: 4px; background: #fff; }
.xp-box.on { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.4 2.6 2.6L11 4.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.xp-meta { color: #7a869c; }
.xp-btn { align-self: flex-start; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; }
.xp-btn.ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.xp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-preview { display: flex; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid #e1e6f0; border-radius: 10px; background: #f8f9fc; }
.xp-preview > b { font-size: 12px; font-weight: 600; }
.xp-text { padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.5; }
.xp-text p + p { margin-top: 6px; }
.xp-lines { display: grid; gap: 5px; font-size: 11.5px; }
.xp-lines li { display: flex; justify-content: space-between; gap: 10px; }
.xp-lines span { color: #7a869c; font-variant-numeric: tabular-nums; }
.xp-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.4; }
.xp-status { color: #65718a; font-size: 12px; line-height: 1.5; }
.xp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.xp-chip { min-height: 38px; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: #4a5870; font-size: 11px; font-weight: 600; }
.xp-chip.on { border-color: #8795ee; background: #f0f2ff; color: var(--brand-ink); }

.stage .xp {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 340px;
}

/* ---------- Facts ---------- */

.facts { position: relative; z-index: 3; margin-top: -64px; }

.facts-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.fact { padding: 26px 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.fact-num small { margin-left: 3px; -webkit-text-fill-color: var(--muted); color: var(--muted); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.fact-label { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section--facts { padding-top: 96px; }
.section--tint { background: linear-gradient(180deg, #f0f2ff, #f7f8fc); }
.section--white { border-block: 1px solid var(--line); background: #fff; }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--pill-ink);
  font: 700 11px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .icon { width: 14px; height: 14px; }
.lede { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.check-list .icon { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); stroke-width: 2.5; }

/* ---------- Features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover { border-color: var(--tint-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.feature h3 { font-size: 18px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 15px; }

.icon-tile {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #dfe4ff;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef0ff, #e1e6ff);
  color: var(--brand-ink);
}

.icon-tile .icon { width: 22px; height: 22px; }
.tag { padding: 4px 10px; border-radius: 999px; background: #f3f5fa; color: #536079; font: 600 11px/1.2 var(--font); }

/* ---------- Product tour ---------- */

.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }

.tour-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  background: #f3f5fa;
  color: #536079;
  font: 600 14px/1 var(--font);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tour-tab .icon { width: 18px; height: 18px; }
.tour-tab:hover { background: #e9edf8; }
.tour-tab[aria-selected="true"] { border-color: var(--tint-strong); background: var(--tint); box-shadow: 0 2px 10px rgba(49, 86, 232, 0.14); color: var(--brand-ink); }

.tour-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; }
.tour[data-enhanced] .tour-panel:not(.is-active) { display: none; }
.tour:not([data-enhanced]) .tour-tabs { display: none; }
.tour:not([data-enhanced]) .tour-panel + .tour-panel { margin-top: 72px; }
.tour-copy h3 { margin-bottom: 14px; font-size: clamp(26px, 2.8vw, 34px); }
.tour-copy > p { margin-bottom: 24px; color: var(--muted); font-size: 17px; }

.tour-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 460px;
  padding: 36px 24px;
  overflow: hidden;
  border: 1px solid #dfe4f7;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(460px 300px at 85% 0%, rgba(89, 70, 213, 0.16), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(49, 86, 232, 0.14), transparent 70%),
    linear-gradient(160deg, #eef0ff, #f6f7ff);
}

.tour-stage .xp { z-index: 2; width: 320px; margin-left: -52px; flex: none; box-shadow: var(--shadow-lg); }

.app {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 28px;
  padding-right: 52px;
  overflow: hidden;
  border: 1px solid #dde3f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.app .mock-grid { font-size: 11px; }
.app .mock-grid th, .app .mock-grid td { padding: 7px 6px; }
.app .mock-grid col:nth-child(2) { width: 27%; }
.sk { height: 7px; margin: 12px 0; border-radius: 4px; background: #e6eaf3; }
.w-95 { width: 95%; } .w-85 { width: 85%; } .w-70 { width: 70%; } .w-55 { width: 55%; } .w-40 { width: 40%; }

.doc-page { padding: 30px 32px 36px; }
.doc-page h4 { margin-bottom: 6px; font-size: 19px; letter-spacing: -0.02em; }
.doc-page .doc-meta { margin-bottom: 18px; color: var(--muted-soft); font-size: 11px; }
.doc-page p { color: #3a4660; font-size: 12.5px; line-height: 1.65; }
.doc-page p + p { margin-top: 10px; }

.mail-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 600; }
.mail-head span { color: #9fb0d6; letter-spacing: 3px; }
.mail-row { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.mail-row span { width: 48px; color: var(--muted-soft); }
.mail-body { padding: 16px 14px 20px; color: #3a4660; font-size: 12.5px; line-height: 1.65; }
.mail-body p + p { margin-top: 10px; }
.mail-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; }
.mail-send { padding: 8px 18px; border-radius: 8px; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 600; }
.mail-note { color: var(--muted-soft); font-size: 11px; }

.slides-app { display: grid; grid-template-columns: 70px minmax(0, 1fr); min-height: 270px; }
.slides-rail { display: grid; align-content: start; gap: 10px; padding: 12px 10px; border-right: 1px solid var(--line); background: #f4f6fb; }
.slides-rail i { display: block; aspect-ratio: 16 / 10; border: 1px solid #d5dcec; border-radius: 4px; background: #fff; }
.slides-rail i.on { border: 2px solid var(--brand); }
.slides-main { display: grid; place-items: center; padding: 18px; background: #eceff7; }

.slide {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 22px 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #101a31, #283b73);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.slide h4 { margin-bottom: 12px; color: #fff; font-size: 18px; }
.slide li { padding: 3px 0; color: #c3cce4; font-size: 12px; }
.slide li b { color: #fff; }

.xp-answer { padding: 10px; border: 1px solid #e1e6f0; border-radius: 10px; background: #f8f9fc; font-size: 12px; line-height: 1.55; }

/* ---------- Context ---------- */

.context-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.context-grid h2 { margin-bottom: 14px; font-size: clamp(30px, 3.4vw, 42px); }
.context-grid .lede { margin: 0 0 26px; }

.tray {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid #dfe4f7;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(89, 70, 213, 0.14), transparent 70%),
    linear-gradient(160deg, #eef0ff, #f6f7ff);
}

.tray-title { margin-bottom: 2px; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.source {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.source .xp-box { width: 18px; height: 18px; margin: 0; border-radius: 5px; }
.source-body { min-width: 0; flex: 1; }
.source-body strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.source-body span { color: var(--muted); font-size: 12.5px; }
.source .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.source .icon-tile .icon { width: 18px; height: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.file-chip { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-soft); font: 600 12px/1 var(--mono); letter-spacing: 0.02em; }
.tray-note { color: var(--muted); font-size: 12.5px; }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-sm); }

.step-num {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(49, 86, 232, 0.28);
  color: #fff;
  font: 700 15px/1 var(--font);
}

.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- Privacy band ---------- */

.band-dark { position: relative; overflow: hidden; background: var(--grad-navy); color: #fff; isolation: isolate; }

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 95% 0%, rgba(89, 70, 213, 0.45), transparent 65%),
    radial-gradient(480px 320px at 0% 100%, rgba(49, 86, 232, 0.35), transparent 65%);
}

.band-dark h2 { color: #fff; }
.band-dark .lede { color: #c3cce4; }
.band-dark .eyebrow { background: rgba(255, 255, 255, 0.1); color: #cfd8f7; }

.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }

.trust-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.trust-item .icon-tile { margin-bottom: 16px; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.1); color: #b9c8ff; }
.trust-item h3 { margin-bottom: 8px; color: #fff; font-size: 17px; }
.trust-item p { color: #b7c2dd; font-size: 14.5px; }
.sent-note { max-width: 880px; margin: 40px auto 0; color: #aab6d3; font-size: 14px; line-height: 1.7; text-align: center; }
.sent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 18px; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(49, 86, 232, 0.3);
  color: #fff;
  font: 700 11px/1 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan-name { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--pill-ink); font: 700 11px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.plan-limit { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 6px; }
.plan-num { font: 800 54px/1 var(--font); letter-spacing: -0.04em; }
.plan-unit { color: var(--muted); font-size: 14px; line-height: 1.35; }
.plan-price { margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.plan-list { display: grid; gap: 11px; margin-bottom: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.plan-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }

.pricing-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.pricing-notes li { display: inline-flex; align-items: center; gap: 9px; }
.pricing-notes .icon { width: 18px; height: 18px; color: var(--brand-ink); }
.manage-row { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Office preview ---------- */

.preview-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-md); }
.preview-main { padding: 44px; }
.preview-main h2 { margin-bottom: 12px; font-size: clamp(26px, 2.8vw, 34px); }
.preview-main > p { margin-bottom: 26px; color: var(--muted); }

.pill-warn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font: 700 11px/1 var(--font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px 36px; background: var(--grad-navy); color: #fff; }
.preview-side h3 { color: #fff; font-size: 20px; }
.preview-side p { color: #c3cce4; font-size: 14.5px; }
.preview-side .warn { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #aab6d3; font-size: 13px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; gap: 64px; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.faq[open] { border-color: var(--tint-strong); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-body a { font-weight: 600; }

/* ---------- Closing call to action ---------- */

.cta-band { position: relative; overflow: hidden; padding: 92px 0; background: var(--grad); color: #fff; text-align: center; isolation: isolate; }

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 0%, transparent 75%);
}

.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.cta-band p { max-width: 620px; margin: 16px auto 32px; color: #e1e6ff; font-size: 18px; }
.cta-band .cta-row { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { padding: 72px 0 36px; background: var(--navy-950); color: #aab6d3; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand p { max-width: 320px; margin-top: 16px; color: #8d9abb; font-size: 14px; }
.footer-col h3 { margin-bottom: 16px; color: #fff; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col .link-btn { color: #aab6d3; font-size: 14px; font-weight: 400; text-decoration: none; }
.footer-col a:hover, .footer-col .link-btn:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #7f8cad; font-size: 12.5px; line-height: 1.7; }
.footer-base p + p { margin-top: 8px; }

/* ---------- Account / checkout dialog ---------- */

.account-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 14, 34, 0.45);
  color: var(--ink);
}

.account-dialog[open] { animation: dialog-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }

.account-dialog::backdrop {
  background: rgba(11, 18, 38, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 56px 20px 22px; background: linear-gradient(130deg, #101a31, #283b73); color: #fff; }
.dialog-head .brand-mark { width: 38px; height: 38px; flex: none; }
.dialog-head h2 { color: #fff; font-size: 17px; letter-spacing: -0.01em; }
.dialog-head p { margin-top: 3px; color: #c3cce4; font-size: 12.5px; line-height: 1.4; }

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dialog-close:hover { background: rgba(255, 255, 255, 0.2); }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-body { padding: 22px; }

.plan-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--tint-strong); border-radius: var(--radius-m); background: var(--tint); }
.plan-chip strong { color: var(--brand-ink); font-size: 14px; }
.plan-chip span { color: var(--pill-ink); font-size: 12.5px; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.auth-tabs button { padding: 10px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 13px var(--font); }
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--ink-soft); font-size: 13px; font-weight: 600; }

.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56, 87, 223, 0.14); outline: none; }
.field-hint { margin: -4px 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form-actions { display: grid; gap: 12px; justify-items: center; }
.form-status { min-height: 20px; margin-top: 14px; font-size: 13px; line-height: 1.5; }
.form-status[data-tone="error"] { padding: 10px 12px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); }
.form-status[data-tone="success"] { padding: 10px 12px; border-radius: 9px; background: #e7f6ee; color: #0e6a43; }
.form-status[data-tone="info"] { color: var(--muted); }
.dialog-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.dialog-foot .icon { width: 15px; height: 15px; }

.dialog-state { display: grid; gap: 16px; justify-items: center; padding: 8px 0 4px; text-align: center; }
.dialog-state p { color: var(--muted); font-size: 14.5px; }
.dialog-state strong { color: var(--ink); }
.dialog-state .btn { width: 100%; }
.dialog-state p[data-tone="error"] { color: var(--danger); }
.dialog-state p[data-tone="success"] { color: #0e6a43; }
.dialog-state:focus { outline: none; }
.busy-slow { padding: 10px 12px; border-radius: 9px; background: var(--tint); color: var(--pill-ink); font-size: 12.5px; line-height: 1.5; }

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--tint);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sub pages: legal, checkout results, download ---------- */

.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 64px; background: var(--grad-navy); color: #fff; isolation: isolate; }

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 92% 0%, rgba(89, 70, 213, 0.5), transparent 65%),
    radial-gradient(420px 300px at 0% 100%, rgba(49, 86, 232, 0.35), transparent 65%);
}

.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { max-width: 640px; margin-top: 14px; color: #c3cce4; font-size: 18px; }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.1); color: #cfd8f7; }
.page-hero .hero-cta { margin-top: 30px; }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 64px; padding: 64px 0 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-sm); }
.toc h2 { margin-bottom: 12px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { display: grid; gap: 4px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--tint); color: var(--brand-ink); }

.prose { max-width: 780px; }
.prose h2 { margin: 48px 0 14px; font-size: 24px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d4a63; font-size: 16px; line-height: 1.8; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }

.callout { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--tint-strong); border-left: 4px solid var(--brand); border-radius: var(--radius-m); background: var(--tint); color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.callout--draft { border-color: var(--warn-line); border-left-color: #e0a21a; background: var(--warn-bg); color: var(--warn-ink); }
.updated { margin-top: 14px; color: #aab6d3; font-size: 14px; }

.result-page { display: grid; min-height: 100vh; padding: 32px 20px; place-items: center; background: var(--grad-navy); color: #fff; isolation: isolate; position: relative; overflow: hidden; }
.result-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 85% 0%, rgba(89, 70, 213, 0.5), transparent 65%), radial-gradient(500px 360px at 0% 100%, rgba(49, 86, 232, 0.4), transparent 65%); }
.result-card { width: min(100%, 560px); padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: 0 30px 80px rgba(8, 14, 34, 0.45); color: var(--ink); text-align: center; }
.result-card .brand-mark { width: 60px; height: 60px; margin: 0 auto 22px; }
.result-card h1 { margin: 14px 0 12px; font-size: clamp(28px, 4vw, 36px); }
.result-card .message { margin-bottom: 28px; color: var(--muted); font-size: 16px; }
.result-card .message[data-tone="error"] { color: var(--danger); }
.result-icon { display: grid; width: 56px; height: 56px; margin: 22px auto 0; place-items: center; border-radius: 50%; background: var(--tint); color: var(--brand); }
.result-icon > * { display: none; }
.result-icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.result-icon[data-state="pending"] .spinner { display: block; width: 26px; height: 26px; border-width: 3px; border-color: #d6dcfa; border-top-color: var(--brand); }
.result-icon[data-state="success"] { background: #e7f6ee; color: var(--ok); }
.result-icon[data-state="success"] .s-ok { display: block; }
.result-icon[data-state="error"] { background: var(--danger-bg); color: var(--danger); }
.result-icon[data-state="error"] .s-err { display: block; }
.result-next { display: grid; gap: 12px; margin: -4px 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-soft); text-align: left; }
.result-next h2 { font-size: 14px; letter-spacing: 0; }
.result-next li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); font-size: 14px; }
.result-next .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); stroke-width: 2.5; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.result-note { margin-top: 24px; color: var(--muted-soft); font-size: 12.5px; }

.notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 36px; padding: 16px 18px; border: 1px solid var(--tint-strong); border-radius: var(--radius-m); background: var(--tint); color: var(--ink-soft); font-size: 15px; }
.notice .icon { margin-top: 2px; color: var(--brand-ink); }
.notice a { font-weight: 600; }
.page-hero .notice { max-width: 640px; margin-bottom: 28px; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); color: #fff; }
.page-hero .notice .icon { color: #8fe3ff; }
.page-hero .notice a { color: #fff; }
.install-steps { max-width: 880px; margin: 0 auto; }
.install-steps .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 680px; }
  .stage { width: min(100%, 640px); margin-inline: auto; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tour-panel { grid-template-columns: 1fr; gap: 36px; }
  .tour-copy { max-width: 680px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-actions { display: none; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    background: rgba(16, 26, 49, 0.98);
    box-shadow: 0 20px 30px rgba(5, 10, 25, 0.35);
  }

  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-grid { grid-template-columns: 1fr; gap: 40px; }
  .preview-card { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid .section-head { position: static; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .facts-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .container { width: min(1200px, calc(100% - 36px)); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: calc(var(--header-h) + 44px) 0 112px; }
  .hero-lede { font-size: 17px; }
  .stage { min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .stage .mock-window { position: relative; top: 0; width: 100%; }
  .stage .xp { position: relative; width: min(350px, 92%); margin: -150px 0 0 auto; }
  .stage .launcher { display: none; }
  .mock-grid .pad { display: none; }
  .mock-grid th, .mock-grid td { padding: 6px 5px; font-size: 10px; }
  .mock-grid col:first-child, .app .mock-grid col:first-child { width: 22px; }
  .mock-grid col:nth-child(2) { width: 25%; }
  .feature-grid, .plans, .steps, .trust-grid { grid-template-columns: 1fr; }
  .tour-stage { flex-direction: column; align-items: stretch; min-height: 0; padding: 22px 16px 28px; }
  .tour-stage .xp { width: min(350px, 94%); margin: -34px 0 0 auto; }
  .app { flex: none; margin-top: 0; padding-right: 0; }
  .slides-app { min-height: 0; }
  .preview-main, .preview-side { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 72px 0; }
  .result-card { padding: 32px 22px; }
  .install-steps .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .facts-card { grid-template-columns: 1fr; }
  .fact + .fact { border-top: 1px solid var(--line); border-left: 0; }
  .hero-cta .btn { width: 100%; }
  .cta-row .btn { width: 100%; }
  .stage .xp { margin-top: -110px; }
  .dialog-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .toc, .site-footer, .cta-band { display: none; }
  .page-hero { padding: 24px 0; background: none; color: var(--ink); }
  .page-hero h1, .page-hero p, .updated { color: var(--ink); }
  .legal { display: block; padding: 0; }
}
