/* ideal invests — site styles, built on the Ideal Design System v1.0 tokens */

:root {
  --navy-900: #111a2e;
  --navy-800: #1a2744;
  --navy-700: #243457;
  --navy-500: #3f5378;
  --navy-300: #8fa0be;
  --navy-100: #dfe5f0;
  --navy-50:  #f0f3f8;
  --gold-600: #a87e2a;
  --gold-500: #c4973b;
  --gold-400: #d4aa54;
  --gold-100: #f6efe0;
  --success: #2e7d4f;
  --warning: #a8720a;
  --error:   #c73e3e;
  /* PRUEBA off-white (2026-08-31): originales --page: #fbfcfd; --surface-sunken: #f4f6f9;
     Para revertir, restaurar esos dos valores y el rgba del .site-header. */
  --page: #f3f5f8;
  --surface: #ffffff;
  --surface-sunken: #eceff4;
  --border: #e4e8ee;
  --border-strong: #c9d1dd;
  --ink: #1a2744;
  --text-2: #4c5666;
  --text-3: #8791a0;
  --accent: #c4973b;
  --accent-ink: #8a6620;
  --focus-ring: rgba(196, 151, 59, 0.45);
  --shadow-1: 0 1px 2px rgba(26, 39, 68, 0.06);
  --shadow-2: 0 4px 12px rgba(26, 39, 68, 0.08);
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-ink); }
img { max-width: 100%; }

/* Language toggle: html[lang] hides the other language */
html[lang="es"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="es"] { display: none !important; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 245, 248, 0.92); backdrop-filter: blur(8px); /* PRUEBA off-white: original rgba(251,252,253,.92) */
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-height: 72px; padding: 8px 0; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-crop { display: flex; align-items: center; }
.logo-crop img { height: 30px; width: auto; display: block; }
.main-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a {
  padding: 7px 9px; border-radius: 8px; text-decoration: none;
  color: var(--text-2); font-weight: 600; font-size: 0.86rem;
}
.main-nav a:hover { background: var(--surface-sunken); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.main-nav a:focus-visible, .btn:focus-visible, .lang-toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.lang-toggle {
  font: 700 0.8rem var(--font-body); letter-spacing: 0.06em;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; margin-left: 8px;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--ink); }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 8px;
  width: 44px; height: 40px; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--ink); flex-shrink: 0;
}
.nav-burger:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }

/* Buttons */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  padding: 11px 22px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--navy-800); color: #ffffff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero .gold-rule { width: 64px; height: 4px; background: var(--gold-500); margin-bottom: 26px; }
.hero h1 { max-width: 21ch; }
.hero .lede { color: var(--text-2); font-size: 1.15rem; max-width: 52ch; margin-top: 20px; }
.hero .actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-markets { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-markets div { font-size: 0.85rem; color: var(--text-3); }
.hero-markets strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section.sunken { background: var(--surface-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--text-2); margin-top: 12px; }

/* Navy band (one per page max) */
.band {
  background: var(--navy-800); color: #ffffff; padding: 72px 0;
}
.band .eyebrow { color: var(--gold-400); }
.band h2 { color: #ffffff; }
.band p { color: var(--navy-100); }
.band .logo-foot img { height: 34px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 26px 26px 28px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { box-shadow: var(--shadow-2); }
.card .card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.93rem; color: var(--text-2); }
.card .cta { margin-top: auto; padding-top: 12px; }
.card .cta a { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--accent-ink); }
.card .cta a:hover { text-decoration: underline; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.principle { border-top: 2px solid var(--gold-500); padding-top: 16px; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--text-2); font-size: 0.94rem; }

/* Feature list (pillars) */
.pillars { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pillar { padding: 24px 28px; border-bottom: 1px solid var(--border); }
.pillar:last-child { border-bottom: 0; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--text-2); font-size: 0.95rem; max-width: 75ch; }

/* Checklist */
ul.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.checklist li { padding-left: 26px; position: relative; color: var(--text-2); font-size: 0.95rem; }
ul.checklist li::before { content: "◆"; position: absolute; left: 2px; top: 1px; color: var(--gold-500); font-size: 0.7rem; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  background: var(--gold-100); color: var(--accent-ink);
}
.badge-soon { background: var(--navy-50); color: var(--navy-500); }

/* Product blocks */
.product { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: 30px; overflow: hidden; }
.product-head { padding: 28px 32px 20px; border-bottom: 1px solid var(--border); }
.product-head .eyebrow { margin-bottom: 6px; }
.product-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; }
.product-col { padding: 24px 32px; border-right: 1px solid var(--border); }
.product-col:last-child { border-right: 0; }
.product-col h4 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.product-col p, .product-col li { font-size: 0.92rem; color: var(--text-2); }
.product-col ul.checklist li { font-size: 0.9rem; }
.footnote { font-size: 0.8rem; color: var(--text-3); margin-top: 12px; }

/* Project features (proyectos) */
.project-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 88px;
}
.project-feature:last-of-type { margin-bottom: 0; }
.project-feature.flip .project-media { order: 2; }
.project-media {
  aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--navy-800); position: relative; box-shadow: var(--shadow-2);
}
.project-media img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-media .watermark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.project-media .watermark img { height: 44px; opacity: 0.22; }
.project-info .eyebrow { margin-bottom: 8px; }
.project-info h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 14px; }
.project-info > p { color: var(--text-2); max-width: 54ch; }
.project-stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.project-stats .stat strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.project-stats .stat span { font-size: 0.8rem; color: var(--text-3); }
.project-info .cta { margin-top: 24px; }
.project-info .cta a { font-weight: 700; font-size: 0.92rem; text-decoration: none; color: var(--accent-ink); }
.project-info .cta a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .project-feature { grid-template-columns: 1fr; gap: 22px; margin-bottom: 60px; }
  .project-feature.flip .project-media { order: 0; }
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 11px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring);
}
.field .hint { font-size: 0.78rem; color: var(--text-3); }

/* Footer */
.site-footer { background: var(--navy-800); color: var(--navy-100); }
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; padding: 56px 0 40px; }
.site-footer .logo-foot img { height: 32px; }
.site-footer .tag { margin-top: 14px; font-size: 0.9rem; max-width: 34ch; color: var(--navy-300); }
.site-footer h4 { color: #ffffff; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: var(--navy-100); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0 28px; font-size: 0.8rem; color: var(--navy-300); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Page header (interior pages) */
.page-head { padding: 72px 0 8px; }
.page-head .gold-rule { width: 64px; height: 4px; background: var(--gold-500); margin-bottom: 24px; }
.page-head .lede { color: var(--text-2); font-size: 1.1rem; max-width: 58ch; margin-top: 16px; }

/* Investor portal button (header + footer) */
.portal-link {
  font-weight: 700 !important; font-size: 0.8rem !important;
  border: 1px solid var(--gold-500); color: var(--accent-ink) !important;
  border-radius: 8px; padding: 6px 10px !important; white-space: nowrap;
}
.portal-link:hover { background: var(--gold-100) !important; color: var(--accent-ink) !important; }

/* Quiz */
.quiz-box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); padding: 32px 34px; max-width: 860px; }
.quiz-q { border: 0; margin: 0 0 10px; padding: 0; animation: quiz-in .35s ease; }
.quiz-q[hidden] { display: none; }
@keyframes quiz-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.quiz-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.qp-label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--accent-ink); white-space: nowrap; }
.qp-track { flex: 1; height: 8px; background: var(--navy-50); border-radius: 999px; overflow: hidden; }
.qp-fill { height: 100%; width: 0; background: var(--gold-500); border-radius: 999px; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.quiz-nav { margin-top: 18px; }
#quiz-final { animation: quiz-in .35s ease; }
#quiz-final[hidden] { display: none; }
#quiz-final .quiz-result { margin-top: 0; }
.quiz-lead { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 24px; }
.quiz-lead-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin: 0 0 16px; }
.quiz-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; }
.quiz-lead-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.quiz-thanks { margin-top: 14px; color: var(--success); font-weight: 700; font-size: 0.95rem; }
@media (max-width: 640px) {
  .quiz-lead-grid { grid-template-columns: 1fr; }
}
.quiz-q legend { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding: 0; margin-bottom: 14px; }
.quiz-q .num { color: var(--accent-ink); margin-right: 8px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px 16px;
  font-size: 0.93rem; color: var(--text-2); transition: border-color .15s, background .15s;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt input { accent-color: var(--gold-600); margin-top: 3px; flex-shrink: 0; }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--gold-100); color: var(--ink); }
.quiz-opt input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.quiz-actions { margin-top: 4px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-hint { color: var(--error); font-size: 0.88rem; font-weight: 600; }
.quiz-result { border: 1px solid var(--gold-500); border-radius: 12px; background: var(--gold-100); padding: 28px 30px; margin-top: 26px; }
.quiz-result .eyebrow { margin-bottom: 6px; }
.quiz-result h3 { font-size: 1.35rem; margin-bottom: 8px; }
.quiz-result p { color: var(--text-2); max-width: 62ch; }
.quiz-result .actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }


/* Quiz callout (home hero) */
.quiz-callout {
  display: flex; align-items: center; gap: 16px;
  background: var(--gold-100); border: 1px solid var(--gold-500); border-radius: 12px;
  padding: 14px 20px; margin-top: 30px; max-width: 620px;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s;
}
.quiz-callout:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.qc-badge {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  background: var(--gold-500); color: var(--navy-900); border-radius: 999px; padding: 6px 12px;
}
.qc-text { font-size: 0.94rem; color: var(--text-2); }
.qc-text strong { color: var(--ink); }
.qc-arrow { margin-left: auto; color: var(--accent-ink); font-weight: 700; font-size: 1.1rem; }

/* Quiz result extras */
.quiz-alt { margin-top: 16px; font-size: 0.9rem; color: var(--text-2); }
.quiz-alt a { font-weight: 700; }
.quiz-lead-grid .field.full { grid-column: 1 / -1; }
.quiz-lead textarea { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 13px; resize: vertical; }
.quiz-lead textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }

/* Stats row (trayectoria) */
.stat-row { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 10px; }
.stat-row .stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-row .stat span { font-size: 0.85rem; color: var(--text-3); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font: 700 1.3rem var(--font-display); }
.avatar.soft { background: var(--navy-50); color: var(--navy-500); border: 1px dashed var(--border-strong); }
.role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }

/* Calculator */
.calc-box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 30px 32px; max-width: 860px; box-shadow: var(--shadow-1); }
.calc-controls { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.calc-controls input[type="range"] { width: 280px; accent-color: var(--gold-500); }
.calc-age { font-family: var(--font-display); font-size: 2rem; font-weight: 700; min-width: 70px; font-variant-numeric: tabular-nums; }
.alloc-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 14px; align-items: center; margin-bottom: 14px; font-size: 0.92rem; }
.alloc-track { height: 26px; background: var(--surface-sunken); border-radius: 6px; overflow: hidden; }
.alloc-fill { height: 100%; border-radius: 6px; transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.alloc-re { background: var(--gold-500); }
.alloc-st { background: var(--navy-500); }
.alloc-bo { background: var(--navy-300); }
.alloc-ca { background: var(--navy-100); }
.alloc-pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--font-display); }
.disclaimer { font-size: 0.78rem; color: var(--text-3); margin-top: 28px; max-width: 78ch; line-height: 1.6; }
@media (max-width: 640px) { .alloc-row { grid-template-columns: 110px 1fr 52px; font-size: 0.82rem; } }

/* Collapsible sections (home / invierte) */
details.collapse { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 14px; box-shadow: var(--shadow-1); overflow: hidden; }
details.collapse > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 22px 26px; }
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary .sum-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
details.collapse > summary .sum-hint { font-size: 0.85rem; color: var(--text-3); }
details.collapse > summary::after { content: "+"; margin-left: auto; color: var(--accent); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
details.collapse[open] > summary::after { content: "\2212"; }
details.collapse > summary:hover { background: var(--surface-sunken); }
details.collapse .collapse-body { padding: 2px 26px 28px; }

/* Audience segmentation (home) */
.segment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
a.segment { display: block; border-radius: 12px; padding: 32px 30px; text-decoration: none; box-shadow: var(--shadow-1); transition: box-shadow .15s, transform .15s; }
a.segment:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
a.segment .go { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 0.92rem; }
a.segment { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--gold-500); transition: background .2s, box-shadow .15s, transform .15s; }
a.segment h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: 8px; }
a.segment p { color: var(--text-2); font-size: 0.95rem; }
a.segment .go { color: var(--accent-ink); }
a.segment:hover { background: var(--navy-800); border-color: var(--navy-800); }
a.segment:hover h3 { color: #ffffff; }
a.segment:hover p { color: var(--navy-100); }
a.segment:hover .eyebrow, a.segment:hover .go { color: var(--gold-400); }

/* Numbered blocks (family offices) */
.num-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.num-item { display: grid; grid-template-columns: 88px 1fr; border-bottom: 1px solid var(--border); }
.num-item:last-child { border-bottom: 0; }
.num-item .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--gold-500); padding: 24px 0; background: var(--surface-sunken); text-align: center; }
.num-item .b { padding: 22px 28px; }
.num-item .b h3 { margin-bottom: 6px; }
.num-item .b p { color: var(--text-2); font-size: 0.95rem; max-width: 72ch; }
@media (max-width: 640px) { .num-item { grid-template-columns: 56px 1fr; } }

/* LinkedIn / retirement extras */
.li-link { font-size: 0.82rem; font-weight: 700; }
.calc-result { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 22px; }

/* Quiz hook (home hero) */
.quiz-hook { margin-top: 30px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-ink); }

/* Live With Ideal page palette (brand green #80C898 / blue) */
body.theme-lwi {
  --gold-600: #2f7d53;
  --gold-500: #80c898;
  --gold-400: #9ad4ac;
  --gold-100: #e9f5ee;
  --accent: #80c898;
  --accent-ink: #2f7d53;
  --focus-ring: rgba(128, 200, 152, 0.5);
}
.lwi-logo { height: 48px; width: auto; display: block; margin: 18px 0 6px; }

/* Legal notes */
.legal-note { font-size: 0.78rem; color: var(--text-3); max-width: 80ch; margin-top: 28px; line-height: 1.6; }
.site-footer .legal-full { font-size: 0.74rem; color: var(--navy-300); line-height: 1.65; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.12); max-width: 100ch; }
.site-footer .legal { border-top: 0; }
.legal-doc h2 { margin: 40px 0 12px; font-size: 1.25rem; }
.legal-doc p, .legal-doc li { color: var(--text-2); font-size: 0.94rem; max-width: 78ch; }
.legal-doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; gap: 2px; padding: 6px 0 14px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 12px; font-size: 1rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
  .portal-link { margin-top: 8px; justify-content: center; text-align: center; display: flex; }
  .lang-toggle { align-self: flex-start; margin: 10px 0 0 12px; }
}
@media (max-width: 820px) {
  .site-header .bar { height: auto; padding: 12px 0; gap: 10px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .product-col { border-right: 0; border-bottom: 1px solid var(--border); }
  .product-col:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 48px; }
  .page-head { padding: 48px 0 4px; }
  .section { padding: 44px 0; }
  .band { padding: 52px 0; }
  .quiz-box, .calc-box { padding: 22px 18px; }
  .product-col { padding: 20px 18px; }
  .product-head { padding: 22px 18px 16px; }
  details.collapse > summary { padding: 18px 18px; gap: 10px; flex-wrap: wrap; }
  details.collapse > summary .sum-title { font-size: 1.08rem; }
  details.collapse .collapse-body { padding: 2px 18px 22px; }
  a.segment { padding: 24px 20px; }
  .num-item .b { padding: 18px 16px; }
  .hero-markets { gap: 22px; margin-top: 36px; }
  .stat-row { gap: 26px; }
  .site-footer .cols { gap: 30px; padding: 40px 0 28px; }
  .quiz-progress { gap: 12px; margin-bottom: 22px; }
  .qp-label { font-size: 0.78rem; }
}
