/* ============================================================
   XProHub — Landing Page Stylesheet
   Design system: Dark Gold (locked)
   Five-voice typography via Google Fonts
   Mobile-first responsive, max-width 720px content
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */

:root {
  --bg:             #0E0E0F;
  --gold:           #C9A84C;
  --card:           #171719;
  --border:         #2E2E33;
  --text:           #FFFFFF;
  --text-secondary: #888890;
  --text-tertiary:  #555558;
  --green:          #4CAF7A;
  --red:            #E05252;
  --ink-dim:        #d8d8d8;
  --ink:            #1A0F00;

  --font-heading:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-serif:     'Playfair Display', serif;
  --font-display:   'Oswald', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;

  --max-w:          720px;
  --px:             20px;
}

/* ── Reset ───────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ── Layout ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

section {
  padding: 64px 0;
}

/* ── Eyebrow (Oswald label) ──────────────────────────────────── */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Section heading ─────────────────────────────────────────── */

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── HERO ────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

@media (min-width: 720px) {
  .hero-kicker {
    font-size: 18px;
  }
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

@media (min-width: 720px) {
  .wordmark {
    font-size: 48px;
  }
}

.w-x,
.w-hub {
  font-weight: 700;
  font-style: normal;
}

.w-pro {
  font-weight: 700;
  font-style: italic;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

@media (min-width: 720px) {
  .hero-tagline {
    font-size: 24px;
  }
}

.hero-secondary-tagline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Two doors */
.hero-doors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .hero-doors {
    flex-direction: row;
    gap: 24px;
    max-width: 640px;
  }
}

.door {
  flex: 1;
  width: 100%;
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--gold);
}

.door-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 32px rgba(201, 168, 76, 0.25);
}

.door-action {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.door-benefit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.door-separator {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 3px;
  flex-shrink: 0;
}

/* Waitlist badges */
.waitlist-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

@media (min-width: 720px) {
  .waitlist-badges {
    flex-direction: row;
    justify-content: center;
  }
}

.waitlist-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FF8C00;
  border: 2px solid rgba(255, 140, 0, 0.5);
  border-radius: 16px;
  padding: 6px 12px;
  text-align: center;
  max-width: 100%;
}

@media (min-width: 375px) {
  .waitlist-badge {
    border-radius: 999px;
    white-space: nowrap;
    max-width: none;
  }
}

@media (min-width: 720px) {
  .waitlist-badge {
    font-size: 18px;
    padding: 8px 18px;
    letter-spacing: 1px;
  }
}

.waitlist-micro {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 10px;
  text-align: center;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input::placeholder {
  color: var(--text-tertiary);
}

.waitlist-input:focus {
  border-color: var(--gold);
}

.waitlist-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.waitlist-btn:hover {
  opacity: 0.9;
}

.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waitlist-msg {
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 12px;
}

.waitlist-msg.success {
  color: var(--green);
}

.waitlist-msg.error {
  color: var(--red);
}

/* ── HOW IT WORKS ────────────────────────────────────────────── */

.how-it-works {
  border-top: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 600px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.how-column-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}

.step {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  font-variant-numeric: tabular-nums;
}

.step-text {
  flex: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── THE PROMISE ─────────────────────────────────────────────── */

.promise {
  border-top: 1px solid var(--border);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.promise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  padding: 24px 20px;
}

.promise-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.promise-card-body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FOR EVERYONE ────────────────────────────────────────────── */

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

.for-everyone-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}

.pull-quote {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.4;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── APP PREVIEW ─────────────────────────────────────────────── */

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

.app-preview .container {
  max-width: 960px;
}

/* Mobile: horizontal scroll-snap */
.preview-phones {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.preview-phones::-webkit-scrollbar {
  display: none;
}

.preview-phone {
  flex: 0 0 70vw;
  max-width: 300px;
  scroll-snap-align: center;
  text-align: center;
}

.preview-phone img {
  width: 100%;
  height: auto;
}

.preview-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: 12px;
  text-transform: uppercase;
}

/* Desktop: 3-up centered grid */
@media (min-width: 720px) {
  .preview-phones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 0;
    justify-items: center;
  }

  .preview-phone {
    flex: none;
    max-width: 300px;
    width: 100%;
  }
}

/* ── LIGHTBOX ────────────────────────────────────────────────── */

.lightbox-trigger {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-trigger:hover,
.lightbox-trigger:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--gold);
  border-radius: 12px;
}

.lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-trigger {
    transition: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 15, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.lightbox-open {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

.lightbox-img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(201, 168, 76, 0.15);
}

/* ── FOOTER ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  text-align: center;
}

.ticker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 9px 0;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

/* ── Legal page styles ───────────────────────────────────────── */

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

.legal-page h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.legal-page .legal-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page .legal-body .legal-intro {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
}

.legal-page .legal-body h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-page .legal-body p {
  margin-bottom: 12px;
}

.legal-page .legal-body .legal-list {
  margin: 0 0 16px 24px;
  padding: 0;
}

.legal-page .legal-body .legal-list li {
  margin-bottom: 6px;
}

.legal-page .legal-body strong {
  color: var(--text);
  font-weight: 500;
}

.legal-back {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 32px;
}

/* ── Focus states ────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Utility ─────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
