/* Homepage-only visual menu, built on the shared iBrainHealth brand tokens. */
.vm-home { background: #fbfafc; color: var(--ink); }
.vm-header { background: linear-gradient(90deg, var(--brand-purple-deep), var(--brand-purple-dark)); color: #fff; }
.vm-header-inner { width: min(1120px, calc(100% - 48px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vm-languages { display: flex; gap: 4px; }
.vm-languages a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--brand-purple-light); text-decoration: none; font-size: 14px; font-weight: 700; }
.vm-languages a:hover { background: rgb(161 16 235 / 38%); color: white; }
.vm-languages a[aria-current="page"] { background: white; color: var(--brand-purple-dark); }
.vm-language-short { display: none; }
.vm-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 24px; }
.vm-intro { margin-bottom: 26px; }
.vm-intro h1 { margin: 0 0 6px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.13; letter-spacing: -.04em; font-weight: 800; }
.vm-intro p { margin: 0; color: var(--muted); font-size: 17px; }
.vm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vm-card { position: relative; min-width: 0; min-height: 202px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; gap: 17px; border: 1px solid var(--brand-purple-light); border-top: 3px solid var(--brand-purple-border); border-radius: 20px; background: white; color: var(--brand-purple-deep); text-decoration: none; box-shadow: 0 3px 8px rgb(92 1 169 / 5%); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; scroll-margin-top: 20px; }
.vm-card:hover { transform: translateY(-3px); border-color: var(--brand-purple); background: var(--brand-purple-soft); box-shadow: 0 12px 26px rgb(92 1 169 / 14%); }
.vm-card:active { transform: translateY(0); }
.vm-card:focus-visible { outline: 3px solid var(--brand-purple); outline-offset: 4px; box-shadow: 0 0 0 6px white; }
.vm-icon { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; padding: 5px; border-radius: 16px; background: var(--brand-purple-soft); color: var(--brand-purple); }
.vm-icon svg { display: block; width: 100%; height: 100%; }
.vm-card-copy { display: block; min-width: 0; }
.vm-card h2 { margin: 0 0 5px; color: var(--brand-purple); font-size: 22px; line-height: 1.16; letter-spacing: -.025em; font-weight: 800; }
.vm-description { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.vm-card-language { display: block; margin-top: 5px; color: #667475; font-size: 11px; line-height: 1.3; }
.vm-arrow { position: absolute; right: 20px; top: 18px; color: var(--brand-purple); font-size: 22px; font-weight: 600; line-height: 1; }
.vm-card-test { grid-column: span 2; flex-direction: row; align-items: center; gap: 26px; background: linear-gradient(135deg, var(--brand-purple-bright), var(--brand-purple) 48%, var(--brand-purple-dark)); border-color: var(--brand-purple); color: #fff; }
.vm-card-test:hover { border-color: var(--brand-purple-bright); background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark)); }
.vm-logo-icon { flex: 0 0 auto; width: 96px; height: 96px; line-height: 0; }
.vm-logo-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vm-card-test h2 { color: white; }
.vm-card-test h2 { font-size: 32px; }
.vm-card-test .vm-description { color: white; font-size: 16px; }
.vm-card-test .vm-arrow { color: white; }
.vm-card-games { background: var(--brand-purple-soft); border-color: var(--brand-purple-border); }
.vm-card-games .vm-icon, .vm-card-research .vm-icon, .vm-card-book .vm-icon { color: var(--brand-purple-dark); }
.vm-card-video .vm-icon, .vm-card-app .vm-icon { color: var(--brand-purple-bright); }
.vm-card-education, .vm-card-research, .vm-card-book { background: #fefbff; }
.vm-footer { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0 24px; border-top: 1px solid var(--brand-purple-light); }
.vm-footer p { max-width: 930px; margin: 0; color: #647275; font-size: 12px; line-height: 1.55; }
@media (max-width: 900px) {
  .vm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-card { min-height: 170px; flex-direction: row; align-items: center; gap: 18px; }
  .vm-icon { width: 54px; height: 54px; }
  .vm-card-test { min-height: 150px; }
  .vm-logo-icon { width: 82px; height: 82px; }
}
@media (max-width: 560px) {
  .vm-header-inner, .vm-main, .vm-footer { width: calc(100% - 32px); }
  .vm-header-inner { min-height: 62px; gap: 8px; }
  .vm-header .brand { gap: 8px; font-size: 16px; }
  .vm-header .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .vm-languages { gap: 2px; }
  .vm-languages a { min-width: 36px; min-height: 44px; padding: 6px; font-size: 12px; }
  .vm-language-full { display: none; }
  .vm-language-short { display: inline; }
  .vm-main { padding: 22px 0 20px; }
  .vm-intro { margin-bottom: 18px; }
  .vm-intro h1 { font-size: 30px; }
  .vm-intro p { margin-top: 7px; font-size: 14px; line-height: 1.4; }
  .vm-grid { gap: 12px; }
  .vm-card { min-height: 164px; padding: 17px 14px; flex-direction: column; align-items: flex-start; gap: 11px; border-radius: 16px; }
  .vm-icon { width: 47px; height: 47px; }
  .vm-card h2 { font-size: clamp(16px, 4.5vw, 19px); }
  .vm-description { font-size: 13px; line-height: 1.35; }
  .vm-card-language { margin-top: 4px; font-size: 10px; }
  .vm-arrow { right: 12px; top: 13px; font-size: 20px; }
  .vm-card-test { min-height: 120px; flex-direction: row; align-items: center; gap: 20px; padding: 18px 22px; }
  .vm-logo-icon { width: 70px; height: 70px; }
  .vm-card-test h2 { font-size: 27px; }
  .vm-card-test .vm-description { font-size: 14px; }
  .vm-footer { padding: 14px 0 22px; }
  .vm-footer p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .vm-card { transition: none; } }
