:root {
  --bg: #0a0d14;
  --bg-2: #0f1218;
  --panel: #161a23;
  --panel-2: #1d2230;
  --border: #262c3a;
  --border-2: #323a4d;
  --text: #eef1f7;
  --muted: #8b93a5;
  --muted-2: #6b7385;
  --accent: #6ba6ff;
  --accent-2: #4787e8;
  --accent-glow: rgba(107, 166, 255, 0.25);
  --good: #4cd394;
  --warn: #ffc46b;
  --bad: #ff6b6b;
  --purple: #b07bff;
  --gold: #f4c95d;
  --gold-2: #e0a92e;
  font-family: "Istok Web", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text); min-height: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { position: relative; overflow-x: hidden; }
a { color: var(--accent); }
[hidden] { display: none !important; }

main, nav, footer { position: relative; z-index: 1; }

/* ── Top nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: rgba(10, 13, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav .brand img { width: 26px; height: 26px; display: block; }
.nav .nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav .nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 4px; transition: color 120ms ease, background 120ms ease;
}
.nav .nav-links a:hover { color: var(--text); background: var(--panel); }
.nav .nav-links a.cta {
  color: #0a1018; background: var(--accent); font-weight: 600;
}
.nav .nav-links a.cta:hover { background: var(--accent-2); color: #0a1018; }

.wrap { max-width: 980px; margin: 0 auto; padding: 56px 24px 60px; }

/* ── Hero (asymmetric two-column) ── */
header.hero {
  text-align: left; margin-bottom: 96px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px;
  align-items: center;
}
.hero-main { min-width: 0; }

.hero-brand {
  display: inline-flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.hero-brand img { width: 56px; height: 56px; display: block; }
.hero-name {
  font-size: 44px; font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1;
}

.hero-headline {
  font-size: 38px; font-weight: 700; color: #fff;
  margin: 0 0 18px; letter-spacing: -0.02em; line-height: 1.1;
  max-width: 18ch;
}
.tagline {
  font-size: 17px; color: var(--muted); margin: 0 0 28px;
  max-width: 50ch; line-height: 1.6;
}

/* Side block: launch + interest counter stacked on the right */
.hero-side {
  display: flex; flex-direction: column; gap: 14px;
}

.launch-banner {
  margin: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid #d99a2c;
  border-radius: 4px;
}
.lb-word { font-size: 28px; color: var(--text); display: block; }
.lb-accent { color: #d99a2c; display: block; }

.interest-hype {
  margin: 0;
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--good);
  border-radius: 4px;
}
.hype-num {
  font-size: 32px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -0.02em;
}
.hype-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
  letter-spacing: 0;
}

/* ── Gold offer banner under the waitlist counter (solid gold + soft glow) ── */
.gold-banner {
  margin: 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3a2a08;
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(244, 201, 93, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 13.5px; line-height: 1.35;
}
.gb-label {
  flex: 0 0 auto;
  background: rgba(20, 12, 0, 0.82); color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.gb-text { color: #3a2a08; font-weight: 600; }
.gb-text strong { font-weight: 800; }

/* ── Buttons ── */
.hero-cta { margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #08121f; text-decoration: none; font-weight: 600;
  padding: 11px 22px; border-radius: 4px; font-size: 14px;
  transition: background 120ms ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); text-decoration: none; font-weight: 600;
  padding: 11px 22px; border-radius: 4px; font-size: 14px;
  border: 1px solid var(--border-2);
  transition: border-color 120ms ease, color 120ms ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Section scaffolding ── */
.section { margin-top: 96px; scroll-margin-top: 80px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.4px;
  margin: 0 0 12px;
}
.section-title {
  font-size: 32px; font-weight: 700; margin: 0 0 14px;
  letter-spacing: -0.02em; line-height: 1.15;
  color: #fff;
}
.section-lead { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 24px; max-width: 60ch; }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 22px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Why Relay comparison grid ── */
.vs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 28px;
}
.vs-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 4px; padding: 22px;
}
.vs-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.vs-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.vs-bad { border-left: 3px solid var(--bad); }
.vs-bad h3 { color: var(--bad); }
.vs-good {
  grid-column: 1 / -1;
  border-left: 3px solid var(--good);
}
.vs-good h3 { color: var(--good); }
.vs-more { text-align: center; margin: 26px 0 0; font-size: 15px; font-weight: 600; }
.vs-more a { color: var(--accent); text-decoration: none; }
.vs-more a:hover { text-decoration: underline; }

/* ── Pricing tiers ── */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px;
}
.tier {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 4px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.tier-featured {
  border-color: var(--accent);
}
.tier-badge {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: #08121f;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px;
}
.tier-head h3 {
  font-size: 12px; color: var(--muted); margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700;
}
.tier-featured .tier-head h3 { color: var(--accent); }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.tp-num { font-size: 40px; font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1; }
.tp-per { color: var(--muted); font-size: 14px; font-weight: 400; }
.tier-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.tier-list li {
  color: var(--text); font-size: 14px; line-height: 1.4;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.tier-list li:last-child { border-bottom: none; }
.tier-list li.off { color: var(--muted-2); }
.tier-list li.off .tl { text-decoration: line-through; text-decoration-color: rgba(139, 147, 165, 0.45); }
.tier-cta-row { margin-top: 4px; }
.pricing-foot { color: var(--muted); font-size: 13px; text-align: center; margin: 28px 0 0; }

/* ── Waitlist card ── */
.waitlist-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 36px 32px;
  text-align: left;
}
.waitlist-card h2 {
  font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.015em;
  color: #fff;
}
.waitlist-lead {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  max-width: 56ch; margin: 0 0 22px;
}
.waitlist-form {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: 540px;
}
.waitlist-form input {
  flex: 1 1 240px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 4px;
  color: var(--text); padding: 11px 14px; font-size: 14px; font-family: inherit;
  transition: border-color 120ms ease;
}
.waitlist-form input::placeholder { color: var(--muted-2); }
.waitlist-form input:focus {
  outline: none; border-color: var(--accent);
}
.waitlist-form input:disabled,
.waitlist-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.waitlist-status {
  margin: 18px 0 0; font-size: 14px; color: var(--muted);
  position: relative;
}
.waitlist-status.ok { color: var(--good); }
.waitlist-status.err { color: var(--bad); }

/* Contact section CTA */
.contact-cta { margin: 8px 0 0; }

/* ── FAQ ── */
.faq { margin-top: 72px; }
.faq h2 {
  font-size: 13px; color: var(--muted); margin: 0 0 20px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
}
details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 18px; margin-bottom: 8px;
  transition: border-color 120ms ease;
}
details:hover { border-color: var(--border-2); }
details summary {
  cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--muted); font-size: 20px; font-weight: 400;
  transition: transform 200ms ease;
}
details[open] summary::after { content: "−"; }
details > p { color: var(--muted); margin: 14px 0 0; line-height: 1.6; font-size: 14px; }

/* ── Legal / prose pages ── */
.prose { max-width: 760px; }
.prose .updated { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.prose .review-note {
  background: rgba(255, 196, 107, 0.1); border: 1px solid var(--warn); color: var(--warn);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.5; margin: 18px 0 28px;
}
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; font-size: 15px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }

footer {
  text-align: center; margin-top: 80px; padding-top: 36px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .foot-links { margin-bottom: 8px; }

/* ── Tablet (820px) ── */
@media (max-width: 820px) {
  .wrap { padding: 56px 24px 50px; }
  .section { margin-top: 72px; }
  header.hero { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
  .tier-grid { grid-template-columns: 1fr; gap: 12px; }
  .tier-featured { order: -1; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-good { grid-column: auto; }
  .hero-name { font-size: 36px; }
  .hero-headline { font-size: 32px; }
  .section-title { font-size: 28px; }
}

/* ── Phone (600px) ── */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .wrap { padding: 32px 18px 40px; }
  .section { margin-top: 56px; scroll-margin-top: 70px; }

  /* Nav — on phones the four section links crowd the bar and look cramped,
     so collapse to just the brand + the primary CTA. The full link set
     returns at tablet width (820px). */
  .nav { padding: 11px 16px; gap: 10px; }
  .nav .brand { font-size: 15px; }
  .nav .brand img { width: 22px; height: 22px; }
  .nav .nav-links { gap: 0; }
  .nav .nav-links a:not(.cta) { display: none; }
  .nav .nav-links a.cta { padding: 8px 16px; font-size: 13px; }

  /* Hero */
  header.hero { margin-bottom: 56px; gap: 32px; }
  .hero-brand { gap: 12px; margin-bottom: 18px; }
  .hero-brand img { width: 48px; height: 48px; }
  .hero-name { font-size: 32px; }
  .hero-headline { font-size: 26px; margin: 0 0 14px; }
  .tagline { font-size: 15px; }
  .lb-word { font-size: 22px; }
  .launch-banner { padding: 18px 20px; }
  .hype-num { font-size: 26px; }

  /* Hero CTA buttons stack full-width for tap-friendly targets */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; padding: 12px 18px; font-size: 14px; }

  /* Section content */
  .section-title { font-size: 24px; }
  .section-lead { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 18px; }

  /* Pricing */
  .tier { padding: 24px 20px; gap: 16px; }
  .tp-num { font-size: 36px; }
  .tier-list li { font-size: 14px; }

  /* Comparison */
  .vs-card { padding: 18px; }

  /* Waitlist */
  .waitlist-card { padding: 28px 20px; }
  .waitlist-card h2 { font-size: 20px; }
  .waitlist-lead { font-size: 14px; margin-bottom: 18px; }
  .waitlist-form { flex-direction: column; }
  /* flex:0 0 auto is the fix for the "very tall" input: once the form is a
     column, the main axis is vertical, so the input's flex-basis:240px was
     being applied as HEIGHT. Reset it back to content height. */
  .waitlist-form input, .waitlist-form .btn-primary { width: 100%; flex: 0 0 auto; }

  /* FAQ */
  .faq { margin-top: 56px; }
  details { padding: 14px 16px; }
  details summary { font-size: 14px; }
}

/* ── Very small phones (380px) ── */
@media (max-width: 380px) {
  .hero-brand { flex-direction: column; gap: 8px; }
  .hero-brand img { width: 64px; height: 64px; }
  .hero-name { font-size: 46px; }
  .launch-banner { font-size: 22px; flex-wrap: wrap; }
  .hype-num { font-size: 54px; }
  .nav .nav-links a.cta { padding: 7px 13px; font-size: 12px; }
}
