/* ============================================================
   ShiftCRM — marketing site
   Self-contained: system fonts, no external assets.
   ============================================================ */

:root {
  --ink: #10121a;
  --ink-soft: #4b5163;
  --ink-faint: #8a90a3;
  --paper: #ffffff;
  --paper-alt: #f5f6fa;
  --line: #e5e7ef;

  --accent: #5b5bd6;
  --accent-deep: #4646c6;
  --accent-soft: #ecebfd;

  --hubspot: #ff7a59;
  --salesforce: #00a1e0;
  --zoho: #e42527;

  --ok: #1a9e6e;
  --ok-soft: #e2f6ee;
  --warn: #c77414;
  --warn-soft: #fdf1de;

  --radius: 14px;
  --shadow: 0 10px 34px rgba(16, 18, 26, 0.09);
  --shadow-sm: 0 3px 12px rgba(16, 18, 26, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 100% - 2.5rem); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 91, 214, 0.35);
}
.btn-primary:hover { box-shadow: 0 9px 24px rgba(91, 91, 214, 0.45); }

.btn-outline {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-ghost {
  color: #d9dcff;
  border-color: rgba(217, 220, 255, 0.35);
}
.btn-ghost:hover { background: rgba(217, 220, 255, 0.1); }

.btn-light { background: #fff; color: var(--accent-deep); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
/* ShiftCRM logo mark (assets/logo/shiftcrm-mark.svg) */
.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
/* "CRM" half of the wordmark */
.brand-accent { color: var(--accent); }
.footer-brand .brand-accent { color: #9a9aff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #2b2b6e 0%, #191a33 45%, #101120 100%);
  color: #fff;
  padding: 5.5rem 0 0;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 500px;
  background: radial-gradient(closest-side, rgba(91, 91, 214, 0.35), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-eyebrow {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9bdf5;
  background: rgba(91, 91, 214, 0.18);
  border: 1px solid rgba(185, 189, 245, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.4rem;
}
.hero-eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: eyebrow-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes eyebrow-shimmer {
  55%, 100% { transform: translateX(100%); }
}

/* ---------- 3D cubes ---------- */
.hero-3d { position: absolute; inset: 0; pointer-events: none; }
.cube-wrap {
  position: absolute;
  perspective: 700px;
  animation: cube-float 7s ease-in-out infinite alternate;
}
.cube-a { left: 7%; top: 27%; }
.cube-b { right: 8%; top: 20%; animation-delay: -3.5s; }
.cube {
  --s: 92px;
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
}
.cube-b .cube { --s: 62px; animation-duration: 11s; animation-direction: reverse; }
.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(var(--s) * 0.3);
  color: #b9bdf5;
  background: rgba(91, 91, 214, 0.1);
  border: 1px solid rgba(154, 154, 255, 0.4);
  box-shadow: inset 0 0 24px rgba(110, 231, 216, 0.08);
}
.f-front  { transform: translateZ(calc(var(--s) / 2)); }
.f-back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f-right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f-top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}
@keyframes cube-float {
  from { transform: translateY(-12px); }
  to   { transform: translateY(12px); }
}
@media (max-width: 1100px) {
  .hero-3d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cube, .cube-wrap, .hero-eyebrow::after { animation: none; }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Animated "AI" word in the headline */
.ai-word {
  background: linear-gradient(120deg, #9a9aff 0%, #6ee7d8 40%, #cfa9ff 70%, #9a9aff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ai-shimmer 4.5s ease-in-out infinite;
}
@keyframes ai-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-word { animation: none; }
}

/* Recurring AI chip motif */
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(120deg, #9a9aff, #6ee7d8);
  color: #14142e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  transform: translateY(-1px);
}

.hero-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
}
.pair-source, .pair-dest {
  display: inline-block;
  min-width: 4.5em;
  background: linear-gradient(120deg, #9a9aff, #6ee7d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s ease;
}
.pair-arrow { color: #6a6fb0; }
.pair-fade { opacity: 0; }

.hero-sub {
  max-width: 640px;
  margin: 1.4rem auto 2rem;
  color: #b6bacf;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #8b90ad;
}

/* Mock window */
.hero-window {
  margin: 3.5rem auto -1px;
  max-width: 720px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
  overflow: hidden;
  transform: perspective(1100px) rotateX(4deg);
  transform-origin: 50% 100%;
  transition: transform 0.25s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-window { transform: none; }
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f1f6;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #f26d6d; }
.dot.yellow { background: #f2c14e; }
.dot.green { background: #4fc48b; }
.window-title {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body { padding: 1.1rem 1.2rem 1.4rem; }

.w-stepper { display: flex; gap: 0.45rem; margin-bottom: 1rem; }
.w-step {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700;
  background: #eef0f6; color: var(--ink-faint);
}
.w-step.done { background: var(--ok-soft); color: var(--ok); }
.w-step.active { background: var(--accent); color: #fff; }

.w-ai {
  background: linear-gradient(120deg, var(--accent-soft), #e2f6f2);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d8d7f8;
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
}

.w-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.85rem;
}
.w-name { font-size: 0.88rem; color: var(--ink); font-weight: 500; }
.w-badge {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}
.w-badge.match { background: #eef0f6; color: var(--ink-soft); }
.w-badge.miss { background: var(--warn-soft); color: var(--warn); }
.w-badge.sync { background: var(--ok-soft); color: var(--ok); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper-alt); }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0.8rem auto 3rem;
  font-size: 1.02rem;
}

/* ---------- Paths ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}
.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card p {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.path-arrow { color: var(--ink-faint); font-weight: 700; }

.crm {
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: #fff;
}
.crm.hubspot { background: var(--hubspot); }
.crm.salesforce { background: var(--salesforce); }
.crm.zoho { background: var(--zoho); }

.objects-strip {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.objects-strip span { font-weight: 700; font-size: 0.92rem; }
.objects-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
}
.objects-strip li {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}

/* ---------- AI migration engineer ---------- */
.ai-engineer {
  background: radial-gradient(900px 500px at 50% -10%, #2b2b6e 0%, #191a33 55%, #101120 100%);
  color: #fff;
}
.ai-engineer .section-sub { color: #b6bacf; }
.ai-engineer .section-sub em { color: #6ee7d8; font-style: normal; font-weight: 700; }
.ai-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}
.ai-panel {
  border-radius: 18px;
  padding: 1.9rem 1.8rem;
}
.ai-does {
  background: rgba(91, 91, 214, 0.16);
  border: 1px solid rgba(154, 154, 255, 0.38);
  box-shadow: inset 0 0 60px rgba(110, 231, 216, 0.05);
}
.you-do {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.ai-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.12rem;
  margin-bottom: 1.1rem;
}
.you-chip {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}
.ai-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ai-panel li {
  padding-left: 1.6rem;
  position: relative;
  color: #d8dbf5;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ai-does li::before { content: "✦"; position: absolute; left: 0; color: #6ee7d8; }
.you-do li::before { content: "✓"; position: absolute; left: 0; color: #9a9aff; font-weight: 800; }
.ai-panel strong { color: #fff; }
.ai-panel code { background: rgba(154, 154, 255, 0.18); color: #cfd0ff; }
.ai-note { margin-top: 1.3rem; font-size: 0.85rem; color: #8b90ad; }
@media (max-width: 900px) {
  .ai-split { grid-template-columns: 1fr; }
}

/* ---------- Safety banner ---------- */
.safety {
  background: linear-gradient(120deg, #10331f, #14532d);
  color: #eafff3;
  padding: 2.6rem 0;
}
.safety-inner {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}
.safety-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
}
.safety-icon svg { width: 27px; height: 27px; }
.safety h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.safety p { color: #c4ecd4; max-width: 780px; }

/* AI banner (reuses the safety layout) */
.ai-banner { background: linear-gradient(120deg, #1d1440, #3b2a7a); color: #f1edff; }
.ai-banner p { color: #cfc4f2; }
.ai-banner .safety-icon { background: rgba(154, 154, 255, 0.18); color: #cfa9ff; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.7rem; margin-bottom: 0.7rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps li {
  display: flex;
  gap: 1.3rem;
  position: relative;
  padding-bottom: 2.2rem;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(91, 91, 214, 0.35);
  z-index: 1;
}
.steps h3 { font-size: 1.08rem; margin-top: 0.45rem; }
.steps p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.25rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 14px 44px rgba(91, 91, 214, 0.18);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 1rem;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; }
.price { margin: 0.5rem 0 0.2rem; color: var(--ink-faint); font-size: 0.95rem; }
.price span { font-size: 2rem; font-weight: 800; color: var(--ink); margin-right: 0.3rem; }
.price-tag { color: var(--ink-soft); font-size: 0.88rem; min-height: 2.6em; }

.price-list {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}
.price-list li {
  font-size: 0.92rem;
  padding-left: 1.7rem;
  position: relative;
  color: var(--ink);
}
.price-list li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}
.price-list li.yes::before { content: "✓"; color: var(--ok); }
.price-list li.no { color: var(--ink-faint); }
.price-list li.no::before { content: "—"; color: var(--ink-faint); }

.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 2.2rem auto 0;
}

/* Four-plan grid */
.pricing-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  max-width: none;
  align-items: stretch;
}
.pricing-grid-4 .price-card { padding: 1.7rem 1.4rem; }
.pricing-grid-4 .price span { font-size: 1.75rem; }
.pricing-grid-4 .price-tag { min-height: 3.4em; }
.pricing-grid-4 .price-list li { font-size: 0.88rem; }

/* ---------- Feature comparison table ---------- */
.compare-wrap { margin-top: 3.5rem; }
.compare-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
}
.compare-table thead th:first-child { text-align: left; border-radius: 0; }
.compare-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  max-width: 340px;
}
.compare-table tbody tr:not(.group):hover { background: #fafbfe; }
.compare-table tr.group th {
  text-align: left;
  background: var(--paper-alt);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.compare-table td { color: var(--ink-soft); }
.compare-table td.col-featured,
.compare-table thead th.col-featured {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
.compare-table thead th.col-featured { background: var(--accent); color: #fff; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  list-style: none;
  position: relative;
  font-size: 0.98rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------- Lead magnet ---------- */
.magnet {
  background: linear-gradient(120deg, #1d1440, #3b2a7a);
  color: #f1edff;
  padding: 4.5rem 0;
}
.magnet-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}
.magnet-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfa9ff;
  background: rgba(154, 154, 255, 0.16);
  border: 1px solid rgba(207, 169, 255, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.magnet-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.magnet-copy > p { color: #cfc4f2; max-width: 460px; }
.magnet-points {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.magnet-points li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.95rem;
  color: #e4dcff;
}
.magnet-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7d8;
  font-weight: 800;
}

/* ---------- Lead forms (shared) ---------- */
.lead-form {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 1.8rem 1.7rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.lead-form h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.form-field { margin-bottom: 0.9rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.form-field .req { color: var(--zoho); }
.form-field input,
.form-field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18);
}
.form-field input.invalid { border-color: var(--zoho); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}
.form-success {
  margin-top: 1rem;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}
.form-success p { color: #14603f; margin-top: 0.25rem; }
.form-success a { color: var(--accent-deep); font-weight: 700; }
.form-error {
  margin-top: 0.8rem;
  background: #fdecec;
  color: #b32222;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
}
.form-error a { color: #b32222; font-weight: 700; }
/* Formspree honeypot: invisible to people, filled in by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.lead-form.submitted > .form-field,
.lead-form.submitted > .form-row,
.lead-form.submitted > button[type="submit"],
.lead-form.submitted > .form-note { display: none; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--accent-deep), #33339a 60%, #1e1e4f);
  color: #fff;
  padding: 5rem 0;
}
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
.cta p { color: #c9ccf5; margin: 0.9rem 0 0; max-width: 520px; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-points {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cta-points li {
  padding-left: 1.6rem;
  position: relative;
  color: #dfe1ff;
  font-size: 0.97rem;
}
.cta-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7d8;
  font-weight: 800;
}
.cta-form .btn-light { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }

/* ---------- Exit-intent modal ---------- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.exit-modal[hidden] { display: none; }
.exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 32, 0.66);
  backdrop-filter: blur(3px);
}
.exit-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 2.2rem 2rem 1.6rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: exit-pop 0.25s ease;
}
@keyframes exit-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
}
.exit-card h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.exit-card > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.1rem; }
.exit-card .lead-form { box-shadow: none; padding: 0; border-radius: 0; }
.exit-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}
.exit-close:hover { color: var(--ink); }
.exit-dismiss {
  display: block;
  margin: 0.9rem auto 0;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .exit-card { animation: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: #101120;
  color: #b6bacf;
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-brand { display: flex; gap: 0.8rem; max-width: 380px; }
.footer-brand strong { color: #fff; }
.footer-brand p { font-size: 0.88rem; margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #b6bacf; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-note p { font-size: 0.78rem; color: #6b708c; padding-top: 1.4rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-wrap.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-wrap.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-wrap.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 3.5rem; }
  .section { padding: 3.8rem 0; }
  .safety-inner { flex-direction: column; }
  .steps li { gap: 1rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 900px) {
  .magnet-inner, .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
