/* ============================================================
   License Lab — shared design system (mockups only)
   New brand language: friendly, confident, conversion-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --ink: #0d1626; --ink-2: #16233a;
  --bg: #f4f7fb; --bg-2: #eaf0f8; --card: #ffffff; --line: #e4ebf3; --line-2: #d3dde9;
  --teal: #10b6a6; --teal-600: #0b938a; --teal-50: #e6faf7;
  --amber: #ff9f1c; --amber-600: #f08a00; --coral: #ff5d5d; --indigo: #5b6cff;
  --ready: #22c55e; --needs: #ff9f1c; --weak: #ff5d5d;
  --text: #14202f; --muted: #5d6e82; --faint: #8a9bb0;
  --on-dark: #eaf2fb; --on-dark-muted: #9fb2c9;
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-xl: 30px; --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13,22,38,.06), 0 2px 6px rgba(13,22,38,.05);
  --shadow: 0 6px 18px rgba(13,22,38,.08), 0 2px 6px rgba(13,22,38,.05);
  --shadow-lg: 0 24px 60px rgba(13,22,38,.16);
  --ring: 0 0 0 4px rgba(16,182,166,.18);
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); } h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); } h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-600); text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); } .center { text-align: center; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--teal-600); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font: 600 .98rem/1 var(--font); border: 0; border-radius: var(--pill); padding: .85rem 1.4rem; transition: transform .12s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(16,182,166,.32); }
.btn-primary:hover { background: var(--teal-600); }
.btn-cta { background: var(--amber); color: #3a2400; box-shadow: 0 8px 20px rgba(255,159,28,.38); }
.btn-cta:hover { background: var(--amber-600); }
.btn-live { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255,93,93,.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; } .btn-sm { padding: .55rem .9rem; font-size: .85rem; }
/* full-width buttons must wrap, never clip/overflow their label (any screen width) */
.btn-block { width: 100%; justify-content: center; white-space: normal; line-height: 1.25; text-align: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.4rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--teal), var(--indigo)); }
.brand small { font-weight: 600; color: var(--faint); font-family: var(--font); font-size: .7rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: .3rem; margin-left: .6rem; }
.nav-links a { padding: .5rem .8rem; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .7rem; }

/* ---------- live ribbon ---------- */
.live-strip { background: linear-gradient(90deg, #2a1020, #3a1326); color: #ffe9e9; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .55rem 1rem; font-size: .92rem; font-weight: 600; }
.live-strip a { color: #fff; text-decoration: underline; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,93,93,.7); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,93,93,.6);} 70% { box-shadow: 0 0 0 10px rgba(255,93,93,0);} 100% { box-shadow: 0 0 0 0 rgba(255,93,93,0);} }
.badge-live { display: inline-flex; align-items: center; gap: .4rem; background: var(--coral); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; padding: .25rem .6rem; border-radius: var(--pill); text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 620px; z-index: 0; background: radial-gradient(60% 80% at 70% 10%, rgba(91,108,255,.16), transparent 60%), radial-gradient(50% 70% at 15% 0%, rgba(16,182,166,.20), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill-tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--teal-50); color: var(--teal-600); font-weight: 700; font-size: .82rem; padding: .4rem .8rem; border-radius: var(--pill); }

/* ---------- cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-p { padding: 22px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2,1fr); } .g-3 { grid-template-columns: repeat(3,1fr); } .g-4 { grid-template-columns: repeat(4,1fr); }
.section { padding: 56px 0; } .section-head { max-width: 60ch; margin-bottom: 28px; }
.row { display: flex; gap: 12px; align-items: center; } .between { justify-content: space-between; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 22px; }
.feature { padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 14px; background: var(--teal-50); }
.feature.amber .ico { background: #fff3e0; } .feature.indigo .ico { background: #ecedff; } .feature.coral .ico { background: #ffe9e9; }
.stat { padding: 18px 20px; }
.stat .n { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.stat .l { color: var(--muted); font-size: .9rem; }

/* mastery ring */
.ring { --p: 70; --c: var(--teal); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p)*1%), var(--line) 0); flex: none; }
.ring::after { content: attr(data-label); width: 58px; height: 58px; background: var(--card); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--display); color: var(--ink); font-size: .95rem; }
.ring.green { --c: var(--ready); } .ring.amber { --c: var(--needs); } .ring.weak { --c: var(--weak); }
.bar { height: 9px; background: var(--bg-2); border-radius: var(--pill); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: var(--pill); background: linear-gradient(90deg,var(--teal),var(--indigo)); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .76rem; padding: .25rem .6rem; border-radius: var(--pill); }
.chip.ready { background: #e7f9ef; color: #138a4a; } .chip.needs { background: #fff3e0; color: #b86a00; } .chip.weak { background: #ffe9e9; color: #c83030; }
.chip.soft { background: var(--bg-2); color: var(--muted); } .chip.teal { background: var(--teal-50); color: var(--teal-600); }
.topic { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; } .topic .mini-bar { flex: 1; }

/* grinder */
.q-card { padding: 28px; }
.q-stem { font-size: 1.28rem; font-weight: 600; font-family: var(--display); margin-bottom: 18px; color: var(--ink); }
.options { display: grid; gap: 12px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; background: #fff; transition: .15s; }
.opt:hover { border-color: var(--teal); background: var(--teal-50); }
.opt .key { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.opt.correct { border-color: var(--ready); background: #effbf4; } .opt.correct .key { background: var(--ready); color: #fff; }
.opt.wrong { border-color: var(--weak); background: #fff1f1; } .opt.wrong .key { background: var(--weak); color: #fff; }
.explain { margin-top: 18px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.explain .eh { display: flex; align-items: center; gap: .5rem; padding: 12px 16px; background: var(--teal-50); font-weight: 700; color: var(--teal-600); }
.explain .eb { padding: 16px; }
.explain .trap { background: #fff8ee; border-left: 3px solid var(--amber); padding: 10px 14px; border-radius: 8px; margin-top: 10px; font-size: .95rem; }
.ask-live { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1.5px dashed var(--coral); border-radius: var(--r); background: #fff6f6; }
.g-grinder { grid-template-columns: 1fr 320px; align-items: start; }

/* ============================================================
   LIVE ROOM HUD — premium broadcast shell (dark)
   ============================================================ */
.app-dark { background: #070d18; color: var(--on-dark); min-height: 100vh; }
.room {
  display: grid;
  grid-template-columns: 1fr 348px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "top top" "stage side" "bar bar";
  height: 100vh; overflow: hidden;
}
.room::before { content:""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: linear-gradient(90deg, var(--teal), var(--indigo), var(--coral)); }

.room-topbar { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: #0b1322; border-bottom: 1px solid #1b2740; }
.room-topbar .brand { color: #fff; font-size: 1.02rem; }
.room-topbar .sess { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid #1f2c46; padding-left: 16px; }
.room-topbar .sess b { font-size: .96rem; color: #fff; }
.room-topbar .sess span { color: var(--on-dark-muted); font-size: .82rem; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.eyetag { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-muted); font-size: .84rem; }
.chip-dark { background: rgba(16,182,166,.14); color: #7ff0e4; border: 1px solid rgba(16,182,166,.4); padding: .3rem .7rem; border-radius: var(--pill); font-size: .8rem; font-weight: 600; }

/* avatar stack */
.ava-stack { display: flex; }
.ava-stack span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #0e1a30; margin-left: -9px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: linear-gradient(135deg,#2b4877,#16233a); color: #cfe0f5; }
.ava-stack span:first-child { margin-left: 0; }

/* STAGE */
.stage { grid-area: stage; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 14px; min-height: 0;
  background: radial-gradient(85% 75% at 50% 28%, #15294a 0%, #0c1830 52%, #070d18 100%); }
.broadcast { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.screen { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 16/9; max-height: 100%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg,#1c2f52,#0f1d35); border: 1px solid #2a3a5c;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.screen.speaking { box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 2px var(--teal), 0 0 50px rgba(16,182,166,.22); }
.slide { position: absolute; inset: 0; padding: clamp(28px,5vw,56px); display: flex; flex-direction: column; justify-content: center; }
.slide .kick { color: #6ff0e2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.slide h2 { color: #fff; font-size: clamp(1.5rem,3.2vw,2.6rem); margin: .5rem 0 1.2rem; }
.slide ul { margin: 0; padding: 0; }
.slide li { color: #c7d6ec; font-size: clamp(.95rem,1.4vw,1.1rem); margin: .55rem 0; list-style: none; display: flex; gap: .6rem; }
.slide li::before { content: "→"; color: var(--teal); font-weight: 700; }
.pip { position: absolute; right: 18px; bottom: 18px; width: clamp(120px,15vw,176px); aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg,#2a466b,#13233c); border: 1px solid #3a567f; box-shadow: 0 12px 26px rgba(0,0,0,.5); display: grid; place-items: center; }
.pip .face { font-size: clamp(1.6rem,3vw,2.4rem); }
.pip small { position: absolute; left: 8px; bottom: 6px; font-size: .68rem; color: #dce8f7; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
/* compact one-line lower-third: small icon · name · title · small bouncer */
.lower3 { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px; background: rgba(7,13,24,.72); backdrop-filter: blur(8px); padding: 4px 11px 4px 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.09); }
.lower3 .av { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg,var(--teal),var(--indigo)); display: grid; place-items: center; font-size: .78rem; }
.lower3 .who { color: #fff; font-size: .78rem; line-height: 1; white-space: nowrap; }
.lower3 .who b { font-weight: 700; }
.lower3 small { color: var(--on-dark-muted); font-size: .76rem; }
.rec { position: absolute; right: 16px; top: 14px; display: flex; align-items: center; gap: 6px; background: rgba(7,13,24,.6); padding: .3rem .65rem; border-radius: var(--pill); font-size: .72rem; font-weight: 700; color: #ffd9d9; letter-spacing: .04em; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.wave i { width: 3px; background: var(--teal); border-radius: 2px; height: 6px; animation: wv 1s infinite ease-in-out; }
.wave i:nth-child(2){animation-delay:.12s} .wave i:nth-child(3){animation-delay:.24s} .wave i:nth-child(4){animation-delay:.36s} .wave i:nth-child(5){animation-delay:.48s}
@keyframes wv { 0%,100%{height:5px} 50%{height:20px} }

/* front row + audience strip */
.frontrow { display: flex; align-items: center; gap: 12px; }
.tile { width: 132px; aspect-ratio: 16/10; border-radius: 12px; position: relative; overflow: hidden; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg,#243c61,#11213a); border: 1px solid #2c4068; }
.tile .face { font-size: 1.7rem; opacity: .92; }
.tile small { position: absolute; left: 8px; bottom: 6px; right: 8px; font-size: .72rem; color: #dce8f7; text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .mute { position: absolute; right: 6px; top: 6px; font-size: .8rem; opacity: .7; }
.tile.you { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.audience { margin-left: auto; display: flex; align-items: center; gap: 11px; background: #0e1a30; border: 1px solid #1f2c46; border-radius: var(--pill); padding: 7px 16px 7px 7px; }
.audience .ava-stack span { border-color: #0e1a30; }
.audience b { color: #fff; font-size: .88rem; } .audience small { color: var(--on-dark-muted); font-size: .76rem; display: block; }
.observer-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: #8fb6cf; font-size: .85rem; }
.observer-hint b { color: #bfe9e2; }

/* SIDE */
.side { grid-area: side; background: #0b1322; border-left: 1px solid #1b2740; display: flex; flex-direction: column; min-height: 0; }
.side-tabs { display: flex; padding: 10px; gap: 6px; border-bottom: 1px solid #1b2740; }
.side-tabs button { flex: 1; background: transparent; border: 0; color: var(--on-dark-muted); font: 600 .86rem var(--font); padding: .6rem .4rem; border-radius: 9px; cursor: pointer; }
.side-tabs button.active { background: #17223b; color: #fff; }
.chat { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg .mav { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #cfe0f5; background: linear-gradient(135deg,#2b4877,#16233a); }
.msg .mav.host { background: linear-gradient(135deg,#c07d22,#7a4a10); color: #fff; }
.msg .mav.ai { background: linear-gradient(135deg,var(--teal),var(--teal-600)); color: #04231f; }
.msg .mc .nm { font-weight: 700; font-size: .82rem; color: #b9c8df; }
.msg .mc .nm.host { color: var(--amber); } .msg .mc .nm.ai { color: var(--teal); }
.msg .mc .bd { font-size: .92rem; color: #dbe6f3; }
.msg.sys { justify-content: center; color: var(--on-dark-muted); font-size: .78rem; text-align: center; }
.chat-input { padding: 12px; border-top: 1px solid #1b2740; display: flex; gap: 8px; }
.chat-input input { flex: 1; background: #121d33; border: 1px solid #243352; color: #fff; border-radius: var(--pill); padding: .7rem 1rem; font: 400 .92rem var(--font); }
.askbox { margin: 12px; padding: 14px; border-radius: var(--r); background: #11203a; border: 1px solid #1f6f66; }
.askbox b { color: #7ff0e4; }

/* BAR */
.room-bar { grid-area: bar; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #0b1322; border-top: 1px solid #1b2740; }
.ctrl { display: flex; gap: 10px; }
.rbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; background: #17223b; color: #cdd9ec; border: 1px solid #243352; border-radius: 12px; padding: .5rem .8rem; min-width: 64px; cursor: pointer; font: 600 .72rem var(--font); }
.rbtn:hover { background: #1e2c4a; }
.rbtn .gl { font-size: 1.15rem; }
.rbtn.off { opacity: .85; } .rbtn.off .gl { opacity: .5; }
.rbtn.raised { background: rgba(255,159,28,.16); border-color: var(--amber); color: var(--amber); }
.invite-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: #11203a; border: 1px solid var(--teal); color: #fff; padding: 14px 18px; border-radius: var(--r); box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; z-index: 60; max-width: 92vw; }

/* clip cards */
.clip { overflow: hidden; }
.clip .thumb-img { aspect-ratio: 16/9; background: linear-gradient(135deg,#1c3052,#0c1426); display: grid; place-items: center; color: #fff; font-size: 2rem; position: relative; }
.clip .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; }
.clip .stamp { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .55rem; border-radius: var(--pill); }
.clip .meta { padding: 14px 16px; }

/* cta banner */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; border-radius: var(--r-xl); padding: 44px; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, rgba(16,182,166,.4), transparent 70%); }
.cta-band h2 { color: #fff; }

/* roadmap */
.road { counter-reset: step; display: grid; gap: 0; }
.road .step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.road .step:last-child { border-bottom: 0; }
.road .num { counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); font-weight: 800; display: grid; place-items: center; font-family: var(--display); }
.road .num::before { content: counter(step); }
.road .step.done .num { background: var(--ready); color: #fff; }

/* ---------- notify / reminders (light pages) ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(13,22,38,.55); backdrop-filter: blur(4px); display: flex; overflow-y: auto; z-index: 80; padding: 24px 16px; }
.sheet { margin: auto; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; }
.unlocks { display: grid; gap: 9px; margin: 14px 0 2px; padding: 0; }
.unlocks li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text); }
.unlocks .ck { color: var(--teal); font-weight: 800; }
.sheet-head { padding: 24px 26px 4px; }
.sheet-head .ico-lg { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--teal-50); margin-bottom: 12px; }
.sheet-body { padding: 14px 26px 26px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); margin-bottom: 12px; cursor: pointer; transition: .15s; }
.channel:hover { border-color: var(--teal); }
.channel.on { border-color: var(--teal); background: var(--teal-50); }
.channel .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--bg-2); flex: none; }
.channel .meta { flex: 1; } .channel .meta b { display: block; } .channel .meta small { color: var(--muted); font-size: .85rem; }
.tg { width: 46px; height: 27px; border-radius: var(--pill); background: var(--line-2); position: relative; flex: none; transition: .2s; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.channel.on .tg { background: var(--teal); } .channel.on .tg::after { left: 22px; }
.field { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); font: 400 .95rem var(--font); margin-top: 8px; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.sub-field { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.channel.on + .sub-field { max-height: 90px; }
.optout { font-size: .8rem; color: var(--faint); text-align: center; margin-top: 14px; line-height: 1.5; }

/* footer */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 40px 0; margin-top: 40px; font-size: .9rem; }
.footer a { color: #cdd9ec; }
.disc { font-size: .8rem; color: var(--faint); max-width: 70ch; }
.mock-note { background: #fff8ee; border: 1px dashed var(--amber); color: #8a5a00; font-size: .82rem; text-align: center; padding: .5rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .g-3, .g-4 { grid-template-columns: 1fr 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ============================================================
   MOBILE-FIRST (≤ 820px) — ~80% of traffic lands here from ads
   ============================================================ */
@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .g-grinder { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  /* nav must fit the phone width or it forces the whole page wider */
  .nav .wrap { height: auto; min-height: 56px; gap: .5rem; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav-right { gap: .5rem; margin-left: auto; }
  .pom-lockup .t small { display: none; }
  .pom-lockup img { width: 32px; height: 32px; }
  .brand { font-size: 1.02rem; }
  .live-strip { font-size: .8rem; line-height: 1.35; flex-wrap: wrap; text-align: center; padding: .5rem .8rem; }
  .q-card { padding: 18px; }
  .q-stem { font-size: 1.12rem; }
  .opt { padding: 14px 14px; }
  /* in-card prompt+button rows must stack on phones (don't crush the text into a narrow column) */
  #trackCue, .ask-live { flex-direction: column; align-items: stretch; gap: 12px; }
  #trackCue .btn, .ask-live .btn { width: 100%; justify-content: center; }

  /* LIVE ROOM → natural vertical scroll flow (no clipping, video fits width) */
  .app-dark { min-height: 100dvh; }
  .room {
    display: flex; flex-direction: column;
    grid-template-areas: none;
    height: auto; min-height: 100dvh; overflow: visible;
  }
  .room-topbar { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .room-topbar .sess { border-left: 0; padding-left: 0; }
  .room-topbar .sess b { font-size: .9rem; } .room-topbar .sess span { font-size: .74rem; }
  .room-topbar .chip-dark { display: none; } /* hide "watching anonymously" to save width */
  .tb-right { gap: 8px; flex-wrap: wrap; }
  .stage { padding: 12px; gap: 12px; background: #070d18; }
  .broadcast { display: block; flex: none; }
  /* waiting/offline = a content-sized card (not a cramped 16:9 box that clips the copy);
     16:9 only kicks in once real video is showing (.has-video). */
  .screen { max-width: 100%; width: 100%; max-height: none; aspect-ratio: auto; min-height: 0; }
  .screen.has-video { aspect-ratio: 16/9; }
  .slide { position: relative; inset: auto; padding: 26px 22px; }
  .slide .kick { font-size: .68rem; }
  .slide h2 { font-size: 1.5rem; margin: .4rem 0 .9rem; }
  .slide ul { margin-top: 4px; }
  .slide li { font-size: .98rem; margin: .55rem 0; }
  .pip { width: 96px; }
  /* simpler on phone: drop the front-row tiles + audience strip entirely
     (the live watch count already shows in the top bar) */
  .frontrow { display: none; }
  .side { grid-area: auto; border-left: 0; border-top: 1px solid #1b2740; height: auto; }
  .chat { max-height: 320px; }
  .room-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; position: sticky; bottom: 0; z-index: 40; }
  .room-bar .btn { padding: .6rem .9rem; font-size: .82rem; }
  .room-bar > .row { margin-left: auto; }
  .observer-hint { display: block; font-size: .8rem; text-align: center; line-height: 1.45; }
  .observer-hint b { display: inline; }
  .invite-toast { bottom: 132px; flex-wrap: wrap; }
}

/* finer phone tuning */
@media (max-width: 480px) {
  .room-topbar .sess { flex-basis: 100%; }
  .rbtn { min-width: 56px; padding: .45rem .6rem; }
  .ctrl { gap: 8px; }
  .room-bar .btn-ghost { display: none; } /* drop the 'Practice questions' ghost btn on tiny screens */
  .tile { width: 92px; }
}

/* ============================================================
   Peace of Mind co-brand (navy + gold) + meeting marketing
   ============================================================ */
:root { --navy: #0b1f3a; --navy-2: #0e2647; --gold: #c8a24a; --gold-2: #e7c877; }

.pom-lockup { display: flex; align-items: center; gap: 10px; }
.pom-lockup img { width: 40px; height: 40px; }
.pom-lockup .t { line-height: 1.12; }
.pom-lockup .t b { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: .98rem; display: block; }
.pom-lockup .t small { color: #b08a2e; font-weight: 700; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }

.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #231a05; box-shadow: 0 8px 20px rgba(200,162,74,.35); }
.btn-gold:hover { filter: brightness(1.05); }

/* navy section */
.navy { background: linear-gradient(160deg, var(--navy), #071527); color: #fff; position: relative; overflow: hidden; }
.navy::before { content:""; position:absolute; inset:-30% -10% auto auto; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(200,162,74,.18), transparent 65%); }
.navy h1, .navy h2, .navy h3 { color: #fff; }
.navy .lede, .navy .muted { color: #aabfd8; }
.navy .wrap, .navy .wrap-narrow { position: relative; z-index: 1; }
.gold { color: var(--gold-2); }
.chip-gold { background: rgba(200,162,74,.16); color: var(--gold-2); border: 1px solid rgba(200,162,74,.4); font-weight: 700; font-size: .82rem; padding: .4rem .8rem; border-radius: var(--pill); display: inline-flex; align-items: center; gap: .5rem; }

/* buzz-word marquee */
.marquee { background: var(--navy); color: #fff; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 2px solid var(--gold); }
.marquee .track { display: inline-flex; padding: 13px 0; animation: scroll 30s linear infinite; }
.marquee span { font-weight: 700; font-size: .92rem; padding: 0 20px; display: inline-flex; align-items: center; }
.marquee .d { color: var(--gold); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* host / trainer card */
.host-card { display: flex; gap: 20px; align-items: center; }
.host-card .ph { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex: none; }

/* "hosted by" reveal block */
.hosted { display: flex; gap: 18px; align-items: center; }
.hosted .seal { width: 76px; height: 76px; flex: none; }

/* agenda tiles */
.agenda .ico { background: rgba(200,162,74,.14); }

/* Peace of Mind panel inside the live-room side (dark) */
.pom-panel { margin: 12px; padding: 14px; border-radius: var(--r); background: linear-gradient(160deg, #11254a, #0c1c38); border: 1px solid #20406e; }
.pom-panel .rb { display: flex; align-items: center; gap: 10px; }
.pom-panel img { width: 42px; height: 42px; flex: none; }
.pom-panel b { color: #fff; font-size: .92rem; display: block; line-height: 1.2; }
.pom-panel .sub { color: var(--gold-2); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pom-panel .story { color: #cdddf2; font-size: .85rem; margin: 11px 0; line-height: 1.5; }

/* member identity chip */
.me-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(16,182,166,.14); border: 1px solid rgba(16,182,166,.4); color: #bfeee7; padding: .25rem .6rem .25rem .25rem; border-radius: var(--pill); font-size: .82rem; font-weight: 600; }
.me-chip .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--indigo)); display: grid; place-items: center; font-size: .72rem; color: #04231f; font-weight: 800; }

@media (max-width: 980px) { .host-card { flex-direction: column; text-align: center; } .hosted { flex-direction: column; text-align: center; } }
