/* Valores tomados de jalo-website/docs/design-system.md. Los estados
   "degraded" y "down" no existen en la landing: son una extensión mínima
   (amarillo de fila activa y un coral derivado de #f3ae89). */

@font-face {
  font-family: 'Delius Swash Caps';
  src: url('/fonts/delius-swash-caps-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.site {
  --font-display: 'Delius Swash Caps', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito Sans', Arial, sans-serif;
  --paper: #ffffff;
  --ink: #20221e;
  --muted: #66685f;
  --yellow: #ffe500;
  --olive: #777d3c;
  --coral: #c8653f;
  /* Superficies y líneas que cambian con el tema. */
  --section: #f7f7f7;
  --line: #20221e20;
  --line-soft: #20221e18;
  --line-faint: #20221e0c;
  --empty: #20221e14;
  --desc: #62645b;
  --accent: #626b42;
  --halo: #d9dfb350;
  --ok-bg: #dae0bd;
  --bar-up: #748659;
  --pending: #cdcec2;
  --header-bg: rgba(255, 255, 255, 0.94);
  --btn-bg: #20221e;
  --btn-fg: #ffffff;
  --btn-hover: #3f4433;
  --footer: #23261f;
  color-scheme: light;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
/* Sin especificidad: los márgenes de cada pieza ganan sobre el reset. */
:where(.site) :where(h1, h2, h3, p, ol) {
  margin: 0;
}
.site a {
  color: inherit;
  text-decoration: none;
}
.site button {
  font: inherit;
  color: inherit;
}
.site ::selection {
  background: var(--yellow);
  color: var(--ink);
}
/* Tema oscuro: sigue al sistema salvo que el visitante elija uno
   (data-theme en <html>). Derivado de la tinta y el footer de la landing. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site {
  --paper: #1a1c17;
  --ink: #f1f0e8;
  --muted: #b3b6a8;
  --olive: #b9bf73;
  --section: #20221e;
  --line: #ffffff1f;
  --line-soft: #ffffff1a;
  --line-faint: #ffffff10;
  --empty: #ffffff17;
  --desc: #bcc0b2;
  --accent: #c9d08f;
  --halo: #d9dfb320;
  --ok-bg: #3c4429;
  --bar-up: #8c9c68;
  --pending: #4a4c44;
  --header-bg: rgba(26, 28, 23, 0.92);
  --btn-bg: #ffe500;
  --btn-fg: #20221e;
  --btn-hover: #ecd400;
  --footer: #121410;
  color-scheme: dark;
  }
}
:root[data-theme='dark'] .site {
  --paper: #1a1c17;
  --ink: #f1f0e8;
  --muted: #b3b6a8;
  --olive: #b9bf73;
  --section: #20221e;
  --line: #ffffff1f;
  --line-soft: #ffffff1a;
  --line-faint: #ffffff10;
  --empty: #ffffff17;
  --desc: #bcc0b2;
  --accent: #c9d08f;
  --halo: #d9dfb320;
  --ok-bg: #3c4429;
  --bar-up: #8c9c68;
  --pending: #4a4c44;
  --header-bg: rgba(26, 28, 23, 0.92);
  --btn-bg: #ffe500;
  --btn-fg: #20221e;
  --btn-hover: #ecd400;
  --footer: #121410;
  color-scheme: dark;
}

.site :focus-visible {
  outline: 3px solid #6050bd;
  outline-offset: 5px;
}

.container {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}

.skipLink {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1400;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}
.skipLink:focus {
  top: 12px;
}

/* Marca: el wordmark original pintado con currentColor vía máscara. */
.wordmark {
  display: block;
  width: 76%;
  height: 48%;
  background: currentColor;
  -webkit-mask: url('/wordmark.svg') center / contain no-repeat;
  mask: url('/wordmark.svg') center / contain no-repeat;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.headerInner {
  width: min(1336px, calc(100% - 80px));
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--yellow);
  display: grid;
  place-items: center;
}
.headerLabel {
  font-family: var(--font-display);
  font-size: 23px;
}

/* Botones y enlaces */
.button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 17px 25px;
  border-radius: 16px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.button:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--empty);
}
.button:hover svg {
  transform: translate(2px, -2px);
}
.themeToggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.themeToggle:hover {
  border-color: var(--ink);
}
.themeToggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.themeToggle .sun,
.site[data-dark] .themeToggle .moon {
  display: none;
}
.site[data-dark] .themeToggle .sun {
  display: block;
}
.buttonSmall {
  padding: 12px 19px;
  border-radius: 13px;
  gap: 23px;
  font-size: 14px;
}
.textLink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.textLink svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.textLink:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.textLink[aria-busy='true'] svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero */
.hero {
  position: relative;
  padding-block: 74px 64px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 1.3px;
  font-weight: 600;
}
.spark {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}
.hero h1 {
  margin-top: 23px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 6.7vw, 94px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.highlight {
  position: relative;
  display: inline-block;
  padding: 0 8px 5px 0;
  isolation: isolate;
}
.highlight::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 20%;
  bottom: 4%;
  left: -7px;
  right: -10px;
  background: var(--yellow);
  border-radius: 6px 10px 6px 8px;
  transform: rotate(-2deg);
}
.highlight svg {
  position: absolute;
  left: -4px;
  bottom: -9px;
  width: 102%;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.heroDescription {
  max-width: 470px;
  margin-top: 31px;
  color: var(--desc);
  font-size: 16px;
  line-height: 1.8;
}
.heroSpark {
  position: absolute;
  right: 4%;
  top: 92px;
  width: 123px;
  height: 123px;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(9deg);
}

/* Resumen: banda de color con borde de tinta, como la franja de frases. */
.summary {
  background: var(--yellow);
  border-block: 1px solid #20221e;
  transition: background 0.3s;
}
.summary[data-state='degraded'] {
  background: #fff3a6;
}
.summary[data-state='partial_outage'],
.summary[data-state='major_outage'] {
  background: #f3ae89;
}
.summary[data-state='loading'],
.summary[data-state='unknown'] {
  background: var(--section);
}
.summaryInner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-block: 21px;
}
.summaryIcon {
  flex: none;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid #20221e;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.summary,
.highlight,
.site .badge,
.envTag,
.service[data-state='degraded'] .pill {
  color: #20221e;
}
.summaryText {
  font-family: var(--font-display);
  font-size: 23px;
}
.summaryMeta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

/* Servicios: mismo lenguaje que la sección "Cómo funciona". */
.services {
  background: var(--section);
  border-bottom: 1px solid var(--line-faint);
  padding-block: 100px;
}
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.services h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.1vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.handAccent {
  color: var(--accent);
}
.serviceList {
  list-style: none;
  padding: 0;
  margin-top: 36px;
}
.service {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 17px;
  row-gap: 14px;
  padding: 23px 12px 23px 0;
  border-top: 1px solid var(--line);
  animation: enter 0.3s ease both;
}
.service:last-child {
  border-bottom: 1px solid var(--line);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--halo);
}
.dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--olive);
}
.service[data-state='degraded'] .dot {
  background: #fff3a6;
}
.service[data-state='degraded'] .dot::before {
  background: #e8df57;
  box-shadow: 0 0 0 1px #20221e3c;
}
.service[data-state='down'] .dot {
  background: #f3ae8955;
}
.service[data-state='down'] .dot::before {
  background: var(--coral);
}
.service[data-state='loading'] .dot::before {
  background: var(--pending);
}
.serviceName {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.25;
}
.latency {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pill {
  min-width: 112px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.service[data-state='up'] .pill {
  background: var(--ok-bg);
  border-color: transparent;
}
.service[data-state='degraded'] .pill {
  background: #fbf9de;
  border-color: #e8df57;
}
.service[data-state='down'] .pill {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
/* Barras de 90 días (misma idea que la página de Foundathyon). */
.bars {
  grid-column: 2 / -1;
}
.barRow {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 32px;
}
.bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: var(--bar-up);
  transition: opacity 0.2s;
}
.bar:hover {
  opacity: 0.65;
}
.bar[data-status='degraded'],
.legend [data-status='degraded'] {
  background: #e8df57;
}
.bar[data-status='down'],
.legend [data-status='down'] {
  background: var(--coral);
}
.bar[data-status='nodata'],
.legend [data-status='nodata'] {
  background: var(--empty);
}
.barLegend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.barUptime {
  color: var(--ink);
  font-weight: 600;
}
.mobileOnly {
  display: none;
}
.sectionNote {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 0;
  padding: 23px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend span {
  width: 10px;
  height: 18px;
  border-radius: 2px;
  background: var(--bar-up);
}
.envTag {
  padding: 7px 11px;
  border-radius: 9px;
  background: #c7b9ed;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.listFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 29px;
}
.checkedAt {
  color: var(--muted);
  font-size: 12px;
}

/* Footer */
.footer {
  background: var(--footer);
  color: #ffffff;
  padding-block: 44px 23px;
}
.footerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 32px;
}
.wordmarkLight {
  width: 108px;
  height: 58px;
  color: var(--yellow);
}
.footerTagline {
  color: #bcc0b2;
  font-size: 14px;
}
.backTop {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.backTop span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff40;
  display: grid;
  place-items: center;
}
.backTop svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.backTop:hover {
  color: #f6f5ef;
}
.footerBottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 21px;
  border-top: 1px solid #ffffff26;
  color: #b8bcae;
  font-size: 11px;
}
.heart {
  color: var(--yellow);
  padding-left: 5px;
}

@media (max-width: 1100px) {
  .container {
    width: calc(100% - 80px);
  }
  .headerInner {
    width: calc(100% - 64px);
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 48px);
  }
  .headerInner {
    width: calc(100% - 40px);
    height: 76px;
    gap: 18px;
  }
  .badge {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }
  .hero {
    padding-block: 42px 48px;
  }
  .heroSpark {
    width: 64px;
    height: 64px;
    top: 34px;
    right: 0;
  }
  .summaryInner {
    flex-wrap: wrap;
    padding-block: 17px;
  }
  .summaryMeta {
    margin-left: 56px;
  }
  .services {
    padding-block: 64px;
  }
  .sectionHead {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .serviceList {
    margin-top: 24px;
  }
  .service {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    padding-block: 20px;
  }
  .latency {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  .pill {
    min-width: 0;
  }
  .bars {
    grid-column: 1 / -1;
  }
  .barRow {
    gap: 1px;
  }
  .desktopOnly {
    display: none;
  }
  .mobileOnly {
    display: inline;
  }
  .footerTop {
    flex-wrap: wrap;
    gap: 24px;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 36px);
  }
  .headerLabel {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site *,
  .site *::before,
  .site *::after {
    animation: none !important;
    transition: none !important;
  }
}
