/* BLANC NOTES — the app's shell, on the web.
   Every value here is the app's: README §1 of the redesign handoff and
   BNDesignSystem.swift. Page #07070B, four inks, a section colour that says
   where you are, semantic colours that say what a thing is, four radii,
   Playfair at most twice a screen. Dark only, like the app. */
:root {
  color-scheme: dark;
  --page: #07070B;
  --card: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.07);
  --field: rgba(255,255,255,.06);
  --dock: rgba(18,18,26,.85);
  --sheet: #0E0E14;
  --tile: #0E0E14;
  --ink: #FFFFFF;
  --ink2: rgba(255,255,255,.60);
  --ink3: rgba(255,255,255,.55);
  --ink4: rgba(255,255,255,.50);
  --shop: #F5C04A; --library: #A98BFF; --home: #FF7A85; --challenge: #FF8A3D; --profile: #35D0C3;
  --level: #4C8DFF; --level-label: #8F9CFF; --practise: #7182FF; --practise-text: #8F9CFF;
  --streak: #FF8A3D; --gold: #F5C04A; --on-gold: #2A1F05; --owned: #3ECF8E; --hero: #FF5D66;
  --bronze: #D9925A; --silver: #D5DCE8; --platinum: #B8F0E6; --diamond: #CDB8FF;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --margin: 24px;
  --c: var(--home);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--practise-text); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons: Material Symbols Rounded at weight 300, the handoff's stand-in for
   SF Symbols, subset to the names this page uses. */
.ms { font-family: "Material Symbols Rounded"; font-weight: 300; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; user-select: none;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24; }
.ms.fill { font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24; }

/* ---------------------------------------------------------------- glow */
/* Three blurred circles behind every tab screen: A in the section colour,
   B blue. They drift slowly. On the web the A glow crossfades to the tab
   you are on, the way it changes when you switch tabs in the app. */
.glow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* A phone's browser paints its own flat bars above and below the page, so the
   glow fades to nothing at both edges instead of stopping dead against them. */
@media (max-width: 899px) {
  .glow { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 130px, #000 calc(100% - 150px), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 130px, #000 calc(100% - 150px), transparent); }
}
.glow .ga, .glow .gb { position: absolute; border-radius: 50%; will-change: transform; }
.glow .ga { left: -160px; top: -60px; width: 520px; height: 520px; opacity: 0; transition: opacity 1.1s ease;
  animation: bnDriftA 18s ease-in-out infinite alternate; }
.glow .ga.on { opacity: 1; }
.glow .ga[data-c="home"] { background: radial-gradient(circle, rgba(255,60,60,.50) 0%, rgba(255,60,60,.50) 8%, rgba(255,60,60,0) 62%); }
.glow .ga[data-c="challenge"] { background: radial-gradient(circle, rgba(255,138,61,.46) 0%, rgba(255,138,61,.46) 8%, rgba(255,138,61,0) 62%); }
.glow .ga[data-c="shop"] { background: radial-gradient(circle, rgba(245,192,74,.36) 0%, rgba(245,192,74,.36) 8%, rgba(245,192,74,0) 62%); }
.glow .ga[data-c="library"] { background: radial-gradient(circle, rgba(154,107,255,.42) 0%, rgba(154,107,255,.42) 8%, rgba(154,107,255,0) 62%); }
.glow .ga[data-c="profile"] { background: radial-gradient(circle, rgba(53,208,195,.36) 0%, rgba(53,208,195,.36) 8%, rgba(53,208,195,0) 62%); }
.glow .gb { right: -200px; top: 220px; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(76,110,255,.40) 0%, rgba(76,110,255,.40) 8%, rgba(76,110,255,0) 62%); animation: bnDriftB 22s ease-in-out infinite alternate; }
@keyframes bnDriftA { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }
@keyframes bnDriftB { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-30px,50px) scale(.97); } }
@keyframes bnPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@media (min-width: 900px) { .glow .ga { width: 760px; height: 760px; left: -220px; } .glow .gb { width: 760px; height: 760px; right: -240px; } }

/* ---------------------------------------------------------------- page */
main { position: relative; z-index: 1; padding-bottom: 140px; }
/* THE DECK — one page at a time, in the document flow, so the page itself
   scrolls (and Safari hides its bars). At its end the next page takes its
   place at the top; the page you left stays frozen on top for a moment and
   fades. */
main.deck { position: relative; z-index: 1; padding: 0; min-height: 100svh; }
.deck .tab { display: none; min-height: 100svh; padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(118px + env(safe-area-inset-bottom, 0px)); }
.deck .tab.current { display: block; animation: pageIn .5s cubic-bezier(.2,.7,.2,1) both; }
.deck .tab.leaving { display: block; position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; animation: pageOut .36s ease-out both; }
.deck .tab.leaving > .wrap { transform: translateY(var(--y, 0px)); }
@keyframes pageIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }
.deck[data-dir="prev"] .tab.current { animation-name: pageInUp; }
@keyframes pageInUp { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.deck .wm { padding: 14px 0 18px; }
@media (max-width: 899px) { .deck .tab { padding-top: calc(22px + env(safe-area-inset-top, 0px)); } .back { top: calc(12px + env(safe-area-inset-top, 0px)); } }
@media (min-width: 900px) { .deck .tab { padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)); } }
.deck footer { position: static; padding: 28px 0 0; max-width: none; }
.deck footer nav { font-size: 13px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: max(var(--margin), env(safe-area-inset-left, 0px)) max(var(--margin), env(safe-area-inset-right, 0px)); }
.tab { padding-top: 62px; }
.tab + .tab { padding-top: 48px; }
.wm { display: flex; justify-content: center; padding: 10px 0 20px; font: 800 11px/1 var(--sans); letter-spacing: .22em; color: rgba(255,255,255,.85); }
.hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.t46 { font: 700 46px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.greet { font: 400 17px/1.2 var(--sans); color: var(--ink3); margin-top: 9px; }
.pill { height: 46px; padding: 0 18px; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; font: 600 17px/1 var(--sans); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); flex: none; }
.pill .plus { font-size: 22px; line-height: 1; }
.pill:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
.lbl { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.lbl b { font: 600 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink2); }
.lbl.first { padding-top: 20px; }

/* Columns: one on a phone, like the app; two side by side from 900px. */
.cols { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 28px; } .cols.even { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- cards, rows, tiles */
.card { border-radius: 22px; background: var(--card); border: 1px solid var(--border); padding: 16px; position: relative; }
.tinted { border-radius: 22px; padding: 16px 18px; position: relative;
  background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.clabel { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.t27 { font: 600 27px/1.05 var(--serif); color: var(--ink); }
.t24 { font: 600 24px/1 var(--serif); color: var(--ink); }
.meta { font: 500 13px/1.35 var(--sans); color: var(--ink3); }
.sub { font: 400 15px/1.4 var(--sans); color: var(--ink3); }
.big { font: 700 30px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.bar.level i { background: linear-gradient(90deg, #6C63FF, #4FA8F5); }

.group { border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 0 16px; }
.group .row { margin: 0 -16px; padding: 10px 16px; }
.group .row:first-child { border-radius: 18px 18px 0 0; }
.group .row:last-child { border-radius: 0 0 18px 18px; }
.group .row + .row { border-top: 1px solid var(--border); }
.row { min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 10px 0; color: inherit; }
.row .ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.row .ico .ms { font-size: 24px; }
.row .body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.row .title { display: block; font: 600 17px/1.2 var(--sans); color: var(--ink); }
.row .meta { display: block; }
.row .chev { color: rgba(255,255,255,.40); font-size: 22px; flex: none; }
.row .trail { font: 600 14px/1 var(--sans); color: var(--ink2); flex: none; }
a.row:hover .title { color: var(--ink); } a.row:hover .chev { color: var(--ink2); }
.rows { display: grid; gap: 8px; }
.rows .row { border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 0 16px 0 14px; }
.rows .row.accent { border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.primary-row { min-height: 66px; border-radius: 18px; background: var(--c); color: var(--on-streak); display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 18px; }
.primary-row .title { font: 600 19px/1.15 var(--sans); }
.primary-row .meta { color: color-mix(in srgb, var(--on-streak) 78%, transparent); font-size: 14px; }
.primary-row .chev { margin-left: auto; font-size: 26px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { min-height: 134px; border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.tile .clabel { display: flex; align-items: center; gap: 6px; }
.tile .clabel .ms { font-size: 18px; }
.tile .value { font: 700 24px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.tile .value small { font: 400 15px/1 var(--sans); color: var(--ink3); margin-left: 6px; }
.tile .foot { font: 600 13px/1.3 var(--sans); color: var(--c); }
.tile .foot.quiet { color: var(--ink3); font-weight: 500; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11px/11px var(--sans); color: rgba(255,255,255,.40); }
.week div span { display: block; height: 11px; line-height: 11px; }
.week div i { display: block; width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.15); flex: none; }
.week div.is-today { color: #fff; } .week div.is-today i { background: none; border: 2px solid var(--streak); animation: bnPulse 2s ease-in-out infinite; }
.segs { display: flex; gap: 4px; } .segs i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); } .segs i.on { background: var(--c); }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles .tile:last-child { grid-column: 1 / -1; min-height: 0; } .tile .value { font-size: 22px; } }

/* the one solid button on a screen */
.hero-btn { height: 50px; border-radius: 16px; background: var(--hero); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px/1 var(--sans); padding: 0 18px; }
.hero-btn .ms { font-size: 22px; }
.hero-btn:hover { filter: brightness(1.06); }
.quiet-btn { height: 46px; border-radius: 16px; background: rgba(255,255,255,.08); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--sans); padding: 0 16px; }
.seg { display: flex; background: var(--field); border-radius: 16px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 38px; border-radius: 13px; font: 600 14px/1 var(--sans); color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-selected="true"] { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--ink); }
.seg .ms { font-size: 18px; }
.price { height: 36px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font: 600 14px/1 var(--sans); white-space: nowrap; flex: none;
  background: rgba(245,192,74,.18); color: var(--gold); }
.price.solid { background: var(--gold); color: var(--on-gold); font-weight: 700; height: 44px; border-radius: 14px; padding: 0 16px; font-size: 15px; }
.price.violet { background: rgba(113,130,255,.18); color: var(--practise-text); }
.badge { position: absolute; top: 8px; right: 8px; height: 20px; padding: 0 7px; border-radius: 7px; font: 700 10px/20px var(--sans); letter-spacing: .06em; }
.badge.plus { background: rgba(245,192,74,.18); color: var(--gold); }
.badge.pro { background: var(--gold); color: var(--on-gold); }
.badge.shop { background: rgba(113,130,255,.18); color: var(--practise-text); }
.check { color: var(--gold); font-size: 18px; }
.ticks { display: grid; gap: 9px; margin-top: 14px; }
.ticks div { display: flex; gap: 10px; align-items: center; font: 500 15px/1.3 var(--sans); color: var(--ink); }

/* ---------------------------------------------------------------- Home: today */
.today { padding: 16px; }
.today .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.today .top .live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.today .top .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hero); box-shadow: 0 0 10px var(--hero); animation: bnPulse 2s ease-in-out infinite; }
.stagebox { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #070204; border: 1px solid rgba(255,255,255,.08); }
@media (min-width: 900px) { .deck .today .stagebox { max-height: calc(100svh - 538px); min-height: 226px; width: 100%; } }
.stagebox .stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #070204; }

.today .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.ring { width: 86px; height: 86px; border-radius: 43px; flex: none; display: flex; align-items: center; justify-content: center; --p: 0%;
  background: conic-gradient(var(--hero) 0 var(--p), rgba(255,255,255,.1) var(--p) 100%); }
.ring div { width: 70px; height: 70px; border-radius: 35px; background: var(--tile); display: grid; place-items: center; align-content: center; gap: 3px; }
.ring b { font: 600 19px/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.ring span { font: 500 12px/1 var(--sans); color: rgba(255,255,255,.5); }
.today .hero-btn { margin-top: 14px; }
.today .hero-btn small { font: 500 13px/1 var(--sans); opacity: .85; }
.ctls { position: absolute; right: 10px; top: 10px; display: flex; gap: 8px; }
.ctl { height: 34px; min-width: 34px; padding: 0 9px; border-radius: 12px; background: rgba(14,14,20,.82); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 13px/1 var(--sans); border: 1px solid rgba(255,255,255,.1); }
.ctl .ms { font-size: 18px; }
.ctl:hover { background: rgba(14,14,20,.85); }

/* ---------------------------------------------------------------- Challenge: the road */
.road { display: grid; gap: 8px; }
.room { display: flex; align-items: center; gap: 14px; min-height: 66px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 10px 16px 10px 12px; }
.room .metal { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #0B0B12;
  background: linear-gradient(160deg, color-mix(in srgb, var(--m) 100%, #fff 10%), color-mix(in srgb, var(--m) 70%, #000)); box-shadow: 0 0 18px color-mix(in srgb, var(--m) 35%, transparent); }
.room .metal .ms { font-size: 24px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.room .body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.room .name { display: block; font: 600 19px/1.1 var(--serif); color: var(--ink); }
.room .meta { display: block; }
.room .gate { margin-left: auto; text-align: right; flex: none; }
.room .gate b { display: block; font: 700 17px/1 var(--sans); color: var(--m); font-variant-numeric: tabular-nums; }
.room .gate span { display: block; font: 500 12px/1 var(--sans); color: var(--ink4); margin-top: 4px; }
.room.here { border-color: color-mix(in srgb, var(--m) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--m) 14%, transparent); }
.room.here .name::after { content: "You start here"; display: inline-block; margin-left: 10px; font: 700 10px/18px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--m); vertical-align: middle; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { border-radius: 22px; background: var(--card); border: 1px solid var(--border); padding: 16px; display: grid; gap: 14px; }
.mini .top { display: flex; align-items: center; justify-content: space-between; }
.mini .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.mini .xp { font: 600 13px/1 var(--sans); letter-spacing: .06em; color: var(--c); }
.mini .title { font: 600 19px/1.1 var(--sans); }
.mini .meta { margin-top: 4px; }

/* ---------------------------------------------------------------- Shop: avatars, themes */
.panel[hidden] { display: none; }
.avgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .avgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.av { position: relative; border-radius: 22px; background: var(--card); border: 1px solid var(--border); padding: 12px 8px 12px; display: grid; justify-items: center; gap: 8px; }
.av .avt { width: 64px; height: 64px; border-radius: 21px; background: var(--tile); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--ring) inset, 0 0 var(--gr, 14px) var(--gl); }
.av .avt svg { width: 50px; height: 50px; }
.av .nm { font: 600 14px/1.15 var(--sans); color: var(--ink); text-align: center; }
.av .sb { font: 500 11px/1.2 var(--sans); color: var(--ink3); text-align: center; }
.av[data-g="starter"] { --ring: rgba(255,255,255,.28); --gl: rgba(255,255,255,.06); }
.av[data-g="earned"] { --ring: #8FA8CC; --gl: rgba(159,182,217,.18); --gr: 20px; }
.av[data-g="shop"] { --ring: rgba(143,156,255,.85); --gl: rgba(113,130,255,.22); --gr: 20px; border-color: rgba(113,130,255,.28); }
.av[data-g="plus"] { --ring: rgba(245,192,74,.8); --gl: rgba(245,192,74,.24); --gr: 22px; border-color: rgba(245,192,74,.35); }
.av[data-g="pro"] { --ring: var(--gold); --gl: rgba(245,192,74,.42); --gr: 28px; border-color: rgba(245,192,74,.6); background: linear-gradient(170deg, rgba(245,192,74,.14), rgba(255,255,255,.04)); }
.av[data-g="pro"] .avt { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 0 3px rgba(255,255,255,.35) inset, 0 0 28px var(--gl); }
.themes { display: grid; gap: 8px; }
.theme { display: flex; align-items: center; gap: 14px; min-height: 66px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 10px 14px 10px 12px; }
.theme .sw { width: 42px; height: 42px; border-radius: 12px; flex: none; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 0 16px color-mix(in srgb, var(--a) 30%, transparent); }
.theme .body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.theme .title { display: block; font: 600 18px/1.15 var(--sans); }
.theme .meta { display: block; }
.plan { display: grid; gap: 12px; }
.plan .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan .name { font: 600 26px/1 var(--serif); margin-top: 10px; }
.plan .per { font: 500 13px/1.3 var(--sans); color: var(--ink3); text-align: right; margin-top: 6px; }

/* ---------------------------------------------------------------- Library: ledger */
.ledger { border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 0 18px; }
.ledger.open { border-color: color-mix(in srgb, var(--library) 45%, transparent); }
.ledger .lrow { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 0; }
.ledger .num { font: 700 18px/1 var(--sans); color: var(--practise-text); width: 30px; flex: none; font-variant-numeric: tabular-nums; }
.ledger .title { font: 600 20px/1.15 var(--sans); flex: 1; }
.ledger .lrow .chev { transform: rotate(90deg); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 2px 0 14px; }
.facts div { border-top: 1px solid var(--border); padding-top: 10px; }
.facts .k { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); }
.facts .v { font: 600 17px/1.2 var(--sans); margin-top: 6px; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; padding-bottom: 18px; }
.actions .act { height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--sans); padding: 0 16px; background: rgba(255,255,255,.08); color: var(--ink); }
.actions .act.primary { background: rgba(113,130,255,.22); color: #fff; flex: 1; }
.actions .act.more { width: 52px; padding: 0; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.limits div { border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 12px 12px 14px; }
.limits .k { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.limits .v { font: 700 20px/1.1 var(--sans); margin-top: 8px; letter-spacing: -.02em; }
.limits .m { font: 500 12px/1.35 var(--sans); color: var(--ink3); margin-top: 6px; }

/* ---------------------------------------------------------------- Profile: follow, get */
.social .ico { background: rgba(255,255,255,.06); color: #fff; }
.social .ico svg { width: 22px; height: 22px; fill: currentColor; }
.get { display: grid; gap: 14px; }
.get .app { display: flex; align-items: center; gap: 14px; }
.get .app img { width: 64px; height: 64px; border-radius: 16px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #0A090C; border-radius: 14px; padding: 10px 18px 10px 14px; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font: 500 11px/1.1 var(--sans); opacity: .68; }
.store b { display: block; font: 700 18px/1.15 var(--sans); }

/* ---------------------------------------------------------------- dock */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: min(100% - 28px, 402px); height: 72px; border-radius: 36px; background: var(--dock); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 0 12px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink2); width: 56px; height: 56px; justify-content: center; border-radius: 16px; position: relative; }
.dock a .ms { font-size: 30px; }
.dock a i { width: 34px; height: 2.5px; border-radius: 2px; background: var(--c); opacity: 0; transform: scaleX(.4); transition: opacity .25s, transform .25s; }
.dock a.on { color: var(--c); } .dock a.on i { opacity: 1; transform: none; }
.dock a:hover { color: var(--ink); }
@media (min-width: 900px) { .dock { height: 84px; border-radius: 42px; width: 440px; } }

/* ---------------------------------------------------------------- entrances */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.deck .tab.current .rv { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.deck .tab:not(.current) .rv { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow .ga, .glow .gb, .week div.is-today i, .today .top .live i, .deck .tab.current .rv, .ltile { animation: none; }
  .deck .tab.current, .deck .tab.leaving { animation-duration: .15s; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } } @keyframes pageInUp { from { opacity: 0; } to { opacity: 1; } }
  .glow .ga { transition: none; }
}

/* ---------------------------------------------------------------- footer */
footer { position: relative; z-index: 1; padding: 20px var(--margin) calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 1160px; margin-inline: auto; }
footer .legal { font: 400 12px/1.6 var(--sans); color: var(--ink4); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 500 14px/1 var(--sans); color: var(--ink2); margin-bottom: 14px; }
footer .legal { text-align: center; }
footer nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- plain pages (privacy, terms, support) */
.doc-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: var(--margin); max-width: 1160px; margin-inline: auto; }
.doc-top .brand { display: inline-flex; align-items: center; gap: 11px; }
.doc-top .brand img { width: 30px; height: 30px; border-radius: 8px; }
.doc-top .brand span { font: 800 11px/1 var(--sans); letter-spacing: .22em; color: rgba(255,255,255,.85); }
.doc-top nav { display: flex; gap: 18px; font: 500 14px/1 var(--sans); color: var(--ink2); }
.doc { max-width: 42rem; margin-inline: auto; padding: 40px var(--margin) 80px; position: relative; z-index: 1; font-size: 17px; line-height: 1.6; }
.doc .eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.doc h1 { font: 700 38px/1.05 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.doc .meta { margin-top: 12px; color: var(--ink3); font-size: 14px; }
.doc .lede-short, .doc .lede { margin-top: 20px; font-size: 19px; color: var(--ink2); }
.doc h2 { font: 700 20px/1.25 var(--sans); margin-top: 34px; }
.doc p { margin-top: 12px; color: rgba(255,255,255,.8); }
.doc ul { margin: 12px 0 0; padding-left: 22px; color: rgba(255,255,255,.8); } .doc li + li { margin-top: 6px; }
.doc strong { color: #fff; }
.doc a { color: var(--practise-text); }
.doc .draft { margin-top: 18px; border-radius: 16px; border: 1px solid rgba(245,192,74,.35); background: rgba(245,192,74,.08); padding: 12px 14px; font-size: 14px; color: var(--ink2); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: rgba(255,255,255,.8); }
.doc th { color: #fff; font-weight: 600; }
.doc .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.doc .button { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 16px; background: rgba(113,130,255,.22); color: #fff; font: 600 16px/1 var(--sans); }
.doc .note { color: var(--ink3); font-size: 14px; }

/* ---------------------------------------------------------------- details (support FAQ, avatar groups) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.avgroup { border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 0 16px; }
.avgroup summary.row .chev { transition: transform .25s; }
.avgroup[open] summary.row .chev { transform: rotate(90deg); }
.doc .faq { display: grid; gap: 8px; margin-top: 22px; }
.doc .faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 0 18px; }
.doc .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 0; font: 600 17px/1.25 var(--sans); color: #fff; }
.doc .faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--ink4); flex: none; }
.doc .faq details[open] summary::after { content: "−"; }
.doc .faq details p { margin: 0 0 16px; color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------------- wide screens */
@media (min-width: 900px) {
  .limits { max-width: 100%; }
  .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .plans-grid .plan .head { flex-direction: column; align-items: flex-start; }
  .plans-grid .plan .per { text-align: left; }
  .themes { grid-template-columns: 1fr 1fr; }
}
.doc-top .brand span { white-space: nowrap; }
@media (max-width: 600px) { .doc-top nav a:not(:first-child) { display: none; } }
.av .avt { transition: transform .25s cubic-bezier(.2,.7,.2,1); } .av:hover .avt { transform: translateY(-2px); }
a.row, .rows .row, .room, .theme, .av { transition: border-color .2s, background-color .2s; }
a.row:hover, .rows a.row:hover, .group a.row:hover { background-color: rgba(255,255,255,.05); }

@media (max-width: 599px) {
  .limits { grid-template-columns: 1fr; gap: 8px; }
  .limits div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .limits .k { width: 46px; flex: none; }
  .limits .v { margin: 0; min-width: 64px; flex: none; white-space: nowrap; }
  .limits .m { margin: 0; }
}
.sound.on { color: var(--hero); border-color: rgba(255,93,102,.5); }

@media (max-width: 419px) { .today .hero-btn small { display: none; } }

/* ---------------------------------------------------------------- period switch, links page */
.period { max-width: 420px; margin-top: 14px; }
.plans-grid .plan .head { align-items: flex-start; }
.links { max-width: 560px; margin-inline: auto; padding: 56px var(--margin) 40px; position: relative; z-index: 1; }
.links footer { padding-bottom: 20px; }
@media (min-width: 900px) { .seg.shop-seg { max-width: none; } }

/* ---------------------------------------------------------------- wide screens: columns line up top and bottom */
@media (min-width: 900px) {
  .cols { align-items: stretch; }
  .stack.home-right { grid-template-rows: auto auto 1fr; }
  .stack.ch-left { grid-template-rows: auto auto auto 1fr; }
  .stack.lib-right { grid-template-rows: auto 1fr; }
  .stack.pr-left { grid-template-rows: auto auto auto 1fr; }
  .stack.pr-right { grid-template-rows: auto auto auto 1fr; }
  .group.fill, .rows.fill { display: flex; flex-direction: column; justify-content: stretch; }
  .group.fill .row, .rows.fill .row { flex: 1; }
  .period { max-width: none; }
  .plans-grid .plan { grid-template-rows: auto 1fr; align-content: start; }
  .plans-grid .plan .head { flex-direction: column; justify-content: flex-start; gap: 12px; }
  .plans-grid .plan .head > div:last-child { display: grid; gap: 6px; justify-items: start; }
  .plans-grid .plan .ticks { margin-top: 2px; }
  .plans-grid .plan .name { margin-top: 8px; }
}

@media (min-width: 900px) {
  .stack.ch-left { grid-template-rows: auto auto auto auto auto; }
  .stack.ch-right { grid-template-rows: auto auto auto 1fr; }
  .road.fill { display: flex; flex-direction: column; } .road.fill .room { flex: 1; }
  .plans-grid .plan .ticks { align-content: start; }
  .plans-grid .plan .ticks div { font-size: 14.5px; }
}

/* narrow phones: nothing may force the page wider than the screen */
.cols > *, .stack > *, .ledger, .actions .act { min-width: 0; }
@media (max-width: 599px) {
  .actions .act { padding: 0 12px; }
  .plan .head { flex-direction: column; align-items: stretch; gap: 10px; }
  .plan .head > div:last-child { display: flex; align-items: center; gap: 12px; }
  .plan .per { text-align: left; margin-top: 0; }
}

/* ---------------------------------------------------------------- the front page: six tiles */
body.links-page { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.links { width: 100%; max-width: 1120px; margin-inline: auto; display: grid; align-content: center; padding: 32px var(--margin) 24px; }
.links .wm { padding-bottom: 18px; }
.ltiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; } }
@media (min-width: 1000px) { .ltiles { gap: 22px; } }
.ltile { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; padding: clamp(22px, 4vw, 44px) 16px clamp(20px, 3.6vw, 40px); border-radius: clamp(22px, 2.4vw, 30px); min-height: 100%;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--b) 35%, transparent); position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .3s; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
.ltile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--b) 22%, transparent), transparent 70%); opacity: .7; transition: opacity .3s; }
.ltile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--b) 65%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--b) 60%, transparent); }
.ltile:hover::before { opacity: 1; }
.ltile:nth-child(1) { --i: 0 } .ltile:nth-child(2) { --i: 1 } .ltile:nth-child(3) { --i: 2 } .ltile:nth-child(4) { --i: 3 } .ltile:nth-child(5) { --i: 4 } .ltile:nth-child(6) { --i: 5 }
.ltile > * { position: relative; }
.ltile .mark { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 27%; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--b) 18%, transparent); color: var(--b); box-shadow: 0 0 34px color-mix(in srgb, var(--b) 26%, transparent); }
.ltile .mark svg { width: 48%; height: 48%; fill: currentColor; }
.ltile .mark img { width: 100%; height: 100%; display: block; }
.ltile.app .mark { background: none; box-shadow: 0 14px 40px -12px rgba(255,77,90,.55); }
.ltile.skool .mark { background: #fff; box-shadow: 0 0 34px rgba(245,192,74,.28); }
.ltile.skool .mark img { width: 78%; height: auto; }
.ltile .ltitle { font: 600 clamp(16px, 1.55vw, 21px)/1.2 var(--sans); color: var(--ink); text-wrap: balance; }
.ltile .lsub { font: 500 clamp(12.5px, 1.05vw, 15px)/1.35 var(--sans); color: var(--ink3); text-wrap: balance; }
.links .t46 { font-size: clamp(40px, 5vw, 56px); }
.links-page footer { padding-top: 8px; }

/* ---------------------------------------------------------------- sign in: the sheet, the you card */
.field { width: 100%; height: 54px; border-radius: 18px; background: var(--field); border: 1px solid transparent; color: var(--ink); font: 400 17px/1 var(--sans); padding: 0 16px; outline: none; }
.field:focus { border-color: var(--practise); }
.field.code { font: 600 28px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.err { margin-top: 10px; font: 500 14px/1.4 var(--sans); color: var(--hero); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: 100%; max-width: 520px; background: var(--sheet); border-radius: 30px 30px 0 0; border-top: 1px solid rgba(255,255,255,.10); padding: 26px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--ink2); display: grid; place-items: center; }
.sheet-close .ms { font-size: 22px; }
.sheet .quiet-link { color: var(--practise-text); font: 500 15px/1 var(--sans); }
@media (min-width: 640px) { .sheet-wrap { align-items: center; padding: 24px; } .sheet { border-radius: 30px; border: 1px solid rgba(255,255,255,.10); padding-bottom: 28px; } }
body.sheet-open { overflow: hidden; }
.you { display: flex; align-items: center; gap: 16px; }
.you .avt { width: 72px; height: 72px; border-radius: 24px; background: var(--tile); flex: none; display: grid; place-items: center; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent) inset, 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.you .avt svg { width: 56px; height: 56px; } .you .avt .ms { font-size: 34px; color: var(--ink2); }
.you .who { min-width: 0; display: grid; gap: 6px; }
.you-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill.signin[data-signed] { background: color-mix(in srgb, var(--profile) 20%, transparent); color: var(--profile); }

/* ---------------------------------------------------------------- back to the front page */
.back { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; z-index: 40; width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(18,18,26,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); color: #fff; transition: background-color .2s, transform .2s; }
.back .ms { font-size: 24px; }
.back:hover { background: rgba(18,18,26,.9); transform: translateX(-1px); }
@media (min-width: 900px) { .back { top: 18px; left: 18px; } }

/* ---------------------------------------------------------------- fitting a screen */
@media (min-width: 900px) {
  .deck .lbl { padding: 14px 0 8px; }
  .deck .lbl.first { padding-top: 12px; }
  .deck .row { min-height: 54px; padding-block: 8px; }
  .deck .group .row { padding-block: 8px; }
  .deck .cols { margin-top: 14px !important; }
  .deck .hd { align-items: center; }
}
@media (max-width: 639px) {
  .links { padding: 18px 14px 12px; }
  .links .wm { padding: 8px 0 12px; }
  .links .t46 { font-size: 34px; }
  .links .greet { font-size: 15px; margin-top: 6px; }
  .ltiles { gap: 10px; margin-top: 18px; }
  .ltile { padding: 16px 10px 14px; gap: 4px; border-radius: 20px; }
  .ltile .mark { width: 54px; height: 54px; margin-bottom: 6px; }
  .ltile .ltitle { font-size: 15px; }
  .ltile .lsub { font-size: 12px; }
  .links-page footer nav { font-size: 12px; gap: 6px 12px; margin-bottom: 8px; }
  .links-page footer .legal { font-size: 11px; line-height: 1.45; }
}
@media (max-width: 1300px) and (min-width: 640px) { .links { padding-block: 22px 16px; } .links .wm { padding-bottom: 10px; } }

.links .about { margin: 22px auto 0; max-width: 60ch; text-align: center; font: 400 14px/1.55 var(--sans); color: var(--ink3); text-wrap: pretty; }
@media (max-width: 639px) { .links .about { font-size: 12.5px; margin-top: 14px; } }

/* ---------------------------------------------------------------- the last few pixels on laptops */
@media (min-width: 900px) {
  .deck .tinted { padding: 14px 16px; }
  .deck .room { min-height: 60px; padding-block: 8px; }
  .deck .mini { gap: 12px; padding: 14px; }
  .deck .av { padding: 10px 8px; }
  .deck .avgroup summary.row { min-height: 50px; padding-block: 6px; }
  .deck .seg button { height: 36px; }
  .deck .sub { line-height: 1.35; }
  .deck .get { gap: 10px; }
  .deck .card { padding: 14px 16px; }
}
/* tablets in landscape: the header row starts under the back button, so the button shrinks and rises */
@media (min-width: 900px) and (max-width: 1219px) { .back { top: 10px; left: 12px; width: 40px; height: 40px; border-radius: 14px; } }
/* the front page sizes to the screen's height as well as its width */
.links { padding-block: min(32px, 3vh) min(24px, 2.4vh); }
.links .wm { padding: min(10px, 1.2vh) 0 min(18px, 2vh); }
.ltiles { margin-top: min(36px, 3.4vh); }
.ltile { padding: min(4vw, 3.6vh) 16px min(3.6vw, 3.2vh); gap: min(8px, 1vh); }
.ltile .mark { width: min(8vw, 9.5vh, 96px); height: min(8vw, 9.5vh, 96px); min-width: 48px; min-height: 48px; margin-bottom: min(10px, 1.2vh); }
.links .about { margin-top: min(22px, 2.4vh); }
.links-page footer { padding-top: min(8px, 1vh); padding-bottom: min(20px, 2vh); }
.links-page footer nav { margin-bottom: min(14px, 1.4vh); }
@media (max-height: 830px) { .links .about { display: none; } }
@media (max-width: 639px) and (max-height: 940px) { .links .about { display: none; } }
@media (max-width: 379px) { .ltile .ltitle { font-size: 14px; } .ltile .lsub { font-size: 11.5px; } .links .t46 { font-size: 30px; } }
@media (max-width: 639px) { .ltile { padding: min(16px, 2.2vh) 10px min(14px, 2vh); } .ltile .mark { width: min(54px, 7vh); height: min(54px, 7vh); } .ltiles { gap: min(10px, 1.2vh); margin-top: min(18px, 2vh); } .links .greet { margin-top: 4px; } }

/* ---------------------------------------------------------------- phones: cheaper compositing, landscape, the plan boxes */
@media (max-width: 899px) {
  .dock, .back { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock { background: rgba(18,18,26,.94); }
  .back { background: rgba(18,18,26,.88); }
  .limits .k { width: auto; min-width: 52px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .dock { height: 50px; width: min(100% - 24px, 360px); bottom: calc(6px + env(safe-area-inset-bottom, 0px)); border-radius: 25px; padding: 0 8px; }
  .dock a { width: 44px; height: 44px; gap: 3px; border-radius: 12px; }
  .dock a .ms { font-size: 22px; }
  .dock a i { width: 22px; height: 2px; }
  .deck .tab { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .deck .wm { padding: 4px 0 8px; }
  .t46 { font-size: 34px; }
  .back { top: 8px; left: max(10px, env(safe-area-inset-left, 0px)); width: 36px; height: 36px; border-radius: 12px; }
  .back .ms { font-size: 20px; }
  .deck .hd { padding-left: 34px; }
  .links { padding-block: 12px; }
}
