/* Tabfold website — cool neutral surfaces, navy hero bands, one blue accent. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: #ffffff;
  --ink: #0d1424;
  --ink-2: #4a5568;
  --ink-3: #718096;
  --line: #e3e8f0;
  --line-strong: #cbd3df;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eaf1ff;
  --success: #0f9d6b;
  --danger: #d93a3a;
  --warn: #b45309;
  --warn-soft: #fff6e8;

  /* Always-dark bands (hero, privacy, final CTA, footer) */
  --night: #0a1020;
  --night-2: #111a2e;
  --night-3: #1a2540;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-ink: #f5f8ff;
  --night-ink-2: #a9b4cc;
  --glow: #3b82f6;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: 32px;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --surface: #131c31;
    --ink: #eef2fa;
    --ink-2: #b4bfd3;
    --ink-3: #8794ad;
    --line: #233049;
    --line-strong: #34425f;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-soft: #172446;
    --warn: #f5b25c;
    --warn-soft: #2b2112;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

/* ---------- Header (dark on every page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 16, 32, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--night-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--night-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  gap: 2px;
}
.nav a {
  color: var(--night-ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover {
  color: var(--night-ink);
  background: rgba(255, 255, 255, 0.07);
}
.nav a[aria-current="page"] {
  color: var(--night-ink);
  background: rgba(255, 255, 255, 0.1);
}
.header-cta {
  margin-left: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 650 15px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  height: 58px;
  padding: 0 30px 0 12px;
  font-size: 17px;
  gap: 14px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink-3);
}
.on-dark .btn-ghost {
  color: var(--night-ink);
  border-color: rgba(255, 255, 255, 0.22);
}
.on-dark .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.btn .chrome {
  width: 20px;
  height: 20px;
}
.btn-lg .chrome {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}
.btn-sm .chrome {
  width: 18px;
  height: 18px;
}

/* ---------- Dark bands ---------- */
.on-dark {
  background: var(--night);
  color: var(--night-ink);
}
.on-dark p {
  color: var(--night-ink-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 0;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(closest-side, rgba(59, 130, 246, 0.35), transparent 70%) 50%
      30% / 900px 600px no-repeat,
    radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent 70%) 80%
      10% / 600px 500px no-repeat;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 20%,
    #000 20%,
    transparent 70%
  );
  z-index: -1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--night-ink-2);
  border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 14px;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 24px auto 20px;
  max-width: 14ch;
}
.grad {
  background: linear-gradient(92deg, #7fb2ff 0%, #a78bfa 55%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 58ch;
  margin: 0 auto 36px;
}
.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 36px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 128px;
  padding: 16px 10px 14px;
  border-radius: 14px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  font-size: 13px;
  font-weight: 650;
  color: var(--night-ink);
}
.chip .ci {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.chip svg {
  width: 20px;
  height: 20px;
}
.ci-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #8ab6ff;
}
.ci-violet {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}
.ci-green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--night-ink-2);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust svg {
  width: 16px;
  height: 16px;
  color: #6ee7b7;
}
.browser-note {
  font-size: 13px;
  color: var(--night-ink-2);
  margin: 0;
}

/* ---------- Product mock ---------- */
.hero-shot {
  margin: 64px auto 0;
  max-width: 1040px;
  position: relative;
  text-align: left;
}
.hero-shot::after {
  /* fade the bottom of the mock into the next section */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}
.mock {
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: #fff;
  color: #0d1424;
  overflow: hidden;
  box-shadow: 0 -10px 80px -20px rgba(59, 130, 246, 0.55);
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #eef1f6;
  border-bottom: 1px solid #dfe4ec;
}
.mock-chrome i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd6e2;
}
.mock-url {
  margin-left: 14px;
  flex: 1;
  max-width: 360px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid #e3e8f0;
}
.mock-ws {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.mock-ws::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #2563eb;
}
.mock-search {
  flex: 1;
  max-width: 420px;
  height: 34px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  color: #718096;
  gap: 8px;
  background: #f8fafc;
}
.mock-search kbd {
  margin-left: auto;
}
.mock-save {
  margin-left: auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.mock-tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  height: 42px;
  border-bottom: 1px solid #e3e8f0;
  font-size: 13px;
  color: #718096;
  font-weight: 600;
  overflow: hidden;
}
.mock-tabs span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.mock-tabs .on {
  color: #0d1424;
  box-shadow: inset 0 -2px 0 #2563eb;
}
.mock-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  padding: 22px 20px 70px;
  background: #f7f9fc;
}
.mock-h {
  font-size: 12px;
  font-weight: 650;
  color: #718096;
  margin: 0 0 10px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.fav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tile b {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sess {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12px;
  color: #718096;
}
.sess b {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #0d1424;
}
.sess.sel {
  border-color: #2563eb;
  background: #eaf1ff;
}

kbd {
  font: 600 11px/1 var(--font);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 5px;
  background: var(--surface);
  color: var(--ink-2);
}
.mock kbd {
  background: #fff;
  border-color: #cbd3df;
  color: #4a5568;
}

/* ---------- Generic sections ---------- */
section {
  padding: 104px 0;
}
.soft {
  background: var(--bg-soft);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.on-dark .eyebrow {
  color: #8ab6ff;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  margin: 0 0 16px;
}
.section-head p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-2);
}
.on-dark .section-head p {
  color: var(--night-ink-2);
}

/* Proof strip */
.proof {
  padding: 40px 0 56px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-item {
  background: var(--night);
  padding: 26px 24px;
}
.proof-item b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--night-ink);
  line-height: 1.1;
}
.proof-item span {
  font-size: 14px;
  color: var(--night-ink-2);
}

/* Product cards (three core tools) */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(13, 20, 36, 0.04);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.tool:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -24px rgba(13, 20, 36, 0.25);
  transform: translateY(-2px);
}
.tool .ti {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
}
.tool .ti svg {
  width: 26px;
  height: 26px;
}
.ti-1 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.ti-2 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.ti-3 {
  background: linear-gradient(135deg, #10b981, #047857);
}
.tool h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 750;
}
.tool > p {
  color: var(--ink-2);
  margin: 0 0 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.tool .more {
  margin-top: auto;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
}
.tool .more:hover {
  text-decoration: underline;
}

/* Feature rows (alternating) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.feature + .feature {
  margin-top: 112px;
}
.feature.flip > :first-child {
  order: 2;
}
.feature h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 16px;
}
.feature p {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 22px;
}
.feature .ticks {
  margin-bottom: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px -40px rgba(13, 20, 36, 0.35);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(37, 99, 235, 0.35),
    transparent 40%,
    transparent 70%,
    rgba(139, 92, 246, 0.3)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.panel-title small {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
}
.rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg);
}
.row .fav {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
}
.row .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.tag-new {
  background: #e7f8f0;
  color: #067a52;
}
.tag-open {
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag-blue {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
@media (prefers-color-scheme: dark) {
  .tag-new {
    background: #10322a;
    color: #6ee7b7;
  }
}
.group {
  border-left: 3px solid #8b5cf6;
  padding-left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.group-label {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}
.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.fake-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.fake-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.tl {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
}
.tl i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.tl.cur i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl b {
  font-weight: 650;
  display: block;
}
.tl span {
  color: var(--ink-3);
  font-size: 13px;
}
.toast {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d1424;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.toast a {
  margin-left: auto;
  color: #8ab6ff;
  font-weight: 650;
  text-decoration: none;
}
.verify {
  display: grid;
  gap: 10px;
}
.vstep {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.vstep .ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7f8f0;
  color: #0f9d6b;
  display: grid;
  place-items: center;
  flex: none;
}
.vstep .ok svg {
  width: 13px;
  height: 13px;
}
.vstep span {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin: 6px 0 14px;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
}
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.file svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.file small {
  display: block;
  color: var(--ink-3);
}

/* Privacy band */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 20px;
  padding: 30px 28px;
}
.pcard .big {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 14px;
}
.pcard h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--night-ink);
}
.pcard p {
  margin: 0;
  font-size: 15px;
}
.center-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
}
.step {
  position: relative;
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.15s;
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 20px;
  color: var(--ink-2);
}
.faq details > div p {
  margin: 0 0 8px;
}
.faq-more {
  text-align: center;
  margin-top: 28px;
}

/* Final CTA */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 50% 100%,
    rgba(59, 130, 246, 0.35),
    transparent 70%
  );
  z-index: -1;
}
.final h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 auto 16px;
  max-width: 16ch;
}
.final p {
  font-size: 18px;
  margin: 0 auto 36px;
  max-width: 52ch;
}

/* ---------- Sub-pages ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 64px;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px 300px at 15% 0%,
    rgba(59, 130, 246, 0.3),
    transparent 70%
  );
  z-index: -1;
}
.page-head h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
.page-head p {
  max-width: 62ch;
  margin: 0;
  font-size: 18px;
}
.page-head p a {
  color: #8ab6ff;
}
.meta {
  font-size: 14px !important;
  margin-top: 18px !important;
}
.prose-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 104px;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
.toc p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.toc ol {
  list-style: none;
  padding: 0 0 0 14px;
  margin: 0;
  display: grid;
  gap: 8px;
  border-left: 1px solid var(--line);
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 750;
  margin: 56px 0 14px;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  font-size: 16px;
  color: var(--ink-2);
}
.prose strong {
  color: var(--ink);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 8px 0;
}
.prose .faq {
  margin: 0;
}
.prose .faq summary {
  font-size: 16px;
}
.callout {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p {
  margin: 0;
}
.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.callout.warn {
  background: var(--warn-soft);
  border-color: transparent;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 18px 0 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
td:first-child {
  color: var(--ink);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
}
code {
  font:
    500 13px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.pill-req {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-opt {
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* Sub-page bottom CTA */
.mini-cta {
  margin-top: 64px;
  padding: 32px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mini-cta h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--night-ink);
}
.mini-cta p {
  margin: 0;
}
.mini-cta .btn {
  margin-left: auto;
}

/* Cards used on uninstall page */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--night-line);
  padding-top: 64px;
  padding-bottom: 40px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.foot-grid h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-ink);
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot-grid a {
  color: var(--night-ink-2);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--night-ink);
}
.foot-brand p {
  margin: 14px 0 20px;
  max-width: 34ch;
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--night-ink-2);
}

/* Mobile sticky install bar */
.sticky-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --gutter: 24px;
  }
  section {
    padding: 80px 0;
  }
  .tools,
  .privacy-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .feature.flip > :first-child {
    order: 0;
  }
  .feature + .feature {
    margin-top: 80px;
  }
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mock-body {
    grid-template-columns: 1fr;
  }
  .prose-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .toc {
    position: static;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .site-header .wrap {
    gap: 12px;
  }
  .nav .hide-sm,
  .header-cta {
    display: none !important;
  }
  .nav {
    margin-left: auto;
  }
  .nav a {
    padding: 8px 10px;
  }
  .hero {
    padding-top: 56px;
  }
  .chip {
    width: calc(33.333% - 8px);
    min-width: 0;
    padding: 14px 6px 12px;
    font-size: 12px;
  }
  .chips {
    gap: 8px;
  }
  .btn-lg {
    font-size: 16px;
    padding-right: 22px;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles .tile:nth-child(n + 5) {
    display: none;
  }
  .mock-search,
  .mock-url,
  .mock-tabs span:nth-child(n + 4) {
    display: none;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .mini-cta .btn {
    margin-left: 0;
  }
  body.has-sticky {
    padding-bottom: 76px;
  }
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 16px;
    background: rgba(10, 16, 32, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--night-line);
    color: var(--night-ink);
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(140%);
    transition: transform 0.25s;
  }
  .sticky-cta.show {
    transform: none;
  }
  .sticky-cta img {
    width: 28px;
    height: 28px;
  }
  .sticky-cta .btn {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
