/* ozira.app — mismos tokens que la app (src/lib/styles/tokens.css, ADR 0030). Sin dependencias ni rastreadores. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/assets/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c0e13;
  --surface-1: #13161d;
  --surface-2: #1b1f28;
  --surface-3: #252a35;
  --line: rgba(220, 226, 240, 0.11);
  --text: #edeff3;
  --text-2: #a9aeba;
  --text-3: #8a90a0;
  --accent: #8c95ff;
  --accent-ink: #0b0d2b;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--ink));
  --ember: #ffb04a;
  --mint: #5fdcb0;
  --voice: #e08cf5;
  --danger: #ff6b6b;
  --font: "Atkinson Hyperlegible Next", "Segoe UI Variable Text", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --d-base: 300ms;
  --wrap: 1080px;
  --gutter: 20px;
  --shadow-capsule:
    0 2px 6px rgba(0, 0, 0, 0.22), 0 6px 18px -4px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-open:
    0 1px 2px rgba(0, 0, 0, 0.14), 0 8px 16px -2px rgba(0, 0, 0, 0.18), 0 28px 52px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 750;
}

h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: auto;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 15px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

@media (max-width: 760px) {
  .top .wrap {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-block: 10px;
  }
  .top .btn {
    margin-left: auto;
  }
  .nav {
    order: 3;
    width: 100%;
    margin: 0 -12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav a {
    white-space: nowrap;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d-base) var(--ease), opacity var(--d-base);
}

.btn:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.ghost:hover {
  color: var(--text);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Bloques comunes ---------- */
section {
  padding-block: clamp(56px, 9vw, 104px);
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 40em;
}

.muted {
  color: var(--text-2);
}

.fine {
  color: var(--text-3);
  font-size: 14px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.card h3 {
  margin-top: 4px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.band {
  background: var(--surface-1);
  border-block: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-2);
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip.ready {
  color: var(--mint);
  background: color-mix(in oklab, var(--mint) 14%, var(--ink));
}

.chip.trial {
  color: var(--ember);
  background: color-mix(in oklab, var(--ember) 14%, var(--ink));
}

.chip.soon {
  color: var(--text-2);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Portada ---------- */
.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero h1 span {
  color: var(--accent);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Maqueta de la cápsula y la hoja: así se ve Ozira arriba de tu pantalla. */
.demo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 12px 12px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(180deg, #1a1e2a, #10131a);
  border: 1px solid var(--line);
}

.capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 8px;
  border-radius: var(--r-pill);
  background: #08090d;
  box-shadow: var(--shadow-capsule);
  font-size: 15px;
}

.capsule img {
  width: 40px;
}

.capsule .time {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

.capsule .sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.sheet {
  width: min(100%, 440px);
  background: var(--surface-1);
  border-radius: 26px;
  box-shadow: var(--shadow-open);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.sheet .now {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.sheet .now strong {
  display: block;
  font-size: 18px;
}

.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  margin-top: 10px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0.62);
}

.sheet ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.sheet li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--text-2);
}

.sheet li b {
  color: var(--text);
  font-weight: 600;
}

.dot {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--surface-3);
}

.dot.ok {
  background: color-mix(in oklab, var(--mint) 22%, var(--ink));
  color: var(--mint);
}

.dot.warn {
  background: color-mix(in oklab, var(--ember) 22%, var(--ink));
  color: var(--ember);
}

.ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 15px;
}

kbd {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}

/* ---------- Lista de funciones ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}

.checks.soon li::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--text-3);
  border-radius: 50%;
  transform: none;
  top: 0.5em;
}

/* ---------- Motores ---------- */
.engine {
  display: grid;
  gap: 8px 28px;
  grid-template-columns: 220px 1fr;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.engine:first-of-type {
  border-top: 0;
}

.engine h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.engine .tag {
  color: var(--text-2);
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .engine {
    grid-template-columns: 1fr;
  }
}

/* ---------- Precios ---------- */
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan p {
  margin: 0;
}

.plans + .fine {
  margin-top: 20px;
}

.plan.featured {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent);
}

.plan .price {
  font-size: 38px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan .price small {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0;
}

.plan ul {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Lista de espera ---------- */
.join {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 860px) {
  .join {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}

.form input,
.form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: 400 16px var(--font);
}

.form input::placeholder {
  color: var(--text-3);
}

.form input:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* País + número en una fila; el país, angosto. */
.phone {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
}

@media (max-width: 420px) {
  .phone {
    grid-template-columns: 1fr;
  }
}

.form .fine {
  margin: -6px 0 0;
}

/* Campo trampa: fuera de la vista y del orden de tabulación. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.6em;
  margin: 0;
  font-weight: 600;
}

.status.ok {
  color: var(--mint);
}

.status.error {
  color: var(--danger);
}

/* ---------- Texto largo (privacidad, términos, novedades) ---------- */
.doc {
  padding-block: clamp(40px, 7vw, 80px);
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.doc h2 {
  font-size: 26px;
  margin-top: 2em;
}

.doc h3 {
  margin-top: 1.6em;
}

.doc li {
  color: var(--text);
}

.summary {
  margin: 28px 0 8px;
}

.release {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.release header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 8px;
}

.release h2 {
  margin: 0;
  font-size: 24px;
}

.release time {
  color: var(--text-3);
  font-size: 15px;
}

/* ---------- Preguntas ---------- */
details {
  border-top: 1px solid var(--line);
  padding-block: 16px;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

details p {
  margin: 10px 0 0;
  color: var(--text-2);
}

/* ---------- Pie ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  color: var(--text-2);
  font-size: 15px;
}

.foot .wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.foot h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .foot .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .foot .about {
    grid-column: 1 / -1;
  }
}

.center {
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

.stack {
  display: grid;
  justify-items: center;
  gap: 18px;
}

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

/* Un h2 con tamaño de h3 (nombres de plan, recuadros). */
.h3 {
  font-size: 20px;
  margin-bottom: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}

.grid + .fine,
.grid + p {
  margin-top: 20px;
}

.doc .card h2 {
  margin: 0 0 12px;
}
