/* HiLearn.app Shell Stylesheet — 100% aligned with ln.hiart.ca visual identity */
:root {
  --ink: #1d2a3a;
  --ink-soft: #5b6b7f;
  --paper: #fffaf1;
  --card: #ffffff;
  --sea: #bfe3f2;
  --sea-deep: #8cc8e4;
  --navy: #1d3557;
  --accent: #e76f51;
  --accent-soft: #fde4dc;
  --good: #2a9d8f;
  --good-soft: #d7f2ee;
  --warn: #e9a23b;
  --line: #eadfcf;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(29, 53, 87, .10);
  --zh: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --en: "Segoe UI", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: hidden; }
body {
  font-family: var(--en), var(--zh);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }

/* Topbar (identical language to ln.hiart.ca) */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(20px, env(safe-area-inset-left));
  background: rgba(255, 250, 241, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; gap: 10px; align-items: center;
  font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none;
}
.brand .logo { font-size: 28px; }
.brand small { color: var(--ink-soft); font-weight: 600; font-size: 13px; background: #f2ebe0; padding: 2px 8px; border-radius: 999px; }
.topbar nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar nav a {
  min-height: 42px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; white-space: nowrap; font-size: 15px;
}
.topbar nav a.active { background: var(--navy); color: #fff; }
.topbar nav a.cta-nav { background: var(--accent); color: #fff; }
.topbar nav a:hover:not(.active):not(.cta-nav) { background: #f2ebe0; color: var(--ink); }

main { max-width: 1180px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-left)) 72px; }

/* Shared Components matching ln.hiart.ca */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; border: 1px solid rgba(234, 223, 207, .7);
}
.btn {
  min-height: 46px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  text-decoration: none; color: var(--ink); transition: transform .08s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn.xl { min-height: 54px; padding: 0 26px; font-size: 18px; border-radius: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; background: #f2ebe0;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.pill.good { background: var(--good-soft); color: #16655c; }
.pill.warm { background: var(--accent-soft); color: #a9442a; }
.pill.sea { background: #e6f4fb; color: var(--navy); }
.muted { color: var(--ink-soft); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Landing Hero */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #fffdf8 0%, #eef7fc 100%);
  border: 2px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 5px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(28px, 3.8vw, 40px); color: var(--navy); margin-bottom: 10px; }
.hero p { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.hero-art {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.art-tile {
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(29, 53, 87, .08); text-decoration: none; color: inherit;
  transition: transform .15s;
}
.art-tile:hover { transform: translateY(-3px); }
.art-tile img { width: 100%; height: 135px; object-fit: cover; display: block; background: #1d3557; }
.art-tile .cap { padding: 9px 11px; }
.art-tile .cap b { display: block; font-size: 15px; color: var(--navy); }
.art-tile .cap small { font-size: 12.5px; color: var(--ink-soft); }

/* Pillars & Grids */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 24px; color: var(--navy); margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 8px; }
.pillar .ico { font-size: 32px; }
.pillar h3 { font-size: 18px; color: var(--navy); margin: 0; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.price-card.featured { border: 2.5px solid var(--accent); background: linear-gradient(180deg, #fffdfb 0%, #fff7f3 100%); }
.price-tag { font-size: 30px; font-weight: 800; color: var(--navy); }
.price-tag small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }

/* Who Is Learning (Shared iPad Netflix-Kids Switcher) */
.kids-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 18px; }
.kid-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, border-color .15s;
}
.kid-card.active { border-color: var(--good); box-shadow: 0 10px 28px rgba(42, 157, 143, .16); }
.kid-card.locked-other { opacity: .58; background: #faf7f2; border-style: dashed; }

/* Child 2-Icon Emoji Secret Pattern Lock Modal (Anti-Mis-Switch for Siblings) */
.pat-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(29, 42, 58, .48); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pat-modal {
  width: min(420px, 100%); background: #fffaf1; border: 2.5px solid var(--line);
  border-radius: 24px; padding: 22px; text-align: center;
  box-shadow: 0 22px 54px rgba(29, 53, 87, .28);
}
.pat-slots {
  display: flex; justify-content: center; gap: 14px; margin: 14px 0 16px;
}
.pat-slot {
  width: 66px; height: 66px; border-radius: 18px;
  border: 2.5px dashed #c8b8a2; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #b5a794;
}
.pat-slot.filled { border-style: solid; border-color: var(--good); background: var(--good-soft); color: var(--navy); }
.pat-slot.err { border-style: solid; border-color: #d62828; background: #fde4e4; }
.pat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 14px;
}
.pat-tile {
  min-height: 70px; border-radius: 18px; border: 2px solid var(--line);
  background: #fff; font-size: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(29, 53, 87, .07); transition: transform .08s, border-color .12s;
}
.pat-tile:hover { border-color: var(--navy); transform: translateY(-2px); }
.pat-tile:active { transform: scale(.94); }
.pkid-guard-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding-top: 8px; border-top: 1px dashed #d3e2ee; font-size: 13.5px;
}
.kid-top { display: flex; align-items: center; gap: 14px; }
.kid-ava {
  width: 68px; height: 68px; border-radius: 20px; background: #eef7fc;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  border: 2px solid var(--sea); flex-shrink: 0;
}
.kid-axes { display: flex; flex-wrap: wrap; gap: 6px; }
.kid-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* Parent Dashboard */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field select, .field input {
  padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); font-weight: 600;
}
.switch-row { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.journal-item {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fffdf9;
  display: flex; flex-direction: column; gap: 8px;
}

/* Parent Multi-Child Check-in Calendar & Quantified Progress */
.pcal-progress-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
}
.pcal-prog-card {
  background: #fffdf9; border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.pcal-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pcal-prog-head b { font-size: 14.5px; color: var(--navy); }
.pcal-prog-skill { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.pcal-prog-bar { height: 7px; border-radius: 999px; background: #efe6d8; overflow: hidden; margin-top: 2px; }
.pcal-prog-bar span { display: block; height: 100%; border-radius: 999px; background: var(--good); transition: width .25s ease; }
.pcal-prog-meta { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

.skill-stat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.skill-stat-row {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffdf9;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.skill-stat-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 170px; }
.skill-stat-sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.skill-stat-name { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.skill-stat-metrics { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.pcal-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.pcal-wrap > *, .pcal-kpis > *, .card { min-width: 0; }
.pcal-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pcal-kpi {
  background: #fffdf9; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: center;
}
.pcal-kpi b { display: block; font-size: 22px; color: var(--navy); }
.pcal-kpi small { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.pcal-dow, .pcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pcal-dow div { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.pcal-cell {
  min-height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  padding: 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  cursor: pointer; text-align: left; transition: transform .08s, border-color .15s;
}
.pcal-cell:hover { border-color: var(--navy); transform: translateY(-1px); }
.pcal-cell.empty { background: transparent; border-color: transparent; cursor: default; pointer-events: none; }
.pcal-cell.lv1 { background: #e8f7f4; border-color: #b5e4dc; }
.pcal-cell.lv2 { background: #bdebe3; border-color: #6bc8b8; }
.pcal-cell.lv3 { background: #2a9d8f; border-color: #218276; color: #fff; }
.pcal-cell.lv3 .pcal-min { color: #fff; }
.pcal-cell.today { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.pcal-cell.sel { box-shadow: 0 0 0 3px rgba(29, 53, 87, .28); border-color: var(--navy); }
.pcal-day { font-size: 13px; font-weight: 800; line-height: 1; }
.pcal-min { font-size: 11.5px; font-weight: 700; color: #16655c; }
.pcal-dots { font-size: 12px; line-height: 1; }
@media (max-width: 900px) {
  .pcal-wrap { grid-template-columns: 1fr; }
  .pcal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Radio Player (磨耳朵电台) */
.radio-shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.radio-now {
  background: linear-gradient(145deg, #1d3557 0%, #264973 100%); color: #fff;
  border-radius: 22px; padding: 24px; box-shadow: var(--shadow);
}
.radio-cover { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.radio-cover img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
.radio-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.radio-ctrl .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.radio-ctrl .btn.play-main { background: var(--accent); border-color: var(--accent); min-width: 120px; }
.radio-track {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%;
}
.radio-track.on { border-color: var(--good); background: var(--good-soft); }
.radio-track img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* Landing K-G12 Curriculum Showcase (Value Anchor for Parents) */
.cur-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cur-stat {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.cur-stat b { display: block; font-size: 20px; color: var(--navy); }
.cur-stat small { font-size: 13px; color: var(--ink-soft); }
.cur-stage-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cur-stage-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cur-col {
  background: #fffdf9; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.cur-col h4 { margin: 0; font-size: 16px; color: var(--navy); }
.cur-lv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cur-lv-chip {
  font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: #eef7fc; color: var(--navy); border: 1px solid #d0e5f2;
}
.cur-sample {
  font-size: 13.5px; color: var(--ink-soft); background: #fff; border: 1px dashed var(--line);
  border-radius: 10px; padding: 8px 10px; margin-top: auto;
}
.cur-anchor-bar {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(90deg, #eef7fc 0%, #fff6ec 100%);
  border: 1.5px solid #d4e5f2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 14.5px;
}

/* Parent Full Curriculum Map & One-Click Level Jump */
/* Parent Step 1: Kid-First Selector + Visual Curriculum Ladder */
.pkid-step-card {
  background: linear-gradient(135deg, #fffdf8 0%, #eef7fc 100%);
  border: 2px solid #cfe3f0; border-radius: 18px; padding: 14px 16px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.pkid-step-label { font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.pkid-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pkid-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--ink);
  transition: transform .08s, border-color .15s, background .15s;
}
.pkid-pill:hover { border-color: var(--navy); }
.pkid-pill.on {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 6px 16px rgba(29, 53, 87, .2);
}
.pkid-pill small { font-weight: 600; opacity: .82; font-size: 12.5px; }

.pmap-spotlight {
  background: linear-gradient(135deg, #fffaf4 0%, #fff1e8 100%);
  border: 2.5px solid var(--accent); border-radius: 18px; padding: 16px 18px;
  margin-bottom: 14px; box-shadow: 0 8px 22px rgba(231, 111, 81, .12);
  display: flex; flex-direction: column; gap: 10px;
}
.pmap-spot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pmap-spot-title { font-size: 20px; font-weight: 800; color: var(--navy); margin: 4px 0 2px; }
.pmap-spot-bar { height: 10px; background: #efe2d4; border-radius: 999px; overflow: hidden; }
.pmap-spot-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2a9d8f 0%, #e76f51 100%); border-radius: 999px; transition: width .25s; }

/* Visual Interactive Stepped Ladder (Done / Current / Upcoming) */
.pmap-vis-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px;
}
.pmap-vis-legend {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.pmap-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.pmap-dot.done { background: var(--good); }
.pmap-dot.cur  { background: var(--accent); }
.pmap-dot.todo { background: #e8dfd2; border: 1px solid #d4c7b4; }

.pmap-vis-ladder {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px;
}
.pmap-step-box {
  border-radius: 11px; padding: 7px 6px; border: 1.5px solid var(--line);
  background: #f8f3eb; color: var(--ink-soft); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; min-height: 54px; transition: transform .1s, border-color .12s;
}
.pmap-step-box:hover { transform: translateY(-2px); border-color: var(--navy); }
.pmap-step-box.done { background: #d7f2ee; border-color: #6bc8b8; color: #145e56; }
.pmap-step-box.cur {
  background: var(--accent); border-color: #c84b2c; color: #fff;
  box-shadow: 0 0 0 3px rgba(231, 111, 81, .26); transform: translateY(-2px);
}
.pmap-step-box b { font-size: 12px; line-height: 1.2; word-break: break-word; }
.pmap-step-box small { font-size: 10.5px; opacity: .88; font-weight: 700; }

.pmap-banner {
  background: linear-gradient(90deg, #f3faf9 0%, #fff8ee 100%);
  border: 1.5px solid #c3e6df; border-radius: 14px; padding: 12px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pmap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pmap-lv-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 15px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.pmap-lv-card.is-cur { border: 2px solid var(--accent); background: #fffbf7; }
.pmap-lv-card.is-done { border-color: #9dd8cd; background: #f5fcfb; }
.pmap-lv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pmap-lv-head b { font-size: 15.5px; color: var(--navy); }
.pmap-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.pmap-skill-btn {
  border: 1.5px solid var(--line); background: #fffdf9; color: var(--ink);
  border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; transition: border-color .12s, background .12s;
}
.pmap-skill-btn:hover { border-color: var(--navy); background: #eef7fc; }
.pmap-skill-btn.done { background: var(--good-soft); border-color: #8fd6ca; color: #145e56; }
.pmap-skill-btn.cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* Landing Language Mode Switcher (ZH / EN / Bilingual) */
.lang-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.lang-bar-group {
  display: inline-flex; gap: 4px; background: #f2ebe0; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line);
}
.lang-btn {
  border: 0; background: transparent; color: var(--ink-soft); font-weight: 700;
  font-size: 13.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn.on { background: var(--navy); color: #fff; }
.bi-en {
  display: block; font-size: .82em; font-weight: 500; color: var(--ink-soft);
  margin-top: 3px; line-height: 1.4;
}
.btn .bi-en, .pill .bi-en, .hero-badge .bi-en {
  display: inline; margin-top: 0; margin-left: 6px; color: inherit; opacity: .88; font-size: .88em;
}

/* Site Footer */
.site-footer {
  width: 100%;
  display: block;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 241, .95);
  margin-top: 24px;
  padding: 24px max(20px, env(safe-area-inset-left)) 34px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer-inner {
  width: 100%;
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  text-align: center;
}
.footer-brand, .footer-copy { width: 100%; text-align: center; }
.footer-brand strong { color: var(--navy); }
.footer-links { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; text-align: center; }
.footer-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 12.5px; opacity: .82; }

@media (max-width: 900px) {
  .hero, .radio-shell { grid-template-columns: 1fr; }
  .pcal-progress-grid, .cur-stats, .cur-stage-panel, .pmap-grid { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar {
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 12px;
  }
  .brand { font-size: 18px; }
  .brand .logo { font-size: 24px; }
  .brand small { display: none; }
  .topbar nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 5px; padding-bottom: 2px;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a {
    min-height: 36px; padding: 0 11px; font-size: 13.5px; flex: 0 0 auto;
  }
  main { padding: 14px 12px 56px; }
  .hero { padding: 18px; border-radius: 18px; gap: 16px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .hero-art { gap: 8px; }
  .art-tile img { height: 102px; }
  .card { padding: 15px; border-radius: 16px; }
  .sec-head h2 { font-size: 20px; }
  .btn.xl { min-height: 48px; padding: 0 16px; font-size: 15.5px; width: 100%; }
  .grid4 { grid-template-columns: 1fr; }
  .pcal-kpis { gap: 8px; }
  .pcal-kpi { padding: 8px 6px; border-radius: 12px; }
  .pcal-kpi b { font-size: 19px; }
  .pcal-kpi small { font-size: 11.5px; }
  .pcal-dow, .pcal-grid { gap: 3px; }
  .pcal-dow div { font-size: 11.5px; padding: 2px 0; }
  .pcal-cell { min-height: 48px; padding: 4px 3px; border-radius: 9px; }
  .pcal-day { font-size: 11.5px; }
  .pcal-min { font-size: 10px; }
  .pcal-dots { font-size: 10px; }
  .radio-now { padding: 16px; }
  .radio-cover img { width: 72px; height: 72px; }
}
