/* Heriquity landing — tokens derived from mobile/src/theme/colors.ts */
:root {
  --bg: #0f111a;
  --bg: oklch(0.17 0.018 278);
  --bg-raised: #161824;
  --bg-raised: oklch(0.21 0.02 278);
  --line: #2c2b36;
  --line: oklch(0.31 0.018 278);
  --text: #f5f6f8;
  --text: oklch(0.965 0.005 278);
  --text-2: #c8ccd6;
  --text-2: oklch(0.82 0.014 278);
  --muted: #9499aa;
  --muted: oklch(0.66 0.02 278);
  --accent: #4a6cf7;
  --accent: oklch(0.6 0.2 270);
  --accent-strong: #5c6bfc;
  --accent-strong: oklch(0.65 0.19 272);
  --accent-ink: #eef2ff;
  --success: #35d778;

  /* Tipografía del sistema: Inter 400/500/600/700 (design/design-system.md) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page-x: clamp(1.25rem, 5vw, 4.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;      /* body 16 */
  line-height: 1.5;     /* 24 */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--page-x);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }

.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;  /* bodySmall 14 medium */
  line-height: 1.25rem;
  font-weight: 500;
}
.lang a {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--text); background: var(--bg-raised); }

/* ── Hero ───────────────────────────────────────────────── */
main { flex: 1; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vh, 7rem) var(--page-x) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

.hero-copy { max-width: 46rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;  /* bodySmall 14 medium */
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 oklch(0.65 0.19 272 / 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.65 0.19 272 / 0.55); }
  70%  { box-shadow: 0 0 0 10px oklch(0.65 0.19 272 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.65 0.19 272 / 0); }
}

/* h1 del sistema: 32/40 Bold en móvil; en escritorio escala fluida manteniendo la proporción 1.25 */
h1 {
  margin: 0 0 1.5rem;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent-strong); }

.lede {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  font-size: 1.125rem;  /* bodyLarge 18/28 */
  line-height: 1.75rem;
  color: var(--text-2);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #3842fb, #5c6bfc);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.12) inset, 0 8px 24px -12px oklch(0.6 0.2 270 / 0.8);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.12) inset, 0 12px 28px -12px oklch(0.6 0.2 270 / 0.95); }
.btn:active { transform: translateY(0); }

.stores {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;  /* bodySmall */
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted);
}
.stores svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.9; }

/* Large monogram, right column */
.hero-mark {
  justify-self: end;
  align-self: end;
  height: min(22rem, 40vh);
  width: auto;
}
@media (max-width: 899px) {
  .hero-mark { display: none; }
}

/* ── Pillars ────────────────────────────────────────────── */
.pillars {
  padding: 0 var(--page-x) clamp(4rem, 10vh, 7rem);
}
.pillars-inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .pillars-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.pillars h2 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;    /* h2 24/32 */
  line-height: 2rem;
  letter-spacing: -0.02em;
  max-width: 18rem;
}

.pillar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.pillar-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.pillar-list li:first-child { padding-top: 0; }
.pillar-list li:last-child { border-bottom: 0; }
.pillar-list .num {
  font-weight: 600;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.pillar-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;   /* h3 20/28 */
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pillar-list p {
  margin: 0;
  color: var(--text-2);
  max-width: 34rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--page-x) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;  /* bodySmall */
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ── Legal pages ────────────────────────────────────────── */
.legal {
  padding: clamp(2rem, 6vh, 4.5rem) var(--page-x) clamp(4rem, 10vh, 7rem);
}
.legal-inner { max-width: 68ch; }
.legal .kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;   /* caption 12/16 */
  line-height: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.legal h1 {
  font-size: 2rem;      /* h1 32/40 */
  line-height: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal .meta {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;  /* bodySmall */
  line-height: 1.25rem;
  font-weight: 500;
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;   /* h3 20/28 */
  line-height: 1.75rem;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-strong); }
.legal .callout {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}
.legal .callout p { margin: 0; }
.legal .translation-note {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
}

/* ── Entrance ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 700ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
