/* Andika Core holds everyday letters, the special letters of the courses and
   the marks that sit on vowels in ONE file per weight, so a mark is placed on
   its vowel correctly. The split Andika files below cover anything rarer. */
@font-face { font-family: 'Andika Core'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/andika-400-core.woff2') format('woff2'); }
@font-face { font-family: 'Andika Core'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/andika-700-core.woff2') format('woff2'); }
/* Andika (SIL): designed for literacy, with clear forms for ɛ, ɔ and ŋ. Bundled so it works offline. */
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/andika-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/andika-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/andika-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/andika-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Palette taken from the painted fishing canoes of the Ga coast: sea
   blue-green with bands of red, yellow, white and blue. */
:root {
  --bg: #fbf5e9;
  --surface: #ffffff;
  --ink: #132536;
  --muted: #5d6b76;
  --line: #e8dcc6;
  --brand: #0c5f7a;
  --brand-deep: #084557;
  --brand-ink: #ffffff;
  --brand-soft: #d8edf1;
  --sea: #0c5f7a;
  --gold: #f2b705;
  --gold-soft: #fdf1c7;
  --red: #d6402b;
  --blue: #1c4f9c;
  --white: #ffffff;
  --brown: #a8672f;
  --good: #1f7a46;
  --good-soft: #dff3e6;
  --bad: #b3402e;
  --bad-soft: #fae3de;
  --radius: 16px;
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' preserveAspectRatio='none'%3E%3Crect width='36' height='12' fill='%231c4f9c'/%3E%3Cpath d='M0 12L6 1l6 11z' fill='%23f2b705'/%3E%3Cpath d='M12 12l6-11 6 11z' fill='%23ffffff'/%3E%3Cpath d='M24 12l6-11 6 11z' fill='%23d6402b'/%3E%3C/svg%3E");
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a24;
    --surface: #152733;
    --ink: #eef3f5;
    --muted: #9aaab4;
    --line: #26394a;
    --brand: #56bcd4;
    --brand-deep: #2f8ea6;
    --brand-ink: #06202a;
    --brand-soft: #173644;
    --sea: #0a4558;
    --gold: #f4c531;
    --gold-soft: #3a3013;
    --red: #e8604c;
    --blue: #5b8fe0;
    --brown: #c98a4f;
    --good: #5fcf8b;
    --good-soft: #17352a;
    --bad: #f08a78;
    --bad-soft: #3f211c;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 'Andika Core', 'Andika', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.page { flex: 1; padding: 16px 16px 96px; }

/* Top bar and tabs */
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--sea); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; color: #fff; }
.top h1 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.1; }
.top h1 small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; letter-spacing: 0; }
.stats { display: flex; gap: 8px; }
.stat { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat svg { width: 15px; height: 15px; }
.band { height: 10px; background: var(--band) repeat-x; background-size: 36px 10px; flex: none; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  position: relative; flex: 1; max-width: 120px; text-align: center; padding: 8px 2px 9px;
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--brand); }
.tabs a.on::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.tabs .badge { position: absolute; top: 4px; left: 54%; background: var(--gold); color: #3a2a00; border-radius: 999px; padding: 0 6px; font-size: 11px; line-height: 16px; }

/* Drawn icons: colours follow the palette in both themes */
.f-red { fill: var(--red); } .f-yel { fill: var(--gold); } .f-blu { fill: var(--blue); } .f-wht { fill: var(--white); }
.f-sea { fill: var(--sea); } .f-grn { fill: var(--good); } .f-brn { fill: var(--brown); } .f-ink { fill: var(--ink); }
.s-yel { stroke: var(--gold); } .s-wht { stroke: var(--white); } .s-ink { stroke: var(--ink); } .s-brn { stroke: var(--brown); }
.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 700; font-size: 16px;
  background: var(--brand); color: var(--brand-ink); width: 100%; text-decoration: none;
  box-shadow: 0 3px 0 var(--brand-deep);
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-deep); }
.btn:disabled { opacity: 0.45; }
.btn.ghost { background: var(--surface); color: var(--brand); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; }

/* Home */
.notice { background: var(--gold-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.review-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sea); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.review-card p { font-size: 14px; opacity: 0.9; }
.review-card .btn { width: auto; background: var(--gold); color: #3a2a00; padding: 10px 16px; box-shadow: 0 3px 0 #b88a00; }
.unit { margin-bottom: 24px; }
.unit h2 { font-size: 18px; }
.unit > p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.lesson {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px;
}
.lesson .dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.lesson.done .dot { background: var(--good); color: #fff; }
.lesson b { display: block; }
.lesson span { color: var(--muted); font-size: 13px; }
.lesson .go { margin-left: auto; color: var(--muted); font-size: 20px; }

/* Lesson session */
.session { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.session header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.session .close { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 4px 8px; }
.bar { flex: 1; height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s; }
.step { flex: 1; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.ask { font-size: 15px; color: var(--muted); font-weight: 600; }
.prompt { font-size: 28px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.prompt-row { display: flex; align-items: center; gap: 12px; }

.speak {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--brand); color: var(--brand-ink); font-size: 22px; display: grid; place-items: center;
}
.speak.big { width: 84px; height: 84px; font-size: 34px; align-self: center; }
.speak:disabled { background: var(--line); color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.card .ga { font-size: 34px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.card .en { font-size: 19px; color: var(--muted); }
.card .note { font-size: 14px; background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; }
.tag { font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; }

.options { display: grid; gap: 10px; }
.opt {
  width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line);
  border-radius: 14px; padding: 14px 16px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere;
}
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .opt { text-align: center; font-size: 16px; padding: 14px 8px; min-height: 56px; }
.match .opt.picked { border-color: var(--brand); background: var(--brand-soft); }
.match .opt.gone { opacity: 0.35; border-color: var(--good); }

.answer {
  width: 100%; font: inherit; font-size: 20px; padding: 14px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
}
.answer:focus { outline: none; border-color: var(--brand); }
.keys { display: flex; gap: 8px; flex-wrap: wrap; }
.keys button {
  min-width: 48px; padding: 10px 0; font-size: 20px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.built {
  min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  border-bottom: 2px solid var(--line); padding-bottom: 12px;
}
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 18px; font-weight: 600;
}
.chip.used { visibility: hidden; }

.foot { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot.good { background: var(--good-soft); border-top-color: transparent; }
.foot.bad { background: var(--bad-soft); border-top-color: transparent; }
.foot .verdict { font-weight: 700; margin-bottom: 4px; }
.foot.good .verdict { color: var(--good); }
.foot.bad .verdict { color: var(--bad); }
.foot .detail { margin-bottom: 12px; font-size: 15px; overflow-wrap: anywhere; }
.foot.good .btn { background: var(--good); color: #fff; }
.foot.bad .btn { background: var(--bad); color: #fff; }

.finish { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 24px 16px; text-align: center; }
.finish h2 { font-size: 28px; }
.finish .ga { color: var(--muted); }
.score { display: flex; gap: 12px; justify-content: center; }
.score div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; min-width: 110px; }
.score b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.score span { font-size: 13px; color: var(--muted); }

/* Phrasebook */
.search { margin-bottom: 16px; }
.group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 20px 0 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 6px;
}
.row .speak { width: 40px; height: 40px; font-size: 17px; }
.row b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.row span { color: var(--muted); font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

/* Sounds */
.sounds p { margin-bottom: 12px; }
.sounds h2 { font-size: 18px; margin: 20px 0 8px; }
.alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.alphabet span {
  width: 38px; height: 38px; display: grid; place-items: center; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.alphabet span.new { background: var(--gold-soft); border-color: var(--gold); }
.sound { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sound b { flex: none; width: 44px; font-size: 22px; }
.foot-note { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }
.foot-note a { color: var(--brand); }

/* Shared small pieces */
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.small { font-size: 13px; }
.error { color: var(--bad); font-weight: 600; min-height: 1.4em; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--brand); font-weight: 600; text-decoration: none; }
.title { font-size: 20px; margin-bottom: 12px; }
.lead { color: var(--muted); margin-bottom: 14px; }
.filters { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.filters button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#toast.on { opacity: 1; }

/* Home additions */
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.goal-text { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.goal-text span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.guide { display: block; background: var(--brand-soft); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px; text-decoration: none; font-size: 15px; }
.unit-links { display: block; margin-top: 2px; }
.unit-links a { color: var(--brand); font-weight: 600; }
a.lesson { text-decoration: none; color: inherit; }

/* Practise and Talk lists */
.mode {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 8px;
}
.mode b { display: block; }
.mode span { color: var(--muted); font-size: 14px; }
.mode.off { opacity: 0.55; }
.mode .count { flex: none; background: var(--gold); color: #3a2a00; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 14px; }
.mode .go { font-size: 20px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.bubble { display: flex; align-items: center; gap: 10px; max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.bubble.b { align-self: flex-end; background: var(--brand-soft); border-color: transparent; }
.bubble .speak { width: 38px; height: 38px; font-size: 16px; }
.bubble b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.bubble span { color: var(--muted); font-size: 14px; }

/* Phrasebook star */
.row > div { flex: 1; min-width: 0; }
.star { flex: none; background: none; border: 0; font-size: 22px; color: var(--muted); padding: 4px 6px; }
.star.on { color: var(--gold); }

/* Session additions */
.listen { display: flex; align-items: center; justify-content: center; gap: 12px; }
.slow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; }
.foot-link { text-align: center; margin-top: 10px; }
.card .link.small { color: var(--muted); font-weight: 500; }

/* Me */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.statgrid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.statgrid b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.statgrid span { color: var(--muted); font-size: 13px; }
.panel { margin-bottom: 24px; display: grid; gap: 10px; }
.panel h2 { font-size: 17px; }
.panel form { display: grid; gap: 10px; }
.panel a { color: var(--brand); font-weight: 600; }
.board { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.board li { counter-increment: rank; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.board li::before { content: counter(rank); width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board li span { flex: 1; overflow-wrap: anywhere; }
.board li b { font-variant-numeric: tabular-nums; }
.board li.me { background: var(--gold-soft); }

/* ---- Ga coast restyle ---- */
.speak svg { width: 46%; height: 46%; }
.speak { box-shadow: 0 3px 0 var(--brand-deep); }
.speak:disabled { box-shadow: none; }
.slow { font-size: 12px; font-weight: 700; color: var(--brand); width: auto; height: 36px; padding: 0 12px; border-radius: 999px; }
.star svg { width: 24px; height: 24px; display: block; }
.star { color: var(--line); }
.star.on { color: var(--gold); }

.hero { position: relative; overflow: hidden; background: var(--sea); color: #fff; border-radius: 20px; padding: 18px 16px 0; margin-bottom: 16px; }
.hero .hello { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero .gloss { opacity: 0.85; font-size: 14px; margin-bottom: 14px; }
.hero .goal-text { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; }
.hero .goal-text span { font-variant-numeric: tabular-nums; opacity: 0.9; }
.hero .bar { background: rgba(255, 255, 255, 0.22); height: 10px; flex: none; }
.hero .canoe { position: absolute; right: 14px; top: 10px; width: 72px; height: 72px; color: #fff; }
.hero .band { margin: 16px -16px 0; }
.hero-text { padding-right: 84px; min-height: 70px; }

.unit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.unit-head .tile { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; }
.unit-head .tile svg { width: 44px; height: 44px; }
.unit-head h2 { font-size: 18px; line-height: 1.2; }
.unit-head p { color: var(--muted); font-size: 14px; }
.lesson { box-shadow: 0 2px 0 var(--line); }
.lesson .dot { background: var(--gold-soft); color: var(--ink); border: 2px solid var(--gold); }
.lesson.done .dot { background: var(--good); color: #fff; border-color: var(--good); }
.guide { border-left: 6px solid var(--gold); }
.mode { box-shadow: 0 2px 0 var(--line); }
.card { border-top: 6px solid var(--gold); }
.notice { border-left: 6px solid var(--red); background: var(--surface); border-radius: 12px; }

.finish .canoe { color: var(--blue); width: 150px; height: 150px; margin: 0 auto; animation: bob 3s ease-in-out infinite; }
.finish .praise { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); line-height: 1; }
.finish .band { border-radius: 999px; margin: 0 24px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .finish .canoe { animation: none; } .btn:active:not(:disabled) { transform: none; } }
.hero .goal-text span { color: #fff; }

/* ---- Full course ---- */
.lesson.locked .dot { background: var(--bg); border-color: var(--line); color: var(--muted); }
.lesson.locked .dot svg { width: 20px; height: 20px; }
.lesson.locked b { color: var(--muted); }
.lockmark { flex: none; color: var(--muted); }
.lockmark svg { width: 22px; height: 22px; display: block; }
.upsell { display: flex; align-items: center; gap: 12px; background: var(--gold-soft); border: 2px solid var(--gold); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; text-decoration: none; font-size: 15px; }
.upsell svg { flex: none; width: 26px; height: 26px; }
.upsell b { display: block; }
.upgrade { display: grid; gap: 12px; }
.upgrade .canoe { width: 84px; height: 84px; color: var(--blue); }
.upgrade h2 { font-size: 24px; }
.perks { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.btn.plan { justify-content: space-between; }
.btn.plan b { font-variant-numeric: tabular-nums; }
.redeem { display: grid; gap: 6px; margin-top: 8px; }
.coderow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coderow .btn { width: auto; }
.coderow .answer { text-transform: uppercase; min-width: 0; }
.panel a.btn { color: var(--brand-ink); }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.toggle input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
