/* Tacticto landing site. Hybrid A×C dark marketing surface (DESIGN.md §4–§8):
   telemetry hero with one product card, a volt marquee, then quiet sections. */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --tt-bg: #0d0f12;
  --tt-surface: #14171b;
  --tt-surface-2: #1a1e23;
  --tt-border: #2a2f35;
  --tt-border-strong: #3a4046;
  --tt-text: #f2f4ef;
  --tt-muted: #9aa3a0;
  --tt-faint: #6d766f;
  --tt-volt: #c8f13f;
  --tt-violet: #7a52ff;
  --tt-pink: #ff4fa3;
  --tt-ink: #0d0f12;
  --tt-paper: #fffdf8;
  --tt-display: "Bricolage Grotesque Variable", "Trebuchet MS", sans-serif;
  --tt-mono: "JetBrains Mono Variable", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 160ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--tt-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  font-synthesis: none;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(200, 241, 63, 0.7); outline-offset: 3px; border-radius: 6px; }

.frame {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .frame {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.mono {
  font-family: var(--tt-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--tt-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Wordmark */
.wordmark {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.wordmark i { font-style: normal; color: var(--tt-volt); }
.wordmark-small { font-size: 22px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--tt-volt);
  color: var(--tt-ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button-ghost { background: transparent; color: var(--tt-text); border: 1.5px solid var(--tt-border-strong); }
.button-ink { background: var(--tt-ink); color: var(--tt-volt); }

/* Header */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.masthead-actions { display: flex; align-items: center; gap: 14px; }
.beta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--tt-border);
  border-radius: 999px;
  color: var(--tt-muted);
  font-size: 11px;
}
@media (max-width: 639px) { .masthead .beta-chip { display: none; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tt-volt); flex: none; }

/* Hero */
.hero {
  display: grid;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 64px; padding-top: 56px; padding-bottom: 96px; }
}
.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 18px; }
h1 {
  font-size: clamp(48px, 8.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.93;
}
h1 i { font-style: normal; color: var(--tt-volt); }
.lede { margin-top: 24px; max-width: 34ch; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.42; color: var(--tt-text); }

/* Waitlist */
.join { margin-top: 32px; max-width: 560px; scroll-margin-top: 24px; }
.join-form { display: grid; gap: 14px; }
.join-status { display: inline-flex; align-items: center; gap: 8px; color: var(--tt-volt); font-size: 11px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.roles legend { float: left; margin-right: 6px; padding: 0; line-height: 44px; color: var(--tt-muted); font-size: 15px; }
.roles label { position: relative; }
.roles input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.roles span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--tt-border-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tt-muted);
  transition: transform var(--dur-press) var(--ease-out);
}
.roles input:checked + span { background: var(--tt-text); border-color: var(--tt-text); color: var(--tt-ink); }
.roles input:focus-visible + span { outline: 3px solid rgba(200, 241, 63, 0.7); outline-offset: 3px; }
.roles label:active span { transform: scale(0.97); }

.email-row { display: flex; gap: 8px; padding: 6px; border: 1.5px solid var(--tt-border-strong); border-radius: 999px; background: var(--tt-surface); }
.email-row:focus-within { border-color: var(--tt-volt); }
.email-row input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--tt-text);
  font: inherit;
  font-size: 17px;
}
.email-row input::placeholder { color: var(--tt-faint); }
.email-row input:focus { outline: none; }
@media (max-width: 480px) {
  .email-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .email-row input { min-height: 44px; }
}

.parent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--tt-muted); cursor: pointer; }
.parent-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tt-volt); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-message { min-height: 0; color: var(--tt-pink); font-size: 15px; font-weight: 700; }
/* Empty, it stays in the accessibility tree but cancels the form's row gap. */
.join-message:empty { margin-top: -14px; }
.join-note { font-size: 14px; color: var(--tt-faint); }
.join-note a { color: var(--tt-muted); }

.joined { display: grid; gap: 12px; justify-items: start; padding: 24px; border: 1.5px solid var(--tt-border); border-radius: 22px; background: var(--tt-surface); }
.joined h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.joined p { color: var(--tt-muted); }
.joined-chip { color: var(--tt-volt); }
.share-note { font-size: 14px; }
.share-note:empty { display: none; }
.doc .share-link { font-family: var(--tt-mono); color: var(--tt-text); user-select: all; overflow-wrap: anywhere; }

/* Product card */
.result-card {
  position: relative;
  margin: 0;
  padding: 22px;
  border: 1.5px solid var(--tt-border);
  border-radius: 22px;
  background: var(--tt-surface);
  min-width: 0;
}
.result-head { display: flex; justify-content: space-between; gap: 12px; color: var(--tt-muted); }
.result-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.result-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--tt-surface-2);
  font-weight: 700;
}
.state {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--tt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.state-win { background: var(--tt-volt); color: var(--tt-ink); }
.state-fix { background: var(--tt-pink); color: var(--tt-paper); }
.result-next { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--tt-violet); color: var(--tt-paper); }
.result-next .mono { opacity: 0.85; font-size: 11px; }
.result-next-title { margin-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.result-next-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--tt-volt);
  color: var(--tt-ink);
  font-weight: 700;
  font-size: 15px;
}
.result-next-action svg { width: 16px; height: 16px; }
.sticker {
  position: absolute;
  bottom: -34px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 12px;
  border: 3px solid var(--tt-bg);
  border-radius: 50%;
  background: var(--tt-volt);
  color: var(--tt-ink);
  box-shadow: 4px 4px 0 #000;
  transform: rotate(9deg);
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
@media (max-width: 480px) { .sticker { width: 92px; height: 92px; font-size: 14px; bottom: -30px; right: -4px; } }

/* Marquee (marketing only, DESIGN.md §8) */
.marquee { overflow: hidden; background: var(--tt-volt); color: var(--tt-ink); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  animation: marquee 40s linear infinite;
}
.marquee-track b { font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.how, .audiences { padding-top: 96px; }
.section-head { display: grid; gap: 12px; max-width: 720px; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 24px; border: 1.5px solid var(--tt-border); border-radius: 22px; min-width: 0; }
.step-no {
  display: inline-block;
  padding: 3px 10px;
  border: 1.5px solid var(--tt-border-strong);
  border-radius: 999px;
  color: var(--tt-muted);
  font-size: 11px;
}
.step-no.next { background: var(--tt-violet); border-color: var(--tt-violet); color: var(--tt-paper); }
.step-no.win { background: var(--tt-volt); border-color: var(--tt-volt); color: var(--tt-ink); }
.steps h3, .audience-grid h3 { margin-top: 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.steps p, .audience-grid p { margin-top: 10px; color: var(--tt-muted); }

.audience-grid { margin-top: 40px; display: grid; border-top: 1.5px solid var(--tt-border); }
@media (min-width: 820px) { .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audience-grid article { padding: 28px 0; border-bottom: 1.5px solid var(--tt-border); min-width: 0; }
@media (min-width: 820px) {
  .audience-grid article { padding: 28px 28px 32px; border-bottom: 0; }
  .audience-grid article:first-child { padding-left: 0; }
  .audience-grid article + article { border-left: 1.5px solid var(--tt-border); }
}
.audience-label { color: var(--tt-volt); }
.audience-grid h3 { margin-top: 12px; }
.audience-grid a { color: var(--tt-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.roadmap { margin-top: 28px; color: var(--tt-faint); font-size: 15px; }

.cta-band { margin-top: 112px; background: var(--tt-violet); color: var(--tt-paper); }
.cta-inner { display: grid; gap: 16px; justify-items: start; padding-top: 72px; padding-bottom: 72px; }
.cta-inner p { max-width: 40ch; font-size: 19px; }

.footer {
  display: grid;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  color: var(--tt-muted);
  font-size: 15px;
}
@media (min-width: 720px) { .footer { grid-template-columns: 1fr auto; align-items: end; } }
.footer p { margin-top: 8px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.legal { grid-column: 1 / -1; color: var(--tt-faint); font-size: 13px; }

/* Privacy page */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc h2 { margin-top: 40px; font-size: 26px; letter-spacing: -0.03em; }
.doc p, .doc ul { margin-top: 14px; color: var(--tt-muted); }
.doc li { margin-top: 6px; }
.doc a { color: var(--tt-text); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { filter: brightness(1.06); }
  .roles span:hover { border-color: var(--tt-text); color: var(--tt-text); }
  .roles input:checked + span:hover { color: var(--tt-ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .button, .roles span { transition: none; }
  .button:active, .roles label:active span { transform: none; }
}
