/* ── Stakeout marketing site ─────────────────────────────────
   Brand system ported from the original stakeout-landing repo:
   #FE4C38 red, near-black ink, warm whites, Space Grotesk +
   Work Sans. Shared by every page; no build step.            */

:root {
  --red: #fe4c38;
  --red-deep: #e53d2a;
  --red-tint: #fff0ed;
  --ink: #0f0f0f;
  --ink-lift: #1a1a1c;
  --paper: #ffffff;
  --paper-warm: #f7f7f5;
  --rule: #e2e2de;
  --text: #111827;
  --muted: #62676e;
  --dark-text: #f5f4f1;
  --dark-muted: #a3a7ad;
  --dark-rule: #2a2a2e;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shell: min(1120px, 100% - 3rem);
  --r-sm: 10px;
  --r-md: 16px;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.9rem + 2.9vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--red-deep); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}
.skip:focus { left: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgb(254 76 56 / 0.32); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--dark-ghost { background: transparent; color: var(--dark-text); border-color: var(--dark-rule); }
.btn--dark-ghost:hover { border-color: var(--dark-text); transform: translateY(-2px); }
.btn--sm { padding: 9px 20px; font-size: 0.9rem; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-color: var(--rule); box-shadow: 0 4px 20px rgb(15 15 15 / 0.05); }
.nav__row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--red-deep); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ── Sections ── */
.section { padding: 92px 0; }
.band { background: var(--ink); color: var(--dark-text); }
.band-warm { background: var(--paper-warm); border-block: 1px solid var(--rule); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: "◉"; font-size: 0.7em; }
.band .eyebrow { color: var(--red); }

.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head p { color: var(--muted); font-size: var(--step-1); margin: 0; }
.band .section__head p { color: var(--dark-muted); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgb(254 76 56 / 0.07), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(0 0 0 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 0 0 / 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black, transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 20px; }
.hero__sub {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 34ch;
  margin: 20px 0 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hero__note b { color: var(--text); font-weight: 600; }

/* ── Hero widget mock (the signature) ── */
.mock {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px rgb(15 15 15 / 0.16);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}
.mock__list {
  border-right: 1px solid var(--rule);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}
.mock__search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.mock__search svg { flex-shrink: 0; }
.mock__store {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.75rem;
  line-height: 1.45;
}
.mock__store b { display: block; font-family: var(--font-display); font-size: 0.82rem; color: var(--ink); }
.mock__store span { color: var(--muted); }
.mock__store .mock__open { color: #0a7d4f; font-weight: 600; }
.mock__store--active { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.mock__map {
  position: relative;
  background:
    linear-gradient(rgb(15 15 15 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 15 15 / 0.05) 1px, transparent 1px),
    linear-gradient(160deg, #f4f2ec, #ece9e1);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}
/* stylised roads */
.mock__map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 22%, #fff 22%, #fff 25%, transparent 25%),
    linear-gradient(to bottom, transparent 58%, #fff 58%, #fff 62%, transparent 62%);
  opacity: 0.85;
}
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -100%);
}
.pin svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgb(15 15 15 / 0.3)); }
.pin--pop { animation: pin-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
.pin:nth-child(2) { animation-delay: 0.15s; }
.pin:nth-child(3) { animation-delay: 0.3s; }
.pin:nth-child(4) { animation-delay: 0.45s; }
.pin:nth-child(5) { animation-delay: 0.6s; }
@keyframes pin-pop {
  from { transform: translate(-50%, -100%) scale(0); }
  to { transform: translate(-50%, -100%) scale(1); }
}
/* the reticle: Stakeout's mark, watching the featured store */
.reticle {
  position: absolute;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.reticle svg { width: 100%; height: 100%; }
.reticle::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgb(254 76 56 / 0.55);
  border-radius: 50%;
  animation: reticle-pulse 2.6s ease-out infinite;
}
@keyframes reticle-pulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  70%, 100% { transform: scale(1.15); opacity: 0; }
}
.mock__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--dark-text);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ── Trust strip ── */
.trust {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.trust__row li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.trust__row { margin: 0; padding-left: 0; }
.trust__row svg { color: var(--red-deep); flex-shrink: 0; }

/* ── Feature cards ── */
.features__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(15 15 15 / 0.07); }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ── Steps ── */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--ink-lift);
  border: 1px solid var(--dark-rule);
  border-radius: var(--r-md);
  padding: 28px 26px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 1.5px solid rgb(254 76 56 / 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.step h3 { color: var(--dark-text); }
.step p { color: var(--dark-muted); font-size: 0.95rem; margin: 0; }

/* ── Pricing ── */
.pricing__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 44px;
}
.pricing__toggle button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.pricing__toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pricing__toggle .save {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--red-tint);
  color: var(--red-deep);
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 6px;
}
.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  color: var(--text); /* explicit: never inherit band colours */
}
.plan[data-featured] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 12px 36px rgb(254 76 56 / 0.13);
}
.plan__flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { margin-bottom: 2px; }
.plan__blurb { color: var(--muted); font-size: 0.85rem; margin: 0 0 18px; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__cycle { font-size: 0.78rem; color: var(--muted); min-height: 1.3em; margin: 2px 0 20px; }
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
}
.plan li { display: flex; gap: 9px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--red-deep); font-weight: 700; flex-shrink: 0; }
.plan li[data-off] { color: var(--muted); opacity: 0.55; }
.plan li[data-off]::before { content: "—"; color: var(--muted); font-weight: 400; }
.plan .btn { margin-top: auto; }
.pricing__foot { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 36px 0 0; }

/* ── FAQ ── */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 4px 20px; margin: 0; max-width: 62ch; }

/* ── Final CTA ── */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent 75%);
}
.final .shell { position: relative; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--dark-muted); font-size: var(--step-1); max-width: 46ch; margin: 0 auto 32px; }

/* ── Footer ── */
.footer { padding: 44px 0 52px; border-top: 1px solid var(--rule); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.footer__brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--red-deep); }
.footer__legal { width: 100%; color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }

/* ── Prose pages (privacy) ── */
.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h1 { font-size: var(--step-3); }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.prose h2 { font-size: var(--step-2); margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border: 1px solid var(--rule); }
.prose th { background: var(--paper-warm); font-family: var(--font-display); font-weight: 600; }

/* ── Contact ── */
.contact__grid { display: grid; gap: 48px; padding: 64px 0 96px; }
.contact__info h1 { font-size: var(--step-3); }
.contact__info > p { color: var(--muted); max-width: 42ch; }
.contact__channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
}
.contact__channel svg { color: var(--red-deep); flex-shrink: 0; margin-top: 3px; }
.contact__channel b { display: block; font-family: var(--font-display); }
.contact__channel span, .contact__channel a { color: var(--muted); font-size: 0.92rem; }
.contact-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: 0 18px 44px rgb(15 15 15 / 0.06);
}
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 6px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(254 76 56 / 0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-alert { border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.92rem; margin-bottom: 18px; }
.form-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Reveal on scroll (no-JS safe: only hides when JS removed .no-js) ── */
body:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
body:not(.no-js) .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin--pop { animation: none; }
  .reticle::after { animation: none; opacity: 0.35; transform: scale(0.9); }
  body:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ── Responsive ── */
@media (min-width: 941px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
}
@media (max-width: 940px) {
  .mock { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock__list { flex-direction: row; border-right: none; border-bottom: 1px solid var(--rule); overflow-x: auto; }
  .mock__search { display: none; }
  .mock__store { min-width: 170px; }
  .mock__map { min-height: 260px; }
}
@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px rgb(15 15 15 / 0.08);
    padding: 8px 0 12px;
  }
  .nav__links a { padding: 12px 24px; }
  .nav__links .btn { margin: 10px 24px 4px; }
  .nav.menu-open .nav__links { display: flex; }
  .nav__toggle { display: inline-flex; }
}
