/* Current density scale. Colors, typeface and continuous corners come from app.css. */
:root { --content-gutter: 24px; --type-body: 13px; --type-title: 20px; --type-section: 16px; --space-section: 22px; }
body { font-size: var(--type-body); line-height: 1.45; }
.h-hero { font-size: 28px; line-height: 1.1; }
.h1 { font-size: var(--type-title); line-height: 1.2; }
.h2, .shelf h2 { font-size: var(--type-section); line-height: 1.3; font-weight: 650; }
.h3 { font-size: 14px; }
.cap { font-size: 12px; }
.micro { font-size: 11px; }
.page { padding: 16px var(--content-gutter) 40px; }
.page-head, .page-title { margin-bottom: 16px; gap: 12px; }
.topbar { padding: 6px var(--content-gutter); min-height: 0; }
.topbar:has(> .icon-btn:only-child) { display: none; }
.topbar-title { font-size: 14px; }
.btn { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 13px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-icon { width: 36px; padding: 0; }
.icon-btn { width: 34px; height: 34px; }
.ico { width: 20px; height: 20px; }
.ico.sm { width: 16px; height: 16px; }
.head .logo-word { font-size: 19px; }
.head-in > .spacer { flex: 1 1 auto; }
.hsearch { height: 36px; flex-basis: 520px; }
.hsearch input { font-size: 14px; }
.hsearch-btn { width: 48px; }
.pill-btn, .login-pill { height: 34px; font-size: 13px; }
.chips-bar { padding: 6px 0; }
.chips-bar .chips-row { padding-inline: var(--content-gutter); gap: 6px; }
.ychip { font-size: 12px; height: 28px; padding: 0 10px; }
.rail-i { padding: 12px 0; gap: 4px; }
.rail-i .ico { width: 21px; height: 21px; }
.shelf, .section { margin-top: var(--space-section); }
.shelf-head, .section > .h2 { margin-bottom: 10px; }
.shelf-head a { font-size: 12px; }
.rail { margin-inline: calc(-1 * var(--content-gutter)); padding-inline: var(--content-gutter); scroll-padding-inline: var(--content-gutter); gap: 12px; }
.card { width: 144px; gap: 4px; }
.card-art { --r: 12px; }
.card-t, .card > div > .card-t { font-size: 13px; line-height: 18px; margin-top: 4px; }
.card-s { font-size: 11px; line-height: 16px; margin-top: 0; }
.grid-cards { grid-template-columns: repeat(auto-fill,minmax(144px,1fr)); gap: 16px 12px; }
.bubbles { padding-inline: var(--content-gutter); margin-inline: calc(-1 * var(--content-gutter)); }
.spot { padding: 18px; margin-top: 22px; --r: 18px; gap: 18px; }
.spot-t { font-size: 22px; }
.spot p { font-size: 13px; }
.spot-poster { width: 100px; }
.tile { height: 90px; --r: 12px; }
.tile-t { font-size: 15px; }

/* Accordion Gallery interaction, adapted for the existing vanilla app.
   Stable height, explicit selection, native scrolling, no automatic switching. */
.feature-gallery { position: relative; display: flex; height: 260px; gap: 8px; margin: 0; }
.feature-panel { position: relative; min-width: 0; flex: 1 1 0; overflow: hidden; border-radius: 14px; background: #111113; color: #fff; transition: flex-grow .45s cubic-bezier(.22,1,.36,1); isolation: isolate; }
.feature-panel.is-active { flex-grow: 3.6; }
.feature-select { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; color: #fff; border-radius: inherit; overflow: hidden; }
.feature-select img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .78; transition: opacity .35s, transform .55s cubic-bezier(.22,1,.36,1); }
.feature-select::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.8),transparent 50%); }
.feature-name { position: absolute; left: 12px; right: 12px; bottom: 16px; font-size: 13px; font-weight: 600; z-index: 1; }
.feature-panel.is-active .feature-name { opacity: 0; }
.feature-panel.is-active .feature-select img { opacity: .25; filter: blur(12px); transform: scale(1.1); }
.feature-panel.is-active .feature-select::after { background: linear-gradient(90deg,#111113 0%,rgba(17,17,19,.8) 45%,transparent); }
.feature-select:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.feature-panel:not(.is-active):hover img { opacity: 1; transform: scale(1.025); }
.feature-details { position: absolute; z-index: 3; left: 20px; top: 28px; bottom: 44px; width: calc(100% - 192px); display: flex; flex-direction: column; gap: 10px; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; }
.feature-panel.is-active .feature-details { visibility: visible; opacity: 1; transform: none; transition: opacity .3s .12s, transform .35s .1s; }
.feature-details h2 { font-size: 26px; font-weight: 650; letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.feature-meta { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.6); }
.feature-details p { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.75); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; white-space: nowrap; }
.feature-actions a { pointer-events: auto; }
.feature-about { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: rgba(255,255,255,.75); }
.feature-poster { display: none; }
.feature-panel.is-active .feature-poster { display: block; }
.feature-video, .feature-poster { position: absolute; z-index: 2; height: 100%; width: 146.25px; right: 0; top: 0; object-fit: cover; pointer-events: none; }
.feature-controls { position: absolute; left: 14px; bottom: 8px; z-index: 4; display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.7); }
.feature-controls button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; }
.feature-controls button:hover { background: rgba(255,255,255,.12); color: #fff; }
.feature-controls span { font-size: 10px; font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; }

/* Studio: one content surface, a metric row and optional financial detail. */
.studio-who { gap: 10px; }
.studio-who .ava { width: 34px; height: 34px; }
.studio-who .h1 { font-size: 16px; }
.studio-who .cap { font-size: 11px; margin-top: 2px; }
.kpis { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-block: 1px solid var(--hair); }
.kpi, .kpi.inv { background: none; border: 0; color: var(--tx); padding: 12px 16px; gap: 5px; border-radius: 0; clip-path: none !important; }
.kpi:not(:first-child) { border-left: 1px solid var(--hair); }
.kpi:first-child { padding-left: 0; }
.kpi .v { font-size: 20px; font-weight: 600; }
.kpi.inv .muted { color: var(--tx-2); opacity: 1; }
.kpi .cap { font-size: 11px; }
.studio-finance { border-bottom: 1px solid var(--hair); }
.studio-finance > summary { cursor: pointer; padding: 11px 0; font-size: 12px; font-weight: 500; }
.studio-finance > summary span { float: right; font-size: 11px; }
.studio-grid { grid-template-columns: 1.6fr 1fr; gap: 24px; margin: 0 0 14px; }
.studio-grid .panel { padding: 10px 0; border: 0; background: none; border-radius: 0; clip-path: none !important; }
.chart { height: 110px; margin-top: 12px; }
.split { gap: 6px; margin-top: 10px; }
.split-row { font-size: 12px; }
.split-bar { height: 8px; }
.payout { margin-top: 12px; padding: 10px 0 0; background: none; border-top: 1px solid var(--hair); }
.studio-series { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; row-gap: 0; }
.ss { padding: 14px 0; border-top: 1px solid var(--hair); gap: 10px; }
.ss-head { gap: 10px; }
.ss-head > .grow, .ss-ep > .grow { flex: 1; min-width: 0; }
.ss-cover { width: 36px; --r: 6px; }
.ss-stats { font-size: 11px; margin-top: 4px; }
.ss-ep { font-size: 12px; padding: 2px 0; }
.ss-ep .icon-btn { width: 28px; height: 28px; }
.add-ep { font-size: 12px; padding-top: 8px; }
.studio-series .ss { animation: compact-enter .3s ease-out both; }
.studio-series .ss:nth-child(2) { animation-delay: .03s; }
.studio-series .ss:nth-child(3) { animation-delay: .06s; }
.studio-series .ss:nth-child(4) { animation-delay: .09s; }

/* Forms and detail pages keep the same type scale. */
.sheet { padding: 20px; gap: 12px; --r: 24px; }
.sheet .h2 { font-size: 16px; }
.sheet .cap { font-size: 11px; }
.form { gap: 12px; }
.field label { font-size: 12px; }
.input { height: 40px; font-size: 13px; --r: 10px; }
.drop { --r: 12px; flex-direction: row; justify-content: center; padding: 12px; min-height: 64px; gap: 10px; font-size: 12px; }
.drop .ring { width: 28px; height: 28px; background: none; }
.upload-chip { min-height: 54px; padding: 8px 10px; border-radius: 12px; }
.upload-chip-name { font-size: 12px; }
.upload-chip-status, .upload-note { font-size: 11px; }
.panel, .tier { --r: 16px; padding: 16px; }
.tier .price { font-size: 22px; }
.tier ul { font-size: 12px; gap: 6px; }
.show { grid-template-columns: 230px 1fr; gap: 24px; }
.show-hook { font-size: 14px; margin-bottom: 16px; }
.show-meta { font-size: 12px; margin: 10px 0; }
.show-cta { margin-bottom: 20px; }
.show .h-hero { font-size: 26px; }
.ep-t { font-size: 13px; }
.cover { height: 140px; --r: 16px; }
.prof { margin-left: 16px; gap: 14px; }
.prof .ava-xl { width: 80px; height: 80px; }
.prof-info { padding-top: 62px; }
.prof-act { padding-top: 62px; }
.prof-stats { font-size: 12px; gap: 14px; }
.prof ~ p.muted { font-size: 13px !important; margin-top: 12px !important; }
.promo { padding: 22px; gap: 14px; --r: 18px; }
.promo h1, .promo h2 { font-size: 22px; margin: 0; }
.promo p { margin: 0; }
.empty { padding: 20px 16px; }
.balance .big { font-size: 32px; }
.wallet-n { font-size: 22px; }

/* Creator landing: compact, open sections instead of nested cards. */
.wrap { max-width: 1120px; padding-inline: 24px; }
.nav .wrap { height: 56px; }
.hero2 { padding: 26px 0 18px; }
.hero2 .wrap { gap: 24px; }
.hero2 h1 { font-size: 28px; font-weight: 700; }
.hero2 p { margin: 12px 0 18px; font-size: 14px; max-width: 370px; }
.stage2 { height: 240px; }
.stage2 .fm { --s: 200px !important; box-shadow: none; }
.pill { font-size: 11px; padding: 8px 10px; gap: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pill small { font-size: 10px; }
.pill .dot { width: 26px; height: 26px; }
.pill.p1 { top: 5px; left: 0; }
.pill.p2 { top: 90px; right: 0; }
.pill.p3 { bottom: 8px; left: 0; }
.marquee { padding-top: 12px; }
.mq-row { gap: 8px; }
.mq-row img { width: 80px; --r: 9px; }
.mq-row + .mq-row { display: none; }
.sec { padding-top: 42px; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: 20px; font-weight: 650; }
.sec-head p { font-size: 13px; margin-top: 6px; }
.steps { gap: 20px; }
.step { padding: 12px 0 0; border-radius: 0; background: none; border-top: 1px solid var(--hair); gap: 6px; min-height: 225px; clip-path: none !important; }
.step .n { font-size: 11px; font-weight: 500; }
.step h3 { font-size: 15px; font-weight: 600; }
.step p { font-size: 12px; }
.viz { background: none; height: 130px; }
.viz.upload-demo { display: flex; justify-content: center; padding: 12px 0; }
.bento { gap: 20px; }
.tile2, .tile2.dark { background: none; color: var(--tx); border-top: 1px solid var(--hair); border-radius: 0; padding: 16px 0; min-height: 146px; gap: 6px; clip-path: none !important; }
.tile2:hover, .tile2.dark:hover { background: none; transform: none; }
.tile2 h3 { font-size: 14px; }
.tile2 p, .tile2.dark p { font-size: 12px; color: var(--tx-2); }
.tile2 .big { font-size: 24px; }
.tile2 .big small, .tile2.dark .big small { font-size: 12px; color: var(--tx-2); }
.money { padding: 28px; gap: 30px; --r: 18px; }
.money .pct { font-size: 48px; }
.money .lbl { font-size: 13px; }
.split2 { gap: 10px; }
.split2 .row2 { font-size: 12px; padding-bottom: 8px; }
.facts { gap: 20px; }
.fact { background: none; padding: 12px 0; }
.fact b { font-size: 18px; }
.fact span { font-size: 12px; }
.faq { gap: 0; max-width: none; }
.faq details { padding: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--hair); clip-path: none !important; }
.faq summary { font-size: 13px; padding: 16px 0; }
.faq details p { font-size: 13px; margin-bottom: 16px; }
.final { margin-top: 42px; padding: 30px 24px; gap: 18px; --r: 20px; }
.final h2 { font-size: 26px; }
footer { padding: 24px 0; font-size: 12px; }
@keyframes compact-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) and (min-width: 900px) {
  .feature-panel.is-active { flex-grow: 5; }
  .feature-details { width: calc(100% - 158px); left: 16px; }
  .feature-actions { gap: 8px; }
  .feature-about { font-size: 11px; }
}
@media (max-width: 899px) {
  :root { --content-gutter: 14px; --type-title: 19px; --space-section: 20px; }
  .page { padding: 8px var(--content-gutter) 28px; }
  .h1 { font-size: 19px; }
  .h2, .shelf h2 { font-size: 16px; }
  .btn { min-height: 38px; }
  .btn-sm { min-height: 34px; }
  .hsearch input, .input, textarea.input { font-size: 16px; }
  .feature-gallery { height: 236px; }
  .feature-panel:not(.is-active) { display: none; }
  .feature-panel.is-active { flex: 1; }
  .feature-details { top: 22px; left: 16px; bottom: 46px; width: calc(100% - 130px); gap: 9px; }
  .feature-details h2 { font-size: 23px; }
  .feature-meta { font-size: 10px; }
  .feature-details p { font-size: 12px; -webkit-line-clamp: 2; }
  .feature-video, .feature-poster { width: 122px; opacity: .8; }
  .feature-actions { gap: 8px; }
  .feature-actions .btn { height: 34px; min-height: 34px; padding: 0 12px; font-size: 12px; }
  .feature-about { font-size: 0; gap: 0; }
  .feature-about .ico { width: 22px; height: 22px; }
  .feature-controls { left: 10px; bottom: 6px; }
  .feature-controls button { width: 32px; height: 32px; }
  .feature-name { display: none; }
  .card { width: 124px; }
  .grid-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi, .kpi.inv { padding: 10px 8px; }
  .kpi:first-child { padding-left: 0; }
  .kpi .v { font-size: 18px; }
  .kpi .cap { font-size: 10px; line-height: 1.35; min-height: 27px; }
  .studio-series { grid-template-columns: 1fr; }
  .ss { padding-block: 12px; }
  .ss-ep .icon-btn { width: 36px; height: 36px; }
  .studio-grid { grid-template-columns: 1fr; gap: 8px; }
  .sheet { padding: 16px; gap: 12px; }
  .sheet .h2 { font-size: 16px; }
  .show { grid-template-columns: 1fr; gap: 18px; }
  .show-art { max-height: 310px; position: relative; top: auto; }
  .cover { height: 100px; }
  .prof { margin: -30px 0 0; gap: 10px; }
  .prof .ava-xl { width: 64px; height: 64px; }
  .prof-info, .prof-act { padding-top: 0; }
  .wrap { padding-inline: 16px; }
  .hero2 { padding: 24px 0 12px; }
  .hero2 .wrap { gap: 14px; }
  .hero2 h1 { font-size: 26px; }
  .hero2 p { font-size: 13px; }
  .stage2 { display: none; }
  .stage2 .fm { --s: 160px !important; }
  .pill { font-size: 10px; padding: 6px 8px; }
  .pill.p1 { top: 0; }
  .pill.p2 { top: 70px; }
  .pill.p3 { bottom: 0; }
  .mq-row img { width: 64px; }
  .sec { padding-top: 30px; }
  .sec-head { margin-bottom: 16px; }
  .sec-head h2 { font-size: 20px; }
  .steps { gap: 14px; }
  .step { min-height: 0; }
  .viz { height: 114px; }
  .bento { gap: 14px; }
  .tile2 { min-height: 135px; }
  .tile2 .big { font-size: 23px; }
  .money { padding: 24px 18px; gap: 20px; }
  .money .pct { font-size: 40px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .final { margin-top: 30px; padding: 26px 18px; }
  .final h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-panel, .feature-details, .feature-select img, .studio-series .ss { animation: none !important; transition: none !important; transform: none !important; }
}

/* Email authentication and a real series preview in the creator steps. */
.auth-sheet { max-width: 380px; }
.auth-form { gap: 12px; }
.auth-form .field { gap: 6px; }
.auth-form .input { height: 42px; font-size: 14px; border-radius: 10px; }
.auth-form .form-err:empty { display: none; }
.auth-password { position: relative; }
.auth-password .input { padding-right: 80px; }
.auth-reveal { position: absolute; right: 6px; top: 0; height: 42px; padding: 0 8px; font-size: 11px; color: var(--tx-2); background: none; border: 0; cursor: pointer; }
.auth-form > .btn-ghost { min-height: 32px; height: 32px; font-size: 12px; }
.viz.feed-demo { display: flex; align-items: center; justify-content: flex-start; }
.feed-sample { display: flex; align-items: center; gap: 12px; max-width: 100%; text-align: left; }
.feed-sample > img { width: 62px; height: 110px; flex: 0 0 auto; object-fit: cover; border-radius: 10px; }
.feed-sample > img[hidden] { display: none; }
.feed-sample-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.feed-sample-info strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.feed-sample-action { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; font-weight: 600; }
.feed-sample-action > span { font-size: 10px; }
.feed-sample:hover .feed-sample-action { text-decoration: underline; }
@media (max-width: 600px) {
  .auth-sheet { max-width: 100%; }
  .auth-form .input { font-size: 16px; }
  .feed-sample > img { width: 56px; height: 100px; }
}
