/* ============================================================
   Operatorstack — shared stylesheet
   Dark theme. One accent. No decoration without a job.
   Critical above-the-fold rules are ALSO inlined in each page's
   <head> — if you change tokens/hero/buttons here, sync there.
   ============================================================ */

:root {
  --bg: #0A0A0B;
  --card: #121214;
  --text: #F2F2F0;
  --dim: rgba(242, 242, 240, 0.66);
  --accent: #00E676;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --content: 680px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  section {
    padding: 72px 0;
  }
}

/* ---------- Header (logo only, not clickable) ---------- */

.site-header {
  padding: 22px 0 6px;
}

.brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  user-select: none;
}

.brand em {
  color: var(--accent);
  font-style: normal;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 14px;
}

.dim {
  color: var(--dim);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.section-intro {
  color: var(--dim);
  margin-bottom: 28px;
}

.open-loop {
  margin-top: 24px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 100vw);
  height: 460px;
  background: radial-gradient(
    closest-side,
    rgba(0, 230, 118, 0.09),
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}

.hero .sub {
  font-size: 1.15rem;
  color: var(--dim);
  margin: 20px 0 0;
  max-width: 56ch;
}

/* ---------- Video slot ---------- */

.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #101012;
  margin: 30px 0 26px;
}

.video-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.28);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-play:hover {
  background: rgba(10, 10, 11, 0.14);
}

.video-play .play-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
  transition: transform 0.15s ease;
}

.video-play:hover .play-badge {
  transform: scale(1.06);
}

.video-play svg {
  margin-left: 4px;
}

.video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-caption {
  font-size: 0.9rem;
  color: var(--dim);
  margin-top: -14px;
  margin-bottom: 26px;
}

/* ---------- Buttons & CTA ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 30px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 34px rgba(0, 230, 118, 0.35);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .btn-primary {
    width: auto;
    min-width: 340px;
  }
}

.cta-micro {
  font-size: 0.88rem;
  color: var(--dim);
  margin-top: 12px;
}

.cta-block {
  margin-top: 30px;
}

.text-cta {
  /* min-height 44px = real touch target; underline via text-decoration
     so the taller box doesn't push the line away from the text */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 230, 118, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 0;
}

.text-cta:hover {
  text-decoration-color: var(--accent);
}

.text-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Cards (agitate numbers) ---------- */

.num-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.num-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.num-card .big-num {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.num-card h3 {
  margin-bottom: 8px;
}

.num-card p {
  color: var(--dim);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Demo proof figures ---------- */

.proof-fig {
  margin: 0 0 34px;
}

.proof-fig .shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #101012;
}

.proof-fig img {
  width: 100%;
  height: auto;
}

.proof-fig figcaption {
  font-size: 0.95rem;
  color: var(--dim);
  margin-top: 10px;
}

.proof-fig figcaption strong {
  color: var(--text);
}

/* ---------- Checklist (what you get) ---------- */

.checklist {
  list-style: none;
  margin: 24px 0 8px;
}

.checklist li {
  position: relative;
  padding: 0 0 18px 38px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.5);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.checklist strong {
  display: block;
}

.checklist span {
  color: var(--dim);
  font-size: 0.98rem;
}

/* ---------- For / Not for ---------- */

.fit-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fit-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.fit-col h3 {
  margin-bottom: 14px;
}

.fit-col.fit-yes h3 {
  color: var(--accent);
}

.fit-col.fit-no h3 {
  color: var(--dim);
}

.fit-col ul {
  list-style: none;
}

.fit-col li {
  position: relative;
  padding: 0 0 12px 26px;
  font-size: 0.98rem;
  color: var(--dim);
}

.fit-yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.fit-no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: rgba(242, 242, 240, 0.4);
  font-weight: 700;
}

/* ---------- Operator story ---------- */

.story {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 24px;
}

.story .face {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.story .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story blockquote p {
  margin-bottom: 10px;
}

.story cite {
  font-style: normal;
  color: var(--dim);
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .story {
    flex-direction: column;
  }
}

/* ---------- Price anchor ---------- */

.anchor-rows {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.anchor-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.anchor-row:last-child {
  border-bottom: 0;
}

.anchor-row .what {
  color: var(--dim);
}

.anchor-row .cost {
  font-weight: 700;
  white-space: nowrap;
}

.anchor-row.winner {
  background: rgba(0, 230, 118, 0.07);
}

.anchor-row.winner .what,
.anchor-row.winner .cost {
  color: var(--text);
}

.anchor-row.winner .cost {
  color: var(--accent);
  font-size: 1.3rem;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq details p {
  color: var(--dim);
  padding: 0 0 18px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .sub {
  color: var(--dim);
  max-width: 46ch;
  margin: 0 auto 8px;
}

/* ---------- Delivery steps (thank-you) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 26px 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 20px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.5);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--dim);
  font-size: 0.98rem;
}

.upsell {
  background: var(--card);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius);
  padding: 30px 24px;
}

.no-thanks {
  display: inline-block;
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.92rem;
  text-decoration: underline;
}

.no-thanks:hover {
  color: var(--text);
}

/* ---------- TODO marker (visible pre-launch) ---------- */

.todo {
  color: #ffb74d;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Sticky mobile bar ---------- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  /* visibility keeps the slid-away bar out of the tab order and a11y tree */
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.sticky-bar.show {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s ease;
}

/* The fixed bar covers the last ~72px of the page — give scrolling room
   so the footer disclaimers stay reachable while the bar is up. */
@media (max-width: 767.98px) {
  body:has(.sticky-bar:not([hidden])) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

.sticky-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--content);
  margin: 0 auto;
}

.sticky-inner .btn {
  flex: 1;
  min-height: 50px;
  padding: 10px 16px;
  font-size: 0.98rem;
}

.sticky-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 768px) {
  .sticky-bar {
    display: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 46px;
  font-size: 0.85rem;
  color: var(--dim);
}

.site-footer p {
  margin-bottom: 10px;
}

.site-footer nav {
  margin-bottom: 16px;
}

.site-footer a {
  color: var(--dim);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */

.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 32px;
}

.legal-page main {
  padding: 32px 0 64px;
}

.back-link {
  color: var(--dim);
  font-size: 0.9rem;
  text-decoration: underline;
}

/* ---------- Fade-up animation (JS adds .js-fade to <html>) ---------- */

.js-fade .fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-fade .fade-up.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-fade .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary,
  .sticky-bar,
  .video-play .play-badge {
    transition: none;
  }
}
