/* ============================================================================
   SOLVEO AI - Light Editorial
   Paper surfaces · indigo brand · generous space · trust-first
   ============================================================================ */

:root {
  /* ---- Surfaces ---- */
  --paper: #ffffff;
  --surface: #f7f8fb;
  --surface-2: #eef1f7;
  --surface-3: #e7ebf3;

  /* ---- Ink ---- */
  --ink: #0a0f1c;
  --ink-2: #39415a;
  --ink-3: #6b7490;
  --ink-4: #9aa2b8;

  /* ---- Lines ---- */
  --line: #e4e7ef;
  --line-strong: #d3d8e4;

  /* ---- Brand ---- */
  --brand: #3056f2;
  --brand-hover: #2545d8;
  --brand-ink: #1a2f9c;
  --brand-soft: #eef2ff;
  --brand-soft-2: #e0e7ff;
  --brand-2: #6e44ff;

  /* ---- Status ---- */
  --success: #0f9f6e;
  --success-soft: #e6f7f0;
  --warn: #b4690e;
  --warn-soft: #fdf4e3;
  --danger: #d92d3f;
  --danger-soft: #fdecee;

  /* ---- Legacy aliases (kept so older rules resolve) ---- */
  --bg-primary: var(--paper);
  --bg-secondary: var(--surface);
  --bg-card: var(--paper);
  --bg-card-hover: var(--surface);
  --bg-elevated: var(--paper);
  --bg-inset: var(--surface);
  --bg-pill: var(--surface-2);
  --bg-pill-active: var(--brand-soft);
  --border-subtle: var(--line);
  --border-card: var(--line);
  --border-hover: var(--line-strong);
  --border-highlight: var(--brand);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --text-dim: var(--ink-4);
  --accent: var(--brand);
  --accent-green: var(--success);
  --accent-yellow: var(--warn);
  --accent-red: var(--danger);

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(10, 15, 28, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 15, 28, 0.07), 0 1px 2px rgba(10, 15, 28, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(10, 15, 28, 0.1), 0 2px 6px -2px rgba(10, 15, 28, 0.06);
  --shadow-lg: 0 20px 44px -14px rgba(10, 15, 28, 0.18), 0 6px 16px -8px rgba(10, 15, 28, 0.1);
  --shadow-xl: 0 40px 80px -24px rgba(10, 15, 28, 0.24), 0 12px 28px -12px rgba(10, 15, 28, 0.12);
  --shadow-brand: 0 10px 26px -10px rgba(48, 86, 242, 0.5);
  --ring-brand: 0 0 0 4px rgba(48, 86, 242, 0.14);

  /* ---- Geometry ---- */
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* ---- Fonts ---- */
  --font-main: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--brand-soft-2);
  color: var(--brand-ink);
}

a { color: inherit; }

h1, h2, h3, h4 {
  letter-spacing: -0.032em;
  line-height: 1.12;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Hidden SVG symbol sheet ---- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================================
   AMBIENT BACKGROUND — barely-there paper tint
   ============================================================================ */

.bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(48, 86, 242, 0.07), transparent 70%),
    radial-gradient(700px 360px at 92% 2%, rgba(110, 68, 255, 0.05), transparent 72%),
    linear-gradient(to bottom, var(--surface), rgba(255, 255, 255, 0));
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(10, 15, 28, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 15, 28, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 0%, transparent 76%);
          mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 0%, transparent 76%);
}

/* ============================================================================
   IDENTITY — logo lockup
   ============================================================================ */

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: var(--shadow-sm), 0 6px 16px -8px rgba(48, 86, 242, 0.55);
}

.logo-text {
  font-size: 17.5px;
  font-weight: 680;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px -4px rgba(10, 15, 28, 0.1);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 520;
  color: var(--ink-2);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
}

@media (max-width: 768px) {
  .navbar-inner { padding: 11px 18px; }
  .logo-text { display: none; }
}

/* ---- Account / menu button ---- */
.menu-btn-wrap { position: relative; }

.btn-icon-round {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-icon-round:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-icon-round.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--ring-brand);
}

/* ---- Dropdown ---- */
.menu-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 214px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 7px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: var(--transition);
  z-index: 120;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: menuFadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.012em;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.menu-item:hover { background: var(--surface); }

.menu-item .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.menu-item:hover .menu-icon { color: var(--brand); }

.menu-item .menu-label {
  flex: 1;
  min-width: 0;
}

.menu-item.yellow { color: var(--brand); font-weight: 600; }
.menu-item.yellow .menu-icon { color: var(--brand); }
.menu-item.yellow .menu-icon svg { stroke: var(--brand); }
.menu-item.yellow:hover { background: var(--brand-soft); }

/* ---- Language pill ---- */
.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.lang-btn:hover:not(.active) { color: var(--ink); }

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn,
.btn-download-mac,
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.014em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-download-mac,
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-download-mac:hover,
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(48, 86, 242, 0.58);
}

.btn-download-mac:active,
.btn-primary:active { transform: translateY(0); }

.btn-download-mac svg { width: 17px; height: auto; flex-shrink: 0; }

.btn-secondary {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink-4);
}

.btn-secondary svg { width: 16px; height: auto; flex-shrink: 0; }

.btn-nav-cta {
  padding: 9px 16px;
  font-size: 14px;
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-nav-cta:hover { background: var(--brand-hover); }

@media (max-width: 560px) {
  .btn-nav-cta { display: none; }
}

/* ============================================================================
   LAYOUT & SECTION FURNITURE
   ============================================================================ */

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
}

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: var(--brand);
  padding: 5px 12px;
  border: 1px solid var(--brand-soft-2);
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 660;
  letter-spacing: -0.038em;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 14px;
}

.section-badge-wrap {
  display: flex;
  justify-content: center;
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero-section {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section { padding: 44px 0 0; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 26px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 520;
  color: var(--ink-2);
}

.hero-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-eyebrow-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ---- Legacy hero icon (unused by default, kept for fallbacks) ---- */
.hero-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.hero-icon-squircle {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-icon-squircle img { width: 100%; height: 100%; object-fit: cover; }

.glowing-eye {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--brand);
  position: relative;
}

.glowing-eye::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: var(--radius-full);
  background: var(--paper);
}

/* ---- Headline ---- */
.hero-title {
  font-size: clamp(38px, 6.4vw, 70px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.044em;
  max-width: 940px;
  margin: 0 auto 22px;
  color: var(--ink);
  text-wrap: balance;
}

.apple-cursor {
  display: inline-block;
  vertical-align: -0.06em;
  width: clamp(23px, 3.2vw, 34px);
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(10, 15, 28, 0.22));
  animation: appleCursorFloat 4.4s ease-in-out infinite;
}

@keyframes appleCursorFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(3px, -4px) rotate(-5deg); }
  66%      { transform: translate(-2px, 3px) rotate(4deg); }
}

.digit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.9em;
  padding: 0 0.14em 0.04em;
  border-radius: 0.18em;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-soft-2);
  color: var(--brand);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: transform 0.3s cubic-bezier(0.34, 1.7, 0.4, 1);
}

.digit-badge.animating { transform: translateY(-4px) scale(1.1); }

.hero-subtitle {
  font-size: clamp(16.5px, 2vw, 19.5px);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ---- CTA row ---- */
.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions { display: contents; }

.hero-alt-download {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.hero-alt-link {
  font-size: 14px;
  font-weight: 520;
  color: var(--ink-3);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hero-alt-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---- Trust strip ---- */
.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 520;
  color: var(--ink-3);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success);
}

/* ============================================================================
   HERO PRODUCT VISUAL — app window + HUD
   ============================================================================ */

.hero-visual {
  position: relative;
  max-width: 820px;
  margin: 56px auto 0;
  padding-bottom: 40px;
  perspective: 1400px;
}

@media (max-width: 768px) {
  .hero-visual { margin-top: 38px; }
}

.app-window {
  position: relative;
  text-align: left;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.win-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

.win-title {
  font-size: 12.5px;
  font-weight: 540;
  color: var(--ink-3);
}

.win-body {
  padding: 32px 30px 36px;
}

@media (max-width: 560px) {
  .win-body { padding: 22px 18px 26px; }
}

.quiz-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
}

.quiz-q-num {
  position: relative;
  flex-shrink: 0;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 440px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14.5px;
  color: var(--ink-2);
}

.quiz-opt-key {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.quiz-opt.is-answer {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: var(--ring-brand);
}

.quiz-opt.is-answer .quiz-opt-key {
  background: var(--brand);
  color: #ffffff;
}

.quiz-opt-check {
  margin-left: auto;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--brand);
}

/* ---- Ghost cursor over the question ---- */
.cursor-ghost {
  position: absolute;
  top: 58px;
  left: 44px;
  width: 26px;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 3px 7px rgba(10, 15, 28, 0.28));
  animation: appleCursorFloat 4.4s ease-in-out infinite;
}

@media (max-width: 560px) {
  .cursor-ghost { top: 48px; left: 30px; width: 22px; }
}

/* ---- Floating HUD answer card ---- */
.hud-pop {
  position: absolute;
  right: -14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: hudReveal 5s ease-in-out infinite;
}

@media (max-width: 680px) {
  .hud-pop {
    right: 50%;
    bottom: -8px;
    transform: translateX(50%);
    padding: 11px 15px;
  }
}

@keyframes hudReveal {
  0%, 10%   { opacity: 0; transform: translateY(10px) scale(0.96); }
  22%, 82%  { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(4px) scale(0.98); }
}

.hud-pop-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-pop-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.hud-pop-text {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hud-pop-digit {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-brand);
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.steps-section {
  padding: 96px 0 0;
}

@media (max-width: 768px) {
  .steps-section { padding-top: 68px; }
}

/* exam-feature holds the translated section heading */
.exam-feature {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

.exam-feature h2 {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 660;
  letter-spacing: -0.038em;
  margin-bottom: 14px;
}

.exam-feature p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
}

.shortcut-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.028em;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================================
   MODES
   ============================================================================ */

.modes-section {
  padding: 96px 0 0;
}

@media (max-width: 768px) {
  .modes-section { padding-top: 68px; }
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.mode-card {
  grid-column: span 2;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mode-card:nth-child(4),
.mode-card:nth-child(5) { grid-column: span 3; }

.mode-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mode-card h3 {
  font-size: 16.5px;
  font-weight: 640;
  letter-spacing: -0.026em;
  margin: 18px 0 7px;
}

.mode-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.58;
}

@media (max-width: 992px) {
  .modes-grid { grid-template-columns: repeat(4, 1fr); }
  .mode-card,
  .mode-card:nth-child(4),
  .mode-card:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 660px) {
  .modes-grid { grid-template-columns: 1fr; }
  .mode-card,
  .mode-card:nth-child(4),
  .mode-card:nth-child(5) { grid-column: span 1; }
}

/* ---- Preview stage ---- */
.mode-preview-box {
  height: 168px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(130% 100% at 50% 0%, var(--paper), var(--surface) 72%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 560;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.preview-status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--brand);
  flex-shrink: 0;
}

/* ---- 1. Caps Lock LED ---- */
.preview-caps-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preview-keycap {
  width: 116px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f2f4f9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 0 var(--surface-3), var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 10px;
}

.keycap-label {
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.keycap-led {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--brand);
  margin-left: auto;
  animation: capsLedPulse 2.6s ease-in-out infinite;
}

@keyframes capsLedPulse {
  0%, 14%   { opacity: 1; box-shadow: 0 0 0 3px rgba(48, 86, 242, 0.18); }
  16%, 28%  { opacity: 0.16; box-shadow: none; }
  30%, 44%  { opacity: 1; box-shadow: 0 0 0 3px rgba(48, 86, 242, 0.18); }
  46%, 100% { opacity: 0.16; box-shadow: none; }
}

/* ---- 2. Floating HUD ---- */
.preview-hud-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mock-hud-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-width: 196px;
  box-shadow: var(--shadow-md);
  animation: hudReveal 4s ease-in-out infinite;
}

.mock-hud-q {
  font-size: 11px;
  font-weight: 540;
  color: var(--ink-3);
  margin-bottom: 9px;
}

.mock-hud-options { display: flex; gap: 6px; }

.mock-opt {
  width: 27px;
  height: 27px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
}

.mock-opt.hud-target {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

/* ---- 3. Subtle haptic ---- */
.preview-trackpad-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trackpad-mockup {
  width: 128px;
  height: 80px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f1f3f9);
  border: 1px solid var(--line-strong);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.trackpad-touch-center {
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  background: var(--brand);
  animation: trackpadPulse 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes trackpadPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(0.7); opacity: 1; }
}

.trackpad-ripple {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(48, 86, 242, 0.45);
  animation: trackpadRippleAnim 2.2s ease-out infinite;
}

.trackpad-ripple.tr-1 { animation-delay: 0s; }
.trackpad-ripple.tr-2 { animation-delay: 1.1s; }

@keyframes trackpadRippleAnim {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(5); opacity: 0; }
}

/* ---- 4. Menu bar ---- */
.preview-menubar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 18px;
}

.mock-menubar {
  width: 100%;
  max-width: 268px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 10.5px;
  font-weight: 540;
  color: var(--ink-3);
}

.mock-menu-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock-menu-left span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}

.mock-menu-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stealth-digit-signal {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--brand);
  animation: stealthDigitGlow 2s ease-in-out infinite;
}

@keyframes stealthDigitGlow {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 1; }
}

/* ---- 5. Phone vibration ---- */
.preview-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: 64px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(170deg, #ffffff, #eef1f7);
  border: 1px solid var(--line-strong);
  padding: 5px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  animation: phoneJiggle 2.6s ease-in-out infinite;
}

@keyframes phoneJiggle {
  0%, 56%, 100% { transform: translate(0, 0) rotate(0deg); }
  60%           { transform: translate(-2px, 0) rotate(-1.6deg); }
  64%           { transform: translate(2px, 0) rotate(1.6deg); }
  68%           { transform: translate(-2px, 0) rotate(-1.2deg); }
  72%           { transform: translate(1px, 0) rotate(0.8deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--success);
}

.phone-label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.haptic-ripple {
  position: absolute;
  width: 64px;
  height: 120px;
  border-radius: 14px;
  border: 1.5px solid rgba(48, 86, 242, 0.32);
  animation: rippleSpread 2.6s ease-out infinite;
  z-index: 1;
}

.ripple-1 { animation-delay: 0.6s; }
.ripple-2 { animation-delay: 1.3s; }

@keyframes rippleSpread {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---- Captions & companion links ---- */
.mock-stealth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 540;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.mock-stealth-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--brand);
}

.mode-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mode-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.mode-app-badge:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.mode-app-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.mode-app-guide { margin-top: 10px; }

.mode-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 520;
  color: var(--ink-3);
  text-decoration: none;
  transition: var(--transition);
}

.mode-guide-link:hover,
.mode-guide-link:hover span { color: var(--brand); }

.mode-guide-link svg.guide-icon-help { width: 14px; height: 14px; flex-shrink: 0; }

.mode-guide-link svg.guide-icon-arrow {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: var(--transition);
}

.mode-guide-link:hover svg.guide-icon-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ============================================================================
   TRUST / WHAT IT DOES NOT DO
   ============================================================================ */

.trust-section {
  margin-top: 96px;
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .trust-section { margin-top: 68px; padding: 52px 0; }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.trust-card-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--success-soft);
  color: var(--success);
}

.trust-card-icon svg { width: 17px; height: 17px; }

.trust-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-top: 5px;
}

/* ============================================================================
   PRICING
   ============================================================================ */

.pricing-section {
  padding: 96px 0 0;
  text-align: center;
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .pricing-section { padding-top: 68px; }
}

.pricing-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mini-logo-squircle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm), 0 8px 20px -10px rgba(48, 86, 242, 0.55);
}

.mini-logo-squircle img,
.mini-logo { width: 100%; height: 100%; object-fit: cover; }

.mini-logo-squircle .logo-mark {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.mini-fallback-eye {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--brand);
}

.glowing-eye-small {
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  background: #ffffff;
  position: relative;
}

.glowing-eye-small::after {
  content: "";
  position: absolute;
  inset: 4.5px;
  border-radius: var(--radius-full);
  background: var(--brand);
}

.pricing-subtitle {
  font-size: 17px;
  color: var(--ink-2);
  margin: 14px auto 0;
  max-width: 520px;
  line-height: 1.6;
}

/* ---- Billing toggle ---- */
.billing-toggle-container {
  display: flex;
  justify-content: center;
  margin: 30px 0 14px;
}

.billing-toggle-pill {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 580;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: var(--transition);
}

.billing-btn:hover { color: var(--ink); }

.billing-btn.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.badge-savings,
.badge-extra {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
}

.badge-extra {
  background: var(--warn-soft);
  color: var(--warn);
}

.pricing-reassure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.pricing-reassure svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--success);
}

/* ---- Cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  text-align: left;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.price-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), var(--ring-brand);
}

.popular-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.card-plan-name {
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -0.028em;
  margin-bottom: 6px;
}

.card-plan-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  min-height: 42px;
}

.price-amount-wrap {
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.price-amount {
  font-size: 38px;
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--ink);
}

.price-amount span {
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.012em;
  color: var(--ink-3);
}

.price-limit-sub {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 580;
  color: var(--brand);
}

.price-billing-note {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.price-billing-note.highlight { color: var(--success); font-weight: 560; }

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.btn-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.014em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-card-action:hover {
  background: var(--surface);
  border-color: var(--ink-4);
}

.btn-card-action.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-card-action.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-card-action.btn-current-plan {
  background: var(--success-soft);
  border-color: rgba(15, 159, 110, 0.3);
  color: var(--success);
  cursor: default;
  box-shadow: none;
}

.btn-card-action.btn-current-plan:hover {
  transform: none;
  background: var(--success-soft);
  border-color: rgba(15, 159, 110, 0.3);
  color: var(--success);
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq-section {
  padding: 96px 0 0;
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .faq-section { padding-top: 68px; }
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 304px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
}

.faq-title {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 660;
  letter-spacing: -0.038em;
  margin-bottom: 26px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--line-strong); }

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  user-select: none;
}

.faq-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-3);
  transition: var(--transition);
}

.faq-toggle-icon svg { width: 14px; height: 14px; }

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--brand-soft);
  color: var(--brand);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, padding 0.28s ease;
}

.faq-item.open .faq-answer {
  max-height: 460px;
  opacity: 1;
  padding: 0 20px 19px;
}

/* ---- Support aside ---- */
.faq-aside { position: sticky; top: 92px; }

@media (max-width: 900px) {
  .faq-aside { position: static; }
}

.faq-aside-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}

.faq-aside-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.faq-aside-icon svg { width: 18px; height: 18px; }

.faq-aside-card h3 {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.026em;
  margin-bottom: 8px;
}

.faq-aside-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-aside:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-aside svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============================================================================
   CLOSING CTA
   ============================================================================ */

.cta-band {
  margin-top: 96px;
}

@media (max-width: 768px) {
  .cta-band { margin-top: 68px; }
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a2f9c, #3056f2 52%, #6e44ff);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .cta-inner { padding: 44px 22px; }
}

.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 670;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions .btn-download-mac {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.4);
}

.cta-actions .btn-download-mac:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-ink);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 56px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .footer { margin-top: 68px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-tagline {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 2px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  transition: var(--transition);
}

.footer-nav a:hover,
.footer-links a:hover { color: var(--brand); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact {
  display: flex;
  align-items: center;
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
}

.footer-email-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--ink-4);
}

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

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: var(--transition);
}

.footer-socials a:hover { color: var(--brand); border-color: var(--brand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}

.copyright {
  font-size: 13px;
  color: var(--ink-4);
}

.footer-platforms {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 540;
  color: var(--ink-4);
}

.footer-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-platforms svg { width: 13px; height: 13px; }

.auth-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 15, 28, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.show { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.modal-title {
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
  padding-right: 34px;
}

.modal-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.modal-body h4 {
  color: var(--ink);
  font-size: 15px;
  margin: 18px 0 6px;
}

.modal-body p { margin-bottom: 11px; }

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.modal-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}

.modal-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--brand);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 620;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
}

.modal-btn:hover { background: var(--brand-hover); }

/* ---- Modal building blocks ---- */
.modal-head-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding-right: 34px;
  text-align: left;
}

.modal-head-row .modal-title { margin: 0; padding: 0; }

.modal-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand);
}

.modal-icon.round { border-radius: var(--radius-full); }

.modal-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.account-email {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.018em;
  color: var(--ink);
  word-break: break-all;
}

.account-role {
  font-size: 12.5px;
  color: var(--ink-3);
}

.panel {
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-3);
}

.stat-value {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.stat-divider {
  height: 1px;
  margin: 13px 0;
  background: var(--line);
}

.note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.note-list li { display: flex; gap: 9px; }

.note-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: var(--radius-full);
  background: var(--brand);
  flex-shrink: 0;
}

.note-list strong { color: var(--ink); }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: var(--transition);
}

.btn-block svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-block.solid {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-block.solid:hover { background: var(--brand-hover); }

.btn-block.ghost {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-block.ghost:hover { background: var(--surface); border-color: var(--ink-4); }

.btn-block.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-weight: 540;
}

.btn-block.quiet:hover { color: var(--ink); border-color: var(--line-strong); }

.btn-block.danger {
  background: var(--danger-soft);
  border: 1px solid rgba(217, 45, 63, 0.22);
  color: var(--danger);
}

.btn-block.danger:hover { border-color: rgba(217, 45, 63, 0.4); }

/* ============================================================================
   AUTH MODAL
   ============================================================================ */

.modal-box.auth-modal-box {
  max-width: 420px;
  text-align: center;
  padding: 32px 28px 28px;
}

.auth-step { display: block; }

.auth-header { margin-bottom: 24px; }

.auth-icon-badge {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand);
}

.auth-icon-badge.success {
  background: var(--success-soft);
  border-color: rgba(15, 159, 110, 0.24);
  color: var(--success);
}

.auth-title {
  font-size: 20px;
  font-weight: 660;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.auth-subtitle strong { color: var(--ink); font-weight: 620; }

.auth-form-group {
  text-align: left;
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.auth-input-wrapper { position: relative; }

.auth-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.auth-input::placeholder { color: var(--ink-4); }

.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}

.auth-input.otp {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-align: center;
  text-indent: 0.5em;
  padding: 15px;
}

.auth-input.otp:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.14);
}

.auth-feedback {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid rgba(217, 45, 63, 0.2);
  color: var(--danger);
  font-size: 13px;
  text-align: left;
}

.auth-actions { margin-top: 6px; }

.auth-actions-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.auth-actions-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  background: var(--brand);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.014em;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
}

.auth-btn-primary svg { width: 15px; height: 15px; flex-shrink: 0; }

.auth-btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-primary.success {
  background: var(--success);
  box-shadow: 0 10px 26px -10px rgba(15, 159, 110, 0.5);
}

.auth-btn-primary.success:hover { background: #0c8b60; }

.auth-btn-text {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-btn-text:hover { color: var(--brand); }

/* ============================================================================
   TOAST
   ============================================================================ */

.solveo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2000;
  transform: translate(-50%, 16px);
  padding: 13px 20px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 540;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.solveo-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ============================================================================
   MOTION PREFERENCES
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   IDENTITY — wordmark
   ============================================================================ */

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.logo-ai {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.1em 0.38em 0.14em;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-0.1em);
}

.footer .logo-ai {
  background: var(--brand-soft-2);
}

/* ============================================================================
   MOTION — entrance on load, reveal on scroll
   ============================================================================ */

/* Hero copy eases in on load; only when scripting confirmed the page is live,
   so a no-JS visitor never meets invisible text. */
.js .hero-eyebrow,
.js .hero-title,
.js .hero-subtitle,
.js .hero-cta-row,
.js .hero-alt-download,
.js .hero-trust {
  animation: heroRise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero-eyebrow      { animation-delay: 0.02s; }
.js .hero-title        { animation-delay: 0.08s; }
.js .hero-subtitle     { animation-delay: 0.16s; }
.js .hero-cta-row      { animation-delay: 0.24s; }
.js .hero-alt-download { animation-delay: 0.3s; }
.js .hero-trust        { animation-delay: 0.36s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveals: armed by the `js` class, released by the observer. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.66s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.66s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================================================
   MOTION — pointer-reactive card sheen
   ============================================================================ */

.mode-card,
.price-card,
.step,
.trust-card {
  position: relative;
  isolation: isolate;
}

.mode-card::after,
.price-card::after,
.step::after,
.trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(48, 86, 242, 0.09),
    transparent 62%
  );
  transition: opacity 0.32s ease;
}

.mode-card:hover::after,
.price-card:hover::after,
.step:hover::after,
.trust-card:hover::after {
  opacity: 1;
}

/* ============================================================================
   POLISH — buttons, links, type
   ============================================================================ */

/* A soft sweep of light crosses the primary button on hover. */
.btn-download-mac,
.btn-primary,
.btn-nav-cta,
.btn-card-action.primary,
.auth-btn-primary,
.btn-block.solid {
  position: relative;
  overflow: hidden;
}

.btn-download-mac::before,
.btn-primary::before,
.btn-nav-cta::before,
.btn-card-action.primary::before,
.auth-btn-primary::before,
.btn-block.solid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 55%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-download-mac:hover::before,
.btn-primary:hover::before,
.btn-nav-cta:hover::before,
.btn-card-action.primary:hover::before,
.auth-btn-primary:hover::before,
.btn-block.solid:hover::before {
  left: 125%;
}

/* Download confirmation text swapped in by the script */
.btn-feedback {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Nav links gain an underline that grows from the centre */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transition: left 0.24s ease, right 0.24s ease, opacity 0.24s ease;
}

.nav-link:hover::after {
  left: 13px;
  right: 13px;
  opacity: 1;
}

/* Language switch: the active pill slides rather than jumping */
.lang-btn {
  position: relative;
  transition: color 0.2s ease, background 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

/* Section headings carry a faint gradient so they feel printed, not flat */
.section-title,
.faq-title,
.pricing-title,
.exam-feature h2 {
  background: linear-gradient(170deg, var(--ink) 34%, #353e58 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ...but the inline logo tile inside the pricing title must stay painted */
.pricing-title .mini-logo-squircle {
  -webkit-text-fill-color: initial;
}

/* FAQ rows lift very slightly as the pointer passes */
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.faq-item:hover {
  transform: translateY(-1px);
}

.faq-question span:first-child {
  transition: color 0.2s ease;
}

.faq-item:hover .faq-question span:first-child {
  color: var(--brand);
}

/* The product window tilts a touch towards the reader */
.app-window {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.hero-visual:hover .app-window {
  transform: translateY(-4px);
  box-shadow:
    0 50px 90px -28px rgba(10, 15, 28, 0.28),
    0 16px 32px -14px rgba(10, 15, 28, 0.14);
}

/* Quiz rows stagger in once the window itself has arrived */
.js .hero-visual.is-revealed .quiz-opt {
  animation: quizRow 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero-visual.is-revealed .quiz-opt:nth-child(1) { animation-delay: 0.18s; }
.js .hero-visual.is-revealed .quiz-opt:nth-child(2) { animation-delay: 0.26s; }
.js .hero-visual.is-revealed .quiz-opt:nth-child(3) { animation-delay: 0.34s; }
.js .hero-visual.is-revealed .quiz-opt:nth-child(4) { animation-delay: 0.42s; }

@keyframes quizRow {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

/* Step numbers fill with brand colour on hover */
.step-num {
  transition: background 0.26s ease, color 0.26s ease, transform 0.26s ease;
}

.step:hover .step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: scale(1.06);
}

/* Trust ticks settle in with a gentle pop */
.trust-card-icon {
  transition: transform 0.26s cubic-bezier(0.34, 1.6, 0.44, 1);
}

.trust-card:hover .trust-card-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Feature ticks brighten with their card */
.features-list li {
  transition: color 0.2s ease;
}

.price-card:hover .features-list li {
  color: var(--ink);
}

/* Logo tile responds to the pointer */
.logo-lockup .logo-mark {
  transition: transform 0.34s cubic-bezier(0.34, 1.5, 0.44, 1), box-shadow 0.34s ease;
}

.logo-lockup:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-sm), 0 10px 22px -8px rgba(48, 86, 242, 0.7);
}

/* ============================================================================
   MOTION PREFERENCES — the reveals must never trap content
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js .hero-eyebrow,
  .js .hero-title,
  .js .hero-subtitle,
  .js .hero-cta-row,
  .js .hero-alt-download,
  .js .hero-trust,
  .js .hero-visual.is-revealed .quiz-opt {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================================
   SECONDARY PLATFORM BUTTON
   The platform we did not detect keeps a smaller button beside the main one,
   so a wrong guess is never a dead end.
   ============================================================================ */

.btn-alt-os {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.012em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-alt-os svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.btn-alt-os:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-alt-os:hover svg { opacity: 1; }

/* On the brand-coloured closing band */
.btn-alt-os.on-brand {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: none;
}

.btn-alt-os.on-brand:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.cta-alt-download {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Keep the legacy text-link styling available */
.hero-alt-link {
  font-size: 14px;
  font-weight: 520;
  color: var(--ink-3);
  text-decoration: none;
}

/* ============================================================================
   APPEARANCE TOGGLE
   ============================================================================ */

.btn-theme {
  position: relative;
  overflow: hidden;
}

.btn-theme svg {
  width: 17px;
  height: 17px;
  position: absolute;
  transition: opacity 0.26s ease, transform 0.36s cubic-bezier(0.34, 1.5, 0.44, 1);
}

/* Light theme shows the moon (what the click will give you) */
.btn-theme .icon-sun {
  opacity: 0;
  transform: rotate(-70deg) scale(0.6);
}

.btn-theme .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .btn-theme .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .btn-theme .icon-moon {
  opacity: 0;
  transform: rotate(70deg) scale(0.6);
}

/* ============================================================================
   DARK APPEARANCE
   Token overrides only, so every component inherits the new palette.
   ============================================================================ */

[data-theme="dark"] {
  --paper: #0b0e16;
  --surface: #11151f;
  --surface-2: #171c28;
  --surface-3: #1f2533;

  --ink: #e9edf7;
  --ink-2: #aab3c7;
  --ink-3: #7e889e;
  --ink-4: #5c657a;

  --line: #1f2531;
  --line-strong: #2b3341;

  --brand: #6a8dff;
  --brand-hover: #809dff;
  --brand-ink: #c3d1ff;
  --brand-soft: rgba(106, 141, 255, 0.14);
  --brand-soft-2: rgba(106, 141, 255, 0.3);
  --brand-2: #9d7bff;

  --success: #35d49a;
  --success-soft: rgba(53, 212, 154, 0.14);
  --warn: #e0a64a;
  --warn-soft: rgba(224, 166, 74, 0.14);
  --danger: #ff6b7d;
  --danger-soft: rgba(255, 107, 125, 0.13);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px -4px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 48px -14px rgba(0, 0, 0, 0.75), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 44px 84px -24px rgba(0, 0, 0, 0.85), 0 12px 28px -12px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 10px 26px -10px rgba(106, 141, 255, 0.55);
  --ring-brand: 0 0 0 4px rgba(106, 141, 255, 0.2);
}

/* ---- Pieces that carry their own colours rather than tokens ---- */

[data-theme="dark"] body { background-color: var(--paper); }

[data-theme="dark"] ::selection {
  background: rgba(106, 141, 255, 0.34);
  color: #ffffff;
}

[data-theme="dark"] .bg-glow {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(106, 141, 255, 0.16), transparent 70%),
    radial-gradient(700px 360px at 92% 2%, rgba(157, 123, 255, 0.12), transparent 72%),
    linear-gradient(to bottom, var(--surface), rgba(11, 14, 22, 0));
}

[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 14, 22, 0.72);
}

[data-theme="dark"] .navbar.is-scrolled {
  background: rgba(11, 14, 22, 0.9);
  box-shadow: 0 1px 14px -4px rgba(0, 0, 0, 0.7);
}

/* Solid brand buttons keep white lettering, which reads on this blue too */
[data-theme="dark"] .btn-download-mac,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-nav-cta,
[data-theme="dark"] .btn-card-action.primary,
[data-theme="dark"] .auth-btn-primary,
[data-theme="dark"] .btn-block.solid,
[data-theme="dark"] .modal-btn,
[data-theme="dark"] .popular-badge,
[data-theme="dark"] .hud-pop-digit,
[data-theme="dark"] .quiz-opt.is-answer .quiz-opt-key,
[data-theme="dark"] .mock-opt.hud-target {
  color: #05070d;
}

[data-theme="dark"] .auth-btn-primary.success { color: #04150e; }

[data-theme="dark"] .step:hover .step-num { color: #05070d; }

/* The answer row reads better as a tinted panel than as pale blue */
[data-theme="dark"] .quiz-opt.is-answer {
  background: rgba(106, 141, 255, 0.16);
  color: var(--brand-ink);
}

/* Hardware mock-ups: brushed dark rather than brushed white */
[data-theme="dark"] .preview-keycap {
  background: linear-gradient(180deg, #1c222e, #141922);
  box-shadow: 0 3px 0 0 #0d1119, var(--shadow-sm);
}

[data-theme="dark"] .trackpad-mockup {
  background: linear-gradient(180deg, #1a202b, #12161f);
}

[data-theme="dark"] .phone-mockup {
  background: linear-gradient(170deg, #1a202b, #10141c);
}

[data-theme="dark"] .trackpad-ripple { border-color: rgba(106, 141, 255, 0.5); }
[data-theme="dark"] .haptic-ripple { border-color: rgba(106, 141, 255, 0.36); }

[data-theme="dark"] .keycap-led {
  animation-name: capsLedPulseDark;
}

@keyframes capsLedPulseDark {
  0%, 14%   { opacity: 1; box-shadow: 0 0 10px 3px rgba(106, 141, 255, 0.55); }
  16%, 28%  { opacity: 0.18; box-shadow: none; }
  30%, 44%  { opacity: 1; box-shadow: 0 0 10px 3px rgba(106, 141, 255, 0.55); }
  46%, 100% { opacity: 0.18; box-shadow: none; }
}

/* The closing band stays vivid but is pulled down to suit the darker page */
[data-theme="dark"] .cta-inner {
  background: linear-gradient(135deg, #1b2a6b, #2f4bc4 52%, #5b3bd0);
}

/* The pointer sheen needs more presence against dark cards */
[data-theme="dark"] .mode-card::after,
[data-theme="dark"] .price-card::after,
[data-theme="dark"] .step::after,
[data-theme="dark"] .trust-card::after {
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(106, 141, 255, 0.16),
    transparent 62%
  );
}

/* Headings: same printed feel, lightened */
[data-theme="dark"] .section-title,
[data-theme="dark"] .faq-title,
[data-theme="dark"] .pricing-title,
[data-theme="dark"] .exam-feature h2 {
  background: linear-gradient(170deg, var(--ink) 34%, #97a2bd 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The toast inverts, so its lettering has to invert with it */
[data-theme="dark"] .solveo-toast {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* Modal veil */
[data-theme="dark"] .modal-backdrop {
  background: rgba(2, 4, 8, 0.66);
}

/* The macOS pointer in the headline and over the mock-up flips its outline */
[data-theme="dark"] .apple-cursor path,
[data-theme="dark"] .cursor-ghost path {
  fill: #e9edf7;
  stroke: #0b0e16;
}

/* Window chrome dots */
[data-theme="dark"] .win-dot { background: var(--surface-3); }

/* Trust section separation */
[data-theme="dark"] .trust-section,
[data-theme="dark"] .footer {
  background: var(--surface);
}

/* ============================================================================
   HERO DEMONSTRATION
   The stage attribute on #heroDemo drives everything below:
   idle → aiming → pressed → reading → revealed → resting, on a loop.
   ============================================================================ */

#heroDemo {
  padding-bottom: 92px;
}

@media (max-width: 680px) {
  #heroDemo { padding-bottom: 250px; }
}

/* The window itself stops reacting to hover while the demo plays */
#heroDemo .app-window { overflow: hidden; }

/* ---- Cursor: travels in, settles on the question number, clicks ---- */

#heroDemo .cursor-ghost {
  animation: none;
  opacity: 0;
  transform: translate(210px, 108px);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

#heroDemo[data-stage="aiming"] .cursor-ghost,
#heroDemo[data-stage="pressed"] .cursor-ghost,
#heroDemo[data-stage="reading"] .cursor-ghost,
#heroDemo[data-stage="revealed"] .cursor-ghost {
  opacity: 1;
  transform: translate(0, 0);
}

#heroDemo[data-stage="resting"] .cursor-ghost {
  opacity: 0;
  transform: translate(26px, 18px);
}

/* A short dip, as though the key were struck */
#heroDemo[data-stage="pressed"] .cursor-ghost {
  animation: demoCursorTap 0.7s cubic-bezier(0.34, 1.56, 0.44, 1) both;
}

@keyframes demoCursorTap {
  0%   { transform: translate(0, 0) scale(1); }
  28%  { transform: translate(0, 2px) scale(0.88); }
  100% { transform: translate(0, 0) scale(1); }
}

/* The question number lifts a touch as the cursor arrives */
#heroDemo .quiz-q-num {
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.5, 0.44, 1);
}

#heroDemo[data-stage="pressed"] .quiz-q-num,
#heroDemo[data-stage="reading"] .quiz-q-num,
#heroDemo[data-stage="revealed"] .quiz-q-num {
  color: var(--brand);
  transform: scale(1.12);
}

/* ---- Shortcut chip ---- */

.demo-keys {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -38%) scale(0.9);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.34, 1.5, 0.44, 1);
  pointer-events: none;
}

#heroDemo[data-stage="pressed"] .demo-keys,
#heroDemo[data-stage="reading"] .demo-keys {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#heroDemo[data-stage="reading"] .demo-keys { opacity: 0.55; }

.demo-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2.5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.demo-keys-plus {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
}

/* Each key depresses in turn, left to right */
#heroDemo[data-stage="pressed"] .demo-keys kbd {
  animation: demoKeyPress 0.46s cubic-bezier(0.34, 1.5, 0.44, 1) both;
}

#heroDemo[data-stage="pressed"] .demo-keys kbd:nth-of-type(1) { animation-delay: 0.06s; }
#heroDemo[data-stage="pressed"] .demo-keys kbd:nth-of-type(2) { animation-delay: 0.16s; }
#heroDemo[data-stage="pressed"] .demo-keys kbd:nth-of-type(3) { animation-delay: 0.26s; }

@keyframes demoKeyPress {
  0%   { transform: translateY(0); border-bottom-width: 2.5px; }
  40%  {
    transform: translateY(2.5px);
    border-bottom-width: 1px;
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
  }
  100% { transform: translateY(0); border-bottom-width: 2.5px; }
}

/* ---- Reading sweep and indicator ---- */

.demo-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(48, 86, 242, 0.05) 42%,
    rgba(48, 86, 242, 0.22) 50%,
    rgba(48, 86, 242, 0.05) 58%,
    transparent 100%
  );
}

#heroDemo[data-stage="reading"] .demo-scan {
  animation: demoScan 1s cubic-bezier(0.4, 0, 0.6, 1) both;
}

@keyframes demoScan {
  0%   { opacity: 0; transform: translateY(-100%); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}

.demo-reading {
  position: absolute;
  right: 14px;
  top: 52px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  font-weight: 560;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.26s ease, transform 0.26s ease;
  pointer-events: none;
  white-space: nowrap;
}

#heroDemo[data-stage="reading"] .demo-reading {
  opacity: 1;
  transform: translateY(0);
}

.demo-reading-dots {
  display: inline-flex;
  gap: 3px;
}

.demo-reading-dots i {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--brand);
}

#heroDemo[data-stage="reading"] .demo-reading-dots i {
  animation: demoThinking 1s ease-in-out infinite;
}

#heroDemo[data-stage="reading"] .demo-reading-dots i:nth-child(2) { animation-delay: 0.14s; }
#heroDemo[data-stage="reading"] .demo-reading-dots i:nth-child(3) { animation-delay: 0.28s; }

@keyframes demoThinking {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-2.5px); }
}

/* ---- The answer row stays neutral until the reveal ---- */

#heroDemo .quiz-opt {
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.4, 0.44, 1);
}

#heroDemo:not([data-stage="revealed"]) .quiz-opt.is-answer {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 400;
  box-shadow: none;
}

#heroDemo:not([data-stage="revealed"]) .quiz-opt.is-answer .quiz-opt-key {
  background: var(--surface-2);
  color: var(--ink-3);
}

#heroDemo .quiz-opt-check {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease 0.14s, transform 0.4s cubic-bezier(0.34, 1.7, 0.44, 1) 0.14s;
}

#heroDemo[data-stage="revealed"] .quiz-opt-check {
  opacity: 1;
  transform: scale(1);
}

#heroDemo[data-stage="revealed"] .quiz-opt.is-answer {
  transform: translateX(4px);
}

/* The others recede slightly, so the eye goes to the right row */
#heroDemo[data-stage="revealed"] .quiz-opt:not(.is-answer) {
  opacity: 0.45;
}

/* ============================================================================
   THE FIVE CHANNELS
   ============================================================================ */

.demo-stage {
  position: absolute;
  right: -10px;
  bottom: 104px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 680px) {
  .demo-stage {
    right: 50%;
    bottom: 142px;
    transform: translateX(50%);
  }
}

.demo-channel {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition:
    opacity 0.34s ease,
    transform 0.44s cubic-bezier(0.34, 1.45, 0.44, 1);
}

#heroDemo[data-mode="led"]     .demo-channel[data-channel="led"],
#heroDemo[data-mode="hud"]     .demo-channel[data-channel="hud"],
#heroDemo[data-mode="haptic"]  .demo-channel[data-channel="haptic"],
#heroDemo[data-mode="menubar"] .demo-channel[data-channel="menubar"],
#heroDemo[data-mode="phone"]   .demo-channel[data-channel="phone"] {
  display: flex;
}

#heroDemo[data-stage="revealed"] .demo-channel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- 1. Caps Lock LED ---- */

.demo-keycap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 124px;
  height: 54px;
  padding: 0 13px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f2f4f9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 0 var(--surface-3), var(--shadow-md);
}

.demo-keycap-label {
  font-size: 10.5px;
  font-weight: 560;
  color: var(--ink-3);
}

.demo-keycap-led {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

/* Two flashes, because the answer is the second option */
#heroDemo[data-stage="revealed"] .demo-keycap-led {
  animation: demoLedTwice 2.2s steps(1, end) 0.3s both;
}

@keyframes demoLedTwice {
  0%, 8%    { background: var(--surface-3); box-shadow: none; }
  9%, 26%   { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
  27%, 40%  { background: var(--surface-3); box-shadow: none; }
  41%, 58%  { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
  59%, 100% { background: var(--surface-3); box-shadow: none; }
}

.demo-pulse-count {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-pulse-count i {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

#heroDemo[data-stage="revealed"] .demo-pulse-count i:nth-child(1) {
  animation: demoCountOn 2.2s steps(1, end) 0.3s both;
}

#heroDemo[data-stage="revealed"] .demo-pulse-count i:nth-child(2) {
  animation: demoCountOn 2.2s steps(1, end) 0.3s both;
  animation-delay: 0.72s;
}

@keyframes demoCountOn {
  0%   { background: var(--surface-3); transform: scale(1); }
  6%   { background: var(--brand); transform: scale(1.3); }
  100% { background: var(--brand); transform: scale(1); }
}

/* ---- 2. Floating overlay ---- */

.demo-hud {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

#heroDemo[data-stage="revealed"] .demo-hud {
  animation: demoHudIn 0.6s cubic-bezier(0.34, 1.45, 0.44, 1) both;
}

@keyframes demoHudIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}

.demo-hud-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-brand);
}

.demo-hud-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-hud-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.demo-hud-text {
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- 3. Trackpad haptics ---- */

.demo-trackpad {
  position: relative;
  width: 132px;
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f1f3f9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.demo-finger {
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  background: var(--brand);
  z-index: 2;
}

#heroDemo[data-stage="revealed"] .demo-finger {
  animation: demoFingerTwice 2.2s ease-out 0.3s both;
}

@keyframes demoFingerTwice {
  0%, 10%   { transform: scale(1); }
  16%       { transform: scale(0.62); }
  26%       { transform: scale(1); }
  42%       { transform: scale(0.62); }
  52%, 100% { transform: scale(1); }
}

.demo-ring {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand);
  opacity: 0;
}

#heroDemo[data-stage="revealed"] .demo-ring.r1 {
  animation: demoRing 0.9s ease-out 0.46s both;
}

#heroDemo[data-stage="revealed"] .demo-ring.r2 {
  animation: demoRing 0.9s ease-out 1.04s both;
}

@keyframes demoRing {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(5.4); }
}

/* ---- 4. Menu bar ---- */

.demo-menubar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 540;
  color: var(--ink-3);
}

.demo-menubar-mark {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--brand);
}

.demo-menubar-name {
  font-weight: 600;
  color: var(--ink-2);
}

.demo-menubar-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  padding: 1px 5px;
  margin-left: 4px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-4);
}

#heroDemo[data-stage="revealed"] .demo-menubar-digit {
  animation: demoMenubarDigit 2.2s ease-out 0.34s both;
}

@keyframes demoMenubarDigit {
  0%   { background: var(--surface-2); color: var(--ink-4); transform: scale(1); }
  14%  { background: var(--brand); color: #ffffff; transform: scale(1.32); }
  30%  { background: var(--brand); color: #ffffff; transform: scale(1); }
  100% { background: var(--brand); color: #ffffff; transform: scale(1); }
}

.demo-menubar-time {
  font-variant-numeric: tabular-nums;
}

/* ---- 5. Phone vibration ---- */

.demo-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.demo-phone {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 116px;
  border-radius: 14px;
  background: linear-gradient(170deg, #ffffff, #eef1f7);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

#heroDemo[data-stage="revealed"] .demo-phone {
  animation: demoBuzzTwice 2.2s ease-in-out 0.3s both;
}

@keyframes demoBuzzTwice {
  0%, 10%    { transform: translate(0, 0) rotate(0deg); }
  13%        { transform: translate(-2.5px, 0) rotate(-2deg); }
  16%        { transform: translate(2.5px, 0) rotate(2deg); }
  19%        { transform: translate(-2px, 0) rotate(-1.5deg); }
  22%        { transform: translate(1.5px, 0) rotate(1deg); }
  25%, 38%   { transform: translate(0, 0) rotate(0deg); }
  41%        { transform: translate(-2.5px, 0) rotate(-2deg); }
  44%        { transform: translate(2.5px, 0) rotate(2deg); }
  47%        { transform: translate(-2px, 0) rotate(-1.5deg); }
  50%        { transform: translate(1.5px, 0) rotate(1deg); }
  53%, 100%  { transform: translate(0, 0) rotate(0deg); }
}

.demo-phone-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--success);
}

.demo-phone-digit {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.demo-buzz {
  position: absolute;
  width: 62px;
  height: 116px;
  border-radius: 14px;
  border: 2px solid var(--brand);
  opacity: 0;
  z-index: 1;
}

#heroDemo[data-stage="revealed"] .demo-buzz.b1 {
  animation: demoBuzzRing 0.85s ease-out 0.42s both;
}

#heroDemo[data-stage="revealed"] .demo-buzz.b2 {
  animation: demoBuzzRing 0.85s ease-out 1.1s both;
}

@keyframes demoBuzzRing {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* ============================================================================
   CAPTION AND MODE SELECTOR
   ============================================================================ */

.demo-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demo-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.34s ease, transform 0.34s ease;
  text-align: center;
}

#heroDemo[data-stage="revealed"] .demo-caption {
  opacity: 1;
  transform: translateY(0);
}

.demo-caption-via {
  color: var(--ink-3);
}

.demo-caption-mode {
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--brand);
}

.demo-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-dot {
  width: 24px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.demo-dot:hover { background: var(--ink-4); }

.demo-dot[aria-selected="true"] {
  width: 34px;
  background: var(--brand);
}

/* ============================================================================
   DEMONSTRATION IN DARK APPEARANCE
   ============================================================================ */

[data-theme="dark"] .demo-keycap {
  background: linear-gradient(180deg, #1c222e, #141922);
  box-shadow: 0 3px 0 0 #0d1119, var(--shadow-md);
}

[data-theme="dark"] .demo-trackpad {
  background: linear-gradient(180deg, #1a202b, #12161f);
}

[data-theme="dark"] .demo-phone {
  background: linear-gradient(170deg, #1a202b, #10141c);
}

[data-theme="dark"] .demo-hud-digit,
[data-theme="dark"] .demo-keys kbd { color: var(--ink); }

[data-theme="dark"] .demo-hud-digit { color: #05070d; }

[data-theme="dark"] .demo-scan {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(106, 141, 255, 0.07) 42%,
    rgba(106, 141, 255, 0.3) 50%,
    rgba(106, 141, 255, 0.07) 58%,
    transparent 100%
  );
}

[data-theme="dark"] .demo-keycap-led,
[data-theme="dark"] .demo-pulse-count i,
[data-theme="dark"] .demo-dot { background: var(--surface-3); }

@keyframes demoMenubarDigitDark {
  0%   { background: var(--surface-2); color: var(--ink-4); transform: scale(1); }
  14%  { background: var(--brand); color: #05070d; transform: scale(1.32); }
  30%  { background: var(--brand); color: #05070d; transform: scale(1); }
  100% { background: var(--brand); color: #05070d; transform: scale(1); }
}

[data-theme="dark"] #heroDemo[data-stage="revealed"] .demo-menubar-digit {
  animation-name: demoMenubarDigitDark;
}

@keyframes demoKeyPressDark {
  0%   { transform: translateY(0); border-bottom-width: 2.5px; }
  40%  {
    transform: translateY(2.5px);
    border-bottom-width: 1px;
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
  }
  100% { transform: translateY(0); border-bottom-width: 2.5px; }
}

[data-theme="dark"] #heroDemo[data-stage="pressed"] .demo-keys kbd {
  animation-name: demoKeyPressDark;
}

/* ============================================================================
   REDUCED MOTION
   The script parks the demonstration on its finished state; make sure that
   state is fully legible with no animation at all.
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  #heroDemo .cursor-ghost,
  #heroDemo .demo-keys,
  #heroDemo .demo-caption {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #heroDemo .demo-keys { transform: translate(-50%, -50%) !important; }

  #heroDemo .demo-channel {
    opacity: 1 !important;
    transform: none !important;
  }

  #heroDemo .demo-scan,
  #heroDemo .demo-reading { display: none !important; }

  #heroDemo[data-stage="revealed"] .quiz-opt:not(.is-answer) { opacity: 1; }

  #heroDemo .quiz-opt-check { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   LEGAL DOCUMENTS
   The three footer documents run long, so the modal that holds them gets more
   width, a readable measure and proper list styling.
   ============================================================================ */

#legalModal .modal-box {
  max-width: 720px;
  padding: 30px 32px 34px;
}

@media (max-width: 560px) {
  #legalModal .modal-box { padding: 24px 20px 26px; }
}

#legalModal .modal-title {
  font-size: 21px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.modal-body .legal-meta {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--ink-4);
}

.modal-body h4 {
  margin: 26px 0 9px;
  font-size: 14.5px;
  font-weight: 660;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-body h4:first-of-type { margin-top: 0; }

.modal-body p {
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
}

.modal-body ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.modal-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--brand);
}

.modal-body strong {
  color: var(--ink);
  font-weight: 620;
}

/* A hairline between articles keeps a long document navigable */
.modal-body h4 + p { margin-top: 0; }

/* Connexion Google : fond blanc et logo d'origine, comme Google le demande
   pour l'usage de son bouton. */
.auth-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #1f2430;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.auth-btn-google:hover { background: #f1f3f7; }
.auth-btn-google:active { transform: translateY(1px); }

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .65;
}
.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .25;
}

/* Parrainage : le lien doit se voir, se selectionner et se copier d'un
   geste. Un champ en lecture seule plutot qu'un simple texte, pour que la
   selection manuelle reste possible si le presse-papiers est refuse. */
.referral-panel { margin-top: 14px; }
.referral-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.referral-title { font-weight: 600; font-size: 15px; }
.referral-badge {
  font-weight: 700; font-size: 13px; color: var(--brand);
  background: var(--brand-soft); padding: 3px 9px; border-radius: 7px;
}
.referral-desc { font-size: 13px; opacity: .75; margin: 0 0 12px; line-height: 1.45; }
.referral-link-row { display: flex; gap: 8px; }
.referral-link {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--surface-3); background: var(--surface);
  color: inherit;
}
.referral-copy {
  flex: 0 0 auto; font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  transition: background .15s ease;
}
.referral-copy:hover { background: var(--brand-hover); }
.referral-stats { font-size: 13px; opacity: .75; margin-top: 10px; }

/* Demande d'assistance depuis le site. Le fil vient du serveur : chaque
   message est pose en textContent, jamais interprete comme du HTML. */
.support-textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.support-thread { max-height: 340px; overflow-y: auto; margin: 8px 0 4px; }
.support-message {
  padding: 11px 13px; border-radius: 11px; margin-bottom: 9px;
  font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.support-message.de-nous { background: var(--brand-soft); }
.support-message.de-lui { background: var(--surface-2); }
.support-message-qui { font-size: 11px; opacity: .6; margin-bottom: 4px; }
.footer-support-link {
  display: block; background: none; border: none; padding: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  opacity: .8; margin-bottom: 6px;
}
.footer-support-link:hover { opacity: 1; text-decoration: underline; }
