/* ============ Kelvo — styles ============ */
/* Brand: white #FFFFFF, ink #0A0A0A, accent #FF4D00 (single per section),
   gray #71717A, surface #F4F4F5. No gradients, lots of air, big numbers. */

/* Inter is the brand face (see brand one-pager). Self-hosted: naming it in a
   fallback stack is not enough — system-ui wins first on every OS, so the page
   silently rendered in Segoe UI / SF with a synthesized 800 weight. */
@font-face {
  font-family: "InterVariable";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --accent: #FF4D00;        /* decorative: dot, underlines, large numbers */
  --accent-strong: #C43D00; /* interactive: 5.2:1 on white, passes AA */
  /* Warm neutrals, as the brand one-pager specifies ("gris cálido"): these lean
     toward the orange rather than the cool zinc they used to be. */
  --gray: #78716C;          /* 4.8:1 on white */
  --gray-strong: #57534E;   /* body text on --surface, 6.9:1 */
  --surface: #F4F4F5;
  --max-w: 1080px;

  /* Display tracking. Inter is spaced generously by design, so headings want
     negative tracking — but far less than the -0.04em tuned for the old
     fallback face, which is what made them look cramped. */
  --track-display: -0.021em;
  --track-title: -0.018em;
  --track-sm: -0.011em;
}

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

html {
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "InterVariable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  /* cv11 = single-storey 'g', ss03 = the curved-tail 'l'; both keep the
     wordmark and the big numbers reading cleanly at display sizes. */
  font-feature-settings: "cv11", "ss03";
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings never break to leave one word stranded on the last line. */
h1, h2, h3, .hero-title, .section-title {
  text-wrap: balance;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
}

/* ============ Wordmark ============ */

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--track-display);
  text-decoration: none;
  color: var(--ink);
}

.wordmark-sm {
  font-size: 1.25rem;
}

/* Orange dot on the "o": the letter keeps ink color, its dot is drawn on top */
.o-dot {
  position: relative;
}

.o-dot::after {
  content: "";
  position: absolute;
  top: 0.14em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

/* On mobile only the Hosts link survives — it's the one audience that would
   otherwise never find its section. */
.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--gray);
}

@media (max-width: 859px) {
  .nav a:not([href="#hosts"]) { display: none; }
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: none;
  border: 1px solid var(--gray);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--ink);
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--white);
}

.btn-primary:hover {
  background: #A83400;
}

.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
}

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

.btn-outline {
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--white);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ============ Hero ============ */

.hero {
  padding: 6rem 0 5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.06;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-stat {
  margin-top: 4rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  color: var(--gray);
  max-width: 32ch;
  font-size: 0.95rem;
}

/* ============ Stats ============ */

.stats {
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-num-accent {
  color: var(--accent);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  max-width: 26ch;
}

/* ============ Sections ============ */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: var(--track-title);
  line-height: 1.15;
  margin-bottom: 2.75rem;
}

/* ============ Product cards ============ */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  margin-bottom: 1.1rem;
}

.tag-available {
  background: var(--ink);
  color: var(--white);
}

.tag-early {
  background: var(--white);
  color: var(--gray);
  border: 1px solid var(--gray);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: var(--track-sm);
}

.card-text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-strong);
  flex-grow: 1;
}

/* Ink text + orange underline: keeps AA contrast (orange text this small
   would fail 3:1 on light backgrounds) while carrying the accent. */
.card-link {
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link:hover {
  text-decoration-thickness: 3px;
}

/* ============ Cómo funciona ============ */

.how-diagram {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: var(--track-sm);
}

.step-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ============ Hosts ============ */

.hosts-inner {
  max-width: 720px;
}

.hosts-text {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 58ch;
}

/* ============ Por qué nosotros ============ */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: var(--track-sm);
}

.why-item-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ============ Contacto ============ */

.contact-inner {
  max-width: 640px;
}

.contact-sub {
  color: var(--gray);
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #D4D4D8;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
}

.form-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-strong);
  max-width: 52ch;
}

.contact-fallback {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray);
}

/* ============ Status note ============ */

/* Orange rule instead of a filled card: the accent budget for this section is
   already spent, and a left rule reads as an aside rather than a callout. */
.status-note {
  margin-top: 3.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  color: var(--gray-strong);
  max-width: 62ch;
}

.contact-fallback a {
  color: var(--ink);
  font-weight: 600;
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--surface);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.footer-meta a {
  color: var(--gray);
}

.footer-meta a:hover {
  color: var(--ink);
}

/* ============ Breakpoints ============ */

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  /* Two columns, not three: with four products a 2×2 grid puts the two
     available ones on the first row and the two early-access ones on the
     second, so the layout carries the availability split. */
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
