/* ==========================================================================
   Dailevel — landing page
   Colours and fonts: dailevel-estilo skill.
   Radii (subtle), spacing (balanced, 8 px grid) and type scale (Impact):
   decided by Jorge for the web, November 2026.
   No glows, gradients, blurs, icons or animations: still pending in the skill.
   ========================================================================== */

:root {
  /* Colour tokens (dailevel-estilo) */
  --fondo: #0A0A0B;
  --superficie: #151517;
  --borde: #26262A;
  --azul: #3D5AFE;
  --azul-brillo: #8C9EFF;
  --texto: #FAFAFA;
  --texto-secundario: #9B9BA1;
  --sobre-azul: #FFFFFF;

  /* Fonts */
  --fuente-titulo: "Oxanium", ui-sans-serif, system-ui, sans-serif;
  --fuente-texto: "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Type scale "Impact" (fluid between 375 px and 1280 px wide screens) */
  --t-titular: clamp(2.75rem, 1.8177rem + 3.978vw, 5rem);   /* 44 → 80 px */
  --t-seccion: clamp(2rem, 1.5856rem + 1.768vw, 3rem);      /* 32 → 48 px */
  --t-cuenta: clamp(2.75rem, 2.025rem + 3.094vw, 4.5rem);   /* 44 → 72 px */
  --t-tarjeta: 1.5rem;                                      /* 24 px */
  --t-texto: 1.125rem;                                      /* 18 px */
  --t-boton: 1rem;                                          /* 16 px */
  --t-etiqueta: 0.875rem;                                   /* 14 px */

  /* Radii "subtle" */
  --radio-etiqueta: 4px;
  --radio-boton: 6px;
  --radio-tarjeta: 8px;

  /* Spacing "balanced" (8 px grid) */
  --esp-8: 8px;
  --esp-16: 16px;
  --esp-24: 24px;
  --esp-32: 32px;
  --esp-48: 48px;
  --esp-64: 64px;
  --esp-96: 96px;

  --ancho-max: 1120px;
  --margen: var(--esp-16);   /* side padding of the page */
  --seccion: var(--esp-64);  /* space between sections */
}

@media (min-width: 600px) {
  :root { --margen: var(--esp-24); }
}

@media (min-width: 768px) {
  :root { --seccion: var(--esp-96); }
}

@media (min-width: 1024px) {
  :root { --margen: var(--esp-32); }
}

/* Base ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: var(--t-texto);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--fuente-titulo);
  text-wrap: balance;
}

h2 {
  font-size: var(--t-seccion);
  font-weight: 600;
  line-height: 1.15;
}

h3 {
  font-size: var(--t-tarjeta);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

a {
  color: var(--azul-brillo);
}

a:hover {
  text-decoration: underline;
}

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

::selection {
  background: var(--azul);
  color: var(--sobre-azul);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--esp-16);
  z-index: 10;
  padding: var(--esp-8) var(--esp-16);
  border-radius: var(--radio-boton);
  background: var(--azul);
  color: var(--sobre-azul);
  font-size: var(--t-boton);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--esp-16);
}

.container {
  width: 100%;
  max-width: calc(var(--ancho-max) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

/* Exactly one --seccion between sections, and before the footer. */
.section {
  padding-top: var(--seccion);
}

main > :last-child {
  padding-bottom: var(--seccion);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--esp-48);
}

.section__intro {
  max-width: 36em;
  margin-top: var(--esp-24);
  color: var(--texto-secundario);
}

/* Shared pieces ---------------------------------------------------------- */

.card {
  padding: var(--esp-24);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  background: var(--superficie);
}

@media (min-width: 768px) {
  .card { padding: var(--esp-32); }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-8);
  margin: 0 0 var(--esp-24);
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: var(--esp-8) var(--esp-16);
  border: 1px solid var(--borde);
  border-radius: var(--radio-etiqueta);
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--esp-16) var(--esp-24);
  border: 1px solid transparent;
  border-radius: var(--radio-boton);
  font-family: var(--fuente-texto);
  font-size: var(--t-boton);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  border-color: var(--azul-brillo);
}

.button--primary {
  border-color: var(--azul);
  background: var(--azul);
  color: var(--sobre-azul);
}

.button--secondary {
  border-color: var(--borde);
  background: transparent;
  color: var(--texto);
}

.num {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

.site-header {
  border-bottom: 1px solid var(--borde);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-16);
  padding-block: var(--esp-16);
}

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

.brand:hover {
  text-decoration: none;
}

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

.brand__name {
  font-family: var(--fuente-titulo);
  font-size: var(--t-tarjeta);
  font-weight: 600;
  line-height: 1;
}

.brand--small {
  gap: var(--esp-8);
}

.brand--small img {
  width: 24px;
  height: 24px;
}

.brand--small .brand__name {
  font-size: var(--t-boton);
}

.nav {
  display: flex;
  gap: var(--esp-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: var(--esp-8);
  color: var(--texto-secundario);
  font-size: var(--t-boton);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 639px) {
  .nav li:not(:last-child) { display: none; }
}

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

.hero {
  padding-top: var(--esp-48);
}

@media (min-width: 768px) {
  .hero { padding-top: var(--esp-64); }
}

.hero__grid {
  display: grid;
  grid-template-areas:
    "intro"
    "countdown"
    "actions";
  gap: var(--esp-32);
}

.hero__intro { grid-area: intro; }
.countdown { grid-area: countdown; }
.hero__actions { grid-area: actions; }

.hero__title {
  font-size: var(--t-titular);
  font-weight: 700;
  line-height: 1.05;
}

.hero__title span {
  display: block;
}

.hero__accent {
  color: var(--azul);
}

.lead {
  max-width: 34em;
  margin-top: var(--esp-24);
  color: var(--texto-secundario);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-16);
}

@media (max-width: 479px) {
  .hero__actions .button { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "intro countdown"
      "actions countdown";
    column-gap: var(--esp-64);
  }

  .hero__intro { align-self: end; }
  .hero__actions { align-self: start; }
  .countdown { align-self: center; }
}

/* Countdown -------------------------------------------------------------- */

.countdown__label,
.countdown__date {
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  line-height: 1.4;
}

.countdown__label {
  margin-bottom: var(--esp-16);
}

.countdown__date {
  margin-top: var(--esp-16);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--esp-8);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-8);
  padding: var(--esp-16) var(--esp-8);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  background: var(--superficie);
  text-align: center;
}

.countdown__value {
  font-family: var(--fuente-titulo);
  font-size: var(--t-cuenta);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__name {
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  line-height: 1.4;
}

.countdown__done {
  font-family: var(--fuente-titulo);
  font-size: var(--t-tarjeta);
  font-weight: 600;
  line-height: 1.25;
}

/* Without JavaScript only the launch date is shown. */
.no-js .countdown__label,
.no-js .countdown__grid {
  display: none;
}

@media (max-width: 359px) {
  .countdown__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 600px) {
  .countdown__grid { gap: var(--esp-16); }
  .countdown__unit { padding: var(--esp-24) var(--esp-16); }
}

@media (min-width: 960px) {
  .countdown__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it works ----------------------------------------------------------- */

.how__head {
  display: grid;
  gap: var(--esp-48);
  margin-bottom: var(--esp-48);
}

.days {
  max-width: 240px;
  margin: 0;
}

.days img {
  width: 160px;
}

.days figcaption {
  margin-top: var(--esp-16);
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .how__head {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    column-gap: var(--esp-64);
  }

  .days img { width: 240px; }
}

.features {
  display: grid;
  gap: var(--esp-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--esp-24);
  }
}

.feature__index {
  display: block;
  color: var(--azul-brillo);
  font-family: var(--fuente-titulo);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.feature h3 {
  margin: var(--esp-16) 0 var(--esp-8);
}

.feature p {
  color: var(--texto-secundario);
}

/* Character -------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--esp-48);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    column-gap: var(--esp-64);
  }
}

.log {
  margin: 0;
}

.log__caption {
  margin-bottom: var(--esp-16);
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  line-height: 1.4;
}

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

.log__list li {
  padding-block: var(--esp-16);
  border-top: 1px solid var(--borde);
  font-weight: 600;
}

.log__list li:last-child {
  padding-bottom: 0;
}

/* Launch and social ------------------------------------------------------ */

.subhead {
  margin-bottom: var(--esp-24);
}

.social {
  display: grid;
  gap: var(--esp-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .social {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--esp-24);
  }
}

.social__card {
  display: flex;
  flex-direction: column;
  gap: var(--esp-8);
  height: 100%;
  color: var(--texto);
  text-decoration: none;
}

a.social__card:hover {
  border-color: var(--azul-brillo);
  text-decoration: none;
}

.social__name {
  font-family: var(--fuente-titulo);
  font-size: var(--t-tarjeta);
  font-weight: 600;
  line-height: 1.25;
}

.social__handle {
  color: var(--texto-secundario);
}

.social__action {
  margin-top: auto;
  padding-top: var(--esp-16);
  color: var(--azul-brillo);
  font-size: var(--t-boton);
  font-weight: 600;
}

a.social__card:hover .social__action {
  text-decoration: underline;
}

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

.site-footer {
  padding-block: var(--esp-48);
  border-top: 1px solid var(--borde);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-24);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-8) var(--esp-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--texto-secundario);
  font-size: var(--t-boton);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--texto);
  text-decoration: underline;
}

.site-footer__legal {
  color: var(--texto-secundario);
  font-size: var(--t-etiqueta);
}
