/* ============================================================
   Padelito Landing — Estadio theme
   Tokens mirror specs/docs/ui-design/DESIGN_SYSTEM.html exactly.
   Fonts are loaded non-blocking via <link> in the HTML <head>, not @import.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #0a0d10;
  --bg2: #12161b;
  --bg3: #1a2029;
  /* Lines */
  --line: #232a33;
  --line2: #2e3742;
  /* Text */
  --text: #ffffff;
  --dim: #8b95a3;
  --dim2: #5a6470;
  /* Accents */
  --lime: #d4ff3a;
  --magenta: #ff2d7e;
  --cyan: #3ad4ff;
  /* Semantic */
  --win: #3aff8f;
  --loss: #ff4e4e;
  --gold: #ffc93a;
  /* Fonts */
  --f-sans: 'Archivo', 'Inter', system-ui, sans-serif;
  --f-display: 'Archivo Black', 'Archivo', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Layout */
  --page: 20px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   Reusable primitives
   ============================================================ */

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

.eyebrow {
  font-family: var(--f-sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow.magenta { color: var(--magenta); }

.section-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; line-height: 1.02; letter-spacing: -0.5px; }

.btn {
  font-family: var(--f-sans); font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  font-size: 13px; height: 48px; padding: 0 24px; border-radius: 4px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: #0a0d10; }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--lime), 0 8px 24px -8px rgba(212,255,58,0.5); }
.btn-ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-block { width: 100%; }

/* Inline SVG icons (replaces the render-blocking Font Awesome CDN).
   Inherit color via currentColor and size via font-size's em unit. */
.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; vertical-align: -0.125em; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  font-family: var(--f-sans);
}
.chip-live { background: rgba(58,255,143,0.12); color: var(--win); border: 1px solid rgba(58,255,143,0.3); }
.chip-soon { background: rgba(212,255,58,0.10); color: var(--lime); border: 1px solid rgba(212,255,58,0.28); }
.chip-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--win); }

.mono { font-family: var(--f-mono); }
.lime { color: var(--lime); }
.magenta { color: var(--magenta); }
.cyan { color: var(--cyan); }
.dim { color: var(--dim); }

/* Section rhythm */
section { padding: 72px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 14px; }
.section-head p { color: var(--dim); font-size: 15px; line-height: 1.7; }
.divider-top { border-top: 1px solid var(--line); }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,16,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--f-display); font-size: 20px; letter-spacing: 3px; text-transform: uppercase; color: var(--lime); }
.site-header .btn { height: 40px; font-size: 11px; padding: 0 18px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--dim); text-transform: uppercase; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; }
.hero-copy .eyebrow { margin-bottom: 18px; display: block; }
.hero h1 { font-size: clamp(38px, 9vw, 60px); margin-bottom: 22px; }
.hero h1 .accent { color: var(--lime); }
/* Magenta is the product's "rivalry / challenge" accent (mirrors the app's
   login headline and notification badges). Use sparingly on payoff words. */
.accent-magenta { color: var(--magenta); }
.hero .subhead { font-size: 16px; color: var(--dim); line-height: 1.7; max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-microcopy { font-family: var(--f-mono); font-size: 12px; color: var(--dim2); }
.hero-microcopy .sep { color: var(--line2); margin: 0 6px; }

/* Phone mockup stack */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.phone {
  position: relative; width: 248px; border-radius: 28px;
  background: var(--bg2); border: 1px solid var(--line2);
  padding: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
}
.phone-screen { border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); position: relative; }

/* Real-screenshot swap: hidden until the phone wrapper is data-shot="on".
   When on, the <img> shows and the faux UI (.scr) is removed from layout.
   Images are served as WebP (with PNG fallback) via <picture>. */
.phone-screen picture { display: none; }
.phone-shot { width: 100%; height: auto; vertical-align: top; }
.phone[data-shot="on"] .phone-screen picture { display: block; }
.phone[data-shot="on"] .scr { display: none; }
/* With a real screenshot the inner 1px line + bg sliver can peek past the
   rounded corner as a pale edge — drop the border and match the app's black. */
.phone[data-shot="on"] .phone-screen { border-color: transparent; background: #000; }
.phone-back { position: absolute; transform: rotate(-7deg) translate(-44px, 18px) scale(0.9); opacity: 0.55; filter: saturate(0.7); z-index: 1; }
.phone-front { position: relative; z-index: 2; transform: rotate(2deg); }
.hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(212,255,58,0.16), transparent 65%); top: 30px; right: -40px; z-index: 0; filter: blur(8px); }

/* In-phone faux UI (screenshots placeholder, replaceable with real PNGs) */
.scr { padding: 14px 12px 16px; }
.scr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.scr-title { font-family: var(--f-display); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.scr-lb-row { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 6px; }
.scr-lb-row.lead { border-color: rgba(212,255,58,0.35); background: rgba(212,255,58,0.06); }
.scr-rank { font-family: var(--f-mono); font-size: 12px; color: var(--dim); width: 16px; }
.scr-rank.gold { color: var(--gold); }
.scr-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--bg3), var(--line2)); flex-shrink: 0; }
.scr-name { font-size: 11px; font-weight: 700; flex: 1; }
.scr-elo { font-family: var(--f-mono); font-size: 11px; color: var(--lime); }
.scr-delta-up { color: var(--win); }
.scr-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: rgba(255,201,58,0.14); color: var(--gold); }

/* ============================================================
   Logos / trust strip
   ============================================================ */
.trust { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; text-align: center; }
.trust-item { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.trust-item i { color: var(--lime); font-size: 13px; }

/* ============================================================
   Problem
   ============================================================ */
.problem-list { display: grid; gap: 12px; max-width: 760px; }
.problem-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.problem-item i { color: var(--magenta); font-size: 15px; margin-top: 3px; flex-shrink: 0; }
.problem-item span { font-size: 14px; color: var(--text); }
.problem-close { margin-top: 28px; font-family: var(--f-display); text-transform: uppercase; font-size: 18px; letter-spacing: -0.3px; max-width: 620px; line-height: 1.25; }
.problem-close .lime { color: var(--lime); }

/* ============================================================
   Solution steps
   ============================================================ */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line);
}
.step-num {
  font-family: var(--f-display); font-size: 22px; color: var(--lime);
  width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,255,58,0.08); border: 1px solid rgba(212,255,58,0.25);
}
.step-body h3 { font-size: 15px; letter-spacing: 0.5px; margin-bottom: 5px; }
.step-body p { font-size: 14px; color: var(--dim); }
.solution-cta { margin-top: 32px; }

/* ============================================================
   Features grid
   ============================================================ */
.feature-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.feature-card { padding: 18px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.feature-card .fname { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
.feature-card .fcopy { font-size: 13px; color: var(--dim); line-height: 1.55; }
.feature-note { margin-top: 22px; font-size: 13px; color: var(--dim); font-style: italic; }

/* ============================================================
   Use cases
   ============================================================ */
.usecase-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.usecase { padding: 18px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.usecase .emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.usecase h3 { font-size: 14px; letter-spacing: 0.4px; margin-bottom: 4px; }
.usecase p { font-size: 13px; color: var(--dim); }
/* The banter/rivalry card carries the magenta "challenge" accent. */
.usecase-rival { border-color: rgba(255,45,126,0.32); background: linear-gradient(155deg, rgba(255,45,126,0.07), var(--bg2) 60%); }
.usecase-rival h3 { color: var(--magenta); }

/* ============================================================
   Compare (WhatsApp / booking) two-up
   ============================================================ */
.compare-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.compare-card { padding: 26px; border-radius: 10px; background: linear-gradient(155deg, #1a2029 0%, #12161b 60%, #0f1318 100%); border: 1px solid var(--line2); }
.compare-card h3 { font-size: 19px; margin-bottom: 16px; line-height: 1.2; }
.compare-card .quote { font-family: var(--f-display); text-transform: uppercase; color: var(--lime); font-size: 14px; letter-spacing: 0.3px; margin-bottom: 14px; line-height: 1.3; }
.keeps { display: grid; gap: 8px; margin: 14px 0; }
.keeps li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.keeps li i { color: var(--win); font-size: 12px; }
.compare-card p { font-size: 13px; color: var(--dim); line-height: 1.65; }
.compare-close { margin-top: 16px; font-family: var(--f-display); text-transform: uppercase; font-size: 13px; color: var(--text); letter-spacing: 0.3px; }

/* ============================================================
   Mid + final CTA bands
   ============================================================ */
.cta-band { background: linear-gradient(135deg, rgba(212,255,58,0.06), rgba(255,45,126,0.05)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { max-width: 640px; }
.cta-inner h2 { font-size: 30px; margin-bottom: 14px; }
.cta-inner p { font-size: 15px; color: var(--dim); margin-bottom: 26px; line-height: 1.7; }
.final-cta { text-align: center; }
.final-cta .cta-inner { margin: 0 auto; }
.final-cta h2 { font-size: clamp(26px, 6vw, 38px); text-transform: uppercase; }
.final-cta .micro { font-family: var(--f-mono); font-size: 12px; color: var(--dim2); margin-top: 16px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-item { border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; color: var(--text); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--f-sans); font-weight: 700; font-size: 15px; }
.faq-q i { color: var(--lime); font-size: 13px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] .faq-q i { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; font-size: 14px; color: var(--dim); line-height: 1.7; }
.faq-q::-webkit-details-marker { display: none; }

/* ============================================================
   Waitlist form (native, Formspark/Formspree-style POST)
   ============================================================ */
.form-wrap { max-width: 680px; margin: 0 auto; }
.waitlist-form {
  padding: 28px 22px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--line2);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
fieldset.field { border: none; padding: 0; margin: 0; }

.e-input-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 8px; padding: 0;
}
.e-input-label .optional { color: var(--dim2); font-weight: 600; letter-spacing: 1px; }
legend.e-input-label { margin-bottom: 10px; }

.e-input {
  width: 100%; height: 48px; border-radius: 4px;
  background: var(--bg3); border: 1px solid var(--line2);
  color: var(--text); font-family: var(--f-sans); font-size: 14px;
  padding: 0 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.e-input::placeholder { color: var(--dim2); }
.e-input:focus { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.e-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b95a3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.e-textarea { height: auto; min-height: 88px; padding: 12px 14px; line-height: 1.6; resize: vertical; }

.field-help { font-size: 11px; color: var(--dim2); margin-top: 6px; }

/* Checkboxes & radios */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.check, .radio {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 11px 13px; border-radius: 4px;
  background: var(--bg3); border: 1px solid var(--line2);
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.radio { flex: 1; justify-content: center; min-width: 88px; }
.check:hover, .radio:hover { border-color: var(--line2); background: #1f2630; }
.check input, .radio input { accent-color: var(--lime); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.check:has(input:checked), .radio:has(input:checked) { border-color: var(--lime); background: rgba(212,255,58,0.08); }
.check.consent { background: transparent; border: none; padding: 0; font-weight: 500; color: var(--dim); align-items: flex-start; }
.check.consent span { line-height: 1.5; }

/* Honeypot — visually removed, kept in DOM for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-privacy { font-size: 11px; color: var(--dim2); text-align: center; margin-top: 14px; }

/* Inline error/success banner injected by analytics.js on submit failure */
.form-banner { display: none; padding: 12px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 18px; }
.form-banner.error { display: block; background: rgba(255,78,78,0.1); border: 1px solid rgba(255,78,78,0.4); color: var(--loss); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--f-display); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--lime); }
.footer-meta { font-size: 12px; color: var(--dim2); }
.footer-meta a:hover { color: var(--dim); }
.footer-links { display: flex; gap: 20px; font-size: 12px; color: var(--dim); }

/* ============================================================
   Thank-you page
   ============================================================ */
.ty-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px var(--page); }
.ty-card { max-width: 560px; }
.ty-card h1 { font-size: clamp(30px, 8vw, 44px); margin-bottom: 18px; }
.ty-card .lead { font-size: 16px; color: var(--dim); line-height: 1.7; margin-bottom: 32px; }
.ty-next { padding: 24px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); text-align: left; margin-bottom: 24px; }
.ty-next h2 { font-size: 16px; margin-bottom: 8px; }
.ty-next p { font-size: 14px; color: var(--dim); line-height: 1.6; margin-bottom: 16px; }
.ty-msg { font-family: var(--f-mono); font-size: 13px; color: var(--text); background: var(--bg3); border: 1px solid var(--line2); border-radius: 6px; padding: 14px 16px; line-height: 1.6; margin-bottom: 16px; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ty-foot { font-size: 13px; color: var(--dim2); margin-top: 8px; }
.copied-flash { font-size: 11px; color: var(--win); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; }
.copied-flash.show { opacity: 1; }

/* ============================================================
   Responsive — desktop refinements (mobile-first base above)
   ============================================================ */
@media (min-width: 760px) {
  section { padding: 88px 0; }
  .nav-links { display: flex; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .section-head h2 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner h2 { font-size: 36px; }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero h1 { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
