/* ============================================================
   AI荐才猫 · jiancaimao.work Design System
   Product-aligned Neo-brutalist aesthetic — warm paper, violet,
   ink outlines and offset shadows. Self-contained, no framework.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Match the product UI in /aijob/msj. */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --secondary: #38bdf8;
  --cta: #8b5cf6;
  --cta-dark: #7c3aed;
  --mint: #34d399;
  --pink: #f472b6;
  --amber: #fbbf24;
  --accent: #ede9fe;
  --accent-light: #f5f3ff;
  --ink-deep: #1e293b;
  --ink-mid: #334155;

  /* Surfaces */
  --bg: #fffdf5;
  --surface: #ffffff;
  --surface-2: #f5f3ff;
  --surface-3: #ede9fe;

  /* Text */
  --text: #1e293b;
  --text-soft: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --on-dark: #1e293b;
  --on-dark-muted: #64748b;

  /* Lines */
  --line: #dbe1ea;
  --line-strong: #1e293b;

  /* Semantic */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --star: #f59e0b;

  /* Product-aligned solid offset shadows. */
  --e1: 3px 3px 0 #e2e8f0;
  --e2: 5px 5px 0 #e2e8f0;
  --e3: 5px 5px 0 #1e293b;
  --e4: 9px 9px 0 #1e293b;
  --e-primary: 3px 3px 0 #1e293b;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-full: 999px;

  /* Layout */
  --maxw: 1760px;
  --maxw-narrow: 820px;
  --gut: clamp(16px, 2vw, 28px);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 0.18s var(--ease);
  --med: 0.26s var(--ease);

  --font:
    "Plus Jakarta Sans", Geist, Satoshi, "Avenir Next", "Segoe UI",
    -apple-system, BlinkMacSystemFont, Roboto, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(
      circle at 18px 18px,
      rgba(30, 41, 59, 0.055) 1.5px,
      transparent 2px
    ),
    var(--bg);
  background-size: 34px 34px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}
strong {
  font-weight: 600;
  color: var(--text);
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 94%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 0;
}
.wrap-narrow {
  max-width: var(--maxw-narrow);
}
.section {
  padding-block: clamp(64px, 8vw, 112px);
}
.section-sm {
  padding-block: clamp(36px, 5vw, 56px);
}
.section--alt {
  background: rgba(245, 243, 255, 0.82);
  border-block: 1px solid #ddd6fe;
}
.section--surface {
  background: var(--surface);
}
.section--dark {
  background: #f5f3ff;
  color: var(--text);
  border-block: 2px solid var(--ink-deep);
}

.center {
  text-align: center;
}
.eyebrow-wrap {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Section heading group */
.shead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.shead h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: inherit;
  margin-bottom: 16px;
}
.shead p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}
.section--dark .shead p {
  color: var(--text-muted);
}

/* ---------- Typography helpers ---------- */
.h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
}
.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow svg {
  width: 16px;
  height: 16px;
}
.section--dark .eyebrow {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--ink-deep);
  box-shadow: 2px 2px 0 var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.96rem;
  border: 2px solid var(--ink-deep);
  transition:
    background var(--fast),
    box-shadow var(--fast),
    transform var(--fast),
    color var(--fast),
    border-color var(--fast);
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-lg {
  padding: 15px 30px;
  font-size: 1.08rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--e-primary);
}
.btn-primary:hover {
  background: var(--cta-dark);
  box-shadow: 1px 1px 0 var(--ink-deep);
  transform: translate(2px, 2px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--e1);
}
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--ink-deep);
  box-shadow: 2px 2px 0 #cbd5e1;
}
.btn-outline:hover {
  border-color: var(--ink-deep);
  color: var(--text);
  background: var(--accent-light);
  box-shadow: none;
  transform: translate(2px, 2px);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text-soft);
}
.btn-ghost:hover {
  background: var(--surface-3);
}
.btn-light {
  background: #fff;
  color: var(--ink-deep);
  box-shadow: 3px 3px 0 var(--ink-deep);
}
.btn-light:hover {
  background: var(--surface-2);
}
.btn-on-dark {
  background: #fff;
  color: var(--ink-deep);
  border-color: var(--ink-deep);
  box-shadow: 3px 3px 0 var(--ink-deep);
}
.btn-on-dark:hover {
  background: var(--accent-light);
  box-shadow: none;
  transform: translate(2px, 2px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 480px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r-lg);
  box-shadow: var(--e1);
  transition:
    box-shadow var(--med),
    border-color var(--med),
    transform var(--med);
}
.card-pad {
  padding: clamp(20px, 3vw, 32px);
}
.card-hover:hover {
  box-shadow: 2px 2px 0 var(--ink-deep);
  border-color: var(--ink-deep);
  transform: translate(2px, 2px);
}

/* Icon tile (Material) */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), var(--accent));
  color: var(--primary);
}
.icon-tile svg {
  width: 28px;
  height: 28px;
}
.icon-tile-sm {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(79, 70, 229, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-tile-sm svg {
  width: 24px;
  height: 24px;
}

/* Feature/use-case card */
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature h3 {
  font-size: 1.2rem;
}
.feature p {
  color: var(--text-muted);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    background var(--fast),
    color var(--fast);
}
.chip:hover {
  background: var(--surface-3);
}
.chip-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-dark);
}
.chip-on {
  background: var(--primary);
  color: #fff;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Check list ---------- */
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
}
.check::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--primary);
  border-radius: var(--r-full);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.check-light::before {
  background: var(--primary);
}
.check-light {
  color: var(--text-soft);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 0;
  background: transparent;
  transition: padding var(--fast);
}
.site-header.scrolled {
  padding-top: 8px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  width: 94%;
  max-width: var(--maxw);
  padding-inline: 12px;
  border: 2px solid var(--ink-deep);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 4px 4px 0 var(--ink-deep);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink-deep);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 2px 2px 0 var(--ink-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-deep);
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
  transition:
    background var(--fast),
    color var(--fast);
  background: none;
  border: 0;
}
.nav-link:hover {
  color: var(--primary-dark);
  background: var(--accent-light);
}
.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--fast);
}

/* Dropdown */
.dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--fast),
    visibility var(--fast),
    transform var(--fast);
  transform: translateY(4px);
  z-index: 60;
}
.dropdown-menu.opacity-100,
.dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu.opacity-0,
.dropdown-menu.invisible {
  opacity: 0;
  visibility: hidden;
}
.dropdown-menu[data-align="right"] {
  left: auto;
  right: 0;
}
.dropdown-panel {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink-deep);
  padding: 12px;
  min-width: 300px;
  display: grid;
  gap: 4px;
}
.dropdown-panel--sm {
  min-width: 210px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background var(--fast);
}
.menu-item:hover {
  background: var(--accent-light);
}
.menu-item .icon-tile-sm {
  transition:
    background var(--fast),
    color var(--fast);
}
.menu-item:hover .icon-tile-sm {
  background: var(--primary);
  color: #fff;
}
.menu-item-title {
  font-weight: 600;
  color: var(--text);
  display: block;
}
.menu-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  transition:
    background var(--fast),
    color var(--fast);
}
.menu-link:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.menu-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.rotate-180 {
  transform: rotate(180deg);
}

.nav-cta {
  display: inline-flex;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile menu — markup ships with `hidden`; JS toggles it */
.mobile-menu {
  position: absolute;
  top: 82px;
  left: var(--gut);
  right: var(--gut);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 4px 4px 0 var(--ink-deep);
}
.m-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 500;
}
.m-link:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.m-dd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 500;
  background: none;
  border: 0;
}
.m-dd-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--fast);
}
.m-dd-panel {
  padding: 4px 0 4px 12px;
}
.m-sublink {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
}
.m-sublink:hover {
  background: var(--accent-light);
  color: var(--primary);
}

@media (max-width: 1023px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -78px;
  padding-block: clamp(150px, 12vw, 190px) clamp(72px, 8vw, 112px);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(139, 92, 246, 0.1), transparent 34%), var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 18px 18px,
    rgba(30, 41, 59, 0.1) 1.5px,
    transparent 2px
  );
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.hero-blob {
  position: absolute;
  pointer-events: none;
  filter: none;
  opacity: 1;
  border: 2px solid var(--ink-deep);
}
.hero-blob-1 {
  top: 150px;
  right: 4%;
  width: 74px;
  height: 74px;
  border-radius: 50% 50% 8px 50%;
  background: var(--pink);
  box-shadow: 5px 5px 0 var(--ink-deep);
  transform: rotate(12deg);
}
.hero-blob-2 {
  bottom: 70px;
  left: 44%;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--ink-deep);
  transform: rotate(-10deg);
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  position: relative;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }
}
.hero-copy {
  max-width: 650px;
}
.hero h1 {
  font-size: clamp(2.65rem, 4.7vw, 4.75rem);
  margin: 20px 0;
  letter-spacing: -0.06em;
  color: var(--text);
}
.hero .brand-line {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1rem;
}
.hero .lead {
  color: var(--text-muted);
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  max-width: 650px;
}
.hero .eyebrow {
  color: var(--ink-deep);
  background: #fff;
  border: 2px solid var(--ink-deep);
  box-shadow: 2px 2px 0 var(--primary);
}
.hero .btn-outline {
  color: var(--ink-deep);
  border-color: var(--ink-deep);
}
.hero .btn-outline:hover {
  color: var(--ink-deep);
  border-color: var(--ink-deep);
  background: var(--accent-light);
}
.hero-tagline {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-accent {
  display: inline-block;
  margin-inline: 0.08em;
  padding: 0 0.13em 0.06em;
  border: 2px solid var(--ink-deep);
  border-radius: 5px;
  background: var(--amber);
  box-shadow: 5px 5px 0 var(--ink-deep);
  color: var(--ink-deep);
  transform: rotate(-1deg);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-row svg {
  width: 16px;
  height: 16px;
  color: #059669;
}

/* ---------- AI screening demo card ---------- */
.riskcard {
  position: relative;
}
.riskcard .card {
  box-shadow: var(--e4);
}
.score-badge {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.score-badge.ok {
  background: var(--success-bg);
  color: var(--success);
}
.score-badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.score-ring {
  width: 76px;
  height: 76px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
}
.score-ring.ok {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
}
.score-ring.danger {
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
  color: var(--danger);
}
.alert {
  padding: 14px;
  border-radius: var(--r-sm);
  border-left: 4px solid;
  display: flex;
  gap: 12px;
}
.alert-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.alert-icon svg {
  width: 16px;
  height: 16px;
}
.alert.is-danger {
  background: var(--danger-bg);
  border-color: var(--danger);
}
.alert.is-danger .alert-icon {
  background: #fee2e2;
  color: var(--danger);
}
.alert.is-warn {
  background: var(--warn-bg);
  border-color: var(--warn);
}
.alert.is-warn .alert-icon {
  background: #fef3c7;
  color: var(--warn);
}
.alert.is-ok {
  background: var(--accent-light);
  border-color: var(--primary);
}
.alert.is-ok .alert-icon {
  background: var(--accent);
  color: var(--primary);
}
.alert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.alert-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.deco {
  position: absolute;
  border-radius: var(--r);
  z-index: -1;
}
.deco-1 {
  bottom: -16px;
  right: -16px;
  width: 92px;
  height: 92px;
  background: var(--accent);
}
.deco-2 {
  top: -16px;
  left: -16px;
  width: 60px;
  height: 60px;
  background: rgba(79, 70, 229, 0.12);
}

/* ---------- Product-led homepage ---------- */
.product-stage {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}
.product-window {
  overflow: hidden;
  border: 2px solid var(--ink-deep);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--e4);
  transform: rotate(0.35deg);
  transform-origin: center;
  color: var(--text);
}
.window-top {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 2px solid var(--ink-deep);
  color: #64748b;
  font-size: 0.72rem;
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots i {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: #cbd5e1;
}
.window-dots i:first-child {
  background: #fb7185;
}
.window-dots i:nth-child(2) {
  background: #fbbf24;
}
.window-dots i:last-child {
  background: #34d399;
}
.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: #475569;
}
.window-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.product-body {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 470px;
}
.product-sidebar {
  padding: 16px 10px;
  border-right: 2px solid var(--ink-deep);
  background: var(--bg);
  color: var(--text-muted);
}
.product-side-brand {
  color: var(--ink-deep);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0 8px 16px;
  letter-spacing: 0.02em;
}
.side-label {
  padding: 8px;
  font-size: 0.58rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 8px;
  margin-bottom: 3px;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 650;
}
.side-item i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}
.side-item.active {
  color: var(--ink-deep);
  background: var(--mint);
  box-shadow: inset 0 0 0 1.5px var(--ink-deep);
}
.side-item.active i {
  color: var(--ink-deep);
  background: #fff;
  border-color: var(--ink-deep);
  box-shadow: none;
}
.product-main {
  min-width: 0;
  padding: 18px;
  background: #fffdf5;
}
.product-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.product-toolbar small {
  display: block;
  color: #7b8ba1;
  font-size: 0.62rem;
  margin-bottom: 3px;
}
.product-toolbar strong {
  color: #15243a;
  font-size: 0.9rem;
}
.mini-action {
  flex: none;
  padding: 7px 10px;
  border: 1.5px solid var(--ink-deep);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 2px 2px 0 var(--ink-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.mini-kpi {
  padding: 10px;
  border: 1.5px solid var(--ink-deep);
  border-radius: 6px;
  background: #fff;
  box-shadow: 2px 2px 0 #e2e8f0;
}
.mini-kpi span {
  display: block;
  color: #8492a6;
  font-size: 0.55rem;
}
.mini-kpi b {
  display: block;
  margin-top: 3px;
  color: #14243a;
  font-size: 0.92rem;
}
.mini-kpi em {
  margin-left: 3px;
  color: #10b981;
  font-size: 0.52rem;
  font-style: normal;
}
.candidate-panel {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  overflow: hidden;
  border: 1.5px solid var(--ink-deep);
  border-radius: 7px;
  background: #fff;
}
.candidate-list {
  padding: 8px;
  border-right: 1.5px solid var(--ink-deep);
  background: #fffdf5;
}
.candidate-list-title {
  padding: 5px 5px 8px;
  color: #7c8ca2;
  font-size: 0.56rem;
  font-weight: 700;
}
.candidate-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px;
  border-radius: 8px;
}
.candidate-row.active {
  background: #f5f3ff;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}
.candidate-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.58rem;
  font-weight: 800;
}
.candidate-row:nth-child(3) .candidate-avatar {
  background: #fef3c7;
  color: #b45309;
}
.candidate-row:nth-child(4) .candidate-avatar {
  background: #d1fae5;
  color: #047857;
}
.candidate-name {
  min-width: 0;
  flex: 1;
}
.candidate-name b,
.candidate-name small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.candidate-name b {
  font-size: 0.58rem;
  color: #24364d;
}
.candidate-name small {
  font-size: 0.5rem;
  color: #94a3b8;
}
.candidate-score {
  color: #16a34a;
  font-size: 0.55rem;
  font-weight: 800;
}
.candidate-detail {
  min-width: 0;
  padding: 12px;
}
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
}
.detail-person {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-person .candidate-avatar {
  width: 30px;
  height: 30px;
}
.detail-person b {
  display: block;
  color: #14243a;
  font-size: 0.7rem;
}
.detail-person small {
  display: block;
  color: #8492a6;
  font-size: 0.52rem;
}
.match-pill {
  padding: 5px 8px;
  border: 1px solid #047857;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.52rem;
  font-weight: 800;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}
.score-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px solid var(--ink-deep);
  border-radius: 6px;
  background: var(--amber);
  box-shadow: 2px 2px 0 var(--ink-deep);
  color: var(--ink-deep);
  font-size: 1rem;
  font-weight: 850;
}
.score-copy b {
  display: block;
  color: #1e2f46;
  font-size: 0.62rem;
}
.score-copy small {
  display: block;
  color: #7d8da2;
  font-size: 0.52rem;
  line-height: 1.5;
}
.evidence-list {
  display: grid;
  gap: 6px;
}
.evidence-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #f8fafc;
}
.evidence-check {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d1fae5;
  color: #047857;
  font-size: 0.48rem;
  font-weight: 900;
}
.evidence-item.warn .evidence-check {
  background: #fef3c7;
  color: #b45309;
}
.evidence-copy b,
.evidence-copy small {
  display: block;
}
.evidence-copy b {
  color: #334155;
  font-size: 0.54rem;
}
.evidence-copy small {
  color: #94a3b8;
  font-size: 0.48rem;
}
.evidence-tag {
  color: var(--primary-dark);
  font-size: 0.49rem;
  font-weight: 750;
}
.floating-proof {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(220px, 44%);
  padding: 12px 14px;
  border: 2px solid var(--ink-deep);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 5px 5px 0 var(--mint);
  color: #1e293b;
  backdrop-filter: blur(12px);
}
.floating-proof span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
}
.floating-proof strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #0f766e;
  font-size: 0.75rem;
}
.floating-proof strong::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
}

.signal-strip {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}
.signal-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 2px solid var(--ink-deep);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 5px 5px 0 var(--ink-deep);
}
.signal-item {
  position: relative;
  padding: 24px 26px;
}
.signal-item + .signal-item::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 2px;
  background: var(--ink-deep);
}
.signal-item b {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.signal-item span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--primary);
}
.section-intro {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 5vw, 58px);
}
.section-title-row h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.flow-shell {
  overflow: hidden;
  border: 2px solid var(--ink-deep);
  border-radius: 10px;
  background: #fff;
  box-shadow: 6px 6px 0 #e2e8f0;
}
.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 2px solid var(--ink-deep);
  background: #fdf6df;
}
.flow-top strong {
  color: var(--text);
}
.flow-top span {
  color: var(--text-muted);
  font-size: 0.86rem;
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
}
.flow-step {
  position: relative;
  min-width: 0;
  padding: 24px 12px 22px;
  border-radius: 6px;
  text-align: center;
}
.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -16%;
  width: 32%;
  height: 1px;
  background: #cbd5e1;
}
.flow-dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 2px solid var(--ink-deep);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 850;
  box-shadow: 2px 2px 0 var(--ink-deep);
}
.flow-step:nth-child(4) .flow-dot {
  background: var(--mint);
  color: var(--ink-deep);
  box-shadow: 2px 2px 0 var(--ink-deep);
}
.flow-step b {
  display: block;
  color: #1d2c42;
  font-size: 0.86rem;
}
.flow-step small {
  display: block;
  margin-top: 5px;
  color: #7d8da2;
  font-size: 0.7rem;
  line-height: 1.45;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-card {
  grid-column: span 4;
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  border: 2px solid var(--ink-deep);
  border-radius: 9px;
  background: #fff;
  box-shadow: 4px 4px 0 #e2e8f0;
  transition:
    transform var(--med),
    box-shadow var(--med),
    border-color var(--med);
}
.bento-card:hover {
  transform: translate(2px, 2px);
  border-color: var(--ink-deep);
  box-shadow: 2px 2px 0 var(--ink-deep);
}
.bento-card.wide {
  grid-column: span 8;
}
.bento-card.dark {
  color: var(--text);
  background: #f5f3ff;
  border-color: var(--ink-deep);
  box-shadow: 5px 5px 0 var(--primary);
}
.bento-card.sky {
  background: #f0fdfa;
  box-shadow: 5px 5px 0 var(--mint);
}
.bento-card h3 {
  margin: 20px 0 10px;
  font-size: 1.28rem;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.bento-card.dark p {
  color: var(--text-muted);
}
.bento-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-deep);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 2px 2px 0 var(--ink-deep);
  color: var(--ink-deep);
}
.bento-icon svg {
  width: 22px;
  height: 22px;
}
.bento-card.dark .bento-icon {
  color: var(--ink-deep);
  background: var(--pink);
}
.rule-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}
.rule-preview div {
  padding: 10px;
  border: 1.5px solid var(--ink-deep);
  border-radius: 5px;
  background: #fff;
}
.rule-preview b {
  display: block;
  color: var(--ink-deep);
  font-size: 0.74rem;
}
.rule-preview small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.62rem;
}
.rule-preview i {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--mint);
}
.rule-preview div:nth-child(2) i {
  width: 72%;
  background: var(--secondary);
}
.rule-preview div:nth-child(3) i {
  width: 42%;
  background: var(--amber);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.role-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: 28px;
  border: 2px solid var(--ink-deep);
  border-radius: 9px;
  background: #fff;
  box-shadow: 5px 5px 0 #e2e8f0;
  transition:
    transform var(--med),
    box-shadow var(--med),
    border-color var(--med);
}
.role-card:hover {
  transform: translate(2px, 2px);
  border-color: var(--ink-deep);
  box-shadow: 2px 2px 0 var(--ink-deep);
}
.role-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.role-num svg {
  width: 20px;
  height: 20px;
  transition: transform var(--fast);
}
.role-card:hover .role-num svg {
  transform: translate(3px, -3px);
  color: var(--primary);
}
.role-card h3 {
  margin: 60px 0 12px;
  font-size: 1.45rem;
}
.role-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.role-outcome {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #304259;
  font-size: 0.82rem;
  font-weight: 700;
}
.role-card:nth-child(1) {
  box-shadow: 5px 5px 0 var(--secondary);
}
.role-card:nth-child(2) {
  background: #fdf4ff;
  box-shadow: 5px 5px 0 var(--pink);
}
.role-card:nth-child(3) {
  background: #f0fdfa;
  border-color: var(--ink-deep);
  box-shadow: 5px 5px 0 var(--mint);
}
.role-card:nth-child(3) h3 {
  color: var(--text);
}
.role-card:nth-child(3) p,
.role-card:nth-child(3) .role-num {
  color: var(--text-muted);
}
.role-card:nth-child(3) .role-outcome {
  color: var(--text-soft);
  border-color: var(--line);
}

.trust-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
}
.section--dark .section-kicker {
  color: var(--primary-dark);
}
.section--dark .section-kicker::before {
  background: var(--primary);
}
.trust-copy h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.trust-copy > p {
  margin-top: 18px;
  color: var(--text-muted);
}
.trust-quote {
  margin-top: 28px;
  padding: 18px 20px;
  border: 2px solid var(--ink-deep);
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--ink-deep);
  color: var(--text);
  border-radius: 8px 8px 8px 0;
}
.trust-list {
  display: grid;
  gap: 12px;
}
.trust-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 2px solid var(--ink-deep);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 #e2e8f0;
}
.trust-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-deep);
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink-deep);
}
.trust-item-icon svg {
  width: 21px;
  height: 21px;
}
.trust-item b {
  display: block;
  color: var(--text);
}
.trust-item p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.closing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 82px);
  border: 2px solid var(--ink-deep);
  border-radius: 10px;
  background: var(--amber);
  color: var(--text);
  text-align: center;
  box-shadow: 8px 8px 0 var(--ink-deep);
}
.closing-card::before,
.closing-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.closing-card::before {
  width: 210px;
  height: 210px;
  top: -130px;
  left: -70px;
  border: 45px solid rgba(255, 255, 255, 0.28);
}
.closing-card::after {
  width: 280px;
  height: 280px;
  right: -150px;
  bottom: -190px;
  border: 60px solid rgba(139, 92, 246, 0.18);
}
.closing-card > * {
  position: relative;
  z-index: 1;
}
.closing-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.closing-card p {
  max-width: 620px;
  margin: 18px auto 28px;
  color: var(--text-soft);
}
.closing-card .btn-light {
  color: var(--ink-deep);
  font-weight: 800;
}

@media (max-width: 999px) {
  .product-window {
    transform: none;
  }
  .product-body {
    min-height: 420px;
  }
  .signal-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .signal-item:nth-child(3)::before {
    display: none;
  }
  .flow-track {
    overflow-x: auto;
    grid-template-columns: repeat(7, 130px);
  }
  .bento-card,
  .bento-card.wide {
    grid-column: span 6;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .role-card {
    min-height: 300px;
  }
  .trust-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: 100%;
    padding-inline: 16px;
  }
  .nav {
    width: calc(100% - 24px);
  }
  .mobile-menu {
    left: 12px;
    right: 12px;
  }
  .hero {
    margin-top: -78px;
    padding-top: 132px;
  }
  .hero-grid {
    gap: 46px;
  }
  .product-body {
    grid-template-columns: 1fr;
    min-height: 390px;
  }
  .product-sidebar {
    display: none;
  }
  .product-main {
    padding: 12px;
  }
  .mini-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .candidate-panel {
    grid-template-columns: 1fr;
  }
  .candidate-list {
    display: none;
  }
  .floating-proof {
    right: 10px;
    bottom: -20px;
    width: 190px;
  }
  .signal-strip {
    margin-top: 0;
    padding-top: 18px;
  }
  .signal-card {
    grid-template-columns: 1fr 1fr;
  }
  .signal-item {
    padding: 18px;
  }
  .signal-item::before {
    display: none;
  }
  .section-title-row {
    display: block;
  }
  .section-title-row .section-intro {
    margin-top: 16px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card,
  .bento-card.wide {
    grid-column: auto;
    min-height: 0;
  }
  .rule-preview {
    grid-template-columns: 1fr;
  }
  .flow-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Pipeline (workflow spine) ---------- */
.pipeline {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  counter-reset: step;
}
.pipe-step {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 20px 18px;
  box-shadow: 3px 3px 0 #e2e8f0;
  transition:
    box-shadow var(--med),
    transform var(--med);
}
.pipe-step:hover {
  box-shadow: 1px 1px 0 var(--ink-deep);
  transform: translate(2px, 2px);
}
.pipe-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.pipe-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.pipe-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Persona cards ---------- */
.persona-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 3px 3px 0 #e2e8f0;
  transition:
    box-shadow var(--med),
    border-color var(--med),
    transform var(--med);
}
.persona-card:hover {
  box-shadow: 1px 1px 0 var(--ink-deep);
  border-color: var(--ink-deep);
  transform: translate(2px, 2px);
}
.persona-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: none;
}
.persona-card h3 {
  font-size: 1.15rem;
}
.persona-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.persona-need {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Scenario split ---------- */
.scenario {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
@media (min-width: 900px) {
  .scenario {
    grid-template-columns: 1fr 1fr;
  }
  .scenario.reverse .scenario-media {
    order: -1;
  }
}
.scenario-media {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 4px 4px 0 #e2e8f0;
}
.scenario h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 12px;
}
.scenario-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
}
.section--dark .stat-num {
  color: var(--primary-dark);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.section--dark .stat-label {
  color: var(--text-muted);
}

/* ---------- Pain points (dark) ---------- */
.pain-card {
  background: #fff;
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 4px 4px 0 #e2e8f0;
  transition:
    background var(--med),
    transform var(--med),
    box-shadow var(--med);
}
.pain-card:hover {
  background: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink-deep);
}
.pain-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}
.pain-card p {
  color: var(--text-muted);
}
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pain-icon svg {
  width: 24px;
  height: 24px;
}
.pain-icon.c-red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
.pain-icon.c-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}
.pain-icon.c-orange {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}
.pain-icon.c-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}
.pain-icon.c-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}
.span-2 {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .span-2 {
    grid-column: auto;
  }
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 4px 4px 0 #e2e8f0;
  transition:
    border-color var(--med),
    box-shadow var(--med),
    transform var(--med);
}
.price-card:hover {
  border-color: var(--ink-deep);
  box-shadow: 2px 2px 0 var(--ink-deep);
  transform: translate(2px, 2px);
}
.price-card--featured {
  background: var(--accent-light);
  color: var(--text);
  border-color: var(--ink-deep);
  box-shadow: 6px 6px 0 var(--primary);
  position: relative;
  overflow: hidden;
}
.price-card--featured .price-name,
.price-card--featured .price-amt {
  color: var(--text);
}
.price-card--featured .price-sub,
.price-card--featured .price-per {
  color: var(--text-muted);
}
.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--amber);
  color: var(--text);
  border-left: 2px solid var(--ink-deep);
  border-bottom: 2px solid var(--ink-deep);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 16px;
  border-bottom-left-radius: 6px;
}
.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.price-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.price-amt {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
}
.price-per {
  color: var(--text-muted);
}
.price-head {
  margin-bottom: 22px;
}
.price-fig {
  margin-bottom: 24px;
}
.price-card .checks {
  margin-bottom: 28px;
}

/* ---------- Testimonials ---------- */
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--star);
}
.stars svg {
  width: 20px;
  height: 20px;
}
.quote {
  color: var(--text-soft);
  margin-bottom: 18px;
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-name {
  font-weight: 600;
  color: var(--text);
}
.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 3px 3px 0 #e2e8f0;
}
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary h3 {
  font-size: 1rem;
  font-weight: 600;
}
.faq-item > summary svg {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  flex: none;
  transition: transform var(--fast);
}
.faq-item[open] > summary svg {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--amber);
  color: var(--text);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink-deep);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}
.cta-section {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--amber);
  color: var(--text);
  border-block: 2px solid var(--ink-deep);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin-bottom: 14px;
}
.cta-section p {
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs svg {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}
.crumbs .here {
  color: var(--text);
}

/* ---------- Page header (lists/tags) ---------- */
.page-head {
  background: linear-gradient(150deg, var(--accent-light), var(--bg));
  border-bottom: 2px solid var(--ink-deep);
  padding-block: clamp(40px, 6vw, 72px);
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 14px;
}
.page-head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Article (blog) cards ---------- */
.post-card {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 3px 3px 0 #e2e8f0;
  transition:
    box-shadow var(--med),
    transform var(--med),
    border-color var(--med);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 1px 1px 0 var(--ink-deep);
  transform: translate(2px, 2px);
  border-color: var(--ink-deep);
}
.post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb svg {
  width: 56px;
  height: 56px;
}
.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--fast);
}
.post-card:hover .post-title {
  color: var(--primary);
}
.post-excerpt {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.post-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 4px;
}
.readmore {
  color: var(--primary);
  font-weight: 600;
}
.readmore:hover {
  color: var(--primary-dark);
}

/* line clamps */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Pagination ---------- */
.pager {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.pager-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 8px;
  box-shadow: 3px 3px 0 #e2e8f0;
  flex-wrap: wrap;
  justify-content: center;
}
.pager a,
.pager .page-num {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 500;
  transition:
    background var(--fast),
    color var(--fast);
}
.pager a:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.pager .page-num {
  background: var(--primary);
  color: #fff;
}
.pager .page-info {
  padding: 8px 12px;
  color: var(--text-muted);
}

/* ---------- Sidebar widgets ---------- */
.layout-2col {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 1000px) {
  .layout-2col {
    grid-template-columns: 1fr 320px;
  }
}
.widget {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 3px 3px 0 #e2e8f0;
}
.widget h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.widget-cta {
  background: var(--primary);
  color: #fff;
}
.widget-cta h3,
.widget-cta p {
  color: #fff;
}
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  transition: color var(--fast);
}
.widget-list a:hover {
  color: var(--primary);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.sticky-24 {
  position: sticky;
  top: 86px;
}

/* ---------- Article header + TOC ---------- */
.article-head {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 3px 3px 0 #e2e8f0;
  margin-bottom: 24px;
}
.article-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 12px 0;
  line-height: 1.25;
}
.article-body {
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 3px 3px 0 #e2e8f0;
  margin-bottom: 24px;
}
.toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc li.lvl-h3 {
  margin-left: 14px;
}
.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition:
    background var(--fast),
    color var(--fast);
}
.toc-link:hover {
  background: var(--accent-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    border-color var(--fast),
    box-shadow var(--fast);
}
.related-link:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: var(--e1);
}
.related-link h4 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---------- Prose (article body) ---------- */
.prose {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.85;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
  color: var(--text);
}
.prose h3 {
  font-size: 1.3rem;
  margin-top: 1.5em;
  color: var(--text);
}
.prose p {
  margin-block: 0;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-top: 0.5em;
}
.prose img {
  border-radius: var(--r);
  margin-block: 1.4em;
}
.prose blockquote {
  border-left: 4px solid var(--primary);
  background: var(--accent-light);
  padding: 14px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-soft);
}
.prose code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.prose pre {
  background: var(--ink-deep);
  color: var(--accent);
  padding: 18px;
  border-radius: var(--r);
  overflow: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.prose th {
  background: var(--surface-2);
}

/* ---------- Comparison table ---------- */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 3px 3px 0 #e2e8f0;
}
.cmp-table th,
.cmp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.cmp-table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}
.cmp-table td:first-child,
.cmp-table th:first-child {
  color: var(--text-soft);
  font-weight: 600;
}
.cmp-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--text);
  border-top: 2px solid var(--ink-deep);
}
.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: clamp(44px, 6vw, 72px);
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-brand {
  max-width: 360px;
}
.footer-brand .brand {
  color: var(--text);
  margin-bottom: 18px;
}
.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-badges svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.footer-col h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  transition: color var(--fast);
}
.footer-col a:hover {
  color: var(--primary-dark);
}
.footer-bottom {
  border-top: 2px solid var(--ink-deep);
  background: #f5f3ff;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-inner .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom-inner a:hover {
  color: var(--primary-dark);
}

/* ---------- Utilities (curated) ---------- */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.wrap-flex {
  flex-wrap: wrap;
}
.col {
  display: flex;
  flex-direction: column;
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-8 {
  margin-bottom: 32px;
}
.relative {
  position: relative;
}
.text-center {
  text-align: center;
}
.hidden {
  display: none;
}
.full {
  width: 100%;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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