/* Base styles. --brand is set per creator in the page head. */
:root {
  --bg: #0f1115; --panel: #171a21; --panel2: #1f232c; --line: #2a2f3a;
  --text: #eef0f4; --muted: #9aa3b2; --danger: #e5484d; --ok: #30a46c;
  --radius: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; }
main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 64px; }
main.narrow { max-width: 560px; padding-top: 80px; }
h1 { font-size: 1.8rem; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .7em; }
.muted { color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(15,17,21,.92); backdrop-filter: blur(8px); z-index: 5; }
.top .home { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top .logo { height: 34px; max-width: 180px; object-fit: contain; }
.top .wordmark { font-weight: 700; font-size: 1.15rem; }
.top .tag { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; }
.top nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top .account { display: flex; align-items: center; gap: 14px; }
.top .account a { text-decoration: none; }
.who { color: var(--muted); margin-right: 8px; font-size: .9rem; }

/* Buttons and forms */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
button.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
button.link.danger, .link.danger { color: var(--danger); }
form.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
label { display: block; margin-bottom: 14px; font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit;
}
input[type=color] { display: block; margin-top: 6px; width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: -8px; }
.error { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.4); padding: 10px 14px; border-radius: 8px; }
.notice { background: rgba(48,164,108,.12); border: 1px solid rgba(48,164,108,.4); padding: 10px 14px; border-radius: 8px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Auth */
.auth { max-width: 420px; margin: 40px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth h1 { font-size: 1.4rem; }
.auth .btn { width: 100%; margin-top: 6px; }
.switch { text-align: center; color: var(--muted); margin-bottom: 0; }

/* Home */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: 2.6rem; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.hero .note { color: var(--text); }
.row { margin: 28px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { text-decoration: none; display: block; }
.card .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--panel2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.card:hover .thumb img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.7); background: linear-gradient(135deg, var(--brand), #111); }
.ph.sm { width: 72px; height: 40px; font-size: 1rem; border-radius: 6px; }
.ph.big { aspect-ratio: 16/9; border-radius: var(--radius); font-size: 1.1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ph.big small { font-size: .85rem; font-weight: 400; opacity: .85; }
.card .dur, .card .lock, .card .free { position: absolute; font-size: .78rem; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.72); }
.card .dur { right: 8px; bottom: 10px; }
.card .lock { left: 8px; top: 8px; }
.card .free { left: 8px; top: 8px; background: var(--brand); }
.card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.card .bar span { display: block; height: 100%; background: var(--brand); }
.card .ttl { margin-top: 8px; font-weight: 500; }

/* Watch */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.watch .player iframe, .edit iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); background: #000; display: block; }
.watch .player video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); display: block; }
.watch .meta { grid-column: 1; }
.watch .desc { white-space: pre-wrap; color: #cfd4dc; }
.watch .next { grid-column: 2; grid-row: 1 / span 2; }
.watch .next .cards { grid-template-columns: 1fr; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } .watch .next { grid-column: 1; grid-row: auto; } .watch .next .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Studio */
.studio-head { display: flex; align-items: baseline; gap: 16px; }
.upload .drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; color: var(--muted); font-weight: 400; }
.upload .drop strong { color: var(--text); font-size: 1.05rem; }
.upload .drop.over { border-color: var(--brand); background: rgba(255,255,255,.03); }
.uploads { list-style: none; padding: 0; margin: 12px 0 24px; }
.uploads li { display: grid; grid-template-columns: 1fr 200px 220px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.uploads .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads progress { width: 100%; accent-color: var(--brand); }
.uploads li.ok .state { color: var(--ok); }
.uploads li.bad .state { color: var(--danger); }
table.list { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.list th { text-align: left; color: var(--muted); font-weight: 500; font-size: .85rem; padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list td.t img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.status { font-size: .82rem; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.status.pub { background: rgba(48,164,108,.16); color: #5fd49b; }
.status.s-failed { background: rgba(229,72,77,.16); color: var(--danger); }
.pill { font-size: .75rem; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--brand); color: var(--text); }
.edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.edit video { width: 100%; border-radius: var(--radius); background: #000; }
@media (max-width: 900px) { .edit { grid-template-columns: 1fr; } }
.fields.narrow { max-width: 520px; }
.actions { margin-top: 8px; }
.danger { margin-top: 32px; }
.inline-form { display: flex; gap: 10px; align-items: center; margin: 0; }
.inline-form input { margin-top: 0 !important; max-width: 360px; }
.collections { list-style: none; padding: 0; margin-top: 20px; }
.collections li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .top { flex-wrap: wrap; gap: 10px; } .uploads li { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

/* Payments */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.panel.dim { opacity: .55; }
.panel h2 { margin-top: 0; }
.plan-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }
.plan-form label { margin: 0; }
@media (max-width: 800px) { .plan-form { grid-template-columns: 1fr 1fr; } }
.join { max-width: 860px; margin: 40px auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; }
.plan .price { font-size: 2.2rem; font-weight: 700; margin: 6px 0; }
.plan .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .trial { margin: 0 0 16px; }
.plan .btn { width: 100%; }
.small { font-size: .85rem; }
.auth.wide { max-width: 560px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 22px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.actions-cell { white-space: nowrap; }
.actions-cell form + form { margin-left: 14px; }
a.who { text-decoration: none; }

/* Footer, help button, utilities */
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 26px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }
.help-fab { position: fixed; right: 20px; bottom: 20px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.35); z-index: 10; }
.offscreen { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tabs a { padding: 4px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); font-size: .9rem; }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-nav { margin: 4px 0 20px; }
ul.plain { padding-left: 18px; }
.pre { white-space: pre-wrap; }
pre.ctx { font-size: .8rem; background: var(--panel2); padding: 10px; border-radius: 8px; overflow: auto; max-height: 320px; }
input.copy { width: 100%; font-size: .85rem; margin: 0 !important; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 4px; }
table.dns { max-width: 560px; }

/* Insights */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat .k { color: var(--muted); font-size: .85rem; }
.stat .v { font-size: 1.5rem; font-weight: 700; }
.stat .sub { color: var(--muted); font-size: .8rem; }
.panel.note p { margin: .4em 0; font-size: 1.05rem; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-bottom: 18px; }
.bars .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bars .b span { background: var(--brand); border-radius: 4px 4px 0 0; display: block; }
.bars .b em { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: .65rem; color: var(--muted); font-style: normal; }

/* Programs */
.program { max-width: 760px; }
.program-list, .program-order { padding: 0; list-style: none; }
.program-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.program-list .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-size: .85rem; }
.program-list li.done .num { background: var(--brand); color: #fff; }
.program-order li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-buttons { display: inline-flex; gap: 12px; }
.program-nav { color: var(--muted); margin-bottom: 6px; font-size: .95rem; }

/* Platform site */
body.platform main { max-width: 1080px; }
body.platform main.narrow { max-width: 560px; }
.p-hero { padding: 70px 0 40px; max-width: 760px; }
.p-hero h1 { font-size: 2.8rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: #cfd4dc; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 20px 0 40px; }
.p-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.p-band { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 30px 0; }
.p-list { columns: 2; gap: 30px; padding-left: 20px; }
@media (max-width: 700px) { .p-list { columns: 1; } .p-hero h1 { font-size: 2rem; } }
.p-cta { text-align: center; padding: 30px 0 10px; }
body.platform { --brand: #3b5bdb; }
.addr { display: flex; align-items: center; gap: 6px; }
.addr input { flex: 1; }
.addr .suffix { color: var(--muted); white-space: nowrap; margin-top: 6px; }
.legal { max-width: 720px; }
.legal h2 { margin-top: 1.6em; }
.bars .b { max-width: 48px; }
.order-buttons { white-space: nowrap; }
.order-buttons button[disabled] { opacity: .3; cursor: default; }
.share { margin: 0 0 18px; }
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row input.copy { flex: 1; }

/* Light theme */
body.theme-light { --bg: #ffffff; --panel: #f6f7f9; --panel2: #eef0f3; --line: #e2e5ea; --text: #15181d; --muted: #5c6573; }
body.theme-light .top { background: rgba(255,255,255,.92); }
body.theme-light .lead, body.theme-light .watch .desc { color: #39404b; }
body.theme-light .card .dur, body.theme-light .card .lock { color: #fff; }
/* Font pairings (system fonts, no outside requests) */
body.font-classic h1, body.font-classic h2, body.font-classic .wordmark { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; letter-spacing: 0; }
body.font-friendly { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; }
body.font-bold h1, body.font-bold h2, body.font-bold .wordmark { font-family: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
/* Banner */
.hero.has-image { background-size: cover; background-position: center; border-radius: 18px; padding: 90px 40px; position: relative; overflow: hidden; margin-top: 10px; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.2)); }
.hero.has-image .hero-inner { position: relative; color: #fff; max-width: 640px; }
.hero.has-image p { color: rgba(255,255,255,.88); }
.hero.slim { padding: 50px 40px; }
.hero.slim h1 { font-size: 2rem; margin: 0; }
/* About */
.about { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 28px; align-items: start; margin: 50px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.about img { width: 100%; border-radius: 14px; }
.about:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .hero.has-image { padding: 50px 22px; } }
/* Brand form */
.brand-form { max-width: 720px; }
.img-field { margin-bottom: 12px; }
.img-preview { display: block; max-height: 90px; max-width: 100%; border-radius: 8px; margin-bottom: 8px; background: var(--panel2); }
.img-preview.hero, .img-preview.share { max-height: 120px; }
fieldset.choice, fieldset.publish { border: 0; padding: 0; margin: 0 0 14px; }
fieldset legend { font-weight: 500; margin-bottom: 6px; }
fieldset.publish .when { display: inline-block; width: auto; margin: 0 0 0 6px; }
/* Misc new bits */
.banner { background: var(--brand); color: #fff; text-align: center; padding: 8px 16px; font-size: .92rem; }
.banner .link { color: #fff; text-decoration: underline; }
.head-actions { margin-left: auto; display: inline-flex; gap: 8px; }
.meta-row { display: flex; align-items: center; gap: 14px; }
.fav.on { border-color: var(--brand); }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 10px 0 20px; }
.search-form input { margin: 0 !important; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.thumb-preview { width: 100%; max-width: 320px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 10px; }
.account-page { max-width: 720px; }
.danger-zone { border-color: rgba(229,72,77,.4); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0; }
label.check input[type=checkbox], label.check input[type=radio] { width: auto; margin: 0; flex: none; }

/* Getting started, downloads, comments */
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line, #2a2f3a); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps li.done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done strong { text-decoration: line-through; opacity: .7; }
.downloads, .comments { margin-top: 28px; }
.downloads h2, .comments h2 { font-size: 1.1rem; }
.comment-form { display: grid; gap: 8px; justify-items: start; margin-bottom: 18px; }
.comment-form textarea { width: 100%; }
.comment { padding: 12px 0; border-top: 1px solid var(--line, rgba(128,128,128,.25)); }
.comment header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
td.wrap { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; }
.guide h2 { margin-top: 32px; }
.guide li { margin: 6px 0; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 24px; }

/* Page layout options (Studio → Page layout) */
body.cards-small .cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
body.cards-large .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
body.btn-pill .btn { border-radius: 999px; }
body.btn-square .btn { border-radius: 2px; }
.watch .player { position: relative; }
.fav-corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
.fav-corner .btn { background: rgba(0,0,0,.6); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.under-player { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.watch.next-below, .watch.next-hidden { grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin-inline: auto; }
.watch.next-below .next { grid-column: 1; grid-row: auto; }
.watch.next-below .next .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.watch .block { margin-top: 18px; }
.watch .b-title { margin-top: 12px; }
.blocks { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 6px; max-width: 520px; }
.blocks li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2, transparent); }
.blocks li .name { flex: 1; }
.blocks li button { background: transparent; border: 1px solid var(--line); color: inherit; border-radius: 6px; width: 30px; height: 28px; cursor: pointer; }
.blocks li label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; }
.ab-table td.win { font-weight: 700; }
.ab-note { border-left: 3px solid var(--brand); padding: 6px 12px; margin: 14px 0; }
.announce { background: var(--brand); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; }
.announce a { color: inherit; }
.benefits { list-style: none; padding: 0; margin: 16px auto; display: grid; gap: 8px; text-align: left; max-width: 420px; }
.benefits li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 10px; }
.plan-summary { margin: 14px 0; display: grid; gap: 6px; }
.plan-summary li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.signup-previews { margin-top: 18px; }
.signup-previews .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.plan { position: relative; }
.plan.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plans.style-list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
.plans.style-list .plan { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; gap: 4px 18px; padding: 18px 22px; }
.plans.style-list .plan h2, .plans.style-list .plan .price, .plans.style-list .plan .trial { grid-column: 1; margin: 0; }
.plans.style-list .plan .price { font-size: 1.4rem; }
.plans.style-list .plan .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; }
.join-note { margin: 18px auto; max-width: 520px; font-weight: 600; }
.featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 24px 0; }
.featured .featured-card .ttl { display: none; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }
.message { margin: 28px 0; max-width: 760px; }
.message .desc, .custom-page p { white-space: pre-wrap; }
.custom-page { max-width: 760px; margin: 32px auto; }
.social { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.top nav a.on { color: var(--text); font-weight: 600; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.subnav a { text-decoration: none; color: var(--muted); padding: 5px 12px; border-radius: 999px; }
.subnav a.on { color: var(--text); background: var(--panel2, rgba(128,128,128,.15)); }

/* Inserts: shown over the player */
.insert { position: absolute; inset: 0; z-index: 4; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.insert video, .insert iframe { width: 100%; height: 100%; border: 0; display: block; }
.insert-card { text-align: center; color: #fff; padding: 24px; max-width: 560px; }
.insert-card h2 { font-size: clamp(1.2rem, 3vw, 2rem); margin: 0 0 10px; }
.insert-card p { color: #d5d9e0; margin: 0 0 18px; }
.insert-skip { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; border-color: rgba(255,255,255,.35); }
.insert-skip:disabled { opacity: .75; cursor: default; }
td.actions form { margin-right: 10px; }
.tagchip { display: inline-block; font-size: .8rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; margin: 2px 2px 2px 0; }
a.tagchip:hover { color: var(--text); border-color: var(--brand); }

/* "Match each visitor's device": light when their phone or computer is set to light, dark otherwise */
@media (prefers-color-scheme: light) {
  body.theme-auto { --bg: #ffffff; --panel: #f6f7f9; --panel2: #eef0f3; --line: #e2e5ea; --text: #15181d; --muted: #5c6573; }
  body.theme-auto .top { background: rgba(255,255,255,.92); }
  body.theme-auto .lead, body.theme-auto .watch .desc { color: #39404b; }
  body.theme-auto .card .dur, body.theme-auto .card .lock { color: #fff; }
}

/* Editing the site on the site itself (owner and team only) */
.ed-bar { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: .92rem; }
.ed-bar button, .ed-bar a { font: inherit; border: 0; background: transparent; color: var(--text); padding: 7px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.ed-bar .primary { background: var(--brand); color: #fff; font-weight: 600; }
.ed-bar .note { color: var(--muted); padding: 0 8px; }
body.editing [data-edit] { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 4px; cursor: text; min-width: 2ch; min-height: 1em; }
body.editing [data-edit]:focus { outline-style: solid; background: rgba(128,128,128,.12); }
body.editing [data-edit]:empty::before { content: attr(data-placeholder); opacity: .5; }
body.editing [data-block] { position: relative; border: 1px dashed var(--line); border-radius: 10px; padding: 34px 10px 10px; margin: 12px 0; min-height: 44px; }
body.editing [data-block].ed-hidden { opacity: .35; }
.ed-tools { display: none; }
body.editing .ed-tools { display: flex; gap: 6px; align-items: center; position: absolute; top: 6px; left: 10px; right: 10px; font-size: .8rem; color: var(--muted); }
.ed-tools span { flex: 1; }
.ed-tools button { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 6px; padding: 2px 9px; cursor: pointer; }

/* Calendar, embeds */
.calendar { max-width: 760px; margin: 24px auto; }
.event { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; background: var(--panel); }
.event h2 { margin: 0 0 4px; font-size: 1.2rem; }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.event-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
body.embed { margin: 0; background: #000; }
body.embed .player iframe, body.embed .player video { width: 100%; height: calc(100vh - 34px); border: 0; display: block; background: #000; }
.embed-cta { display: block; height: 34px; line-height: 34px; padding: 0 12px; color: #fff; background: #111; font: 14px system-ui, sans-serif; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.editing [data-edit] { -webkit-user-select: text; user-select: text; -webkit-user-modify: read-write-plaintext-only; -webkit-touch-callout: none; }
body.editing a[data-edit], body.editing a:has([data-edit]) { -webkit-user-drag: none; }
@media (max-width: 640px) { .ed-bar { left: 8px; right: 8px; bottom: 8px; border-radius: 14px; flex-wrap: wrap; justify-content: center; } .ed-bar .note { flex-basis: 100%; text-align: center; padding-bottom: 4px; } body.editing main { padding-bottom: 120px; } }

/* Usage meters */
.meter { margin: 6px 0 18px; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.meter-bar { height: 12px; border-radius: 999px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); }
.meter-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.near .meter-bar span { background: #e0a100; }
.meter.over .meter-bar span { background: #e5484d; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark span { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-width: 4px; opacity: .85; }

/* ==========================================================================
   Look and ease pass (Nov 2026). One layer on top of the base styles:
   calmer type, roomier touch targets, shelves that scroll sideways, softer cards.
   Colors come from the theme variables, so light, dark and "match device" all work.
   ========================================================================== */
:root { --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.22); --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
body.theme-light { --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08); }
@media (prefers-color-scheme: light) { body.theme-auto { --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08); } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
main { padding: 28px clamp(16px, 3vw, 32px) 72px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .card:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }

/* Header: one tidy line; on phones the menu slides sideways instead of stacking */
.top { gap: 18px; padding: 12px clamp(16px, 3vw, 32px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.top .wordmark { font-size: 1.2rem; letter-spacing: -.02em; }
.top nav { gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.top nav a:hover { background: var(--panel2); color: var(--text); }
.top nav a.on { background: var(--panel2); }
.top .account { gap: 10px; flex: none; }
.who { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 640px) { .top { flex-wrap: wrap; row-gap: 6px; } .top nav { order: 3; flex-basis: 100%; margin: 0 -8px; padding: 0 4px; } .top .account { margin-left: auto; } .who { display: none; } }
.subnav { padding: 8px clamp(16px, 3vw, 32px); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; position: sticky; top: 0; background: var(--bg); z-index: 4; }
.subnav a { white-space: nowrap; }

/* Buttons and forms: bigger targets, clear states */
.btn { padding: 11px 20px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; transition: transform .08s, filter .15s, background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost:hover { background: var(--panel2); filter: none; }
.btn.small { min-height: 36px; padding: 7px 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { font-size: .95rem; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), textarea, select { min-height: 44px; border-radius: 10px; font-size: 1rem; }
input[type=file] { display: block; margin-top: 6px; max-width: 100%; font: inherit; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.notice, .error { border-radius: 10px; padding: 12px 16px; }
.hint, .small { font-size: .88rem; }

/* Banner */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); position: relative; }
.hero:not(.has-image)::before { content: ""; position: absolute; inset: -40px -20vw auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 20% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); max-width: 18ch; letter-spacing: -.03em; }
.hero p { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); margin: 14px 0 22px; }
.hero .btn { padding: 13px 24px; font-size: 1.05rem; }
.hero.has-image { border-radius: 20px; padding: clamp(48px, 9vw, 110px) clamp(22px, 5vw, 56px); box-shadow: var(--shadow); }
.benefits { margin: 4px 0 28px; max-width: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Shelves: each row of videos scrolls sideways, like the big streaming sites */
.row { margin: 36px 0; }
.row > h2 { margin-bottom: 14px; font-size: 1.3rem; }
.row > .cards { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w, 260px); grid-template-columns: none; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px clamp(16px, 3vw, 32px) 14px; margin: 0 calc(-1 * clamp(16px, 3vw, 32px)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.row > .cards > * { scroll-snap-align: start; }
body.cards-small { --card-w: 200px; } body.cards-large { --card-w: 340px; }
body.cards-small .row > .cards, body.cards-large .row > .cards { grid-template-columns: none; }
@media (max-width: 640px) { .row > .cards { grid-auto-columns: min(72vw, var(--card-w, 260px)); } }
.card .thumb { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.card:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb .ph { display: grid; place-items: center; height: 100%; font-size: 2rem; font-weight: 700; color: var(--muted); background: linear-gradient(135deg, var(--panel2), var(--panel)); }
.card .ttl { margin-top: 10px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .dur, .card .lock, .card .free { border-radius: 999px; padding: 3px 9px; font-weight: 600; backdrop-filter: blur(4px); }
.featured { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2.5vw, 26px); box-shadow: var(--shadow); }
.featured h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); }
.about { border-top: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 32px); }
.events-row .event-list li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }

/* Watching */
.watch { gap: clamp(18px, 2.5vw, 32px); }
.watch .player iframe, .watch .player video { border-radius: 14px; box-shadow: var(--shadow); }
.watch .b-title h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.watch .desc { font-size: 1.02rem; max-width: 70ch; color: var(--text); opacity: .88; }
.comment-form textarea { min-height: 84px; }

/* Sign-in, sign-up, plans */
.auth { border-radius: 18px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); margin-top: clamp(20px, 6vw, 56px); }
.auth h1 { font-size: 1.5rem; margin-bottom: 14px; }
.auth .switch { text-align: center; color: var(--muted); margin: 14px 0 0; }
.plan { border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Studio: calmer panels, tables that survive a phone */
.panel { border-radius: 16px; padding: clamp(16px, 2.5vw, 24px); }
.studio-head { align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6px; }
table.list th { text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; padding: 10px 8px; }
table.list td { padding: 12px 8px; }
table.list tbody tr:hover { background: color-mix(in srgb, var(--panel2) 55%, transparent); }
@media (max-width: 760px) { table.list { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; } table.list td.wrap { white-space: normal; min-width: 220px; } .inline-form { flex-wrap: wrap; } .inline-form input { max-width: none; } .collections li { flex-wrap: wrap; } }
.upload .drop { border-radius: 18px; padding: clamp(26px, 5vw, 44px); transition: border-color .15s, background .15s; }
.upload .drop:hover { border-color: var(--brand); }
.status, .pill { font-weight: 600; }
.help-fab { bottom: 18px; right: 18px; }
.foot { border-top: 1px solid var(--line); padding: 28px 20px 48px; gap: 10px 22px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 44px 20px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The platform's own pages */
body.platform .p-hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem); letter-spacing: -.03em; }
body.platform main.narrow { padding-top: clamp(32px, 8vw, 80px); }
.top .home { min-width: 0; flex: 0 1 auto; }
.top .wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 640px) { .top .home { flex: 1 1 0; } .top .wordmark { font-size: 1.05rem; } .top .account .btn.small { min-height: 34px; padding: 6px 12px; } .announce { font-size: .92rem; padding: 7px 14px; } }

/* Pricing page */
.pricing { max-width: 1080px; margin: 0 auto; }
.draft-note { display: inline-block; font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); margin: 0 0 8px; }
.pr-head { text-align: center; max-width: 760px; margin: 24px auto 36px; }
.pr-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); letter-spacing: -.03em; }
.pr-head .lead { font-size: 1.15rem; color: var(--muted); }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.pr-card.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pr-card .badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pr-card h2 { font-size: 1.4rem; margin: 0; }
.pr-card .btn { margin-top: auto; }
.pr-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.pr-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pr-price.small { font-size: 1.5rem; }
.pr-incl { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; }
.pr-incl li { padding-left: 22px; position: relative; }
.pr-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.pr-calc { margin: 36px 0; }
.calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 6px; }
.calc-plan { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--panel2); }
.calc-plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.calc-total { font-size: 1.6rem; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table.compare td:first-child { font-weight: 500; min-width: 200px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; }
.compare .yes { color: var(--brand); font-weight: 800; }
.compare .no { color: var(--muted); }
.pr-every { columns: 2; gap: 32px; padding-left: 20px; }
.pr-every li { margin: 6px 0; break-inside: avoid; }
@media (max-width: 700px) { .pr-every { columns: 1; } }
.pr-services { margin: 36px 0; }
.pr-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.pr-faq summary { cursor: pointer; font-weight: 600; }
.pr-faq details p { color: var(--muted); margin: 10px 0 0; }
.pr-intro { display: inline-block; align-self: flex-start; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); margin: 0 0 4px; }
.pr-yearly { text-align: center; color: var(--muted); margin: 18px 0 0; }

/* Sign-up form: field only bots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Look and ease, round two ---- */
/* Room at the bottom so the Help button and the on-page edit bar never sit on top of the last thing on the page. */
body.studio main, body:has(.help-fab) main { padding-bottom: 88px; }
body:has(.ed-bar) main { padding-bottom: 96px; }
@media (max-width: 640px) { body:has(.ed-bar) main { padding-bottom: 132px; } .help-fab { padding: 8px 14px; font-size: .9rem; } }
/* Something that isn't part of the creator's plan */
.notice.locked { background: color-mix(in srgb, var(--brand) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.notice.locked a { font-weight: 600; white-space: nowrap; }
/* Long Studio forms: headings between groups, extras folded away, Save always within reach on a phone */
.form-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.fields > .form-h:first-of-type, .notice + .form-h { border-top: 0; padding-top: 0; margin-top: 4px; }
details.more { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 6px; }
details.more > summary { cursor: pointer; font-weight: 600; }
details.more fieldset { border: 0; padding: 8px 0 0; margin: 0; }
@media (max-width: 720px) {
  .save-bar { position: sticky; bottom: 0; z-index: 5; margin: 12px -16px 0; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
  .save-bar .btn { width: calc(100% - 96px); }
}
/* Tables on a phone: let wide ones scroll sideways instead of cutting the last column off */
@media (max-width: 640px) {
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table.list td, table.list th { white-space: normal; min-width: 88px; }
  table.list td:first-child, table.list th:first-child { min-width: 160px; }
  .admin-nav { flex-wrap: wrap; row-gap: 6px; }
}
/* Plans page: the plan a member is choosing reads as the main thing on the page */
.plan-card .btn, .plans .btn { min-height: 46px; }

/* ---- Platform: top bar and the home page ---- */
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
.p-top .p-mark { font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.p-top nav { display: flex; align-items: center; gap: 4px; }
.p-top nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.p-top nav a:not(.btn):hover { color: var(--text); background: var(--panel); }
.p-top .btn.small { padding: 8px 14px; margin-left: 6px; }
@media (max-width: 560px) { .p-top { padding: 12px 16px; } .p-top nav a:not(.btn) { padding: 8px 6px; font-size: .92rem; } .p-top nav a[href="/guide"] { display: none; } }

.h-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 44px 0 56px; }
.h-hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; }
.h-hero .lead { max-width: 34em; }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.h-calc { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 16px; }
.h-calc h2 { font-size: 1.05rem; margin: 0 0 14px; }
.h-calc label { display: block; margin-bottom: 12px; font-size: .95rem; color: var(--muted); }
.h-calc label span { display: flex; justify-content: space-between; gap: 12px; }
.h-calc output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-calc input[type=range] { width: 100%; accent-color: var(--brand); margin: 6px 0 0; padding: 0; background: transparent; border: 0; }
.h-calc .calc-out { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.h-calc .calc-plan { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 10px 14px; }
.h-calc .calc-plan strong { grid-column: 1; }
.h-calc .calc-plan .calc-total { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.h-calc .calc-plan .muted { grid-column: 1; }
.h-calc .calc-plan .muted:last-child { grid-column: 1 / -1; }
.h-calc .calc-plan:not(.best) { opacity: .62; }
.h-calc .calc-plan:not(.best) .muted { display: none; }
.h-calc .calc-plan.best .calc-total { font-size: 1.7rem; }

.h-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 8px 0 64px; }
.h-split > div { padding: 26px 28px; }
.h-split > div + div { background: var(--panel); border-left: 1px solid var(--line); }
.h-split h2 { font-size: 1.15rem; margin: 0 0 10px; }
.h-split ul { margin: 0; padding-left: 18px; color: var(--muted); }
.h-split li { margin: 6px 0; }
.h-split li::marker { color: var(--brand); }

.h-steps { margin: 0 0 64px; }
.h-steps h2, .h-plans h2, .h-move h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 18px; }
.h-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 0; }
.h-steps li { counter-increment: step; color: var(--muted); border-top: 2px solid var(--line); padding-top: 14px; }
.h-steps li::before { content: counter(step); display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.h-steps li strong { color: var(--text); display: block; margin-bottom: 4px; }

.h-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 40px; margin: 0 0 64px; }
.h-feature h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 12px; }
.h-feature p { color: var(--muted); margin: 0 0 12px; }
.h-track { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.h-track .seg { display: block; font-size: .82rem; font-weight: 600; padding: 9px 12px; border-radius: 10px; background: var(--brand); color: #fff; white-space: nowrap; }
.h-track .seg.play { height: 10px; padding: 0; border-radius: 0; background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 18px; }
.h-track-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 10px; }

.h-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 56px; margin: 0 0 64px; }
.h-group h2 { font-size: 1.15rem; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); display: inline-block; }
.h-group dl { margin: 6px 0 0; }
.h-group dt { font-weight: 650; margin-top: 14px; }
.h-group dd { margin: 2px 0 0; color: var(--muted); }

.h-move { border-left: 3px solid var(--brand); padding: 4px 0 4px 24px; margin: 0 0 64px; max-width: 46em; }
.h-move p { color: var(--muted); }
.h-move p:last-child { margin-bottom: 0; }

.h-plans { text-align: center; padding: 8px 0 24px; }
.h-plan-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.h-plan-row a { display: flex; flex-direction: column; gap: 2px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; background: var(--panel); }
.h-plan-row a:hover { border-color: var(--brand); }
.h-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.h-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.h-plans .h-cta { justify-content: center; }

@media (max-width: 860px) {
  .h-hero { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 40px; }
  .h-split, .h-feature, .h-groups { grid-template-columns: 1fr; }
  .h-split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .h-steps ol, .h-plan-row { grid-template-columns: 1fr; gap: 16px; }
  .h-feature { padding: 24px 20px; gap: 24px; }
  .h-groups { gap: 32px; }
  .h-track .seg { white-space: normal; text-align: center; font-size: .76rem; padding: 8px; }
  .h-split, .h-steps, .h-feature, .h-groups, .h-move { margin-bottom: 44px; }
}

.p-top .p-mark, .p-top nav a { white-space: nowrap; }
@media (max-width: 560px) { .p-top nav a[href="/sign-in"] { display: none; } .p-top .btn.small { padding: 7px 12px; font-size: .9rem; } }

.h-ask { margin: 0 0 56px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.h-ask p { margin: 0; }
.h-ask strong { color: var(--text); }

/* ---- Studio → Analytics ---- */
.an-h { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 22px 0 8px; }
.an-table th a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.an-table th a.on { color: var(--text); border-bottom: 2px solid var(--brand); }
.stat .sub { display: block; }
code.wrap { overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-grid .stat { padding: 12px 14px; } .stat-grid .stat .v { font-size: 1.3rem; } }

/* Analytics: comparisons, retention graph, when-they-watch grid */
.delta { font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); }
.share { display: inline-block; width: 70px; height: 8px; background: var(--line); border-radius: 4px; vertical-align: middle; overflow: hidden; }
.share span { display: block; height: 100%; background: var(--brand); }
.retention svg { width: 100%; height: 240px; display: block; }
.retention .area { fill: color-mix(in srgb, var(--brand) 18%, transparent); }
.retention .line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.retention .mark { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.retention .axis { stroke: var(--line); vector-effect: non-scaling-stroke; }
.retention-x { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: -18px; }
.an-facts li { margin: 6px 0; }
.an-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.an-cols h3 { margin-top: 0; }
.when { max-width: 720px; }
.when-row { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; margin-bottom: 2px; font-size: .68rem; color: var(--muted); align-items: center; }
.when-head span { white-space: nowrap; overflow: visible; }
.when-row i { display: block; aspect-ratio: 1; background: color-mix(in srgb, var(--brand) var(--fill, 0%), var(--line)); border-radius: 2px; }
.cohorts td, .cohorts th { text-align: center; } .cohorts td:first-child, .cohorts th:first-child { text-align: left; }
.crumb { margin: 0 0 4px; font-size: .9rem; }
.blocks li label.check { flex: 1; } .blocks .moves { display: flex; gap: 4px; }
@media (min-width: 761px) { table.compare { table-layout: fixed; width: 100%; } table.compare td { overflow-wrap: anywhere; } table.compare th:first-child { width: 22%; } }

/* Learn: articles */
.learn { max-width: 720px; margin: 0 auto; }
.learn h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 14px; }
.learn h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.learn p, .learn li { line-height: 1.65; }
.learn ul { padding-left: 1.2em; } .learn li { margin: 6px 0; }
.learn .lead { font-size: 1.1rem; color: var(--muted); }
.learn-list { list-style: none; padding: 0 !important; }
.learn-list li { margin: 0 0 14px; } .learn-list li a { font-weight: 600; display: block; } .learn-list li span { font-size: .92rem; }
.learn-example { margin-top: 36px; } .learn-example h2 { margin-top: 0; } .learn-example tr.best td { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.learn-cta { margin: 40px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); } .learn-cta h2 { margin-top: 0; }

/* Quick answers: short question-and-answer blocks */
.quick-answers { margin: 36px 0 8px; }
.quick-answers dt { font-weight: 600; margin-top: 16px; }
.quick-answers dd { margin: 4px 0 0; color: var(--muted); line-height: 1.6; max-width: 720px; }
.pricing .quick-answers { max-width: 760px; }

/* Tools and reading links */
.tool-box { margin: 22px 0; }
.tool-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tool-inputs label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.tool-inputs .hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.tool-out { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.tool-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tool-row.total { font-size: 1.15rem; border-bottom: 0; padding-top: 12px; } .tool-row.total strong { color: var(--brand); }
.h-read { text-align: center; padding: 8px 0 28px; } .h-read h2 { font-size: 1.2rem; margin: 0 0 12px; }
.h-read ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.pr-read { text-align: center; color: var(--muted); max-width: 760px; margin: 8px auto 28px; }
.guide-read { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* The home page's section tabs (Videos, Programs, Playlists, saved). */
.home-tabs { display: flex; margin: 0 0 18px; }
.home-tabs a { padding: 8px 16px; font-size: 1rem; min-height: 40px; display: inline-flex; align-items: center; }
.pl-add { margin-top: 10px; }
.pl-add form.inline { margin: 6px 6px 0 0; }

/* Live classes: the player with the chat beside it (below it on a phone). */
.live-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .live-wrap { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); align-items: start; } }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 10px; }
.live-badge .dot, .home-tabs a.live-on::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; display: inline-block; }
.home-tabs a.live-on::before { margin-right: 6px; }
.live-main video.stream, section.panel video.stream { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.live-chat h2 { margin-top: 0; font-size: 1.05rem; }
.chat-list { height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel, transparent); }
.chat-msg { margin: 0 0 8px; overflow-wrap: anywhere; }
.chat-msg.team strong { color: var(--brand); }
.live-off { max-width: 620px; padding: 30px 0; }

/* Pricing: "what each plan includes" as a price list, one plan at a time. Name on the left, what you get on the right. */
.pr-all { margin-top: 8px; text-align: center; }
.pr-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.pr-pick button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 12px; padding: 10px 6px; font-weight: 700; min-height: 56px; }
.pr-pick button span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.pr-pick button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pr-pick button.on span { color: var(--brand); }
.pr-list { margin-bottom: 34px; }
.pr-list-name { font-size: 1.25rem; margin: 0 0 6px; }
.pr-list-name span { font-weight: 400; font-size: 1rem; }
.pr-group { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 6px; margin: 14px 0; background: var(--panel); }
.pr-group h4 { margin: 0; font-size: 1.05rem; }
.pr-group > p { margin: 2px 0 8px; }
.pr-group dl { margin: 0; }
.pr-group dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pr-group dt { flex: 1 1 55%; }
.pr-group dd { margin: 0; flex: 0 1 45%; text-align: right; font-weight: 600; }
.pr-group dd .no { color: var(--muted); font-weight: 400; }
@media (max-width: 520px) { .pr-pick { gap: 6px; } .pr-pick button { font-size: .82rem; padding: 8px 2px; } .pr-pick button span { font-size: .75rem; } .pr-group { padding: 16px 14px 4px; } }
