/* ---------- Design tokens ---------- */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --text: #0f1729;
  --text-2: #2c3550;
  --muted: #5d6680;
  --line: #e6e8ef;
  --line-strong: #d6d9e3;

  --accent: #5b5bf0;
  --accent-2: #8b5cf6;
  --accent-ink: #4338ca;
  --accent-soft: rgba(91, 91, 240, 0.09);
  --accent-line: rgba(91, 91, 240, 0.28);
  --orange: #f28c28;
  --orange-ink: #b45d0b;
  --orange-soft: rgba(242, 140, 40, 0.12);

  --green-ink: #157347;
  --green-soft: #e3f6ec;
  --red-ink: #b42343;
  --red-soft: #fdecef;
  --amber-ink: #8a5300;
  --amber-soft: #fff4d9;
  --amber-line: #f4d58d;
  --gray-ink: #4f5872;
  --gray-soft: #eef0f5;

  --header-bg: rgba(251, 251, 253, 0.78);
  --hero-glow-1: rgba(99, 102, 241, 0.22);
  --hero-glow-2: rgba(168, 85, 247, 0.16);
  --hero-glow-3: rgba(242, 140, 40, 0.14);
  --grid-line: rgba(15, 23, 41, 0.045);

  --mk-bg: #ffffff;
  --mk-side: #f6f7fb;
  --mk-skel: #e6e8f0;
  --mk-skel-2: #eef0f6;
  --mk-card: #ffffff;

  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04), 0 1px 3px rgba(15, 23, 41, 0.06);
  --shadow-md: 0 2px 6px rgba(15, 23, 41, 0.04), 0 12px 32px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 8px 20px rgba(15, 23, 41, 0.06), 0 30px 70px rgba(30, 27, 75, 0.16);
  --ring: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0d14;
  --bg-alt: #0f121b;
  --surface: #12151f;
  --surface-2: #181c28;
  --text: #eceef6;
  --text-2: #c9cede;
  --muted: #98a0b6;
  --line: #222736;
  --line-strong: #2e3446;
  --accent: #8b8dff;
  --accent-2: #b48cff;
  --accent-ink: #a5a7ff;
  --accent-soft: rgba(139, 141, 255, 0.13);
  --accent-line: rgba(139, 141, 255, 0.35);
  --orange-ink: #ffb066;
  --orange-soft: rgba(242, 140, 40, 0.16);
  --green-ink: #5fd59a;
  --green-soft: rgba(52, 199, 123, 0.14);
  --red-ink: #ff8da4;
  --red-soft: rgba(255, 99, 132, 0.13);
  --amber-ink: #ffcf70;
  --amber-soft: rgba(255, 191, 64, 0.12);
  --amber-line: rgba(255, 191, 64, 0.32);
  --gray-ink: #aab1c5;
  --gray-soft: rgba(170, 177, 197, 0.12);
  --header-bg: rgba(11, 13, 20, 0.72);
  --hero-glow-1: rgba(99, 102, 241, 0.3);
  --hero-glow-2: rgba(168, 85, 247, 0.22);
  --hero-glow-3: rgba(242, 140, 40, 0.12);
  --grid-line: rgba(255, 255, 255, 0.04);
  --mk-bg: #141824;
  --mk-side: #10131c;
  --mk-skel: #262c3d;
  --mk-skel-2: #1e2331;
  --mk-card: #1a1f2d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b0d14;
    --bg-alt: #0f121b;
    --surface: #12151f;
    --surface-2: #181c28;
    --text: #eceef6;
    --text-2: #c9cede;
    --muted: #98a0b6;
    --line: #222736;
    --line-strong: #2e3446;
    --accent: #8b8dff;
    --accent-2: #b48cff;
    --accent-ink: #a5a7ff;
    --accent-soft: rgba(139, 141, 255, 0.13);
    --accent-line: rgba(139, 141, 255, 0.35);
    --orange-ink: #ffb066;
    --orange-soft: rgba(242, 140, 40, 0.16);
    --green-ink: #5fd59a;
    --green-soft: rgba(52, 199, 123, 0.14);
    --red-ink: #ff8da4;
    --red-soft: rgba(255, 99, 132, 0.13);
    --amber-ink: #ffcf70;
    --amber-soft: rgba(255, 191, 64, 0.12);
    --amber-line: rgba(255, 191, 64, 0.32);
    --gray-ink: #aab1c5;
    --gray-soft: rgba(170, 177, 197, 0.12);
    --header-bg: rgba(11, 13, 20, 0.72);
    --hero-glow-1: rgba(99, 102, 241, 0.3);
    --hero-glow-2: rgba(168, 85, 247, 0.22);
    --hero-glow-3: rgba(242, 140, 40, 0.12);
    --grid-line: rgba(255, 255, 255, 0.04);
    --mk-bg: #141824;
    --mk-side: #10131c;
    --mk-skel: #262c3d;
    --mk-skel-2: #1e2331;
    --mk-card: #1a1f2d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 0.925rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px -6px rgba(91, 91, 240, 0.6);
}
.btn-primary:hover { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 26px -8px rgba(91, 91, 240, 0.75); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-line); background: var(--surface-2); }
.btn-dark { color: var(--bg); background: var(--text); }
.btn-dark:hover { color: var(--bg); opacity: 0.9; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0, 0, 0, 0.2); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #1f2a44, #2f3d66); color: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 4px 12px -4px rgba(31, 42, 68, 0.6);
}
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 3; }
.brand-text span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 550;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.site-nav .nav-cta {
  margin-left: 8px; color: var(--text); border: 1px solid var(--line-strong); background: var(--surface);
}
.site-nav .nav-cta:hover { border-color: var(--accent-line); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.2s;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent-line); background: var(--surface-2); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle span { display: inline-grid; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px 20px 20px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-bg, .page-head-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg {
  background:
    radial-gradient(60% 60% at 15% 10%, var(--hero-glow-1), transparent 70%),
    radial-gradient(50% 55% at 85% 20%, var(--hero-glow-2), transparent 70%),
    radial-gradient(40% 40% at 60% 100%, var(--hero-glow-3), transparent 70%);
}
.hero-bg::after, .page-head-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
}
.hero-pill .icon { color: var(--green-ink); }
.hero h1 { margin-bottom: 18px; }
.grad-text {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 55%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-search {
  position: relative; display: flex; align-items: center; max-width: 520px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-search-icon { display: grid; place-items: center; padding-left: 14px; color: var(--muted); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 13px 12px; font: inherit; font-size: 0.98rem; color: var(--text);
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus-visible { box-shadow: none; }
.hero-kbd {
  margin-right: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted); background: var(--surface-2);
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.9rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts .icon { color: var(--green-ink); }

/* ---------- Hero mockup (pure HTML/CSS/SVG) ---------- */
.mockup { position: relative; padding: 24px 8px 40px; }
.mk-window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--mk-bg); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.mockup:hover .mk-window { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.mk-window::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), transparent 40%, transparent 60%, rgba(242, 140, 40, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--mk-side); }
.mk-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mk-bar > span:nth-child(2) { background: #febc2e; }
.mk-bar > span:nth-child(3) { background: #28c840; }
.mk-url {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 3px 14px;
  border-radius: 6px; background: var(--mk-bg); border: 1px solid var(--line);
  font-size: 0.72rem; color: var(--muted); font-family: var(--mono);
}
.mk-body { display: grid; grid-template-columns: 52px 1fr; min-height: 330px; }
.mk-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; background: var(--mk-side); border-right: 1px solid var(--line); }
.mk-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; margin-bottom: 6px; }
.mk-logo .icon { stroke-width: 3; }
.mk-nav { width: 22px; height: 6px; border-radius: 4px; background: var(--mk-skel); }
.mk-nav.is-on { background: var(--accent); width: 26px; }
.mk-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-top { display: flex; align-items: center; justify-content: space-between; }
.mk-title { width: 38%; height: 10px; border-radius: 5px; background: var(--mk-skel); }
.mk-btn { width: 64px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-stat { padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--mk-card); }
.mk-stat > i { display: block; width: 50%; height: 6px; border-radius: 3px; background: var(--mk-skel); margin-bottom: 6px; }
.mk-spark { display: block; width: 100%; height: 28px; }
.mk-spark-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.mk-spark-fill { stroke: none; opacity: 0.16; }
.s1 .mk-spark-line { stroke: var(--accent); } .s1 .mk-spark-fill { fill: var(--accent); }
.s2 .mk-spark-line { stroke: #22c55e; } .s2 .mk-spark-fill { fill: #22c55e; }
.s3 .mk-spark-line { stroke: var(--orange); } .s3 .mk-spark-fill { fill: var(--orange); }
.mk-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; }
.mk-col { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; background: var(--mk-skel-2); }
.mk-col-head { display: flex; align-items: center; gap: 5px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); padding: 2px 2px 4px; text-transform: uppercase; }
.mk-dot { width: 6px; height: 6px; border-radius: 50%; }
.mk-dot.c1 { background: #94a3b8; } .mk-dot.c2 { background: var(--accent); } .mk-dot.c3 { background: var(--orange); } .mk-dot.c4 { background: #22c55e; }
.mk-card { position: relative; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 7px; background: var(--mk-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mk-av { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.mk-av-1 { background: linear-gradient(135deg, #818cf8, #6366f1); }
.mk-av-2 { background: linear-gradient(135deg, #fdba74, #f97316); }
.mk-av-3 { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.mk-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-lines i { display: block; height: 4px; border-radius: 2px; background: var(--mk-skel); }
.mk-lines i + i { opacity: 0.6; }
.mk-chip { position: absolute; top: 5px; right: 5px; width: 12px; height: 4px; border-radius: 2px; }
.mk-chip-a { background: var(--accent); } .mk-chip-b { background: var(--orange); } .mk-chip-c { background: #22c55e; }
.mk-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  font-size: 0.8rem; animation: float 6s ease-in-out infinite;
}
.mk-float-match { left: -8px; bottom: 6px; }
.mk-float-toast { right: -4px; top: 0; animation-delay: -3s; }
.mk-float-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.mk-float-icon.mk-green { background: var(--green-soft); color: var(--green-ink); }
.mk-float-text { display: flex; flex-direction: column; gap: 5px; }
.mk-float-text b { font-weight: 650; color: var(--text); }
.mk-meter { display: block; width: 110px; height: 5px; border-radius: 3px; background: var(--mk-skel); overflow: hidden; }
.mk-meter i { display: block; width: 86%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mk-sub-line { display: block; width: 80px; height: 5px; border-radius: 3px; background: var(--mk-skel); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .mk-window { transform: none; }
  .mockup:hover .mk-window { transform: none; }
}
@media (max-width: 520px) {
  .mk-body { grid-template-columns: 1fr; min-height: 0; }
  .mk-side { display: none; }
  .mk-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-col:nth-child(n + 3) { display: none; }
  .mk-float-match { left: 0; }
  .mk-float-toast { right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 64px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-title { margin: 48px 0 18px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.section-title:first-child { margin-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow-light { color: #c7c8ff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--accent-ink); }
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(3px); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }

/* ---------- Icon tiles ---------- */
.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-line) inset;
}
.icon-tile-sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-tile-lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-tile-lg .icon { width: 28px; height: 28px; }
.icon-tile-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 91, 240, 0.7); }
.icon-tile-green { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.icon-tile-orange { background: var(--orange-soft); color: var(--orange-ink); box-shadow: none; }
.icon-tile-gray { background: var(--gray-soft); color: var(--gray-ink); box-shadow: none; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.tool-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.tool-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--orange));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s;
}
.tool-card:hover, .tool-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.tool-card:hover::before, .tool-card:focus-within::before { opacity: 1; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-title-wrap { min-width: 0; }
.card-title { margin: 0; font-size: 1.05rem; letter-spacing: -0.015em; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); }
.card-cat { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); }
.card-verdict { margin: 0; color: var(--text-2); font-size: 0.93rem; flex: 1; }
.card-price { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.card-price-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card-price-value { font-size: 0.88rem; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { flex: 1; }

/* Logos: real logos sit on white so transparent icons stay legible in dark mode */
.logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-sm { width: 28px; height: 28px; border-radius: 7px; padding: 3px; }
.logo-md { width: 44px; height: 44px; border-radius: 11px; padding: 5px; }
.logo-lg { width: 72px; height: 72px; border-radius: 18px; padding: 9px; box-shadow: var(--shadow-sm); }
.logo-letter { font-weight: 800; color: #fff; border: 0; padding: 0; }
.logo-sm.logo-letter { font-size: 0.8rem; }
.logo-md.logo-letter { font-size: 1.2rem; }
.logo-lg.logo-letter { font-size: 2rem; }
.logo-letter-0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.logo-letter-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.logo-letter-2 { background: linear-gradient(135deg, #10b981, #0ea5e9); }

/* ---------- Tags and chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--pill);
  font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.tag .icon { width: 12px; height: 12px; }
.tag-green { background: var(--green-soft); color: var(--green-ink); }
.tag-gray { background: var(--gray-soft); color: var(--gray-ink); }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); white-space: normal; }
.tag-amber { background: var(--amber-soft); color: var(--amber-ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.page-head .chip-row { justify-content: flex-start; margin: 22px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 0.87rem; font-weight: 550; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.chip:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-1px); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-count { font-size: 0.75rem; padding: 0 7px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); }
.chip.is-active .chip-count { background: rgba(127, 127, 127, 0.25); color: inherit; }
.chip-quiz { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-count, .results-hint { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Home: feature cards and categories ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -8px; }
.feature-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.feature-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none;
}
a.feature-card:hover, .feature-card-list:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.feature-card h2 { font-size: 1.2rem; margin: 6px 0 0; }
.feature-card h2 a { color: var(--text); text-decoration: none; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; flex: 1; }
.vs-mini { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.vs-mini a { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 0.88rem; font-weight: 600; color: var(--text); text-decoration: none; }
.vs-mini a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.cat-section { margin-top: 48px; }
.cat-section:first-of-type { margin-top: 12px; }
.cat-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-section-head > div { flex: 1; min-width: 220px; }
.cat-section-head h2 { margin: 0; font-size: 1.3rem; }
.cat-section-head h2 a { color: var(--text); text-decoration: none; }
.cat-section-head h2 a:hover { color: var(--accent-ink); }
.cat-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }

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

/* ---------- Page heads ---------- */
.page-head { position: relative; overflow: hidden; padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-head-bg { background: radial-gradient(50% 80% at 10% 0%, var(--hero-glow-1), transparent 70%), radial-gradient(40% 70% at 90% 0%, var(--hero-glow-2), transparent 70%); opacity: 0.8; }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-sub { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.87rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-size: 0.93rem; }
.banner p { margin: 0; }
.banner .icon { margin-top: 2px; }
.banner-amber { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.banner-amber a { color: inherit; font-weight: 600; }

/* ---------- Tool page ---------- */
.tool-header { display: flex; align-items: center; gap: 22px; padding: 26px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.tool-header-main { flex: 1; min-width: 240px; }
.tool-header h1 { margin: 4px 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.tool-bestfor { color: var(--muted); margin-bottom: 12px; }
.tool-header-actions { display: flex; flex-direction: column; gap: 8px; }
.tool-body { display: grid; gap: 18px; }
.panel-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.verdict { padding: 24px 26px; border-left: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(180deg, var(--accent), var(--accent-2)) border-box; }
.verdict p { margin: 0; font-size: 1.08rem; color: var(--text); }
.split, .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 22px; }
.panel p { margin: 0; color: var(--text-2); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head .panel-label { margin: 0; flex: 1; }
.pc-col { padding: 22px; }
.pc-head-pros { color: var(--green-ink); }
.pc-head-cons { color: var(--red-ink); }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; }
.pc-list .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; margin-top: 2px; stroke-width: 3; }
.pc-pros .icon { background: var(--green-soft); color: var(--green-ink); }
.pc-cons .icon { background: var(--red-soft); color: var(--red-ink); }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); }
.callout p { margin: 0; }
.callout-warn { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.callout-warn .panel-label { color: var(--amber-ink); }
.callout-warn > .icon { margin-top: 2px; }
.matchups { padding: 20px 22px; }
.matchup-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-row { display: grid; gap: 8px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.source-row p { display: flex; gap: 10px; margin: 0; align-items: flex-start; word-break: break-word; }
.source-row .icon { margin-top: 3px; }
@media (max-width: 720px) {
  .split, .pros-cons { grid-template-columns: 1fr; }
  .tool-header-actions { width: 100%; }
}

/* ---------- Category page ---------- */
.cat-hero { display: flex; gap: 20px; align-items: flex-start; }
.cat-hero h1 { margin-bottom: 8px; }
.other-cats { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.other-cats h2 { font-size: 1.15rem; }
.other-cats .chip-row { justify-content: flex-start; }

/* ---------- Compare table ---------- */
.vs-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; margin-bottom: 24px; }
.vs-strip-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.9rem; margin-right: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 900px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare tbody tr { transition: background-color 0.15s; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.cmp-tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); text-decoration: none; }
a.cmp-tool:hover { color: var(--accent-ink); }
.cmp-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; text-decoration: none; }
a.cmp-cat:hover { color: var(--accent-ink); }
.cmp-text { color: var(--text-2); }
.cmp-text p { margin: 6px 0 0; }
.cmp-text .tag { margin-top: 4px; }
@media (max-width: 720px) {
  .compare th, .compare td { padding: 12px; }
  .compare:not(.vs-table) { min-width: 760px; }
  .compare:not(.vs-table) tbody th, .compare:not(.vs-table) thead th:first-child {
    position: sticky; left: 0; z-index: 1; width: 132px; min-width: 132px;
    background: var(--surface); box-shadow: 1px 0 0 var(--line), 6px 0 10px -8px rgba(15, 23, 41, 0.25);
  }
  .compare:not(.vs-table) thead th:first-child { z-index: 2; background: var(--surface-2); }
  .compare:not(.vs-table) tbody tr:hover > th { background: var(--surface-2); }
  .compare:not(.vs-table) .cmp-tool { gap: 8px; font-size: 0.86rem; line-height: 1.3; }
}
.table-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }
.table-note .icon { margin-top: 2px; }

/* ---------- VS pages ---------- */
.vs-word { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding: 0 0.1em; }
.vs-hero { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px 0 8px; flex-wrap: wrap; }
.vs-hero-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 28px; min-width: 220px; flex: 1; max-width: 340px;
  text-decoration: none; color: var(--text); text-align: center; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.vs-hero-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.vs-hero-name { font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.vs-hero-tag { font-size: 0.85rem; color: var(--muted); }
.vs-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; box-shadow: 0 10px 24px -8px rgba(91, 91, 240, 0.7);
}
.vs-badge-sm { width: 32px; height: 32px; font-size: 0.7rem; }
.vs-table { min-width: 640px; table-layout: fixed; }
.vs-table tbody th { width: 160px; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); }
.vs-table thead th:first-child { width: 160px; }
.vs-table td { word-break: break-word; }
.vs-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs-pc .pros-cons { grid-template-columns: 1fr; gap: 12px; }
.vs-pc-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pick-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pick-head { display: flex; align-items: center; gap: 10px; }
.pick-head h3 { margin: 0; }
.pick-card .checklist { flex: 1; }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.vs-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.vs-card p { color: var(--muted); margin: 0; flex: 1; font-size: 0.93rem; }
.vs-card-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
@media (max-width: 760px) { .vs-pc, .vs-pick { grid-template-columns: 1fr; } .vs-badge { width: 40px; height: 40px; } }
@media (max-width: 640px) {
  .vs-table, .vs-table thead, .vs-table tbody { display: block; min-width: 0; }
  .vs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-table thead th:first-child { display: none; }
  .vs-table thead th { position: static; }
  .vs-table thead th + th + th, .vs-table td + td { border-left: 1px solid var(--line); }
  .vs-table tbody th { grid-column: 1 / -1; width: auto; padding: 10px 14px; border-bottom: 0; }
  .vs-table td { padding: 10px 14px 14px; font-size: 0.86rem; word-break: normal; overflow-wrap: anywhere; }  .vs-table .cmp-tool { gap: 8px; min-width: 0; }
  .vs-table .cmp-cat { white-space: normal; }
}

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: 3px; padding: 2px; border-radius: 50%; width: 18px; height: 18px; stroke-width: 3; background: rgba(255, 255, 255, 0.14); color: #a5f3c4; }
.checklist-dark { margin: 0; }
.checklist-dark li { color: var(--text-2); }
.checklist-dark .icon { background: var(--green-soft); color: var(--green-ink); }

/* ---------- Quiz ---------- */
.quiz-head { max-width: 780px; }
.quiz-wrap { max-width: 780px; }
.quiz-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 20px; }
.quiz-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--orange)); transition: width 0.4s var(--ease); }
.quiz-step { border: 1px solid var(--line); margin: 0; padding: 28px; min-width: 0; animation: rise 0.35s var(--ease); }
.quiz-step legend { float: left; width: 100%; padding: 0; }
.quiz-step legend + * { clear: both; }
.quiz-num { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.quiz-q { display: block; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--text); }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.quiz-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  cursor: pointer; font-weight: 550; transition: border-color 0.15s, background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.quiz-opt:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.quiz-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); transition: border 0.15s; }
.quiz-opt input:checked { border: 5px solid var(--accent); }
.quiz-opt input:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.quiz-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quiz-nav #quiz-next, .quiz-nav #quiz-submit { margin-left: auto; }
.quiz-error { margin: 0; color: var(--red-ink); font-size: 0.9rem; font-weight: 600; }
.quiz-results:focus { outline: none; }
.quiz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.quiz-result { display: flex; gap: 18px; padding: 24px; animation: rise 0.45s var(--ease) both; }
.quiz-result:nth-child(2) { animation-delay: 0.08s; }
.quiz-result:nth-child(3) { animation-delay: 0.16s; }
.quiz-result:first-child { border-color: var(--accent-line); box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-line); }
.quiz-rank { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.quiz-result:first-child .quiz-rank { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; }
.quiz-result-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.quiz-result-main p { margin: 0; }
.quiz-fit { display: flex; align-items: center; gap: 10px; }
.quiz-fit-bar { flex: 1; max-width: 260px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quiz-fit-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.quiz-fit-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.quiz-why { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-why li { padding: 4px 10px; border-radius: var(--pill); background: var(--green-soft); color: var(--green-ink); font-size: 0.8rem; font-weight: 600; }
.quiz-meta { font-size: 0.92rem; color: var(--text-2); }
.quiz-con { color: var(--amber-ink); }
.quiz-result .card-actions { margin-top: 4px; }
.quiz-result .card-actions .btn { flex: 0 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .quiz-step { padding: 20px; } .quiz-result { flex-direction: column; gap: 12px; padding: 20px; } }

/* ---------- Templates and about ---------- */
.template-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.template-card p { color: var(--muted); margin: 0; flex: 1; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.prose { padding: 32px; }
.prose h2 { font-size: 1.3rem; }
.prose h2 + p, .prose p { color: var(--text-2); }
.prose h2:not(:first-child) { margin-top: 28px; }
.prose-narrow { max-width: 780px; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 8px; }
.prose code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.aff-note { display: flex; align-items: flex-start; gap: 6px; margin: 20px 0 0; font-size: 0.82rem; color: var(--muted); }
.aff-note .icon { margin-top: 3px; }
.aff-note a { color: inherit; }
.tool-header-actions .aff-note { margin: 2px 0 0; max-width: 240px; }
.contact-card { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-card h2 { margin: 6px 0 0; font-size: 1.2rem; }
.contact-card p { color: var(--muted); margin: 0 0 8px; }
.contact-card .btn { white-space: normal; word-break: break-all; }
.disclosure-pill { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0; padding: 6px 12px; border-radius: var(--pill); background: var(--green-soft); color: var(--green-ink); font-size: 0.82rem; font-weight: 600; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Offer CTA ---------- */
.section-cta { padding: 72px 0; border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.offer {
  position: relative; overflow: hidden; display: flex; gap: 28px; align-items: flex-start;
  padding: 40px; border-radius: var(--radius-lg); color: #e6e8f5;
  background: linear-gradient(135deg, #141a33 0%, #1f2a44 45%, #2a1f52 100%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08);
}
.offer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 90% 0%, rgba(139, 92, 246, 0.45), transparent 70%), radial-gradient(35% 50% at 0% 100%, rgba(242, 140, 40, 0.28), transparent 70%);
}
.offer-body { position: relative; flex: 1; }
.offer h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.offer-lead { color: #c3c7da; font-size: 1.04rem; }
.offer .checklist li { color: #e6e8f5; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.offer .btn-primary { background: linear-gradient(135deg, #f7a24b, var(--orange)); color: #1a1205; box-shadow: 0 10px 26px -10px rgba(242, 140, 40, 0.8); }
.offer .btn-primary:hover { color: #1a1205; }
.offer-fine { margin: 0; font-size: 0.85rem; color: #a3a8bf; }
.price-badge {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.price-amount { font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.price-note { font-size: 0.8rem; color: #c3c7da; margin-top: 6px; }
.newsletter { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.newsletter h2 { margin: 6px 0 0; font-size: 1.25rem; }
.newsletter p { color: var(--muted); margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: auto; padding-top: 8px; }
.newsletter-form input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.newsletter .newsletter-fine { font-size: 0.8rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .offer { flex-direction: column-reverse; padding: 28px 22px; }
  .price-badge { width: 100px; height: 100px; }
  .price-amount { font-size: 1.9rem; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 36px; }
.footer-about p { color: var(--muted); margin: 14px 0 0; max-width: 340px; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-heading-spaced { margin-top: 26px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: var(--text-2); text-decoration: none; word-break: break-word; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.83rem; }
.footer-bottom p { margin: 0; max-width: 620px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .container { padding: 0 18px; } .section { padding: 52px 0; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mk-window, .mockup:hover .mk-window { transform: none; }
}
