/* Britizen page CSS: only what sits inside the visuals (the phone, the app window, the panels). */
.nav__logo .bz-logo { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.nav__logo { gap: var(--s-3); }

/* Hero: the app's study screen in a phone on the navy stage */
.bz-stage { background: #17233f; display: grid; place-items: center end; padding-right: 64px; }
.bz-phone { --pw: min(330px, 74%); width: var(--pw); aspect-ratio: 9 / 19; max-height: calc(100% - 64px); border-radius: 44px; padding: 10px; background: #0b111f; box-shadow: 0 0 0 1px rgba(244, 241, 234, .14), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.bz-screen { height: 100%; border-radius: 35px; overflow: hidden; background: #121418; color: #f4f1ea; font-family: var(--font-text); display: flex; flex-direction: column; gap: 10px; padding: 34px 14px 12px; }
.bz-top { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.bz-top span { font-size: 11px; color: #a5a8ae; }
.bz-top b { grid-column: 1; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.bz-ring { grid-column: 2; grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #2a2e36; border-top-color: #1fb683; display: grid; place-items: center; font: 600 10px/1 var(--font-text); font-style: normal; }
.bz-next { position: relative; background: #f4f1ea; color: #121418; border-radius: 20px; padding: 12px 14px 14px; display: grid; gap: 3px; }
.bz-next small { font-size: 11px; color: #5b5f66; margin-top: 6px; }
.bz-next strong { font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.bz-meta { font-size: 11px; color: #5b5f66; }
.bz-go { margin-top: 8px; background: #F2B41C; border-radius: 999px; text-align: center; font-weight: 600; font-size: 13px; padding: 9px; }
.bz-tag { display: inline-block; justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--c); color: #121418; }
.bz-of { position: absolute; right: 14px; top: 14px; font-size: 11px; color: #5b5f66; }
.bz-maphead { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #a5a8ae; margin-top: 4px; }
.bz-maphead b { color: #f4f1ea; font-size: 14px; font-weight: 600; }
.bz-mapcard { flex: 1 1 0; min-height: 0; background: #1d2026; border-radius: 18px; display: grid; place-items: center; padding: 8px; }
.bz-map { width: 100%; height: 100%; }
.bz-map polyline { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.bz-st { fill: #f4f1ea; stroke: #6b6f78; stroke-width: 2; }
.bz-st.is-done { fill: #1fb683; stroke: #f4f1ea; }
.bz-here { fill: none; stroke: #f4f1ea; stroke-width: 2.5; }
.bz-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #f4f1ea; color: #5b5f66; border-radius: 18px; padding: 9px 4px; font-size: 10px; text-align: center; }
.bz-tabs .is-on { color: #121418; font-weight: 600; }

/* The app window: the History line beside the open question */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.bz-list { font-family: var(--font-text); }
.bz-bar, .bz-qhead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--u-line); font-size: 14px; color: var(--muted); }
.bz-crumb i { font-style: normal; margin: 0 4px; opacity: .5; }
.bz-crumb b { color: var(--ink); font-weight: 600; }
.bz-list ul { list-style: none; margin: 0; padding: 6px 0; }
.bz-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 11px 18px; }
.bz-list li b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-list li em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--muted); }
.bz-list li .bz-chip { grid-column: 3; grid-row: 1 / span 2; }
.bz-list li.is-open { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bz-dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c); background: var(--u-bg); grid-row: 1 / span 2; }
.is-done > .bz-dot { background: var(--c); }
.bz-chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.bz-chip.is-done { background: rgba(18, 153, 106, .14); color: #0b6e4b; }
.bz-chip.is-on { background: #17233f; color: #f4f1ea; }
.bz-q { font-family: var(--font-text); padding-bottom: 24px; }
.bz-qhead .bz-tag { color: #fff; }
.bz-progress { margin-left: auto; width: 120px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.bz-progress i { display: block; height: 100%; background: #E8452A; }
.bz-prompt { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin: 22px 24px 10px; color: var(--ink); }
.bz-listen { display: inline-block; margin: 0 24px 16px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--u-line); font-size: 13px; color: var(--muted); }
.bz-opts { list-style: none; margin: 0 24px; padding: 0; display: grid; gap: 10px; }
.bz-opts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--u-line); font-size: 15px; color: var(--ink); background: var(--u-bg); }
.bz-opts li > span { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.bz-opts li.is-right { border-color: #12996a; background: rgba(18, 153, 106, .08); }
.bz-opts li.is-right > span { background: #12996a; color: #fff; }
.bz-opts li.is-picked { border-color: #17233f; box-shadow: inset 0 0 0 1px #17233f; }
.bz-opts li.is-picked > span { background: #17233f; color: #f4f1ea; }
.bz-why { margin: 16px 24px 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 15px; line-height: 1.5; color: var(--ink); }
.bz-why span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.bz-next-btn { display: block; margin: 16px 24px 0; padding: 12px; border-radius: 999px; text-align: center; background: #17233f; color: #f4f1ea; font-weight: 600; font-size: 15px; }

/* Feature panels */
.bz-panel { color: #f4f1ea; font-family: var(--font-text); display: grid !important; place-items: center; padding: 28px; }
.bz-panel > * { width: 100%; max-width: 440px; }
#features .panel { --p-h: 300px; }
.bz-panel > .bz-mock { max-width: 760px; }
.bz-mock { background: #121418; border-radius: 18px; padding: 18px; }
.bz-mock__top { display: flex; justify-content: space-between; font-size: 13px; color: #a5a8ae; }
.bz-time { font: 500 15px/1 var(--font-mono); color: #f4f1ea; }
.bz-mock .bz-prompt { color: #f4f1ea; font-size: 20px; margin: 12px 0 14px; }
.bz-opts--two { margin: 0; grid-template-columns: 1fr 1fr; }
.bz-mock .bz-opts li { background: #1d2026; border-color: #2a2e36; color: #f4f1ea; font-size: 14px; padding: 10px 12px; }
.bz-mock .bz-opts li > span { background: #2a2e36; }
.bz-mock .bz-opts li.is-picked { border-color: #f4f1ea; box-shadow: inset 0 0 0 1px #f4f1ea; }
.bz-mock .bz-opts li.is-picked > span { background: #f4f1ea; color: #121418; }
.bz-ticks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 16px; }
.bz-ticks i { height: 6px; border-radius: 3px; background: #2a2e36; }
.bz-ticks i.on { background: #a5a8ae; }
.bz-ticks i.now { background: #f4f1ea; }
.bz-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bz-review li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; background: #121418; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.bz-review .bz-dot { background: #121418; grid-row: auto; }
.bz-review em { font-style: normal; font-size: 12px; color: #a5a8ae; }
.bz-bars { list-style: none; margin: 0; padding: 28px; display: grid; gap: 22px; position: relative; background: #121418; border-radius: 18px; }
.bz-bars li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; font-size: 14px; color: #c9cbd0; }
.bz-bars i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(to right, var(--c) var(--w), #2a2e36 var(--w)); }
.bz-bars::after { content: ""; position: absolute; top: 22px; bottom: 22px; left: calc(28px + 74px + (100% - 56px - 74px) * .75); border-left: 2px dashed #f4f1ea; opacity: .7; }
.bz-audio { background: #121418; border-radius: 18px; padding: 16px; display: grid; gap: 14px; }
.bz-audio__row { display: flex; gap: 14px; align-items: center; }
.bz-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bz-mini li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #1d2026; font-size: 14px; }
.bz-mini li > span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #2a2e36; font-size: 12px; font-weight: 600; }
.bz-audio b { display: block; font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.bz-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #F2B41C; position: relative; }
.bz-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid #121418; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.bz-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.bz-wave i { width: 4px; border-radius: 2px; background: #f4f1ea; height: 40%; }
.bz-wave i:nth-child(3n) { height: 90%; } .bz-wave i:nth-child(4n+1) { height: 65%; } .bz-wave i:nth-child(5n+2) { height: 25%; }
.bz-wave i:nth-child(n+9) { background: #5b5f66; }
.bz-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-langs li { padding: 12px 16px; border-radius: 14px; background: #121418; font-size: 17px; }
.bz-langs li:first-child { background: #f4f1ea; color: #121418; }

@media (max-width: 1023px) {
  .bz-stage { place-items: center; padding-right: 0; }
  .bz-phone { --pw: min(300px, 70%); }
}
@media (max-width: 639px) {
  #features .panel { --p-h: 220px; }
  .bz-phone { --pw: min(200px, 62%); border-radius: 30px; padding: 7px; }
  .bz-screen { border-radius: 24px; padding: 22px 10px 8px; gap: 6px; }
  .bz-top b { font-size: 14px; } .bz-next strong { font-size: 14px; } .bz-next { padding: 9px 10px; }
  .bz-mock { padding: 14px; }
  .bz-panel { padding: 16px; }
  .bz-stage { place-items: center; padding-right: 0; }
  .bz-opts--two { grid-template-columns: 1fr; }
  .bz-prompt { font-size: 20px; margin: 16px 16px 8px; }
  .bz-opts, .bz-why, .bz-next-btn, .bz-listen { margin-left: 16px; margin-right: 16px; }
}

/* the name across the .wrap in the close: "Britizen" is 8 letters */
@media (min-width: 640px) { .close__word { font-size: clamp(120px, 22.4vw, 330px); } }
.bz-stage .ly-float { width: 200px; }
@media (max-width: 1023px) { .bz-stage .ly-float { display: none; } }
/* prices: the pass as a travel card; the row fills the screen */
.bz-prices { align-items: stretch; }
.bz-prices > div { display: flex; flex-direction: column; }
.bz-pass-panel { flex: 1 1 auto; margin-top: var(--s-5); min-height: 220px; }
.bz-pass { background: #17233f; border-radius: 20px; padding: 20px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.5); }
.bz-pass__top { display: flex; align-items: center; gap: 10px; }
.bz-pass__top img { border-radius: 8px; }
.bz-pass__top b { font-size: 18px; font-weight: 600; }
.bz-pass__top span { margin-left: auto; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f4f1ea; color: #121418; font-weight: 600; }
.bz-pass p { margin: 26px 0 14px; font-size: 14px; color: #c9cbd0; }
.bz-pass__lines { display: grid; gap: 6px; }
.bz-pass__lines i { height: 8px; border-radius: 4px; background: var(--c); }
.bz-test-panel { margin-top: var(--s-5); min-height: 200px; }
.bz-test { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bz-test > div { background: #121418; border-radius: 16px; padding: 16px; }
.bz-test dt { font-size: 13px; color: #c9cbd0; }
.bz-test dd { margin: 6px 0 0; font: 500 40px/1 var(--font-display); letter-spacing: -.03em; color: #f4f1ea; }
.bz-stores { align-items: flex-end; }
@media (max-width: 639px) {
  .bz-hide-phone { display: none; }
  #features .panel { --p-h: 170px; }
  .bz-mock .bz-opts, .bz-mock .bz-mock__top { display: none; }
  .bz-mock .bz-prompt { margin-top: 0; }
  .bz-review li:nth-child(3) { display: none; }
  .bz-bars { gap: 12px; padding: 18px; } .bz-bars::after { top: 16px; bottom: 16px; }
  .bz-langs li:nth-child(n+5) { display: none; }
  .bz-q .bz-listen, .bz-q .bz-next-btn { display: none; }
  .bz-opts li { padding: 9px 12px; font-size: 14px; }
  .bz-stores { align-items: stretch; }
  .bz-pass-panel, .bz-test-panel { min-height: 0; }
}
@media (max-width: 639px) { .bz-pass-panel { display: none; } }
@media (max-width: 639px) { .bz-prices .card--plan:not(.is-featured) .checks { display: none; } }
/* tablet and small laptop: four feature cards, shorter panels; prices on two screens */
@media (max-width: 1279px) { .bz-hide-phone { display: none; } }
@media (min-width: 640px) and (max-width: 1279px) { #features .panel { --p-h: 220px; } }
@media (min-width: 640px) and (max-width: 1023px) { #prices { --h: 2; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  #features .panel { --p-h: 200px; }
  .bz-mock .bz-opts { display: none; }
  .bz-mock .bz-prompt { margin-bottom: 0; }
  .bz-bars { gap: 10px; padding: 18px; } .bz-bars::after { top: 14px; bottom: 14px; }
  .bz-langs li:nth-child(n+5) { display: none; }
  .bz-review li:nth-child(3) { display: none; }
}
/* drawn UI inside the panels: light text on the dark app surfaces */
.bz-panel .ui { color: #f4f1ea; font-family: var(--font-text); }
.bz-langs li:first-child { color: #121418; }
@media (min-width: 1024px) and (max-width: 1279px) {
  #features .group + .grid > .card:not(.bz-hide-phone) { grid-column: span 6 !important; }
}
/* small screens: the phone shows the study map, not the next-topic card */
@media (max-width: 1023px) {
  .bz-phone .bz-next { display: none; }
  .bz-mapcard { min-height: 110px; }
}
