/* ---- tokens ---------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-elevated: #f6f6f8;
  --fg: #0a0a0c;
  --fg-muted: #5c5c68;
  --border: #e7e7ec;
  --accent: #6d5bff;
  --accent-fg: #ffffff;
  --accent-text: #5a45e0;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --bg-elevated: #131317;
    --fg: #f4f4f6;
    --fg-muted: #9a9aa6;
    --border: #232329;
    --accent: #7d6bff;
    --accent-fg: #ffffff;
    --accent-text: #a996ff;
  }
}

/* ---- reset ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-fg);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

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

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

/* ---- header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 0.94rem; color: var(--fg-muted);
  transition: color .15s;
}
.site-nav a:hover { color: var(--fg); }
.nav-cta {
  color: var(--fg) !important;
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 8px;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-text) !important; }

.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px;
}
.nav-toggle-btn span {
  width: 20px; height: 2px; background: var(--fg); border-radius: 2px;
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 9px; border: 1px solid transparent;
  transition: transform .12s, opacity .12s, border-color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-block { width: 100%; margin-top: 24px; }

/* ---- hero ------------------------------------------------------------ */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.eyebrow {
  color: var(--accent-text); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lead {
  color: var(--fg-muted); font-size: 1.1rem; max-width: 620px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--fg-muted); font-size: 0.85rem; margin: 20px 0 56px; }

/* ---- screenshot slideshow ---------------------------------------------- */
/* Sin JS: las tres capturas se turnan solas, y los puntos y las flechas son
   `label`s de tres radios ocultos. En cuanto uno está marcado, la animación
   se apaga y manda el usuario — que es lo que espera quien acaba de pulsar. */
.slides { position: relative; aspect-ratio: 1600 / 980; margin-bottom: 104px; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; animation: slide-cycle 21s infinite;
  transition: opacity 0.4s ease;
}
.slide-2 { animation-delay: 7s; }
.slide-3 { animation-delay: 14s; }
.slides:hover .slide, .slides:focus-within .slide { animation-play-state: paused; }
.slide img {
  width: 100%; height: 100%; object-fit: contain;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.35);
}
.slide figcaption {
  position: absolute; top: calc(100% + 16px); left: 0; right: 0;
  text-align: center; color: var(--fg-muted); font-size: 0.88rem;
}
@keyframes slide-cycle {
  0%, 1%   { opacity: 0; }
  4%, 30%  { opacity: 1; }
  34%,100% { opacity: 0; }
}

/* Flechas: un par por diapositiva, porque «anterior» y «siguiente» dependen
   de cuál se está viendo y en CSS eso no se calcula, se enumera. */
.arrows { display: none; }
.slides:not(:has(input:checked)) .arrows-1,
#slide-pick-1:checked ~ .arrows-1,
#slide-pick-2:checked ~ .arrows-2,
#slide-pick-3:checked ~ .arrows-3 { display: block; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--fg-muted); font-size: 1.4rem; line-height: 1;
  opacity: 0.75; transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.arrow:hover { opacity: 1; border-color: var(--accent); color: var(--accent-text); }
.arrow.prev { left: -20px; }
.arrow.next { right: -20px; }

/* Puntos: mientras rota, siguen a la animación con los mismos tiempos. */
.dots {
  position: absolute; top: calc(100% + 52px); left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer;
  background: var(--border); animation: dot-cycle 21s infinite;
  transition: background 0.3s ease;
}
.dot-2 { animation-delay: 7s; }
.dot-3 { animation-delay: 14s; }
.dot:hover { background: var(--fg-muted); }
@keyframes dot-cycle {
  0%, 3%   { background: var(--border); }
  4%, 30%  { background: var(--accent); }
  34%,100% { background: var(--border); }
}

.slides:has(input:checked) .slide { animation: none; opacity: 0; }
.slides:has(input:checked) .dot { animation: none; }
#slide-pick-1:checked ~ .slide-1,
#slide-pick-2:checked ~ .slide-2,
#slide-pick-3:checked ~ .slide-3 { opacity: 1; }
#slide-pick-1:checked ~ .dots .dot-1,
#slide-pick-2:checked ~ .dots .dot-2,
#slide-pick-3:checked ~ .dots .dot-3 { background: var(--accent); }
#slide-pick-1:focus-visible ~ .dots .dot-1,
#slide-pick-2:focus-visible ~ .dots .dot-2,
#slide-pick-3:focus-visible ~ .dots .dot-3 { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .arrow.prev { left: 8px; }
  .arrow.next { right: 8px; }
}

/* Sin animación no hay carrusel que manejar: las tres, una debajo de otra. */
@media (prefers-reduced-motion: reduce) {
  .slides { aspect-ratio: auto; margin-bottom: 0; }
  .slides input, .arrows, .dots { display: none; }
  .slide { position: static; opacity: 1; animation: none; margin-bottom: 56px; }
  .slide img { height: auto; }
  .slide figcaption { position: static; margin-top: 12px; }
}

/* ---- sections shared ------------------------------------------------------------ */
section { padding: 88px 0; }
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.01em; text-align: center; margin: 0 0 16px;
}
.section-lead {
  color: var(--fg-muted); text-align: center; max-width: 620px;
  margin: 0 auto 48px; font-size: 1.02rem;
}

/* ---- features ------------------------------------------------------------ */
.features { border-top: 1px solid var(--border); }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 48px;
}
.feature-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; background: var(--bg-elevated);
}
.feature-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-text); font-size: 1.1rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.feature-card p { color: var(--fg-muted); font-size: 0.92rem; margin: 0; }
.feature-card.is-soon {
  border-style: dashed;
  background: transparent;
}
.feature-card.is-soon h3, .feature-card.is-soon p { color: var(--fg-muted); }

/* ---- beta ------------------------------------------------------------ */
.pricing { border-top: 1px solid var(--border); }
.beta-pill {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; margin-right: 8px;
}
.beta-card {
  border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent);
  border-radius: var(--radius); padding: 32px; background: var(--bg-elevated);
  max-width: 420px; margin: 40px auto 0;
}
.beta-card ul { display: flex; flex-direction: column; gap: 11px; }
.beta-card li {
  font-size: 0.92rem; color: var(--fg-muted); padding-left: 22px; position: relative;
}
.beta-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700;
}
.downloads { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.downloads .btn { margin-top: 0; flex-direction: column; gap: 2px; padding: 14px 20px; }
.btn-sub { font-size: 0.76rem; font-weight: 500; opacity: 0.75; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.section-note {
  color: var(--fg-muted); font-size: 0.88rem; text-align: center; margin: 40px 0 0;
}

/* ---- closing ------------------------------------------------------------ */
.closing { border-top: 1px solid var(--border); background: var(--bg-elevated); }
.closing-inner { text-align: center; }
.form-note { color: var(--fg-muted); font-size: 0.8rem; margin-top: 14px; }

/* ---- contact ------------------------------------------------------------ */
.contact { border-top: 1px solid var(--border); background: var(--bg-elevated); }
.contact-inner { text-align: center; }
.contact-email { font-size: 1.1rem; font-weight: 600; margin: 4px 0 0; }
.contact-email a { color: var(--accent-text); text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }

/* ---- footer ------------------------------------------------------------ */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-note, .footer-copy { color: var(--fg-muted); font-size: 0.82rem; margin: 0; }
.footer-legal-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-nav a { color: var(--fg-muted); font-size: 0.82rem; text-decoration: none; }
.footer-legal-nav a:hover { color: var(--accent-text); }

/* ---- legal pages --------------------------------------------------------- */
.legal { padding: 64px 0 80px; }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: 2rem; margin: 0 0 4px; }
.legal-updated { color: var(--fg-muted); font-size: 0.85rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--fg-muted); line-height: 1.65; }
.legal-list { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal-list li { margin-bottom: 6px; }
.legal-callout {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 24px 0;
  font-size: 0.9rem; color: var(--fg);
}
.legal-callout strong { color: var(--fg); }
.legal-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.9rem; }
.legal-links a { color: var(--accent-text); }

/* ---- responsive nav ------------------------------------------------------------ */
@media (max-width: 720px) {
  .nav-toggle-btn { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle-checkbox:checked ~ .site-nav { display: flex; }
}
