/* Rackfuel site. The Night Gym language: near-black space, chartreuse only where
   meaning lives, full-bleed documentary photography, big confident numerals.
   Canonical spec: vault Business/Brand-Identity-and-Design-Language.md */
:root {
  --bg: #08090C;
  --bg-elevated: #0F1115;
  --bg-card: #131519;
  --border: #1C1F27;
  --text: #EAEBED;
  --text-secondary: #9BA1B0;
  --text-muted: #6E7487;
  --accent: #C8FF4D;
  --on-accent: #1F2A00;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3 { font-family: "Syne", "DM Sans", sans-serif; line-height: 1.08; letter-spacing: -0.015em; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Reveal on scroll: transform and opacity only, and progressive enhancement
   done properly. Content is visible by default; the script opts elements in by
   adding .reveal-armed just before observing them, so no JavaScript, a hidden
   tab, or a broken observer can never leave the page blank. */
.reveal-armed { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-armed.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-armed { opacity: 1; transform: none; transition: none; }
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  /* A real scrim, not a fade to nothing: content scrolls beneath the links all
     the way down the page, so the bar has to hold its own ground. */
  background: linear-gradient(180deg, rgba(8,9,12,0.96) 0%, rgba(8,9,12,0.88) 70%, rgba(8,9,12,0) 100%);
  padding-bottom: 14px;
  transition: background 0.3s;
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: "Syne", sans-serif; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.wordmark span { color: var(--accent); }
nav .links { display: flex; gap: 30px; font-size: 0.95rem; }
nav .links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
nav .links a:hover { color: var(--text); }

/* Full-viewport hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: clip;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8,9,12,0.15) 0%, rgba(8,9,12,0.7) 78%),
    linear-gradient(180deg, rgba(8,9,12,0.5) 0%, rgba(8,9,12,0.1) 30%, rgba(8,9,12,0.92) 100%);
}
.hero .wrap { position: relative; padding-top: 72px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub {
  margin: 24px auto 0; max-width: 560px;
  color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.cta-row { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 16px 32px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1.02rem;
  transition: transform 0.22s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid rgba(234,235,237,0.3); color: var(--text); }
.badge-soon { display: inline-block; margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }

/* Editorial sections */
section.editorial { padding: clamp(56px, 7vw, 104px) 0; }
/* Anchor jumps land on the headline, not under the fixed bar or a void. */
section[id] { scroll-margin-top: 76px; }
.kicker { color: var(--accent); font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; font-weight: 700; }
.lede { color: var(--text-secondary); max-width: 660px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); }

/* Walkthrough: numbered function blocks, screenshot beside story. */
.walk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.walk.flip .walk-copy { order: 2; }
.walk .num {
  font-family: "Syne", sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--on-accent); background: var(--accent);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.walk h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.walk p { color: var(--text-secondary); font-size: 1.05rem; }
.walk ul { list-style: none; margin-top: 16px; }
.walk li { padding: 6px 0; color: var(--text-secondary); }
.walk li::before { content: "→  "; color: var(--accent); }
.walk .phone { margin: 0 auto; }
@media (max-width: 820px) {
  .walk { grid-template-columns: 1fr; }
  .walk.flip .walk-copy { order: 0; }
}

/* Appearance pair */
.pair { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.pair .phone { width: min(250px, 70vw); }

/* Comparison table */
.compare-scroll { overflow-x: auto; margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-card); }
.compare th, .compare td { padding: 16px 18px; text-align: center; font-size: 0.97rem; border-bottom: 1px solid var(--border); }
.compare th { font-family: "Syne", sans-serif; font-size: 1rem; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-secondary); }
.compare th.us { color: var(--accent); }
.compare td.yes { color: var(--accent); font-weight: 700; }
.compare td.no { color: var(--text-muted); }
.compare tr:last-child td { border-bottom: none; }
.compare-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

/* Full-bleed photography */
.bleed {
  position: relative; min-height: min(88vh, 820px);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.bleed .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,0.55) 0%, rgba(8,9,12,0.08) 40%, rgba(8,9,12,0.92) 100%);
}
.bleed .wrap { position: relative; width: 100%; padding-top: 96px; padding-bottom: clamp(64px, 9vw, 120px); }
.bleed .kicker { color: var(--accent); }
.bleed h2 { max-width: 640px; }
.bleed p { color: var(--text-secondary); max-width: 520px; font-size: 1.1rem; }
.bleed .stat {
  font-family: "Syne", sans-serif; font-weight: 800; color: var(--text);
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; margin-bottom: 10px;
}
.bleed .stat span { color: var(--accent); }

/* Feature grid */
.grid { display: grid; gap: 20px; margin-top: 52px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-2px); border-color: #3E4455; }
.card img.icon { width: 68px; height: 68px; margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.99rem; }

/* Screens */
.screens { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.phone {
  width: min(300px, 80vw); border-radius: 40px; border: 1px solid var(--border);
  overflow: hidden; background: var(--bg-elevated);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.phone figcaption { padding: 16px 0 20px; text-align: center; color: var(--text-muted); font-size: 0.92rem; }

/* Badges strip */
.badges-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }
.badges-strip img { width: clamp(76px, 10vw, 116px); height: auto; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 52px; max-width: 780px; }
.plan { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 34px; }
.plan.pro { border-color: var(--accent); }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; margin: 14px 0 4px; font-family: "Syne", sans-serif; }
.plan .price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan ul { list-style: none; margin-top: 22px; }
.plan li { padding: 8px 0; color: var(--text-secondary); font-size: 0.99rem; }
.plan li::before { content: "✓  "; color: var(--accent); }
.plan p.note { margin-top: 20px; color: var(--text-muted); font-size: 0.88rem; }

/* FAQ */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); margin-top: 12px; padding: 4px 26px;
}
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; font-size: 1.02rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-muted); font-size: 1.25rem; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--text-secondary); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 72px; color: var(--text-muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--text-secondary); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 128px 24px 96px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 640px) {
  nav .links { display: none; }
  .bleed { min-height: 72vh; background-attachment: scroll; }
}
