:root {
  --surface: #ffffff;
  --surface-soft: #f3f6ff;
  --text: #172033;
  --muted: #657089;
  --line: rgba(24, 32, 51, 0.08);
  --brand: #1f6fdb;
  --brand-2: #0f8a5f;
  --shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: #e9eef9;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

.main-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff9f2 0%, #f7f1e8 100%);
  padding-bottom: calc(16px + var(--safe-bottom));
}

.shell-banner {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  padding: 10px 14px calc(10px + var(--safe-top));
  font-weight: 600;
}

.shell-banner strong { font-weight: 800; }

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-mark {
  font-size: 14px;
  font-weight: 950;
  color: #1c2a4f;
  letter-spacing: -0.02em;
}

.top-nav a {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}

.hero {
  position: relative;
  margin: 10px 12px 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a4f8c 0%, #1f6fdb 55%, #0f8a5f 100%);
  padding: 22px 18px 20px;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-badge .bdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.hero-title {
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.03em;
  max-width: 320px;
}

.hero-sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 340px;
}

.content-stack {
  padding: 10px 12px 0;
  display: grid;
  gap: 8px;
}

.guide-note {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
  box-shadow: var(--shadow);
}

.guide-note strong { color: #1e3a5f; }

.story-card,
.mini-stats,
.trust-card,
.guide-card,
.topic-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.story-card,
.guide-card,
.topic-card { padding: 14px; }

.story-eyebrow,
.block-title {
  font-size: 10px;
  font-weight: 900;
  color: #8b95ab;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.story-title,
.section-h2 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 950;
  margin-top: 6px;
  color: #1c2a4f;
}

.story-text,
.section-lead {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 6px;
}

.stat { text-align: center; padding: 4px 2px; }

.stat-num {
  font-size: 16px;
  font-weight: 950;
  color: #1f3563;
}

.stat-lbl {
  font-size: 10px;
  line-height: 1.35;
  color: #8590a9;
  font-weight: 800;
  margin-top: 3px;
}

.trust-card { padding: 12px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.trust-pill {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(31, 111, 219, 0.08);
}

.trust-pill strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #1c2a4f;
}

.trust-pill span {
  display: block;
  font-size: 10px;
  color: #7a86a1;
  margin-top: 3px;
  font-weight: 700;
  line-height: 1.35;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.topic-tile {
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(31, 111, 219, 0.08);
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1c2a4f;
  line-height: 1.4;
  text-align: center;
}

.guide-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.guide-item {
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(31, 111, 219, 0.08);
  padding: 12px;
}

.guide-item h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
  color: #1c2a4f;
}

.guide-item p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.guide-item ul {
  margin-top: 6px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.guide-item li { margin-bottom: 4px; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-item:first-child { border-top: 0; padding-top: 4px; }

.faq-q {
  font-size: 14px;
  font-weight: 900;
  color: #1c2a4f;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-a a { color: var(--brand); font-weight: 700; }

.site-footer {
  padding: 16px 16px calc(10px + var(--safe-bottom));
  text-align: center;
  font-size: 10px;
  line-height: 1.65;
  color: #a8afbf;
}

.site-footer a {
  color: #657089;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 700;
}

.lang-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lang-btn {
  min-width: 44px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e0e5ef;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  color: #273869;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
}

.en-inline, .es-inline { display: none; }
html[lang="en"] .en-inline,
html[lang="es"] .es-inline { display: block; }
html[lang="en"] span.en-inline,
html[lang="es"] span.es-inline { display: inline; }
