/* ============================================================
   Lattice Agent for Dom — shared site styles
   Pure black, monochrome, Inter, sentence case, extreme minimalism.
   Loaded by every page. Font + token source of truth.
   ============================================================ */

@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-600.woff2') format('woff2'); }

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

:root {
  --bg: #000;
  --fg: #fff;
  --meta: #8e8e8e;
  --dim: #6a6a6a;
  --faint: #4a4a4a;
  --pill-dark: #161616;
  --hairline: rgba(255,255,255,0.12);
  --hairline-soft: rgba(255,255,255,0.08);
  /* media panels: a subtle top-lit gradient so they never read as flat black boxes */
  --panel: linear-gradient(165deg, #18191b 0%, #101113 46%, #0a0b0c 100%);
  --panel-quiet: linear-gradient(165deg, #141517 0%, #0c0d0f 100%);
  --ink-72: rgba(255,255,255,0.72);
  --ink-86: rgba(255,255,255,0.86);
  --pill-solid-ink: #000;
  --pill-solid-hover: #eee;
  --header-bg: rgba(0,0,0,0.72);
  /* benchmark bars */
  --track: rgba(255,255,255,0.04);
  --bar-weak: rgba(255,255,255,0.16);
  --bar-strong: rgba(255,255,255,0.30);
}

/* Light theme — inner pages. The homepage stays the dark trailer.
   Dark media panels (.media/.glyph/.win) keep their dark tokens on purpose:
   the product is dark graphite, so dark windows on white read as screenshots. */
:root[data-theme="light"] {
  --bg: #fff;
  --fg: #0d0d0d;
  --meta: #6e6e6e;
  --dim: #757575;
  --faint: #a3a3a3;
  --pill-dark: #f2f2f2;
  --hairline: rgba(0,0,0,0.10);
  --hairline-soft: rgba(0,0,0,0.06);
  --ink-72: rgba(0,0,0,0.72);
  --ink-86: rgba(0,0,0,0.86);
  --pill-solid-ink: #fff;
  --pill-solid-hover: #2a2a2a;
  --header-bg: rgba(255,255,255,0.78);
  --track: rgba(0,0,0,0.05);
  --bar-weak: rgba(0,0,0,0.32);
  --bar-strong: rgba(0,0,0,0.55);
}
/* panels stay dark in light theme (see note above) */
:root[data-theme="light"] .media,
:root[data-theme="light"] .glyph,
:root[data-theme="light"] .doc-thumb {
  --hairline: rgba(255,255,255,0.12);
  --hairline-soft: rgba(255,255,255,0.08);
  --meta: #8e8e8e;
  --dim: #6a6a6a;
  --faint: #4a4a4a;
  --ink-72: rgba(255,255,255,0.72);
  --ink-86: rgba(255,255,255,0.86);
  color: #fff;
}

html, body { background: var(--bg); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  line-height: 1.5;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--meta); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- motion ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.rise  { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.rise2 { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.06s both; }
.rise3 { animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
@keyframes shimmer { 0% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
@keyframes blink   { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pulseGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise2, .rise3 { animation: none !important; }
  .shimmer-line::after, .caret, .pulse { animation: none !important; }
}

/* ---------- header / nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
}
:root[data-theme="light"] .site-header { border-bottom-color: var(--hairline-soft); }
.brand { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); display: inline-flex; align-items: center; }
/* "for Dom" — the bespoke-edition mark: Pro-style teal on a soft green blur */
.brand-fordom {
  margin-left: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  padding: 4px 9px 5px; border-radius: 7px;
  color: #0f7a64;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(115deg, #cfe39a 0%, #bfe0bf 46%, #8fd2bd 78%, #6ec6ae 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.16);
}
.brand:hover .brand-fordom { color: #0f7a64; }
/* green "$0 / free first month" tag — shares the for-Dom look */
.tag-free {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  color: #0f7a64; padding: 5px 11px 6px; border-radius: 8px;
  background:
    radial-gradient(circle at 28% 12%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(115deg, #cfe39a 0%, #bfe0bf 46%, #8fd2bd 78%, #6ec6ae 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.14);
}
.nav-left { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav a { font-size: 15px; color: var(--meta); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.link-quiet { font-size: 15px; color: var(--meta); padding: 8px 14px; }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; padding: 12px 22px; border-radius: 999px; font-weight: 500;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-solid { background: var(--fg); color: var(--pill-solid-ink); }
.pill-solid:hover { color: var(--pill-solid-ink); background: var(--pill-solid-hover); }
.pill-ghost { background: var(--pill-dark); border: 1px solid var(--hairline); color: var(--fg); }
.pill-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.28); }
.pill-sm { padding: 9px 18px; font-size: 15px; }
.pill-lg { padding: 14px 30px; font-size: 16px; }
.arrow { color: var(--meta); }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.wrap-narrow { max-width: 720px; margin: 0 auto; width: 100%; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font-size: 14px; color: var(--meta); letter-spacing: -0.01em; }
.lede { font-weight: 400; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink-72); }
.body { font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink-72); }

.h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.12; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.h2-sm { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; }

/* two-column feature rows */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}

/* ============================================================
   MEDIA / VISUALS  (the thing that used to be black boxes)
   Every panel is a top-lit gradient, never flat black.
   ============================================================ */
.media {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 60px -30px rgba(0,0,0,0.9);
}
.media::before { /* soft top glow */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.media-quiet { background: var(--panel-quiet); }

/* mock product window */
.win { position: absolute; inset: clamp(14px, 3.4%, 30px); display: flex; flex-direction: column;
  border: 1px solid var(--hairline-soft); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.015); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--hairline-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.20); }
.win-title { margin-left: 10px; font-size: 12px; color: var(--meta); }
.win-body { flex: 1; display: flex; min-height: 0; }
.win-rail { width: 30%; max-width: 150px; border-right: 1px solid var(--hairline-soft); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.rail-item { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.09); }
.rail-item.on { background: rgba(255,255,255,0.55); }
.win-main { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }

/* task rows: line bars, checked / active */
.task { display: flex; align-items: center; gap: 10px; }
.task .mark { width: 15px; height: 15px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; }
.task .mark.done { background: rgba(255,255,255,0.92); color: #000; }
.task .mark.now  { border: 1.5px solid rgba(255,255,255,0.5); }
.task .bar { height: 8px; border-radius: 4px; }
.bar-done { background: rgba(255,255,255,0.22); }
.bar-now  { background: rgba(255,255,255,0.70); position: relative; overflow: hidden; }
.shimmer-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: shimmer 1.9s linear infinite; mix-blend-mode: overlay;
}
.caret { display: inline-block; width: 2px; height: 1em; background: #fff; margin-left: 2px; animation: blink 1.1s step-end infinite; vertical-align: -2px; }

/* result card inside window */
.mini-card { border: 1px solid var(--hairline-soft); border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 8px; }
.mini-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.14); }

/* node graph (memoria) */
.graph { position: absolute; inset: 0; }
.node-dot { fill: #fff; }
.node-line { stroke: rgba(255,255,255,0.22); stroke-width: 0.5; }
.node-label { fill: rgba(255,255,255,0.62); font-size: 4px; font-family: 'Inter', sans-serif; }

/* competitor board (campo) */
.board { position: absolute; inset: clamp(16px, 4%, 34px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.board-row { display: flex; align-items: center; gap: 10px; }
.board-row .who { width: 30%; max-width: 84px; font-size: 11px; color: var(--meta); flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .track { flex: 1; height: 12px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.board-row .fill { height: 100%; background: rgba(255,255,255,0.22); }
.board-row.you .who { color: #fff; font-weight: 500; }
.board-row.you .track { background: rgba(255,255,255,0.10); }
.board-row.you .fill { background: #fff; }

/* capability glyph panel (small, brighter) */
.glyph { background: var(--panel-quiet); border: 1px solid var(--hairline); border-radius: 14px; position: relative; overflow: hidden; }
.glyph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,0.08), transparent 60%); }

/* docs card thumb */
.doc-thumb { width: 100%; aspect-ratio: 16/10; border: 1px solid var(--hairline); border-radius: 16px; position: relative; overflow: hidden; }
.doc-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 20% 0%, rgba(255,255,255,0.10), transparent 55%); }

/* ---------- weighted hover (tilt.js companions) ---------- */
.tiltable { will-change: transform; transition: box-shadow 0.45s cubic-bezier(0.22,1,0.36,1); }
.media.is-live { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 34px 80px -30px rgba(0,0,0,0.55); }
:root[data-theme="light"] .media.is-live { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 70px -28px rgba(0,0,0,0.35); }
.glyph.is-live, .doc-thumb.is-live { box-shadow: 0 18px 44px -20px rgba(0,0,0,0.45); }

/* subtle lift for content cards (CSS-only) */
.cap-grid > div, .cap-grid > a {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease;
}
.cap-grid > div:hover, .cap-grid > a:hover {
  transform: translateY(-3px);
}
:root[data-theme="light"] .cap-grid > div:hover {
  box-shadow: 0 16px 40px -22px rgba(0,0,0,0.28);
  border-color: rgba(0,0,0,0.18) !important;
}
@media (prefers-reduced-motion: reduce) {
  .tiltable { transition: none; }
  .cap-grid > div, .cap-grid > a { transition: none; }
  .cap-grid > div:hover, .cap-grid > a:hover { transform: none; }
}

/* ---------- IA skeleton (inner pages) ---------- */
/* Page opener: left-aligned H1 + lede, the same on every inner page */
.page-opener {
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: clamp(48px,9vh,110px) clamp(20px,5vw,56px) clamp(36px,6vh,72px);
}
.page-opener .h1 { max-width: 17ch; margin-bottom: 22px; }
.page-opener .lede { max-width: 52ch; }

/* Alternating two-col feature row */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.row + .row { margin-top: clamp(64px,11vh,128px); }
.row h2 { font-size: clamp(26px,3vw,38px); line-height: 1.16; margin-bottom: 14px; }
.row .body { max-width: 46ch; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row .media-first { order: -1; }
}

/* Pre-footer CTA band — identical on every inner page */
.cta-band {
  border-top: 1px solid var(--hairline);
  padding: clamp(64px,12vh,140px) clamp(20px,5vw,56px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cta-band h2 { font-size: clamp(28px,3.6vw,44px); line-height: 1.14; max-width: 20ch; margin-bottom: 16px; }
.cta-band .lede { margin-bottom: 32px; }

/* Wayfinding: "Siguiente →" */
.next-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: clamp(28px,4vh,44px) clamp(20px,5vw,56px);
  border-top: 1px solid var(--hairline-soft);
  font-size: 15px;
}
.next-link .nl-tag { color: var(--meta); }
.next-link a { font-weight: 500; font-size: clamp(17px,2vw,20px); letter-spacing: -0.01em; }
.next-link a .arrow { margin-left: 6px; }

/* Docs index (TOC-style, no fake link affordance) */
.docs-section {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(20px,4vw,64px);
  padding: clamp(28px,5vh,44px) 0;
  border-top: 1px solid var(--hairline);
}
.docs-section > h2 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; padding-top: 2px; }
.doc-row { display: flex; align-items: baseline; gap: 18px; padding: 17px 0; border-top: 1px solid var(--hairline-soft); }
.doc-row:first-child { border-top: 0; padding-top: 0; }
.doc-row .dr-main { flex: 1; min-width: 0; }
.doc-row .dr-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.doc-row .dr-desc { font-size: 15px; font-weight: 400; color: var(--meta); line-height: 1.55; max-width: 58ch; }
.chip {
  flex: none; font-size: 12px; font-weight: 500; color: var(--meta);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
@media (max-width: 700px) {
  .docs-section { grid-template-columns: 1fr; gap: 14px; }
  .doc-row { flex-wrap: wrap; }
}
/* doc-row that links to a real, readable article */
.doc-row.live { align-items: center; }
.doc-row.live .dr-title a { display: inline-flex; align-items: center; gap: 7px; }
.doc-row.live .dr-title a .arrow { color: var(--meta); transition: transform .18s ease; }
.doc-row.live:hover .dr-title a .arrow { transform: translate(2px,-2px); }
.chip.read { color: var(--fg); border-color: var(--hairline); }

/* ---------- long-form doc article (docs-*.html) ---------- */
.doc-wrap { max-width: 724px; margin: 0 auto; width: 100%; padding: clamp(40px,7vh,72px) clamp(20px,5vw,56px); }
.doc-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--meta); margin-bottom: clamp(30px,5vh,46px); }
.doc-back:hover { color: var(--fg); }
.doc-eyebrow { font-size: 13px; color: var(--meta); letter-spacing: 0.01em; margin-bottom: 18px; display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.doc-eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.doc-title { font-size: clamp(32px,5vw,50px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
.doc-standfirst { font-weight: 400; font-size: clamp(18px,2vw,21px); line-height: 1.55; color: var(--ink-72); margin-bottom: clamp(38px,6vh,58px); }
.doc-body { font-weight: 400; }
.doc-body > * + * { margin-top: 22px; }
.doc-body p { font-size: 17px; line-height: 1.72; color: var(--ink-86); }
.doc-body h2 { font-size: clamp(22px,2.6vw,29px); line-height: 1.2; margin-top: clamp(46px,6vh,66px); margin-bottom: 2px; letter-spacing: -0.02em; }
.doc-body h3 { font-size: 19px; margin-top: 34px; letter-spacing: -0.01em; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { font-size: 17px; line-height: 1.7; color: var(--ink-86); margin-top: 8px; }
.doc-body li::marker { color: var(--faint); }
.doc-body strong { font-weight: 600; color: var(--fg); }
.doc-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.doc-body a:hover { text-decoration-color: currentColor; color: var(--fg); }
.doc-body blockquote { border-left: 2px solid var(--fg); padding-left: 22px; margin-left: 0; font-size: clamp(19px,2.2vw,23px); line-height: 1.5; letter-spacing: -0.015em; color: var(--fg); }
.doc-body hr { border: 0; border-top: 1px solid var(--hairline); margin: clamp(42px,6vh,60px) 0; }
.doc-body code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 0.88em; background: var(--pill-dark); border: 1px solid var(--hairline-soft); border-radius: 5px; padding: 2px 6px; }
.doc-callout { border: 1px solid var(--hairline); border-radius: 16px; padding: clamp(22px,3vw,30px); background: var(--pill-dark); display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,3vw,28px); }
.doc-callout .k { font-size: clamp(26px,3.4vw,38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.doc-callout .v { font-size: 13.5px; color: var(--meta); margin-top: 9px; line-height: 1.4; }
.doc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 440px; }
.doc-table th, .doc-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline-soft); }
.doc-table thead th { font-weight: 500; color: var(--meta); font-size: 13px; border-bottom-color: var(--hairline); }
.doc-table td:first-child, .doc-table th:first-child { color: var(--ink-86); }
.doc-table .tw { color: var(--fg); font-weight: 600; }
@media (max-width: 560px) {
  .doc-callout { grid-template-columns: 1fr; gap: 16px; }
}

/* Benchmark bars (theme-aware) */
.bh-track { flex: 1; height: 32px; background: var(--track); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.bh-track.empty { border-style: dashed; display: flex; align-items: center; padding-left: 12px; }
.bh-fill { height: 100%; }
.bh-fill.weak { background: var(--bar-weak); }
.bh-fill.strong { background: var(--bar-strong); }
.bh-lattice { flex: 1; height: 32px; background: var(--fg); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; }
.bh-lattice span { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px; color: var(--pill-solid-ink); letter-spacing: 2px; }

/* ---------- waitlist form ---------- */
#lista { scroll-margin-top: 92px; }
.waitlist {
  position: relative;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; width: 100%; max-width: 480px; margin: 0 auto;
}
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--fg);
  background: var(--pill-dark); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 14px 22px;
  transition: border-color .18s ease;
}
.waitlist input[type="email"]::placeholder { color: var(--dim); font-weight: 400; }
.waitlist input[type="email"]:focus { outline: none; border-color: rgba(255,255,255,0.42); }
.waitlist button { border: 0; cursor: pointer; font: inherit; white-space: nowrap; }
.waitlist button[disabled] { opacity: .55; cursor: default; transform: none; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { font-size: 14px; color: var(--meta); margin-top: 18px; min-height: 1.2em; text-align: center; }
.wl-msg.err { color: #d38b8b; }
.wl-msg.wl-done { font-size: clamp(17px, 2vw, 20px); font-weight: 400; color: var(--ink-72); }

/* ---------- phase timeline (estado) ---------- */
.timeline { display: flex; align-items: flex-start; gap: 0; max-width: 780px; margin: 0 auto; width: 100%; }
.tl-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 6px; }
.tl-step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--hairline); }
.tl-step:first-child::before { display: none; }
.tl-step.done::before, .tl-step.now::before { background: var(--bar-strong); }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hairline); background: var(--bg); position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--pill-solid-ink); }
.tl-step.done .tl-dot { background: var(--fg); border-color: var(--fg); }
.tl-step.now .tl-dot { border-color: var(--fg); box-shadow: 0 0 0 4px rgba(255,255,255,0.10); }
.tl-step.now .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.tl-label { margin-top: 13px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.tl-step.future .tl-label { color: var(--meta); font-weight: 400; }
.tl-sub { font-size: 12px; color: var(--dim); margin-top: 3px; line-height: 1.4; }
@media (max-width: 560px) {
  .timeline { flex-direction: column; gap: 22px; max-width: 300px; }
  .tl-step { flex-direction: row; gap: 14px; text-align: left; padding: 0; }
  .tl-step::before { top: -22px; left: 9px; width: 2px; height: 22px; }
  .tl-body { display: flex; flex-direction: column; }
  .tl-label { margin-top: 0; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-top: auto;
}
.site-footer .nav a { font-size: 15px; }
.copy { font-size: 13px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .media-first { order: 2; }
  .docs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr !important; }
  .docs-grid { grid-template-columns: 1fr !important; }
  .nav-hide { display: none !important; }
  .hh-label { width: 116px !important; font-size: 13px !important; }
}

/* ============================================================
   MOBILE: nav menu (hamburger) + "open on desktop" notice
   ============================================================ */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; color: var(--fg); padding: 0; }
@media (max-width: 560px) {
  /* top nav becomes a hamburger → dropdown so every section is reachable */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 2px; border-radius: 10px; }
  .nav-toggle:active { background: var(--pill-dark); }
  .site-header.menu-open .nav-hide {
    display: flex !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 22px 44px -22px rgba(0,0,0,0.55);
    padding: 4px clamp(20px,5vw,56px) 16px;
  }
  .site-header.menu-open .nav-hide a { padding: 15px 2px; font-size: 18px; color: var(--fg); border-top: 1px solid var(--hairline-soft); letter-spacing: -0.01em; }
  .site-header.menu-open .nav-hide a[aria-current="page"] { color: var(--meta); }
  /* a touch more density on phones */
  .page-opener { padding-top: 40px; padding-bottom: 28px; }
  .cta-band { padding-top: 72px; padding-bottom: 72px; }
  .site-footer { justify-content: flex-start; gap: 16px 28px; }
}

/* "mejor en computadora" notice — mobile only, once per session (JS-injected) */
.mobile-notice {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  background: #141414; color: #fff;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  box-shadow: 0 16px 44px -10px rgba(0,0,0,0.65);
  padding: 15px 15px 16px 16px;
  transform: translateY(160%); opacity: 0;
  transition: transform .5s cubic-bezier(0.22,1,0.36,1), opacity .4s ease;
}
.mobile-notice.show { transform: translateY(0); opacity: 1; }
.mn-inner { display: flex; align-items: stretch; gap: 13px; }
.mn-bar { flex: none; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #cfe39a, #6ec6ae); }
.mn-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; align-self: center; }
.mn-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mn-text span { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.6); }
.mn-close { flex: none; align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .mobile-notice { transition: opacity .3s ease; transform: none; } }
