/* Landing de AFK Seller (L-01). Mismos tokens que la app (docs/DISENO.md §2-§4), dos temas
   según el sistema. Sin fuentes externas: Sora auto-alojada (L-02, SIL OFL 1.1, ver
   assets/fonts/sora/OFL.txt); JetBrains Mono si está instalada, si no la mono del sistema.
   Sin estilos en línea (la CSP no los permite). */

/* Sora variable (pesos 300-800 en un archivo), subconjunto latino: alcanza para es y pt. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/sora/sora-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo,
    Consolas, monospace;

  /* Claro (Hueso) */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #dde2ec;
  --border-strong: #c9d0dc;
  --text: #0b0f1a;
  --text-2: #4a5366;
  --text-3: #626b7d;
  --accent: #0e9f6e;
  /* Menta profunda un paso más oscura para texto chico y botones: contraste AA (≥ 4.5:1). */
  --accent-ink: #087a54;
  --accent-soft: #ddf5ea;
  --on-accent: #ffffff;
  --warn: #b9720a;
  --danger: #c0392b;
  --info: #1678b8;
  --info-soft: #e3f1fa;
  --pause: #0b0f1a;
  --switch-off: #4a5366;

  --radius-card: 20px;
  --radius-ctl: 12px;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Oscuro (Noche): la marca se presenta en oscuro */
    --bg: #0b0f1a;
    --surface: #141a2b;
    --surface-2: #1b2235;
    --border: #232b40;
    --border-strong: #2a3245;
    --text: #f4f6fa;
    --text-2: #9aa4b8;
    --text-3: #8a93a8;
    --accent: #3ddc97;
    --accent-ink: #3ddc97;
    --accent-soft: #1f3a33;
    --on-accent: #0b0f1a;
    --warn: #ffb547;
    --danger: #ff6b6b;
    --info: #4cc3ff;
    --info-soft: #16304a;
    --pause: #f4f6fa;
    --switch-off: #2a3245;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-ctl);
  background: var(--surface);
  color: var(--text);
}

.skip:focus {
  left: 8px;
}

.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;
}

/* ------------------------------------------------------------------ marca */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.wordmark {
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark span {
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-2);
  margin-left: 0.17em;
}

.iso-pause {
  fill: var(--pause);
}

.iso-up {
  fill: var(--accent);
}

/* ---------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-ink);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent);
}

@media (prefers-color-scheme: light) {
  .btn-primary:hover {
    background: #06694a;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------- cabecera */

.top {
  padding: 16px 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 40px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 112px;
  }
  .hero .wrap {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
  }
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}

.display {
  display: block;
  font-size: clamp(2.5rem, 7.4vw, 3.875rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--text-2);
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cta .btn {
  flex: 1 1 auto;
}

@media (min-width: 520px) {
  .cta .btn {
    flex: 0 0 auto;
  }
}

.hero-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* Ilustración del Modo AFK (SVG en línea, colores por clase) */

.afk-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.afk-card svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ill-surface {
  fill: var(--surface);
  stroke: var(--border);
}

.ill-row {
  fill: var(--surface-2);
}

.ill-line {
  stroke: var(--border);
}

.ill-text {
  fill: var(--text);
  font-family: var(--font-sans);
}

.ill-text-2 {
  fill: var(--text-2);
  font-family: var(--font-sans);
}

.ill-mono {
  fill: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 700;
}

.ill-z {
  fill: var(--text-2);
  font-family: var(--font-sans);
  font-weight: 700;
}

.ill-pill {
  fill: var(--accent);
}

.ill-knob {
  fill: #0b0f1a;
}

.ill-dot-auto {
  fill: var(--accent);
}

.ill-dot-wait {
  fill: var(--warn);
}

.ill-dot-shadow {
  fill: var(--info);
}

.ill-dot-suggest {
  fill: var(--text-2);
}

.ill-halo {
  fill: var(--accent-soft);
}

.ill-knob-g {
  animation: knob-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.ill-pill {
  animation: pill-in 0.9s ease 0.3s both;
}

.ill-zz {
  animation: zz 4.5s ease-in-out 1.2s infinite;
}

.ill-zz:nth-of-type(2) {
  animation-delay: 1.8s;
}

@keyframes knob-in {
  from {
    transform: translateX(-32px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pill-in {
  from {
    fill: var(--switch-off);
  }
  to {
    fill: var(--accent);
  }
}

@keyframes zz {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* -------------------------------------------------------------- secciones */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}

.section h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  font-weight: 700;
  max-width: 22em;
}

.section-intro {
  margin-top: 16px;
  max-width: 40em;
  font-size: 1.0625rem;
  color: var(--text-2);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

@media (min-width: 720px) {
  .card {
    padding: 28px;
  }
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
}

/* Íconos de trazo (propios, estilo Lucide) */
.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

/* Cómo funciona */

.steps {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.step-n {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-2);
}

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-2);
  flex: none;
}

.chip-auto::before {
  background: var(--accent);
}

.chip-wait::before {
  background: var(--warn);
}

.chip-shadow::before {
  background: var(--info);
}

.chip-soon::before {
  background: transparent;
  border: 1.5px solid var(--text-2);
}

.shadow-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--info-soft);
}

.shadow-note .i {
  flex: none;
  margin-top: 2px;
  color: var(--info);
}

.shadow-note p {
  color: var(--text);
}

/* Módulos */

.modules {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .modules {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-head .icon-box {
  margin-bottom: 18px;
}

@media (min-width: 1000px) {
  .module.wide {
    grid-column: span 2;
  }
  .modules.soon-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.module.soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}

.module.soon .icon-box {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
}

.subhead {
  margin-top: 48px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}

.subhead + .modules {
  margin-top: 16px;
}

/* Confianza */

.trust {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .trust {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }
}

.trust-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-list li {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}

.trust-list li:first-child {
  border-top: 0;
}

@media (min-width: 640px) {
  .trust-list li:nth-child(2) {
    border-top: 0;
  }
  .trust-list li:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .trust-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

.trust-list .i {
  flex: none;
  margin-top: 2px;
  color: var(--accent-ink);
}

.trust-list h3 {
  font-size: 1rem;
  font-weight: 600;
}

.trust-list p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Valor generado */

.value {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .value {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.ledger {
  margin: 0;
  padding: 8px 0;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.ledger-row:first-child {
  border-top: 0;
}

.ledger-row dt {
  font-size: 0.9375rem;
}

.ledger-row dd {
  margin: 0;
  flex: none;
}

.ledger-foot {
  padding: 14px 24px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.card.ledger-card {
  padding: 0;
}

/* Acceso */

.access {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .access {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-ctl);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

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

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.row-2 {
  display: grid;
  gap: 18px;
}

@media (min-width: 520px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form .btn {
  width: 100%;
}

.form-legal {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.status {
  min-height: 1.5em;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Vacío no ocupa lugar (sigue en el DOM: es la región que anuncia el resultado). */
.status:empty {
  min-height: 0;
  margin-top: -18px;
}

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

.done {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.done .i {
  flex: none;
  color: var(--accent-ink);
}

.done h3 {
  font-size: 1.25rem;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------- pie */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-2);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-2);
}

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

.foot .slogan {
  font-weight: 600;
  color: var(--text);
}
