/* Landing page — hero, comparison table, pricing, early adopter, ticker. */

/* ── Reveal on scroll ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── SECTION 01 — HERO ────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
/* The hero is intentionally imageless: the forge look comes from this radial
   base + the embers canvas + the gradient headline. (A photo was referenced
   here once; the file never existed and every visit paid a 404 for it.) */
.hero-bg {
  position: absolute; inset: 0;
  background-color: #0a0906;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(201,168,76,0.10), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(139,105,20,0.06), transparent 70%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,11,7,0.3) 0%, rgba(13,11,7,0.7) 60%, rgba(13,11,7,1.0) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
/* The H1 is a container: a small keyword kicker above the dominant hook. */
.hero h1 { margin-bottom: 24px; }
.hero .h1-kicker {
  display: block; margin-bottom: 18px;
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--text-sm); line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim);
}
.hero .h1-hook {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-hero); line-height: 1.1; color: var(--text-primary);
}
.hero .hero-sub { font-size: var(--text-xl); color: var(--text-secondary); margin-bottom: 40px; }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--gold-dim); font-size: 22px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ── SECTION 02 — COMPARISON TABLE ────────────────────────────── */
.comparison { background: var(--dark-base); }
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 820px; }
table.compare thead th {
  position: sticky; top: 0; background: var(--dark-surface);
  padding: 16px 14px; text-align: center; font-family: var(--font-body);
  font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--ash);
}
table.compare thead th:first-child { text-align: left; }
table.compare th.col-valkara {
  color: var(--gold-primary); font-family: var(--font-display); font-weight: 700;
  background: var(--dark-elevated); border-top: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}
td.col-valkara { background: var(--dark-elevated); }
table.compare td { padding: 13px 14px; text-align: center; border-bottom: 1px solid rgba(58,51,32,0.5); color: var(--text-secondary); }
table.compare td:first-child { text-align: left; color: var(--text-primary); }
tr.category td {
  background: var(--ash); font-family: var(--font-display); font-size: var(--text-sm);
  color: var(--dark-base); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700;
  padding: 8px 14px;
}
.v-free .mark, .v-paid .mark { color: var(--check-gold); }
.v-free .tag { color: var(--gold-dim); font-size: var(--text-xs); letter-spacing: .08em; }
.v-paid .tag { color: var(--text-secondary); font-size: var(--text-xs); }
.v-phase { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--phase-v2);
  border: 1px solid var(--phase-v2); border-radius: 2px; padding: 2px 6px; }
.v-partial { color: var(--text-muted); font-size: var(--text-xs); }
.v-no { color: var(--ash); }

/* Mobile competitor switcher */
.comp-switch { display: none; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.comp-switch button { font-family: var(--font-mono); font-size: var(--text-xs);
  background: var(--dark-surface); border: 1px solid var(--ash); color: var(--text-secondary);
  padding: 8px 12px; cursor: pointer; }
.comp-switch button.active { border-color: var(--gold-primary); color: var(--gold-primary); }

/* ── SECTION 02b — CAPABILITIES (what Valkara does) ───────────── */
.capabilities { background: var(--dark-base); }
.cap-intro { max-width: 680px; color: var(--text-secondary); font-size: var(--text-lg); margin-bottom: 48px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card {
  background: var(--dark-elevated); border: 1px solid var(--ash); padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cap-card:hover {
  border-color: var(--gold-primary); box-shadow: 0 0 30px rgba(201,168,76,0.18);
  transform: translateY(-3px);
}
.cap-card .cap-ic { font-size: 30px; margin-bottom: 12px; }
.cap-card h3 {
  font-family: var(--font-display); font-weight: 700; color: var(--gold-primary);
  font-size: var(--text-xl); line-height: 1.2; margin-bottom: 12px;
}
.cap-card p { color: var(--text-secondary); font-size: var(--text-base); margin: 0; }
.cap-card .cap-vs {
  margin-top: auto; padding-top: 16px; color: var(--text-primary);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
}
.cap-cta { text-align: center; margin-top: 52px; }
.cap-cta .cap-cta-line {
  font-family: var(--font-mono); color: var(--gold-dim); font-size: var(--text-sm);
  letter-spacing: .04em; margin-bottom: 22px;
}

/* ── SECTION 03 — PRICING ─────────────────────────────────────── */
.pricing { background: var(--dark-surface); }
.price-note { max-width: 620px; color: var(--text-muted); font-size: var(--text-sm); margin: 20px 0 0; }
.price-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; }
.price-card {
  flex: 0 0 240px; background: var(--dark-surface); border: 1px solid var(--ash);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.price-card.valkara {
  background: var(--dark-elevated); border: 2px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(201,168,76,0.25);
}
.price-card .p-badge { font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--gold-primary); letter-spacing: .05em; margin-bottom: 6px; }
.price-card .p-name { font-family: var(--font-display); font-weight: 700; color: var(--text-primary);
  font-size: var(--text-lg); }
.price-card .p-tag { color: var(--text-muted); font-size: var(--text-sm); min-height: 38px; }
.price-card .p-price { font-family: var(--font-display); font-size: var(--text-3xl);
  color: var(--gold-primary); margin: 8px 0 0; }
.price-card .p-price a { font-size: var(--text-lg); }
.price-card .p-price .p-per { font-size: var(--text-lg); color: var(--text-muted); }
.price-card .p-sub { color: var(--text-secondary); font-size: var(--text-sm); margin: 2px 0 8px; }
.price-card .p-sub a { color: var(--gold-primary); }
.price-card .p-meta { color: var(--text-secondary); font-size: var(--text-sm); }

/* Early-adopter founding-price callout (#early) */
.price-lock { max-width: 520px; margin: 8px 0 40px; padding: 28px 32px;
  background: var(--dark-elevated); border: 2px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(201,168,76,0.22); }
.price-lock .pl-main { font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-4xl); color: var(--gold-primary); line-height: 1; }
.price-lock .pl-main span { font-size: var(--text-xl); color: var(--text-muted); }
.price-lock .pl-alt { font-family: var(--font-display); color: var(--text-primary);
  font-size: var(--text-lg); margin-top: 4px; }
.price-lock .pl-vs { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 14px; }
.price-lock .pl-free { color: var(--gold-primary); font-size: var(--text-sm);
  font-family: var(--font-mono); margin-top: 8px; }

/* ── SECTION 04 — EARLY ADOPTER ───────────────────────────────── */
.early { background: var(--dark-base); }
.early-body { max-width: 640px; color: var(--text-secondary); font-size: var(--text-lg); }
.early-body strong { color: var(--text-primary); }
.early-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 48px 0; }
.early-grid .item { background: var(--dark-elevated); border: 1px solid var(--ash); padding: 24px; }
.early-grid .item .ic { font-size: 26px; }
.early-grid .item h4 { font-family: var(--font-display); color: var(--gold-primary); margin: 10px 0 6px; font-size: var(--text-lg); }
.early-grid .item p { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }

.countdown-box { border: 1px solid var(--gold-dim); background: rgba(201,168,76,0.03);
  padding: 40px 24px; text-align: center; margin: 40px 0; }
.countdown-box .cd-title { font-family: var(--font-display); letter-spacing: .18em;
  color: var(--text-secondary); text-transform: uppercase; font-size: var(--text-sm); margin-bottom: 24px; }
[data-countdown] { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cd-block { background: var(--dark-elevated); border: 1px solid var(--gold-dim);
  box-shadow: 0 0 16px rgba(201,168,76,0.3); padding: 16px 20px; min-width: 88px; }
.cd-digit { display: block; font-family: var(--font-mono); font-size: var(--text-4xl); color: var(--gold-primary); line-height: 1; }
.cd-label { display: block; font-family: var(--font-display); font-size: var(--text-xs);
  color: var(--text-muted); letter-spacing: 0.2em; margin-top: 8px; }
.countdown-closed { color: var(--gold-primary); font-family: var(--font-display); font-size: var(--text-xl); }

.testing-banner { border: 1px solid var(--gold-dim); background: rgba(201,168,76,0.04);
  padding: 24px 32px; color: var(--text-secondary); font-size: var(--text-base); margin: 32px 0; }
.testing-banner .tb-title { color: var(--gold-primary); font-family: var(--font-display);
  letter-spacing: .1em; margin-bottom: 12px; }

/* Hero secondary download link */
/* Reassurance line under the primary CTA: cost, commitment and deadline answered
   at the decision point. Sized between the CTA and the tester link so the eye
   still lands on the button first. */
.hero-cta-note { margin: 16px auto 0; max-width: 480px; font-family: var(--font-body);
  font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
.hero-cta-note strong { color: var(--gold-dim); font-weight: 500; white-space: nowrap; }

.hero-download-link { display: inline-block; margin-top: 14px; font-family: var(--font-mono);
  font-size: var(--text-xs, 12px); letter-spacing: .04em; color: var(--text-muted);
  text-decoration: none; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.hero-download-link:hover { color: var(--gold-bright); border-color: var(--gold-dim); }

/* ── SECTION 05 — DOWNLOAD ────────────────────────────────────── */
.download { background: var(--dark-surface); }
.download-intro { max-width: 640px; color: var(--text-secondary); font-size: var(--text-lg); margin-bottom: 32px; }
.download-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-card {
  flex: 0 0 240px; background: var(--dark-elevated); border: 1px solid var(--ash);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.dl-card:not(.disabled):hover {
  border-color: var(--gold-primary); box-shadow: 0 0 30px rgba(201,168,76,0.25);
  transform: translateY(-3px);
}
.dl-card .dl-logo { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.dl-card .dl-os { font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: .12em; color: var(--gold-dim); text-transform: uppercase; }
.dl-card .dl-action { font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--gold-primary); }
.dl-card .dl-meta { color: var(--text-muted); font-size: var(--text-sm); }
.dl-card.disabled { opacity: .5; cursor: default; }
.dl-card.disabled .dl-action { color: var(--text-muted); }
.download-note { color: var(--text-muted); font-size: var(--text-sm); max-width: 640px; margin: 0; }
@media (max-width: 640px) {
  .dl-card { flex: 1 1 100%; }
}

/* ── SECTION 06 — FAQ (The Codex) ─────────────────────────────── */
.hero-what { color: var(--text-muted); font-size: var(--text-sm); font-style: italic;
  margin: 4px 0 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--ash); background: var(--dark-elevated);
  margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  color: var(--gold); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-dim); font-size: 20px;
  margin-left: 16px; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 20px 18px; color: var(--text-muted); line-height: 1.7;
  font-size: var(--text-sm); margin: 0; }

/* ── SECTION 07 — TICKER ──────────────────────────────────────── */
.ticker { background: var(--dark-surface); border-top: 1px solid var(--ash);
  border-bottom: 1px solid var(--ash); padding: 20px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; will-change: transform;
  animation: ticker 140s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-text { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em;
  color: var(--gold-dim); text-transform: uppercase; padding: 0 4px; }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .early-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero .h1-hook { font-size: var(--text-4xl); }
  .hero .h1-kicker { font-size: var(--text-xs); letter-spacing: 0.14em; margin-bottom: 14px; }
  .hero .hero-sub { font-size: var(--text-lg); }
  .comp-switch { display: flex; }
  table.compare { min-width: 0; width: 100%; }
  table.compare th.hide-mobile, table.compare td.hide-mobile { display: none; }
  .cd-block { min-width: 40%; }
  .cap-grid { grid-template-columns: 1fr; }
}

/* ── Proof strip ──────────────────────────────────────────────────
   Sits directly under the fold, where the scanning eye lands next. The number
   carries the weight, the label explains it; precise counts are the only
   evidence this page can offer before there are screenshots or reviews. */
.proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px;
  list-style: none; margin: 0 0 32px; padding: 0; }
.proof-strip li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 110px; }
.proof-n { font-family: var(--font-display); font-size: 30px; line-height: 1;
  color: var(--gold); letter-spacing: .02em; }
.proof-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); text-align: center; }
@media (max-width: 640px) {
  .proof-strip { gap: 20px 26px; }
  .proof-n { font-size: 24px; }
  .proof-l { font-size: 10px; }
}

/* Login is a real action for returning warriors, but it is not a choice a first
   time visitor has to weigh — it steps back so the register button is the only
   thing competing for attention in the navbar. */
.nav-link-quiet { background: none; border: 0; cursor: pointer; padding: 8px 4px;
  font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: .06em;
  color: var(--text-muted); transition: color .2s ease; }
.nav-link-quiet:hover { color: var(--gold-dim); }
.nav-btn-primary { border-color: var(--gold); color: var(--gold-bright); }

/* Signup hints. The password rules and the name verdict are shown BEFORE the
   click: stated up front they are a constraint the warrior can meet, stated
   after a failed submit they are a rejection of work already done. */
.field-hint { font-family: var(--font-body); font-size: 12px; color: var(--text-muted);
  margin: -6px 0 12px; line-height: 1.45; }
.field-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--text-muted); margin: -6px 0 10px; min-height: 1em; }
.field-note.ok  { color: #5A9A3A; }
.field-note.bad { color: #C03030; }

/* "What Android will ask you" — collapsed by default so it never dilutes the
   download button, but present for the moment the system warning appears.
   An unexplained security dialog reads as danger and stops the install; the
   same dialog, named a step earlier, reads as an expected formality. */
.install-help { max-width: 640px; margin: 0 0 18px; border-left: 2px solid var(--ash); padding-left: 16px; }
.install-help summary { cursor: pointer; list-style: none; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dim); }
.install-help summary::-webkit-details-marker { display: none; }
.install-help summary::after { content: ' ▾'; }
.install-help[open] summary::after { content: ' ▴'; }
.install-help ol { margin: 12px 0 8px; padding-left: 20px; }
.install-help li { font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--text-secondary); margin-bottom: 8px; }
.install-help p { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); margin: 0; }

/* Hero CTA pair. Side by side on a wide screen, stacked on a phone — a
   horizontal pair on mobile either shrinks both below a comfortable tap target
   or wraps unevenly, and the download is the one that must stay easy to hit. */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: transparent; border: 1px solid var(--gold-dim);
  text-decoration: none; cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.cta-secondary:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,168,76,.06); }
.cta-secondary.large { font-size: var(--text-base); padding: 16px 30px; }
@media (max-width: 640px) {
  .hero-cta-row { flex-direction: column; gap: 12px; }
  .hero-cta-row > * { width: 100%; max-width: 340px; }
}
