/* SafePrompt landing page
   Palette taken from the product ad: ink navy → pine, shield emerald,
   amber for detected data, mint for placeholder tokens. */

:root {
  --ink: #0a1628;
  --ink-2: #13233a;
  --pine: #0c3a33;
  --emerald: #14a37f;
  --emerald-bright: #2fd3a2;
  --emerald-deep: #0b7c60;
  --mint: #ddf6ec;
  --mint-ink: #08664f;
  --amber: #f6c46a;
  --amber-soft: #fdecc8;
  --blue: #2f6bf2;
  --blue-soft: #dce7ff;
  --paper: #f4f7f6;
  --white: #ffffff;
  --text: #13233a;
  --muted: #4d5d70;
  --line: #dbe3e1;

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
b, strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--emerald-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Icons ---------- */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--chrome { width: 20px; height: 20px; stroke-width: 1.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--f-body);
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  padding: 14px 22px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--lg { padding: 17px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--emerald-deep); color: var(--white); box-shadow: 0 6px 18px -6px rgba(11, 124, 96, .55); }
.btn--primary:hover { background: #0a6c54; }
.hero .btn--primary, .final .btn--primary, .nav .btn--primary {
  background: var(--emerald-bright); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(47, 211, 162, .7);
}
.hero .btn--primary:hover, .final .btn--primary:hover, .nav .btn--primary:hover { background: #5ce2bb; }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font: 700 21px/1 var(--f-display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.74); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(80% 70% at 85% 30%, rgba(20, 163, 127, .28), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(12, 58, 51, .9), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, #0b2030 55%, var(--pine) 100%);
  padding: clamp(48px, 8vw, 96px) 0 40px;
  margin-top: -68px; padding-top: calc(68px + clamp(48px, 8vw, 96px));
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); padding: 6px 14px 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.04); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(47,211,162,.2); }
.hero__title {
  color: var(--white);
  font-size: clamp(50px, 7.4vw, 92px);
  line-height: .96; font-weight: 800; letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.hero__lede { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.78); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__fine { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.6); }

.works { display: flex; align-items: center; gap: 20px; margin-top: clamp(48px, 7vw, 80px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.works__label { font-size: 14px; color: rgba(255,255,255,.55); }
.works__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.works__list li { font: 600 18px/1 var(--f-display); color: rgba(255,255,255,.88); letter-spacing: -0.01em; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { max-width: 620px; }
}

/* ---------- Browser windows ---------- */
.window { background: var(--white); border-radius: 14px; overflow: hidden; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.window__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #eef2f1; border-bottom: 1px solid #e1e7e5; font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3dbd9; }
.dots i:nth-child(1) { background: #f26b5b; } .dots i:nth-child(2) { background: #f6be4f; } .dots i:nth-child(3) { background: #3ec66b; }
.window__url { flex: 1; background: var(--white); border-radius: 6px; padding: 4px 10px; max-width: 260px; }
.window__ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--mint-ink); white-space: nowrap; }

/* ---------- Hero mock animation ---------- */
.hero-mock { position: relative; height: clamp(300px, 34vw, 380px); background: #fbfcfc; padding: 18px; display: flex; flex-direction: column; }
.hero-mock__chat { flex: 1; }
.hero-mock__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-mock__chat { display: flex; flex-direction: column; gap: 12px; }
.hero-mock__bubble { align-self: flex-end; max-width: 70%; background: #eef2f1; border-radius: 14px 14px 4px 14px; padding: 8px 12px; font-size: 13.5px; }
.hero-mock__answer { display: flex; gap: 10px; align-items: flex-start; }
.hero-mock__answer i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #5b6cf0, #3b4fd8); flex: none; }
.hero-mock__lines { flex: 1; display: grid; gap: 7px; padding-top: 4px; }
.hero-mock__lines span { height: 8px; border-radius: 4px; background: #e6ecea; }
.hero-mock__lines span:nth-child(2) { width: 86%; }
.hero-mock__lines span:nth-child(3) { width: 58%; }
.hero-mock__composer {
  position: relative; display: flex; gap: 12px; align-items: flex-end;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 14px 16px; box-shadow: 0 4px 16px -8px rgba(10,22,40,.15);
  min-height: 92px;
}
.hero-mock__text { flex: 1; font-size: 15px; line-height: 1.75; min-height: 52px; }
.hero-mock__text .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-mock__send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.hero-mock__send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-mock__secure {
  position: absolute; right: 18px; bottom: 122px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--emerald); color: var(--white); font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 8px;
  transition: background-color .3s;
}
.hero-mock__secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.hero-mock[data-stage="3"] .hero-mock__secure { background: var(--emerald-deep); }

.hero-mock__modal {
  position: absolute; left: 50%; top: 22px; width: min(360px, calc(100% - 36px));
  transform: translate(-50%, 8px) scale(.97); opacity: 0; pointer-events: none;
  background: var(--white); border-radius: 12px; padding: 16px 16px 14px;
  box-shadow: 0 24px 48px -16px rgba(10,22,40,.35), 0 0 0 1px rgba(10,22,40,.06);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
}
.hero-mock__modal strong { font-size: 15px; }
.hero-mock__modal p { font-size: 13px; color: var(--muted); margin: 4px 0 10px; line-height: 1.45; }
.hero-mock__modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.hero-mock[data-stage="2"] .hero-mock__modal { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hero-mock[data-stage="2"]::after { content: ""; position: absolute; inset: 0; background: rgba(10,22,40,.18); z-index: 1; }
.hero-mock[data-stage="2"] .fakebtn--green { box-shadow: 0 0 0 3px rgba(20,163,127,.3); }

/* ---------- Marks, tokens, chips, fake buttons ---------- */
mark { background: var(--amber-soft); color: inherit; padding: 1px 3px; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--amber); }
mark.mark--blue { background: var(--blue-soft); box-shadow: inset 0 -2px 0 #8fb0ff; }
.tok {
  font-family: var(--f-mono); font-size: .8em; font-weight: 600;
  color: var(--mint-ink); background: var(--mint);
  border: 1px solid #a9e6cf; border-radius: 5px; padding: 1px 5px;
  white-space: nowrap;
}
.tok.is-new { animation: tokIn .45s ease; }
@keyframes tokIn { from { background: var(--amber-soft); border-color: var(--amber); } }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--paper); color: var(--text); }
.chip--warn { background: var(--amber-soft); color: #7a4e00; }
.chip--custom { background: var(--mint); color: var(--mint-ink); }
.fakebtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.fakebtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fakebtn--plain { border: 1px solid var(--line); background: var(--white); }
.fakebtn--green { background: var(--emerald); color: var(--white); }
.fakebtn--blue { background: var(--blue); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Video */
.section--video { background: var(--white); }
.video { position: relative; max-width: 1040px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; box-shadow: 0 50px 90px -40px rgba(10,22,40,.55); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--white); font: inherit;
}
.video__play-btn { width: clamp(68px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--emerald-bright); display: grid; place-items: center; box-shadow: 0 20px 40px -10px rgba(47,211,162,.6); transition: transform .2s; }
.video__play-btn svg { width: 40%; fill: var(--ink); margin-left: 6%; }
.video__play:hover .video__play-btn { transform: scale(1.06); }
.video__play-text { font-weight: 600; font-size: 16px; display: inline-flex; gap: 10px; align-items: center; background: rgba(10,22,40,.6); padding: 8px 14px; border-radius: 999px; }
.video__play-text span { color: rgba(255,255,255,.65); font-weight: 500; }
.video.is-playing .video__play { display: none; }

/* Problem */
.section--problem { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(64px, 8vw, 104px) 0; }
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.problem__title { color: var(--white); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; }
.problem__points { display: grid; gap: 26px; }
.problem__points p { padding-left: 20px; border-left: 2px solid rgba(47,211,162,.5); }
.problem__points strong { color: var(--white); display: block; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 820px) { .problem { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 104px); }
.step { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.step:nth-child(even) .step__copy { order: 2; }
.step__copy { max-width: 440px; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--emerald-bright); font: 700 18px/1 var(--f-display); margin-bottom: 20px; }
.step h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; margin-bottom: 14px; }
.step p { color: var(--muted); }
.step p .tok { font-size: .82em; }
@media (max-width: 820px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__copy { order: 0; }
}

/* Mock product panels used in steps */
.mock {
  position: relative; background: var(--white); border-radius: 16px; padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line); min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  box-shadow: 0 30px 60px -36px rgba(10,22,40,.35);
}
.mock--dim { background: #e9eeed; }
.mock-input {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  font-size: 15px; line-height: 1.85; box-shadow: 0 4px 16px -10px rgba(10,22,40,.2);
}
.mock-input .tok { font-size: 12.5px; }
.mock-modal { align-self: center; width: min(400px, 100%); background: var(--white); border-radius: 12px; padding: 18px; box-shadow: 0 20px 40px -16px rgba(10,22,40,.3); }
.mock-modal__head { display: flex; justify-content: space-between; align-items: center; }
.mock-modal__head span { color: var(--muted); font-size: 20px; line-height: 1; }
.mock-modal p { font-size: 13.5px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.mock-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fakebtn--float { align-self: flex-end; }
.fakebtn--right { align-self: flex-end; }
.mock-input--select { position: relative; margin-top: 44px; }
.selected { background: #b8d3ff; border-radius: 3px; padding: 0 1px; }
.selected--soft { background: transparent; text-decoration: underline 2px #8fb0ff; text-underline-offset: 3px; }
.mask-tip {
  position: absolute; top: -40px; left: clamp(80px, 22%, 160px);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 8px;
}
.mask-tip::after { content: ""; position: absolute; left: 24px; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.mask-tip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.mock-reply { display: flex; gap: 14px; font-size: 15px; line-height: 1.75; }
.mock-reply p + p { margin-top: 6px; }
.mock-reply__subject { font-weight: 600; color: var(--ink); }
.mock-reply__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #5b6cf0, #3b4fd8); flex: none; }

.inline-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 88px); padding: 24px 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.inline-cta span { color: var(--muted); }

/* Try it lab */
.section--try { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white); }
.lab__panel { padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lab__panel--out { background: var(--ink); color: rgba(255,255,255,.85); }
.lab__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font: 700 15px/1.2 var(--f-body); color: var(--ink); }
.lab__panel--out .lab__panel-head { color: var(--white); }
.lab textarea {
  width: 100%; resize: vertical; min-height: 190px;
  font: 16px/1.7 var(--f-body); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper);
}
.lab textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(20,163,127,.2); background: var(--white); }
.lab__mask {
  display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--f-body);
  background: var(--ink); color: var(--white); border: 0; padding: 9px 13px; border-radius: 8px; cursor: pointer;
}
.lab__mask svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lab__mask:disabled { background: #c7d1cf; color: #fff; cursor: not-allowed; }
.lab__hint { font-size: 14px; color: var(--muted); }
.lab__found { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lab__found-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.lab__out { flex: 1; min-height: 190px; font-size: 16px; line-height: 1.95; color: var(--white); white-space: pre-wrap; overflow-wrap: anywhere; }
.lab__out .tok { background: rgba(47,211,162,.14); border-color: rgba(47,211,162,.45); color: var(--emerald-bright); font-size: 13.5px; }
.lab__out mark.mark--blue { background: rgba(140,176,255,.22); box-shadow: inset 0 -2px 0 #8fb0ff; color: var(--white); }
.lab__note { font-size: 14px; color: rgba(255,255,255,.6); }
.lab__disclaimer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.seg__btn { font: 600 13px/1 var(--f-body); color: rgba(255,255,255,.7); background: transparent; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.seg__btn.is-on { background: var(--white); color: var(--ink); }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } }

/* What it catches */
.section--catch { padding-bottom: 0; }
.catch { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.catch > div p { color: var(--muted); margin-top: 16px; font-size: 19px; }
.catch__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.catch__list li { font: 600 17px/1 var(--f-body); padding: 14px 18px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.catch__list li.catch__custom { background: var(--mint); border-color: #a9e6cf; color: var(--mint-ink); }
@media (max-width: 820px) { .catch { grid-template-columns: 1fr; } }

/* Privacy (dark) */
.section--dark {
  margin-top: var(--sec);
  background: radial-gradient(70% 60% at 50% 0%, rgba(20,163,127,.18), transparent 70%), linear-gradient(180deg, var(--ink), #0b2230);
  color: rgba(255,255,255,.75);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .section__head p { color: rgba(255,255,255,.7); }
.flow { display: grid; grid-template-columns: 1.15fr auto 1fr 1fr; gap: 16px; align-items: stretch; }
.flow__node { border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.03); }
.flow__node p { font-size: 15px; flex: 1; }
.flow__node--you { border-color: rgba(47,211,162,.6); background: rgba(47,211,162,.07); box-shadow: 0 0 0 4px rgba(47,211,162,.08); }
.flow__node--us { border-style: dashed; }
.flow__val { align-self: flex-start; font: 600 13px/1 var(--f-mono); padding: 7px 10px; border-radius: 6px; background: var(--amber-soft); color: #6e4600; }
.flow__val--tok { background: rgba(47,211,162,.14); color: var(--emerald-bright); }
.flow__val--none { font-family: var(--f-body); background: transparent; border: 1px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.65); }
.flow__arrow { position: relative; width: 90px; display: flex; align-items: center; justify-content: center; }
.flow__arrow::before { content: ""; position: absolute; left: 4px; right: 10px; top: 50%; border-top: 2px dashed rgba(47,211,162,.6); }
.flow__arrow::after { content: ""; position: absolute; right: 4px; top: calc(50% - 6px); border: 6px solid transparent; border-left: 9px solid var(--emerald-bright); border-right: 0; }
.flow__arrow span { position: relative; font-size: 12px; font-weight: 600; color: var(--emerald-bright); background: #0c1d2f; padding: 2px 6px; text-align: center; line-height: 1.3; transform: translateY(-18px); }
@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { width: auto; height: 56px; }
  .flow__arrow::before { left: 50%; right: auto; top: 4px; bottom: 12px; border-top: 0; border-left: 2px dashed rgba(47,211,162,.6); }
  .flow__arrow::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 2px; border: 6px solid transparent; border-top: 9px solid var(--emerald-bright); border-bottom: 0; }
  .flow__arrow span { transform: translateX(70px); }
}
.facts { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.facts li { font-size: 16px; }
.facts strong { color: var(--white); display: block; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
.privacy-link { margin-top: 40px; }
.privacy-link a { color: var(--emerald-bright); font-weight: 600; text-underline-offset: 4px; }

/* Who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.who__item { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.who__item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.who__item h3 { font-size: 20px; margin-bottom: 8px; }
.who__item p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .who { grid-template-columns: 1fr 1fr; }
  .who__item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .who__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .who { grid-template-columns: 1fr; }
  .who__item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Pricing */
.section--tint { background: #e8efed; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--white); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.plan h3 { font-size: 30px; }
.plan__sub { color: var(--muted); }
.plan__list { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan__list li { padding-left: 30px; position: relative; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan--pro { border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(10,22,40,.35); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 19px/1.35 var(--f-body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--emerald-deep); font-weight: 600; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Final CTA */
.final {
  color: var(--white); text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, rgba(20,163,127,.35), transparent 70%), linear-gradient(180deg, #0b2030, var(--pine));
  padding: clamp(80px, 11vw, 140px) 0;
}
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { color: var(--white); font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.final p { color: rgba(255,255,255,.75); font-size: 19px; }
.final .btn { margin-top: 12px; }
.final .final__works { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 6px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--small { font-size: 17px; }
.brand--small img { width: 24px; height: 24px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 640px) {
  .hero__ctas .btn { width: 100%; }
  .nav .btn--sm { padding: 9px 13px; font-size: 14px; }
  .window__ext { display: none; }
  .inline-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Added after marketing audit ---------- */
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,.72); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--emerald-bright); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.14); }
.proof__item { padding: 28px 28px 0 0; }
.proof__item + .proof__item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.proof__num { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--f-display); color: var(--emerald-bright); letter-spacing: -0.03em; margin-bottom: 10px; }
.proof__item p { font-size: 16px; max-width: 26ch; }
.proof__src { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); }
.proof__src a { color: rgba(255,255,255,.75); }
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr; }
  .proof__item + .proof__item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; }
}

.video__poster { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__alt { text-align: center; margin-top: 16px; font-size: 15px; }
.video__alt a { color: var(--muted); }

.plan__price { font-size: 16px; color: var(--muted); margin: 6px 0 2px; }
.plan__price span { font: 800 44px/1 var(--f-display); color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.plans__team { text-align: center; margin-top: 28px; color: var(--muted); }
.plans__team a { color: var(--emerald-deep); font-weight: 600; }

/* Hero H1 carries the slogan plus a keyword line (SEO) */
.hero__slogan { display: block; }
.hero__h1sub {
  display: block; margin-top: 18px; max-width: 24em;
  font: 600 clamp(19px, 1.9vw, 24px)/1.3 var(--f-body); letter-spacing: -0.01em;
  color: rgba(255,255,255,.9);
}

/* Analytics consent banner */
.consent {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: var(--ink); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
  font-size: 14px; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent a { color: var(--emerald-bright); }
.consent__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.consent__btn {
  font: 600 14px/1 var(--f-body); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: var(--emerald-bright); color: var(--ink); border: 1.5px solid var(--emerald-bright);
}
.consent__btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.footer__btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__btn:hover { color: var(--white); text-decoration: underline; }
.consent { display: flex; align-items: center; gap: 14px; }
.consent p { flex: 1; }
.consent__actions { margin-top: 0; flex: none; }
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; gap: 10px; font-size: 13px; border-radius: 12px; }
  .consent__btn { padding: 9px 13px; font-size: 13px; }
}

/* "Try it" demo removed: close the gap between How it works and What it catches */
#how { padding-bottom: clamp(56px, 7vw, 88px); }
.section--catch { padding-top: 0; }

/* ================= Guides ================= */
.nav--solid { background: var(--ink); }
.guide { padding: clamp(28px, 4vw, 48px) 0 var(--sec); }
.guide__wrap { max-width: 780px; }
.guide__wrap--wide { max-width: 980px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article__head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.article__meta { margin-top: 16px; color: var(--muted); font-size: 15px; }

.prose { margin-top: 32px; font-size: 18px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin-top: 2em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--emerald-deep); font-weight: 600; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--emerald-deep); }
.prose li.check { list-style: none; position: relative; margin-left: -1.3em; padding-left: 32px; }
.prose li.check::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border: 2px solid var(--emerald-deep); border-radius: 5px; }
.prose code { font-family: var(--f-mono); font-size: .82em; font-weight: 600; color: var(--mint-ink); background: var(--mint); border: 1px solid #a9e6cf; border-radius: 5px; padding: 1px 5px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--emerald); border-radius: 12px; font-size: 16.5px; }
.prose blockquote p + p { margin-top: .7em; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; color: var(--ink); background: #eef3f1; }
.prose tr:last-child td { border-bottom: 0; }
.prose .sources-title { font-size: 20px; }
.prose ul.sources { font-size: 15px; color: var(--muted); }
.prose ul.sources a { font-weight: 500; }

.guide-cta {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 2.4em 0; padding: clamp(20px, 3vw, 28px);
  background: var(--ink); color: rgba(255,255,255,.8); border-radius: 18px;
  font-size: 16px; line-height: 1.6;
}
.guide-cta img { flex: none; }
.guide-cta__title { font: 700 21px/1.25 var(--f-display); color: var(--white); margin-bottom: 6px; }
.guide-cta .btn { margin-top: 16px; }
.guide-cta .btn--primary { background: var(--emerald-bright); color: var(--ink); }
.guide-cta .btn--primary:hover { background: #5ce2bb; }
.prose .guide-cta a.btn { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (max-width: 560px) { .guide-cta { flex-direction: column; } .guide-cta .btn { width: 100%; white-space: normal; } }

.related { margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1.5px solid var(--ink); }
.related h2 { font-size: 24px; }
.related__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.related__list a { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.related__list a:hover { border-color: var(--emerald); }
.related__title { display: block; font-weight: 700; color: var(--ink); }
.related__desc { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

.guides-head h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
.guides-head p { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 40em; }
.guide-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card a { display: flex; flex-direction: column; height: 100%; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); }
.guide-card a:hover { border-color: var(--emerald); box-shadow: 0 20px 40px -28px rgba(10,22,40,.35); }
.guide-card h2 { font-size: 22px; line-height: 1.2; }
.guide-card p { margin-top: 10px; color: var(--muted); flex: 1; }
.guide-card__meta { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--emerald-deep); }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }

/* Home page: guides section */
.home-guides__list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.home-guides__list li { border-bottom: 1px solid var(--line); }
.home-guides__list a { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 20px 0; text-decoration: none; color: var(--ink); }
.home-guides__list a:hover .home-guides__title { text-decoration: underline; text-underline-offset: 4px; }
.home-guides__title { font: 700 clamp(18px, 2vw, 21px)/1.3 var(--f-display); }
.home-guides__meta { flex: none; font-size: 14px; color: var(--muted); }
.home-guides__all { margin-top: 24px; }
.home-guides__all a { color: var(--emerald-deep); font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 560px) { .home-guides__list a { flex-direction: column; gap: 4px; } }
