/* =========================================================================
   OpenLeads site. Quiet, light-first, system-aware dark mode.
   One accent (signal red), Geist + Geist Mono.
   Shape rule: interactive controls are full pills, panels are 22px,
   code blocks are 14px. Nothing else gets a radius.
   Shared with docs/ (docs.css reads these tokens and the nav/brand/button
   classes), so keep the variable names stable.
   ========================================================================= */
:root {
  --bg:        #fbfbfd;
  --bg-2:      #f5f5f7;
  --surface:   #ffffff;
  --surface-2: #f0f0f3;
  --code-bg:   #f5f5f7;
  --line:      rgba(0, 0, 0, .08);
  --line-2:    rgba(0, 0, 0, .14);
  --text:  #1d1d1f;
  --muted: #5e5e63;
  --faint: #737378;
  --red:        #d70015;
  --red-bright: #d70015;
  --red-wash:   rgba(215, 0, 21, .06);
  --ink:     #1d1d1f;
  --on-ink:  #fbfbfd;
  --red-on-ink: #ff6961;   /* red that stays readable on the inverted ink panel */
  --tile-guess: rgba(0, 0, 0, .3);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 80px -32px rgba(29, 29, 31, .28),
               0 8px 24px -12px rgba(29, 29, 31, .12);
  --display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --body:    "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1080px;
  --nav-h: 60px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);        /* ease-out-quint: entering things */
  --ease-in-out: cubic-bezier(.645, .045, .355, 1); /* ease-in-out-cubic: things moving on screen */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0b0c;
    --bg-2:      #121214;
    --surface:   #161618;
    --surface-2: #1d1d20;
    --code-bg:   #111113;
    --line:      rgba(255, 255, 255, .08);
    --line-2:    rgba(255, 255, 255, .15);
    --text:  #f5f5f7;
    --muted: #a1a1a6;
    --faint: #8e8e93;
    --red:        #ff453a;
    --red-bright: #ff6961;
    --red-wash:   rgba(255, 69, 58, .1);
    --ink:     #f5f5f7;
    --on-ink:  #0b0b0c;
    --red-on-ink: #d70015;
    --tile-guess: rgba(255, 255, 255, .34);
    --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.55; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { --gutter: 24px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- shared type ---------------- */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--red); margin-bottom: 12px; letter-spacing: -.005em; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.5; max-width: 58ch; }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.section { padding: 112px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head .h2 { margin-bottom: 18px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin: 0 auto; }

/* ---------------- buttons (pills) ---------------- */
.solid-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--body); letter-spacing: -.01em; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.solid-btn { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); }
.ghost-btn { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.solid-btn:active, .ghost-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .solid-btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
  .ghost-btn:hover { background: var(--surface-2); }
}
.solid-btn--lg, .ghost-btn--lg { padding: 15px 26px; font-size: 16px; }
.ghost-btn .gh { width: 17px; height: 17px; fill: currentColor; }
.ph { font-size: 1.1em; line-height: 1; }

.text-link { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-weight: 500; }
.text-link .ph { font-size: .95em; transition: transform .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .text-link:hover .ph { transform: translateX(2px); }
}

/* ---------------- nav ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: url("favicon.svg") center / cover no-repeat; }
.brand__name { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand__name b { font-weight: 600; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a { color: var(--muted); font-size: 14px; transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__cta .ghost-btn, .nav__cta .solid-btn { padding: 8px 15px; font-size: 13.5px; }
/* GitHub star button: one component, used on every page (home + docs). */
.gh-mark { width: 16px; height: 16px; fill: currentColor; flex: none; }
.gh-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 11px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 500 13.5px/1 var(--body); letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .12s var(--ease-out); }
.gh-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .gh-btn:hover { background: var(--surface-2); } }
.gh-btn__count { font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  padding-left: 8px; margin-left: 1px; border-left: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.solid-btn .gh-mark { width: 17px; height: 17px; }
.star-count { font-family: var(--mono); font-size: .85em; opacity: .7; padding-left: 10px; margin-left: 2px;
  border-left: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); }

/* ---------------- hero ---------------- */
.hero { padding: calc(var(--nav-h) + 72px) 0 40px; text-align: center; }
.announce { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted);
  padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  margin-bottom: 28px; transition: border-color .15s ease; }
.announce b { color: var(--text); font-weight: 500; }
.announce .ph { color: var(--faint); }
.announce:hover { border-color: var(--line-2); }
.hero__title { font-family: var(--display); font-weight: 600; letter-spacing: -.045em;
  font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; margin: 0 auto 22px; }
.hero__title span { color: var(--faint); }
.hero__sub { color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.45;
  max-width: 34em; margin: 0 auto 36px; }
.hero__ctas { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }

.copy { display: inline-flex; align-items: center; gap: 12px; font: 400 15px/1 var(--mono);
  padding: 15px 18px 15px 22px; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  transition: background-color .15s ease, transform .12s var(--ease-out); }
.copy:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
}
.copy__prompt { opacity: .5; }
.copy__ico { position: relative; width: 18px; height: 18px; display: inline-grid; place-items: center; opacity: .7; }
.copy__ico .ph { position: absolute; transition: opacity .15s ease, transform .2s var(--ease-out); }
.copy__ico .ph-check { opacity: 0; transform: scale(.6); }
.copy.copied .copy__ico .ph-copy { opacity: 0; transform: scale(.6); }
.copy.copied .copy__ico .ph-check { opacity: 1; transform: none; }
.copy--quiet { background: var(--surface); color: var(--text); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) { .copy--quiet:hover { background: var(--surface-2); } }

/* ---------------- spotlight (signature) ---------------- */
.spot-wrap { max-width: 760px; margin: 72px auto 0; }
.spot { text-align: left; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.spot__bar { display: flex; align-items: center; gap: 14px; padding: 22px 26px;
  border-bottom: 1px solid var(--line); font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.02em; }
.spot__bar .ph { color: var(--faint); font-size: 26px; flex: none; }
.spot__q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot__caret { width: 2px; height: 1.15em; background: var(--red); border-radius: 1px; flex: none;
  margin-left: -10px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.spot__body { padding: 26px 26px 22px; }
.spot__tiles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-bottom: 22px; }
.tile { aspect-ratio: 1; border-radius: 8px; border: 1.5px dashed var(--line-2);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out); }
.tile[data-k="found"]   { background: var(--ink); border: 0; }
.tile[data-k="pattern"] { background: var(--red); border: 0; }
.tile[data-k="guessed"] { border: 1.5px solid var(--tile-guess); }
.tile.is-out { opacity: .22; transform: scale(.9); }
.spot__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spot__meta div { display: flex; flex-direction: column; gap: 2px; }
.spot__meta dt { font-size: 13px; color: var(--faint); }
.spot__meta dd { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; transition: opacity .2s ease; }
.spot__meta.is-out dd { opacity: .25; }
.spot__legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 26px; border-top: 1px solid var(--line);
  background: var(--bg-2); font-size: 13px; color: var(--muted); }
.spot__legend span { display: inline-flex; align-items: center; gap: 7px; }
.spot__legend i { width: 11px; height: 11px; border-radius: 3px; }
.lg-found { background: var(--ink); }
.lg-pattern { background: var(--red); }
.lg-guessed { border: 1.5px solid var(--tile-guess); }
.lg-none { border: 1.5px dashed var(--line-2); }
.spot__note { margin-top: 18px; font-size: 14px; color: var(--faint); text-align: center; }
.spot__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2); }
.spot__note a:hover { color: var(--text); }

/* ---------------- benchmark numbers ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--display); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  font-size: clamp(44px, 6vw, 72px); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat__n small { font-size: .5em; letter-spacing: -.02em; color: var(--faint); font-weight: 500; }
.stat p:not(.stat__n) { color: var(--muted); font-size: 15.5px; max-width: 22ch; }
.stats__foot { margin-top: 48px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  color: var(--muted); font-size: 16px; }

/* ---------------- deliverability (bento) ---------------- */
.bento { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.cell { border-radius: 22px; padding: 34px; background: var(--surface); border: 1px solid var(--line); }
.cell h3 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em;
  line-height: 1.12; margin-bottom: 10px; }
.cell > p { color: var(--muted); font-size: 16px; max-width: 40ch; }
.cell--signals { grid-row: span 2; }
.signals { list-style: none; margin-top: 30px; display: grid; gap: 0; }
.signals li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.signals li .ph { color: var(--red); font-size: 18px; margin-top: 2px; }
.signals b { display: block; font-size: 16px; font-weight: 500; }
.signals span { color: var(--faint); font-size: 14px; }
.cell--tiers { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cell--tiers > p { color: color-mix(in srgb, var(--on-ink) 66%, var(--ink)); }
.tiers { display: grid; gap: 10px; margin-top: 26px; }
.tiers div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 16px; border-radius: 14px; background: color-mix(in srgb, var(--on-ink) 8%, transparent); }
.tiers b { font-weight: 600; font-size: 16px; }
.tiers span { font-size: 14px; color: color-mix(in srgb, var(--on-ink) 62%, var(--ink)); }
.tiers .t--bad b { color: var(--red-on-ink); }
.cell--sources { background: var(--bg-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills span { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); }
.pills .pill--add { color: var(--red); border-style: dashed; border-color: color-mix(in srgb, var(--red) 45%, transparent);
  background: var(--red-wash); font-family: var(--mono); font-size: 13px; }

/* ---------------- compare ---------------- */
.compare { max-width: 880px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 16px; text-align: left; vertical-align: top; }
.compare thead th { font-size: 15px; font-weight: 600; padding-bottom: 16px; }
.compare thead th:last-child { color: var(--faint); font-weight: 500; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare td { color: var(--muted); font-size: 16px; }
.compare td:first-child { color: var(--text); font-weight: 500; width: 28%; padding-left: 0; }
.compare td.us { color: var(--text); }
.compare th.us, .compare td.us { width: 40%; }

/* ---------------- privacy (manifesto) ---------------- */
.privacy { text-align: center; padding: 160px 0; background: var(--bg-2); }
.privacy .ph { font-size: 40px; color: var(--red); margin-bottom: 26px; }
.privacy h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(40px, 7vw, 80px); margin-bottom: 24px; }
.privacy p { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 auto; }
.privacy code { color: var(--text); }

/* ---------------- install ---------------- */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px;
  border-radius: 999px; background: var(--surface-2); margin-bottom: 22px; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2));
  border-radius: 999px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px var(--line);
  transition: transform .25s var(--ease-in-out); }
.seg[data-active="1"] .seg__thumb { transform: translateX(100%); }
.seg[data-active="2"] .seg__thumb { transform: translateX(200%); }
.seg:has(> button:nth-of-type(3)) { --n: 3; }
.seg button { position: relative; z-index: 1; font: 500 14px/1 var(--body); color: var(--muted);
  padding: 10px 26px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  transition: color .15s ease; }
.seg button[aria-selected="true"] { color: var(--text); }
.install { max-width: 760px; margin: 0 auto; text-align: center; }
.code-card { text-align: left; border-radius: 22px; background: var(--code-bg); border: 1px solid var(--line);
  padding: 26px 28px; overflow-x: auto; }
.code-card[hidden] { display: none; }
.code-card.is-in { animation: panel-in .22s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } }
.code-card code { font-family: var(--mono); font-size: 14px; line-height: 2; display: block; color: var(--muted); white-space: pre; }
.c-com { color: var(--faint); } .c-cmd { color: var(--text); }
.install-foot { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------------- section tint + hero proof ---------------- */
.section--tint { background: var(--bg-2); }
.section--tint .cell { background: var(--surface); }
.section--tint .cell--sources { background: var(--bg); }
.section--tint .cell--tiers { background: var(--ink); }
.hero__proof { list-style: none; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin-top: 26px; font-size: 14px; color: var(--faint); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .ph { color: var(--muted); }

/* ---------------- workflow canvas (n8n-style) ---------------- */
.canvas { border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.canvas__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; }
.canvas__dots { display: inline-flex; gap: 6px; }
.canvas__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.canvas__title { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 13px; color: var(--muted); }
.canvas__status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); }
.canvas__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint);
  transition: background-color .2s ease; }
.canvas[data-state="running"] .canvas__status i { background: var(--red); animation: pulse 1s ease-in-out infinite; }
.canvas[data-state="done"] .canvas__status i { background: #1f9d55; }
@keyframes pulse { 50% { opacity: .35; } }

.canvas__stage { position: relative; aspect-ratio: 1000 / 400; container-type: inline-size;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 22px 22px; }
.canvas__edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.canvas__edges path { fill: none; stroke: var(--line-2); stroke-width: 2; vector-effect: non-scaling-stroke;
  transition: stroke .3s ease; }
.canvas__edges path.is-live { stroke: var(--red); stroke-dasharray: 6 6; animation: march .5s linear infinite; }
.canvas__edges path.is-done { stroke: color-mix(in srgb, var(--text) 45%, transparent); }
.canvas__edges circle { fill: var(--red); }
@keyframes march { to { stroke-dashoffset: -12; } }
.canvas__branch { position: absolute; transform: translate(-50%, -50%); font: 500 max(10px, 1.2cqw)/1 var(--mono);
  color: #1f9d55; background: var(--bg); padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); }
.canvas__branch--warn { color: #b7791f; }

.node { position: absolute; width: 16%; height: 18%; display: flex; align-items: center; gap: .9cqw;
  padding: 0 1cqw; border-radius: max(10px, 1.2cqw); background: var(--surface); border: 1.5px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
.node::before, .node::after { content: ""; position: absolute; top: 50%; width: max(8px, .9cqw); aspect-ratio: 1;
  border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); transform: translate(-50%, -50%); }
.node::before { left: 0; }
.node::after { left: 100%; }
.node[data-node="trigger"]::before { display: none; }
.node[data-node="send"]::after, .node[data-node="export"]::after { display: none; }
.node__ico { flex: none; width: 4.2cqw; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text); font-size: max(14px, 2cqw); }
.node__ico--red { background: var(--red-wash); color: var(--red); }
.node__ico--ink { background: var(--ink); color: var(--on-ink); }
.node__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.node__txt b { font-size: max(11px, 1.38cqw); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.node__txt small { font-size: max(9.5px, 1.1cqw); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node__badge { position: absolute; top: 0; right: 8%; transform: translateY(-55%); font: 500 max(9.5px, 1.1cqw)/1 var(--mono);
  padding: 4px 7px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  opacity: 0; scale: .7; transition: opacity .2s ease, scale .25s var(--ease-out); white-space: nowrap; }
.node.is-running { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-wash); }
.node.is-done { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.node.is-done .node__badge, .node.is-running .node__badge { opacity: 1; scale: 1; }
.node.is-running .node__badge { background: var(--red); color: #fff; }

.canvas__log { list-style: none; border-top: 1px solid var(--line); padding: 12px 18px; height: 112px; overflow: hidden;
  font: 400 12.5px/1.75 var(--mono); color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; }
.canvas__log li { display: flex; gap: 12px; animation: logline .3s var(--ease-out); }
.canvas__log time { color: var(--faint); }
.canvas__log b { color: var(--text); font-weight: 500; }
@keyframes logline { from { opacity: 0; transform: translateY(6px); } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.steps div { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------------- workspace: app illustration + features ---------------- */
.app-shot { margin: 0 0 64px; }
.app-shot__win { display: grid; grid-template-columns: 200px 1fr; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.app-shot__side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--bg-2);
  border-right: 1px solid var(--line); color: var(--muted); }
.app-shot__side span { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; }
.app-shot__side .is-on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.app-shot__brand { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.app-shot__brand .brand__mark { width: 18px; height: 18px; display: inline-block; }
.app-shot__main { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.app-shot__search { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); }
.app-shot__search .ph { color: var(--faint); }
.app-shot__search b { margin-left: auto; font-weight: 500; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); }
.app-shot__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-shot__kpis div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.app-shot__kpis small { color: var(--faint); font-size: 12px; }
.app-shot__kpis b { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; }
.app-shot__rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.app-shot__rows div { display: grid; grid-template-columns: 30px 1.2fr 1fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-top: 1px solid var(--line); }
.app-shot__rows div:first-child { border-top: 0; }
.app-shot__rows span:not(.av) { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shot__rows b { font-weight: 500; white-space: nowrap; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); }
.app-shot__rows em { font: 500 12px/1 var(--mono); font-style: normal; padding: 5px 9px; border-radius: 999px; }
.t-safe { color: #1f9d55; background: rgba(31,157,85,.1); }
.t-risky { color: #b7791f; background: rgba(183,121,31,.12); }
.app-shot figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--faint); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature .ph { font-size: 24px; color: var(--red); margin-bottom: 14px; display: block; }
.feature h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }

.integrations { margin-top: 56px; text-align: center; }
.integrations p { color: var(--faint); font-size: 14px; margin-bottom: 18px; }
.integrations__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.integrations__row span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 9px 15px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.integrations__row .ph { font-size: 17px; color: var(--muted); }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 32px 30px;
  border: 1px solid var(--line); background: var(--surface); }
.plan h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.plan__price { font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: -.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px; }
.plan__price small { font-size: 15px; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.plan__desc { color: var(--muted); font-size: 15px; margin: 12px 0 22px; }
.plan ul { list-style: none; display: grid; gap: 10px; align-content: start; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .ph { color: var(--red); margin-top: 4px; flex: none; }
.plan__cta { width: 100%; }
.plan--feature { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan--feature .plan__desc, .plan--feature .plan__price small { color: color-mix(in srgb, var(--on-ink) 62%, var(--ink)); }
.plan--feature li .ph { color: var(--red-on-ink); }
.plan--feature .solid-btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) {
  .plan--feature .solid-btn:hover { background: color-mix(in srgb, var(--on-ink) 88%, var(--ink)); }
}
.plan__tag { position: absolute; top: 30px; right: 28px; font-size: 12px; font-weight: 500; padding: 5px 10px;
  border-radius: 999px; background: var(--red); color: #fff; }

/* ---------------- faq ---------------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq__head .h2 { margin-bottom: 18px; }
.faq__list details { border-top: 1px solid var(--line-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-weight: 400; color: var(--faint); font-size: 22px; line-height: 1;
  transition: transform .2s var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--muted); padding: 0 0 22px; max-width: 60ch; }
.faq__list details p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 13.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 10px; align-items: flex-start; }
.footer__tag { color: var(--faint); margin-top: 4px; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer__cols a { display: block; color: var(--muted); margin-bottom: 8px; transition: color .15s ease; }
.footer__cols a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; color: var(--faint); font-size: 13px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--text); }

/* ---------------- toast ---------------- */
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 60; transform: translate(-50%, 8px);
  background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: 999px;
  font: 400 13.5px/1.2 var(--mono); opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition-duration: .2s; }

/* ---------------- motion ----------------
   .intro: the hero plays once on load with CSS only, so it is never blank
   (background tabs, slow JS, link previews).
   .reveal: below the fold, revealed by JS slightly before it scrolls in. */
.js .intro { animation: intro .7s var(--ease-out) both; }
.js .intro:nth-child(2) { animation-delay: .06s; }
.js .intro:nth-child(3) { animation-delay: .12s; }
.js .intro:nth-child(4) { animation-delay: .18s; }
.js .intro:nth-child(5) { animation-delay: .24s; }
.js .intro:nth-child(6) { animation-delay: .3s; }
@keyframes intro { from { opacity: 0; transform: translateY(14px); } }
.js .reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .app-shot__win { grid-template-columns: 1fr; }
  .app-shot__side { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell--signals { grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { --gutter: 16px; }
  .nav { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__ctas { flex-direction: column; gap: 16px; }
  .copy { font-size: 13.5px; padding: 14px 16px 14px 18px; }
  .spot-wrap { margin-top: 56px; }
  .spot__bar, .spot__body { padding-left: 18px; padding-right: 18px; }
  .spot__legend { padding: 12px 18px; gap: 12px; }
  .spot__tiles { gap: 5px; }
  .tile { border-radius: 5px; }
  .spot__meta { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .stat { padding: 24px 14px 8px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .nav__cta .solid-btn { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
  .feature { padding: 24px 0; }
  .app-shot__kpis { grid-template-columns: 1fr 1fr; }
  .app-shot__rows div { grid-template-columns: 30px 1fr auto; }
  .app-shot__rows span:not(.av) { display: none; }
  .hero__proof { gap: 14px; }
  /* canvas: stack the nodes vertically, n8n-on-a-phone */
  .canvas__stage { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px; }
  .canvas__edges, .canvas__branch { display: none; }
  .node { position: relative; inset: auto !important; width: 100%; height: 62px; padding: 0 14px; gap: 12px; border-radius: 14px; }
  .node::before, .node::after { display: none; }
  .node__ico { width: 38px; font-size: 18px; }
  .node__txt b { font-size: 15px; }
  .node__txt small { font-size: 13px; }
  .node__badge { font-size: 11px; right: 14px; top: 50%; transform: translateY(-50%); }
  .canvas__log { height: 96px; padding: 10px 14px; font-size: 11.5px; }
  .cell { padding: 26px 22px; }
  .compare th, .compare td { padding: 16px 10px; font-size: 14.5px; }
  .compare td:first-child { width: 30%; }
  .privacy { padding: 112px 0; }
  .code-card { padding: 20px; }
  .code-card code { font-size: 12.5px; }
  .footer__cols { gap: 36px; }
}

/* ---------------- reduced motion: each animated thing, explicitly ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .intro { animation: none; }
  .canvas__edges path.is-live, .canvas[data-state="running"] .canvas__status i, .canvas__log li { animation: none; }
  .node, .node__badge, .faq__list summary::after { transition: none; }
  .spot__caret { animation: none; }
  .tile, .spot__meta dd, .seg__thumb, .toast, .copy__ico .ph, .text-link .ph { transition: none; }
  .code-card.is-in { animation: none; }
  .solid-btn, .ghost-btn, .copy { transition: background-color .15s ease; }
  .solid-btn:active, .ghost-btn:active, .copy:active { transform: none; }
}
