/* BackLeft marketing site · Night Ops design language */

:root {
  --base: #070B12;
  --surface: #0B1018;
  --surface-elevated: #0E141F;
  --hairline: #1A2331;
  --border-strong: #263348;
  --text-1: #F2F5F9;
  --text-2: #9AA7B8;
  --text-3: #5C6B80;
  --ice: #9FD8F0;
  --ice-dim: #3D6E85;
  --steel: #1B2C45;
  --navy-900: #0B1F3A;
  --gold: #C9A24B;
  --success: #4CAF7D;
  --danger: #E25A4A;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --container: 1120px;
  --pad: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ice-dim); color: var(--text-1); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

strong { color: var(--text-1); font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type utilities ---------- */

.micro {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
}

.micro--ice { color: var(--ice); }
.micro--gold { color: var(--gold); }

.num, .money {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--text-1);
}

.lede { font-size: 17px; color: var(--text-2); max-width: 38em; }

/* ---------- ops strip ---------- */

.opsbar {
  border-bottom: 1px solid var(--hairline);
  background: var(--base);
}
.opsbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.opsbar span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.opsbar .live { color: var(--ice); }
.opsbar .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice);
  margin-right: 7px;
  vertical-align: 1px;
}
@media (max-width: 720px) { .opsbar span:nth-child(2) { display: none; } }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.wordmark {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .chev { color: var(--ice); font-weight: 600; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--text-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-2);
}
.site-nav a:hover { color: var(--text-1); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text-1); }
.site-nav a.nav-club { color: var(--gold); }
.site-nav .btn { margin-left: 4px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px var(--pad); border-bottom: 1px solid var(--hairline); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn { margin: 14px var(--pad) 0; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-1);
  background: var(--steel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.btn:hover { border-color: var(--ice); text-decoration: none; }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text-1); }
.btn--ghost:hover { border-color: var(--ice); }

.btn--gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: rgba(201, 162, 75, 0.08); border-color: var(--gold); }

.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero { padding-top: 96px; }
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  margin: 18px 0 20px;
}
.hero h1 .ice { color: var(--ice); }
.hero p.lede { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.hero-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.figure { border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--surface); }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.figure figcaption .on { color: var(--ice); }
.figure figcaption .gold { color: var(--gold); }
.figure--gold { border-color: rgba(201, 162, 75, 0.45); }

/* staggered load (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); animation: rise 600ms ease forwards; }
  .reveal:nth-child(2) { animation-delay: 90ms; }
  .reveal:nth-child(3) { animation-delay: 180ms; }
  .reveal:nth-child(4) { animation-delay: 270ms; }
  .reveal:nth-child(5) { animation-delay: 360ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */

.section { padding: 88px 0 0; }
.section--last { padding-bottom: 96px; }

.section-head { margin-bottom: 40px; max-width: 620px; }
.section-head .micro { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }

.hr { border: none; border-top: 1px solid var(--hairline); margin: 88px 0 0; }

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px 24px;
}
.card h3 { font-size: 17px; margin: 14px 0 10px; }
.card p { font-size: 14px; color: var(--text-2); }
.card .micro { display: block; }

.card--gold { border-color: rgba(201, 162, 75, 0.45); background: rgba(201, 162, 75, 0.04); }
.card--gold h3 { color: var(--gold); }

.step-num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 500;
  color: var(--ice);
}

/* ---------- trust list ---------- */

.trust-row {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 920px) { .trust-row { grid-template-columns: 1fr 1fr; gap: 64px; } }

.checklist { list-style: none; }
.checklist li {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
}
.checklist li:last-child { border-bottom: 1px solid var(--hairline); }
.checklist .tick { color: var(--success); font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.checklist h4 { font-size: 15px; margin-bottom: 4px; }
.checklist p { font-size: 14px; }
.checklist--gold .tick { color: var(--gold); }

/* ---------- pricing ---------- */

.price-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .price-strip { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }

.price-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 26px 24px; display: flex; flex-direction: column; }
.price-card .micro { margin-bottom: 16px; }
.price-card .money { font-size: 30px; font-weight: 600; }
.price-card .money small { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--text-3); margin-left: 4px; }
.price-card p { font-size: 13px; margin-top: 10px; flex: 1; }
.price-card .tier-cta { margin-top: 18px; font-size: 13px; }
.price-card--gold { border-color: rgba(201, 162, 75, 0.45); background: rgba(201, 162, 75, 0.04); }
.price-card--gold .micro { color: var(--gold); }

/* ---------- comparison table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--hairline); font-size: 14px; vertical-align: top; }
tr:last-child td { border-bottom: none; }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
thead th.gold-col { color: var(--gold); }
tbody th { color: var(--text-2); font-weight: 500; font-family: var(--body); }
td { color: var(--text-1); }
td .money { font-size: 17px; }
td.muted { color: var(--text-3); }

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

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--text-3); transition: transform 120ms ease; }
.faq details[open] summary::after { content: "–"; color: var(--ice); }
.faq details p { padding: 0 4px 22px; max-width: 60ch; }

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 12px; }
.cta-band p { max-width: 46em; margin: 0 auto 28px; }
.cta-band--gold { border-color: rgba(201, 162, 75, 0.45); background: rgba(201, 162, 75, 0.04); }

/* ---------- stat band ---------- */

.stat-band { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
@media (min-width: 720px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-band > div { background: var(--surface); padding: 24px 20px; }
.stat-band .num { display: block; font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.stat-band .micro { display: block; }

/* ---------- page hero (interior pages) ---------- */

.page-hero { padding: 72px 0 0; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 18px 0 18px; max-width: 14em; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- split feature ---------- */

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--flip > .figure { order: -1; }
}
.split h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 14px; }
.split p + p { margin-top: 14px; }

/* ---------- app badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-ph {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.badge-ph .micro { font-size: 9px; }
.badge-ph b { font-family: var(--display); font-size: 14px; color: var(--text-1); font-weight: 500; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 56px 0 40px; background: var(--surface); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text-1); }
.footer-brand p { font-size: 13px; max-width: 30em; margin: 14px 0 20px; }
.footer-legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-legal span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-elevated);
  color: var(--text-1);
  padding: 12px 18px;
  z-index: 100;
  border: 1px solid var(--ice);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
