/* esaith.com — reference styles. Tokens first; change --accent to re-theme the hero. */
:root {
  --ink: #0B0C0F;
  --ink-2: #1D2027;
  --text-2: #3A3F4B;
  --muted: #4A505C;
  --muted-2: #5A606C;
  --line: #E2E4E9;
  --line-2: #ECEEF1;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --dark-text: #F4F5F7;
  --dark-muted: #C9CCD3;
  --dark-muted-2: #A3A8B3;
  --accent: #D4FF3A;          /* alternates from the design: #7CF3C8 #FFB547 #9DB4FF */
  --focus: #3D63FF;
  --radius-card: 24px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--text-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input, select, textarea, button { font: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--accent); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholders — remove the class once real content is in */
.ph { border: 1px dashed currentColor; border-radius: 6px; padding: 0 6px; opacity: .85; }
.ph--mono { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.placeholder-block { border: 1px dashed #9AA0AC; border-radius: 8px; padding: 8px 10px; color: var(--muted); }

/* Type helpers */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 10px; }
.eyebrow--dark { color: var(--dark-muted-2); }
.eyebrow-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); display: inline-block; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.label--lg { font-size: 13px; font-weight: 500; }
.label--dark { font-size: 12px; color: var(--dark-muted-2); }
.mono { font-family: var(--mono); font-size: 13px; }
.mono-sm { font-family: var(--mono); font-size: 12px; color: var(--dark-muted-2); }
.muted-sm { font-size: 13px; color: var(--muted-2); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--ink); font-weight: 600; }
.btn--accent:hover { color: var(--ink); filter: brightness(1.05); }
.btn--ghost { border: 1px solid rgba(255,255,255,.22); color: var(--dark-text); }
.btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ink { background: var(--ink); color: #fff; gap: 8px; }
.btn--ink:hover { color: #fff; background: #23262E; }

/* Dark band */
.dark { background-color: var(--ink); color: var(--dark-text);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; }
.dark--top { background-image: none; }

.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark-text); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav > a { color: var(--dark-muted); text-decoration: none; font-size: 15px; padding: 12px; }
.nav > a:hover { color: #fff; }
.lang { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; margin-left: 8px; }
.lang button { min-width: 44px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--dark-muted); }
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.accent { color: var(--accent); }
.hero-sub { max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.index-panel { flex: 1 1 380px; min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(20,22,27,.9); padding: 8px; }
.index-head { display: flex; justify-content: space-between; padding: 14px 16px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted-2); }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--dark-text); border-top: 1px solid rgba(255,255,255,.07); }
.index-row:hover { background: rgba(255,255,255,.04); color: #fff; }
.index-num { font-family: var(--mono); font-size: 12px; color: #8C919C; width: 20px; }
.index-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.index-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.index-short { font-size: 13px; color: var(--dark-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; display: inline-block; }
.dot--sm { width: 8px; height: 8px; border-radius: 2px; }

.stats-band { border-top: 1px solid rgba(255,255,255,.1); }
.stats { padding-block: 28px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.stat-l { font-size: 14px; color: var(--dark-muted-2); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { background: #E3F4E8; color: #136B2E; }
.badge--pilot { background: #FFF1CC; color: #7A4F00; }
.badge--soon { background: #E6ECFF; color: #2A3DA8; }
.badge--tbd { background: transparent; color: var(--muted); border: 1px dashed #8C919C; }
.badge--dark { font-size: 12px; padding: 4px 10px; }
.badge--dark.badge--live { background: rgba(74,222,128,.14); color: #86EFAC; }
.badge--dark.badge--pilot { background: rgba(251,191,36,.14); color: #FCD34D; }
.badge--dark.badge--soon { background: rgba(129,140,248,.18); color: #C7D2FE; }
.badge--dark.badge--tbd { color: var(--dark-muted); border-color: rgba(255,255,255,.35); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-intro { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.section-intro h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 720px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 500; cursor: pointer; background: transparent; color: var(--text-2); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* App cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; scroll-margin-top: 24px; }
.card[hidden] { display: none; }
.card.is-wide { grid-column: 1 / -1; }
.card-inner { display: flex; flex-wrap: wrap; height: 100%; }
.shot { flex: 1 1 440px; min-width: 0; min-height: 300px; position: relative; padding: clamp(20px, 3vw, 36px); display: flex; align-items: flex-end; justify-content: center;
  background-color: var(--tint); background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 12px); }
.shot img { width: 100%; max-width: 560px; border-radius: 12px 12px 0 0; box-shadow: 0 24px 48px -24px rgba(11,12,15,.35); }
.shot-label { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #2B2F38; background: rgba(255,255,255,.85); border: 1px dashed #8C919C; border-radius: 6px; padding: 4px 8px; }
.mock { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 1px 0 rgba(11,12,15,.06), 0 24px 48px -24px rgba(11,12,15,.35); display: flex; flex-direction: column; overflow: hidden; }
.mock-bar { height: 28px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #EEF0F3; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-body { flex: 1; display: flex; gap: 12px; padding: 14px; }
.mock-side { width: 22%; display: flex; flex-direction: column; gap: 8px; }
.mock-side b { height: 10px; border-radius: 4px; background: var(--c); }
.mock-side i { height: 8px; border-radius: 4px; background: #EEF0F3; }
.mock-side i.short { width: 70%; }
.mock-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.mock-grid i { border-radius: 6px; background: #F2F3F5; }
.mock-grid i.soft { background: var(--soft); }
.mock-grid i.wide { grid-column: span 2; }

.card-body { flex: 1 1 360px; min-width: 0; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text); }
.card-cat .dot { background: var(--c); }
.card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.card-title h3 { font-size: 32px; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.card-pitch { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; font-weight: 500; color: var(--ink-2); }
.card-desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.card-for { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; font-size: 15px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: #F0F1F4; color: #2B2F38; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card-note { font-size: 14px; color: var(--muted); }
.card-actions { display: flex; align-items: center; gap: 10px; }

/* About */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-inner { padding-block: clamp(64px, 9vw, 120px); display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); }
.about-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.portrait { aspect-ratio: 4 / 5; border-radius: 20px; background-color: #EEF0F3; background-image: repeating-linear-gradient(135deg, rgba(11,12,15,.06) 0 1px, transparent 1px 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.timeline li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.tl-v { font-size: 15px; font-weight: 500; }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-copy h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.about-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 640px; }
.about-copy > p.about-lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); max-width: 680px; }
.principles-wrap { padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.principle { padding: 20px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.principle-n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.principle-t { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.principle-d { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: var(--dark-text); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.contact-sub { font-size: 18px; line-height: 1.6; color: var(--dark-muted); max-width: 440px; }
.contact-email { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.contact-email a { color: var(--accent); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.contact-email .ph { border-color: rgba(255,255,255,.4); }
.form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--dark-muted); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: #15171C; color: var(--dark-text); font-size: 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Contact form: spam trap and submit status */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; line-height: 1.5; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); color: var(--dark-muted); }
.form-status.is-success { border-color: rgba(212,255,58,.45); color: var(--accent); }
.form-status.is-error { border-color: rgba(255,138,128,.5); color: #FFB4AB; }
.form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Legal pages (privacy.html, terms.html). The EN/ES toggle sets <html lang>; show only the matching article. */
html[lang="es"] [data-lang-only="en"], html:not([lang="es"]) [data-lang-only="es"] { display: none; }
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal-body { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.legal-body h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin-bottom: 8px; }
.legal-body h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; padding-top: 16px; }
.legal-body p, .legal-body li { font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.legal-body ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; }
.footer-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Side projects (the WoW addons): a quieter list below About, not cards beside the apps */
.section--small { padding-block: clamp(48px, 7vw, 88px) 0; }
.side-title { font-size: clamp(26px, 3vw, 36px) !important; }
.side-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.side-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.side-main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.side-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.side-pitch { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.side-meta { margin-top: 2px; }
.side-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }
