/* ============================================================
   FormVision — formvision.app
   Brand tokens heredados de la app iOS (Theme.swift):
   gold #D4B885 · lime #B3DE6C · red #FA4749 · amber #FFC747
   bg #09090B · surface #171719 · surface-hi #212124 · muted #94949E
   Type: Archivo (display, expanded caps) · Inter (body) · IBM Plex Mono (readouts)
   ============================================================ */

:root {
  --bg: #09090B;
  --surface: #171719;
  --surface-hi: #212124;
  --line: rgba(212, 184, 133, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #D4B885;
  --gold-bright: #E8CFA0;
  --lime: #B3DE6C;
  --amber: #FFC747;
  --red: #FA4749;
  --text: #F2F0EB;
  --muted: #94949E;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo-link img { height: 30px; width: auto; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wordmark em { font-style: normal; color: var(--gold); }

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.92rem;
}
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

/* Resplandor dorado sutil detrás del teléfono */
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 60px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(212, 184, 133, 0.10) 0%, transparent 62%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 18px 0 22px;
}
.hero h1 .accent { color: var(--gold); }

.hero .lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: 34px;
}
.hero .lede strong { color: var(--text); font-weight: 500; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: #0B0A08;
  border-radius: 14px;
  padding: 13px 22px;
  line-height: 1.15;
}
.btn-store:hover { background: var(--gold-bright); color: #0B0A08; }
.btn-store .apple { font-size: 1.55rem; }
.btn-store .small { display: block; font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.75; }
.btn-store .big { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; }

.btn-store.soon { cursor: default; }

.cta-tiktok {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.cta-tiktok strong { color: var(--text); font-weight: 500; }
.cta-tiktok:hover strong { color: var(--gold-bright); }

/* ---------- Phone mock (la firma de la página) ---------- */

.phone-col { display: flex; justify-content: center; position: relative; z-index: 1; }

.phone {
  width: min(330px, 86vw);
  border-radius: 42px;
  border: 1px solid rgba(212, 184, 133, 0.28);
  background: #0D0D10;
  padding: 12px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(212, 184, 133, 0.07);
}

.phone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 23, 25, 0.6), rgba(9, 9, 11, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.025) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.025) 39px 40px);
  aspect-ratio: 320 / 560;
}

.phone-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Readouts sobre el video, como en la app */
.chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  opacity: 0;
  animation: chip-in 0.5s ease-out forwards;
}
.chip.good { color: var(--lime); border-color: rgba(179, 222, 108, 0.35); }
.chip.warn { color: var(--amber); border-color: rgba(255, 199, 71, 0.35); }
.chip.info { color: var(--muted); }

.chip-rec { top: 4.5%; left: 6%; animation-delay: 0.2s; }
.chip-rec .dot { color: var(--red); animation: blink 1.4s steps(1) infinite; }
.chip-depth { top: 52%; left: 6%; animation-delay: 1.1s; }
.chip-tempo { top: 64%; left: 10%; animation-delay: 1.5s; }
.chip-path { top: 30%; right: 6%; animation-delay: 1.9s; }

@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 50% { opacity: 0.15; } }

.score-card {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 4.5%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--line);
  opacity: 0;
  animation: chip-in 0.6s ease-out 2.3s forwards;
}
.score-card .num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.score-card .of { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.score-card .label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Trazado del bar path */
.bar-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.6s ease-in-out 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .score-card { animation: none; opacity: 1; }
  .bar-path { animation: none; stroke-dashoffset: 0; }
  .chip-rec .dot { animation: none; }
}

/* ---------- Secciones ---------- */

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 620px; margin-bottom: 52px; }

.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
  margin: 14px 0 14px;
}

.section-head p { color: var(--muted); }

/* Lifts */
.lift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.lift-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 24px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.lift-card:hover { border-color: var(--line); transform: translateY(-3px); }

.lift-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 116%;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.lift-card .status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.lift-card ul { list-style: none; margin-top: 18px; }

.lift-card li {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.lift-card li .val { color: var(--lime); }

.lift-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.lift-note strong { color: var(--gold); font-weight: 500; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px 24px 26px;
}

.step .n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 114%;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: 0.95rem; }

/* Honesty band — el foso, dicho en voz alta */
.honesty { background: var(--surface); }

.honesty blockquote {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 118%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  max-width: 18ch;
}
.honesty blockquote .accent { color: var(--gold); }

.honesty .cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.honesty .body p { color: var(--muted); margin-bottom: 16px; }
.honesty .body p strong { color: var(--text); font-weight: 500; }

.honesty .body .privacy-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--lime);
  border: 1px solid rgba(179, 222, 108, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 26px;
}

/* CTA band */
.cta-band { text-align: center; }

.cta-band .logo-eye { height: 74px; width: auto; margin: 0 auto 26px; opacity: 0.95; }

.cta-band h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.06;
  margin-bottom: 14px;
}
.cta-band h2 .accent { color: var(--gold); }

.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 32px; }

.cta-band .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 42px 0 48px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.site-footer .links a { color: var(--muted); }
.site-footer .links a:hover { color: var(--gold); }

.site-footer .contact { color: var(--muted); margin-bottom: 10px; }

.site-footer .brand {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Páginas legales ---------- */

main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 10px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 114%;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 38px 0 12px;
  color: var(--gold);
}

.legal p, .legal li { color: #C9C7C1; }
.legal p { margin-bottom: 14px; }

.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .phone-col { order: 2; }
  .hero::after { display: none; }
  .lift-grid, .steps { grid-template-columns: 1fr; }
  .honesty .cols { grid-template-columns: 1fr; gap: 28px; }
  .main-nav { display: none; }
  section { padding: 64px 0; }
}
