/* MergeDesk site. No web fonts, cookies or trackers: system fonts only. */

:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-2: #0d1019;
  --surface: #121624;
  --surface-2: #181d2e;
  --surface-3: #20263b;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-2: #bcc2d6;
  --muted: #8890a8;
  --accent: #8f7fff;
  --accent-2: #b3a8ff;
  --accent-soft: rgba(143, 127, 255, 0.14);
  --accent-ink: #ffffff;
  --teal: #34d6c2;
  --teal-soft: rgba(52, 214, 194, 0.13);
  --amber: #f8c04e;
  --amber-soft: rgba(248, 192, 78, 0.14);
  --rose: #fb7d8f;
  --rose-soft: rgba(251, 125, 143, 0.13);
  --green: #5fd98b;
  --green-soft: rgba(95, 217, 139, 0.14);
  --link: #8fb4ff;
  --grad: linear-gradient(120deg, #a596ff 0%, #7f8cff 45%, #46d9c6 100%);
  --grad-btn: linear-gradient(135deg, #8f7fff 0%, #6f7dff 100%);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(143, 127, 255, 0.28) 0%, rgba(143, 127, 255, 0) 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --maxw: 1160px;
  --header-h: 64px;
}

/* Light theme: the system setting, unless the visitor picked dark. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f8fc;
    --bg-2: #eef0f8;
    --surface: #ffffff;
    --surface-2: #f3f4fa;
    --surface-3: #e8eaf4;
    --border: rgba(16, 20, 40, 0.09);
    --border-strong: rgba(16, 20, 40, 0.16);
    --text: #10132a;
    --text-2: #3b4260;
    --muted: #646c88;
    --accent: #5b46e5;
    --accent-2: #4a36d6;
    --accent-soft: rgba(91, 70, 229, 0.1);
    --teal: #0b9b8a;
    --teal-soft: rgba(11, 155, 138, 0.1);
    --amber: #b7790b;
    --amber-soft: rgba(219, 151, 20, 0.12);
    --rose: #d33b55;
    --rose-soft: rgba(211, 59, 85, 0.09);
    --green: #198a48;
    --green-soft: rgba(25, 138, 72, 0.1);
    --link: #2f5fd8;
    --grad: linear-gradient(120deg, #5b46e5 0%, #4b5ee8 45%, #0b9b8a 100%);
    --grad-btn: linear-gradient(135deg, #5b46e5 0%, #4757e6 100%);
    --glow: radial-gradient(60% 60% at 50% 0%, rgba(91, 70, 229, 0.16) 0%, rgba(91, 70, 229, 0) 70%);
    --shadow-sm: 0 1px 2px rgba(16, 20, 40, 0.08);
    --shadow: 0 30px 70px -30px rgba(30, 30, 80, 0.3), 0 0 0 1px var(--border);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fc;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f3f4fa;
  --surface-3: #e8eaf4;
  --border: rgba(16, 20, 40, 0.09);
  --border-strong: rgba(16, 20, 40, 0.16);
  --text: #10132a;
  --text-2: #3b4260;
  --muted: #646c88;
  --accent: #5b46e5;
  --accent-2: #4a36d6;
  --accent-soft: rgba(91, 70, 229, 0.1);
  --teal: #0b9b8a;
  --teal-soft: rgba(11, 155, 138, 0.1);
  --amber: #b7790b;
  --amber-soft: rgba(219, 151, 20, 0.12);
  --rose: #d33b55;
  --rose-soft: rgba(211, 59, 85, 0.09);
  --green: #198a48;
  --green-soft: rgba(25, 138, 72, 0.1);
  --link: #2f5fd8;
  --grad: linear-gradient(120deg, #5b46e5 0%, #4b5ee8 45%, #0b9b8a 100%);
  --grad-btn: linear-gradient(135deg, #5b46e5 0%, #4757e6 100%);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(91, 70, 229, 0.16) 0%, rgba(91, 70, 229, 0) 70%);
  --shadow-sm: 0 1px 2px rgba(16, 20, 40, 0.08);
  --shadow: 0 30px 70px -30px rgba(30, 30, 80, 0.3), 0 0 0 1px var(--border);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 12px;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme="dark"]) .theme-toggle .moon {
    display: none;
  }
}
.menu-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad-btn);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(111, 125, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 14px 34px -10px rgba(111, 125, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto;
  height: 720px;
  background: var(--glow);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}
.eyebrow .dot .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 20px;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.checks .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
  stroke-width: 2.2;
}

/* ---------- Product mock (looks like the Jira dialog) ---------- */
.stage {
  position: relative;
  padding: 18px 8px 40px;
}
.window {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.78rem;
  color: var(--muted);
}
.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--surface-3);
}
.window-bar span {
  margin-left: 10px;
}
.dialog {
  padding: 22px 24px 24px;
  font-size: 0.86rem;
}
.dialog h4 {
  font-size: 1.06rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.dialog .intro {
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.5;
}
.group-title {
  font-weight: 700;
  font-size: 0.8rem;
  margin: 14px 0 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  margin-bottom: 6px;
}
.row.on {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
}
.cb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  flex: none;
  display: grid;
  place-items: center;
}
.row.on .cb {
  background: var(--accent);
  border-color: var(--accent);
}
.row.on .cb::after {
  content: "";
  width: 8px;
  height: 4px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.key {
  color: var(--link);
  font-weight: 600;
  white-space: nowrap;
}
.summary {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.note {
  color: var(--muted);
  font-style: italic;
  font-size: 0.78rem;
  white-space: nowrap;
}
.review {
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--teal-soft);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.review .icon {
  color: var(--teal);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.review strong {
  display: block;
  font-size: 0.84rem;
}
.review span {
  color: var(--text-2);
}
.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.mini-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lozenge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.lz-green {
  background: var(--green-soft);
  color: var(--green);
}
.lz-purple {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.lz-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.lz-grey {
  background: var(--surface-3);
  color: var(--text-2);
}
.lz-rose {
  background: var(--rose-soft);
  color: var(--rose);
}
.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  max-width: 300px;
}
.toast .badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.toast strong {
  display: block;
  font-size: 0.86rem;
}
.toast span {
  color: var(--muted);
  font-size: 0.78rem;
}
.toast-1 {
  right: -14px;
  bottom: -2px;
  animation: float 7s ease-in-out infinite;
}
.toast-1 .badge {
  background: var(--green-soft);
  color: var(--green);
}
.toast-2 {
  right: -22px;
  top: -8px;
  animation: float 8s ease-in-out -2s infinite;
}
.toast-2 .badge {
  background: var(--rose-soft);
  color: var(--rose);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Sections ---------- */
section {
  padding: 92px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.08rem;
  margin: 0;
}
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Problem stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat b {
  display: block;
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat p {
  color: var(--text-2);
  margin: 0;
  font-size: 0.95rem;
}

/* Sources of duplicates */
.sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.source {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source .mail {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source h3 {
  font-size: 1.02rem;
  margin: 4px 0 0;
}
.source p {
  color: var(--text-2);
  font-size: 0.92rem;
  margin: 0;
}
.source .fix {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 650;
}
.source .fix .icon {
  width: 16px;
  height: 16px;
}

/* Feature bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  overflow: hidden;
}
.card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-2);
  margin-bottom: 0;
}
.card .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.card .ic.teal {
  background: var(--teal-soft);
  color: var(--teal);
}
.card .ic.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.card .ic.rose {
  background: var(--rose-soft);
  color: var(--rose);
}
.card .ic.green {
  background: var(--green-soft);
  color: var(--green);
}
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-2 {
  grid-column: span 2;
}
.card.feature-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.ticklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}
.ticklist li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.ticklist .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 3px;
  stroke-width: 2.2;
}

/* Timeline of a merged request (inside cards) */
.timeline {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
}
.tl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.tl-item .who {
  font-weight: 650;
}
.tl-item .meta {
  color: var(--muted);
  font-size: 0.74rem;
}
.tl-item .avatar {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
}
.av-1 {
  background: linear-gradient(135deg, #f59e8b, #e36a8f);
}
.av-2 {
  background: linear-gradient(135deg, #6fb6ff, #6f7dff);
}
.av-3 {
  background: linear-gradient(135deg, #58d6b8, #2aa58f);
}

/* Email mock */
.inbox {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.mail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}
.mail-row .subj {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row.struck .subj {
  text-decoration: line-through;
  color: var(--muted);
}
.mail-row.struck .icon {
  color: var(--rose);
}
.mail-row .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Rule list (guard) */
.rules {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-weight: 800;
  background: var(--grad-btn);
  color: #fff;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.12rem;
}
.step p {
  color: var(--text-2);
  margin: 0;
}

/* Compare table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  font-size: 0.96rem;
}
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--text-2);
  font-weight: 700;
}
.compare thead th.us {
  color: var(--text);
}
.compare td:first-child {
  font-weight: 600;
  width: 34%;
}
.compare td {
  color: var(--text-2);
}
.compare td.us {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}
.yes,
.no {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.yes .icon {
  color: var(--green);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  stroke-width: 2.4;
}
.no .icon {
  color: var(--rose);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  stroke-width: 2.4;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}
.calc {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad);
}
.calc label {
  display: block;
  font-weight: 650;
  margin-bottom: 14px;
}
.calc-users {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.calc-users input[type="number"] {
  width: 120px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 14px;
}
.calc-users span {
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 14px 0 22px;
}
.billing {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.billing button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
}
.billing button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.billing .save {
  color: var(--teal);
  font-size: 0.78rem;
  margin-left: 4px;
}
.price-out {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-out .amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-out .per {
  color: var(--muted);
  font-weight: 600;
}
.price-sub {
  color: var(--text-2);
  margin: 12px 0 0;
  font-size: 0.95rem;
}
.price-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
.tiers {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.tiers h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.tiers table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.tiers td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tiers tr:last-child td {
  border-bottom: 0;
}
.tiers td:last-child {
  text-align: right;
  font-weight: 700;
}
.tiers tr.active td {
  color: var(--accent-2);
}
.tiers .free {
  color: var(--teal);
}
.tiers p {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 16px 0 0;
}

/* Trust tiles */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust .card {
  padding: 24px;
}
.trust .card h3 {
  font-size: 1.04rem;
}
.trust .card p {
  font-size: 0.93rem;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 650;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details p {
  color: var(--text-2);
  margin: 0 0 18px;
}

/* Final CTA */
.cta-band {
  position: relative;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, var(--teal-soft), transparent 70%);
  z-index: -1;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.cta-band p {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta-band .cta-row {
  justify-content: center;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--text-2);
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-about p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 320px;
}
.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

/* ---------- Doc pages (docs, privacy, support) ---------- */
.page-hero {
  position: relative;
  padding: 64px 0 36px;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -60px 0 auto;
  height: 420px;
  background: var(--glow);
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: -0.035em;
}
.page-hero p {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 44em;
  margin: 0;
}
.crumbs {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--muted);
}
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 40px;
}
.doc-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 6px;
}
.doc-nav .search {
  position: relative;
  margin-bottom: 18px;
}
.doc-nav .search input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0 12px 0 36px;
}
.doc-nav .search .icon {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.doc-nav h5 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 18px 0 8px;
}
.doc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.doc-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  border-left: 2px solid transparent;
}
.doc-nav a:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.doc-nav a.active {
  color: var(--text);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
}
.doc-nav .empty {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 6px 10px;
  display: none;
}
.prose {
  max-width: 760px;
  min-width: 0;
}
.prose section {
  padding: 0 0 48px;
}
.prose h2 {
  font-size: 1.7rem;
  letter-spacing: -0.025em;
  margin-top: 8px;
  padding-top: 8px;
}
.prose h3 {
  font-size: 1.16rem;
  margin-top: 28px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 6px;
}
.prose ol.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: s;
  display: grid;
  gap: 10px;
}
.prose ol.steps-list li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0;
}
.prose ol.steps-list li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.86rem;
  color: #fff;
  background: var(--grad-btn);
}
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.93rem;
  background: var(--surface);
}
.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  background: var(--surface-2);
  font-size: 0.82rem;
  color: var(--text-2);
}
.prose td {
  color: var(--text-2);
}
.prose td:first-child {
  color: var(--text);
  font-weight: 600;
}
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  margin: 8px 0 22px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.callout .icon {
  color: var(--accent-2);
  margin-top: 2px;
}
.callout p {
  margin: 0;
  color: var(--text);
}
.callout.tip {
  background: var(--teal-soft);
  border-color: color-mix(in srgb, var(--teal) 28%, transparent);
}
.callout.tip .icon {
  color: var(--teal);
}
.callout.warn {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 30%, transparent);
}
.callout.warn .icon {
  color: var(--amber);
}
.timeline-h {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 24px;
}
.timeline-h div {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.timeline-h b {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.timeline-h span {
  color: var(--text-2);
  font-size: 0.92rem;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 40px;
}
.summary-cards .card {
  padding: 22px;
}
.summary-cards .card h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.summary-cards .card p {
  font-size: 0.93rem;
}
.summary-cards .card .ic {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.contact-grid .card h3 {
  font-size: 1.1rem;
}
.contact-grid .card .btn {
  margin-top: 18px;
}
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.notfound b {
  display: block;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stage {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
  .sources {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 1;
  }
  .card.feature-main {
    grid-column: span 2;
  }
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .doc-nav {
    position: static;
    max-height: none;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 24px;
  }
  .doc-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .stats,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card.feature-main {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: span 2;
  }
  .timeline-h {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 40px 0 24px;
  }
  .sources,
  .bento,
  .trust,
  .summary-cards {
    grid-template-columns: 1fr;
  }
  .card.feature-main {
    grid-column: span 1;
  }
  .toast-2 {
    display: none;
  }
  .stage {
    padding-bottom: 64px;
  }
  .toast-1 {
    right: 8px;
    bottom: 0;
  }
  .dialog {
    padding: 18px 16px;
  }
  .note {
    display: none;
  }
  .compare th,
  .compare td {
    padding: 12px 14px;
  }
  .calc,
  .tiers {
    padding: 22px;
  }
  .cta-band {
    padding: 44px 20px;
  }
  .doc-nav ul {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .cta-row {
    flex-direction: column;
  }
}

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