/* Podro design system */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ink: #16131F;
  --volt: #D7FF3A;
  --volt-hover: #C8F21F;
  --cream: #F7F4EC;
  --lilac: #B9A8FF;
  --violet: #5B3FD9;
  --coral: #FF6B4A;

  /* Light theme */
  --bg: var(--cream);
  --surface: #FFFFFF;
  --surface-2: #EFEBE1;
  --text: var(--ink);
  --muted: #6E6A78;
  --border: #E3DED2;
  --link: var(--violet);
  --accent-soft: #ECE7FF;
  --chart: var(--violet);
  --ok: #1E7B3A;
  --ok-soft: #E2F3E5;
  --warn: #8F5400;
  --warn-soft: #FFF0D6;
  --danger: #C2341B;
  --danger-soft: #FDE7E1;
  --info: var(--violet);
  --info-soft: #ECE7FF;
  --shadow: 0 1px 2px rgb(22 19 31 / 0.04), 0 8px 24px rgb(22 19 31 / 0.06);

  --radius: 20px;
  --radius-sm: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0D16;
    --surface: #1A1724;
    --surface-2: #24202F;
    --text: var(--cream);
    --muted: #A39FB0;
    --border: #2F2A3B;
    --link: var(--lilac);
    --accent-soft: #2A2340;
    --chart: var(--volt);
    --ok: #7BE495;
    --ok-soft: #173023;
    --warn: #FFC266;
    --warn-soft: #33270F;
    --danger: #FF8E78;
    --danger-soft: #3A1A16;
    --info: var(--lilac);
    --info-soft: #2A2340;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.025em; font-weight: 750; }
h1 { font-size: 2rem; }
h2 { font-size: 1.2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
::selection { background: var(--volt); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack { display: flex; flex-direction: column; gap: 14px; }
[hidden] { display: none !important; }
.hl { background: var(--volt); color: var(--ink); padding: 0 0.14em; border-radius: 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; }
.icon-xl { width: 36px; height: 36px; }

/* Logo */
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo-lockup { height: 32px; width: auto; display: block; }
.brand-sm .logo-lockup { height: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.btn-primary:hover { background: var(--volt-hover); border-color: var(--volt-hover); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2A2536; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 13px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.copied { color: var(--ok); border-color: var(--ok); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 0.9rem; }
small { color: var(--muted); font-size: 0.82rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; width: 100%; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--volt) 70%, transparent); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
input[readonly] { background: var(--surface-2); }
input[type=file] { padding: 8px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--violet); }
textarea { resize: vertical; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; }
.check input { margin-top: 5px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { grid-template-columns: 1fr 1fr 1.4fr; }
.error { color: var(--danger); background: var(--danger-soft); padding: 11px 15px; border-radius: var(--radius-sm); }
.error-text { display: block; color: var(--danger); }
.success { color: var(--cream); background: var(--ink); padding: 11px 15px; border-radius: var(--radius-sm); font-weight: 600; }
.warning { color: var(--warn); background: var(--warn-soft); padding: 11px 15px; border-radius: var(--radius-sm); font-size: 0.9rem; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; align-self: flex-start; }
.segmented label { padding: 7px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: var(--ink); color: var(--cream); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--link); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 34px 20px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer;
  color: var(--muted); transition: border-color 0.15s, background 0.15s;
}
.dropzone > .icon { color: var(--text); background: var(--volt); color: var(--ink); border-radius: 999px; padding: 9px; width: 50px; height: 50px; margin-bottom: 6px; }
.dropzone strong { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; word-break: break-word; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--ink); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--link); }

.progress { position: relative; height: 30px; background: var(--surface-2); border-radius: 999px; overflow: hidden; flex: 1; min-width: 160px; }
.progress > div { height: 100%; width: 0; background: var(--volt); transition: width 0.2s; }
.progress > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: var(--ink); }

.form-grid { display: flex; flex-direction: column; gap: 18px; }
.form-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.form-actions .error { flex-basis: 100%; }

.artwork-field { display: flex; gap: 18px; align-items: flex-start; }
.artwork-preview { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.current-audio { display: flex; flex-direction: column; gap: 6px; }
.current-audio audio { width: 100%; }

/* Cards & page structure */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { margin-bottom: 2px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.section-head a { font-weight: 600; font-size: 0.92rem; }
.card > .section-head + .table-wrap, .card > h2 + .chart, .card > h2 + .bar-list { margin-top: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page-head p { margin-top: 8px; max-width: 70ch; }
.back { display: inline-block; font-size: 0.9rem; margin-bottom: 10px; color: var(--muted); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.show-card { display: flex; gap: 14px; align-items: center; color: var(--text); padding: 14px; transition: transform 0.15s, border-color 0.15s; }
.show-card:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-2px); }
.show-card img, .art-lg { width: 68px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; }
.show-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.art-placeholder { display: grid; place-items: center; background: var(--volt); color: var(--ink); border-radius: var(--radius-sm); }
.empty { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.empty > .icon { background: var(--volt); color: var(--ink); border-radius: 999px; padding: 12px; width: 60px; height: 60px; }
.empty h3 { color: var(--text); font-size: 1.3rem; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 18px; }
main > .card + .card, main > .card + .two-col, main > .two-col + .card, main > .tiles + .card { margin-top: 18px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: 0.8; }
.badge-live { background: var(--ok-soft); color: var(--ok); }
.badge-scheduled { background: var(--info-soft); color: var(--info); }
.badge-processing { background: var(--warn-soft); color: var(--warn); }
.badge-error { background: var(--danger-soft); color: var(--danger); }

.flash { display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; margin-bottom: 20px; font-weight: 600; width: fit-content; }
.flash .icon { background: var(--volt); color: var(--ink); border-radius: 999px; padding: 3px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.tile:first-child { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tile:first-child .tile-label { color: #A39FB0; }
.tile:first-child strong { color: var(--volt); }
.tile-label { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.tile strong { font-family: var(--font-display); font-size: 2.3rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.2; }

.feed-box { display: flex; align-items: center; gap: 10px; }
.feed-box > .icon { color: var(--ink); background: var(--volt); border-radius: 10px; padding: 7px; width: 34px; height: 34px; }
.feed-box input { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }

.table-wrap { overflow-x: auto; margin: 0 -24px -24px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 24px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row-link { color: var(--text); font-weight: 600; }
.ep-num { display: inline-block; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 0.75rem; padding: 1px 7px; border-radius: 6px; margin-right: 6px; }

.chart { width: 100%; height: auto; }
.chart rect { fill: var(--chart); }
.chart rect:hover { opacity: 0.8; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart line { stroke: var(--border); }

.bar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.bar-list li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 0.92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--chart); border-radius: 999px; }
.bar-list .num { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist li > .icon { margin-top: 2px; border-radius: 999px; padding: 3px; width: 21px; height: 21px; }
.checklist .ok > .icon { background: var(--volt); color: var(--ink); }
.checklist .todo > .icon { background: var(--danger-soft); color: var(--danger); }
.checklist small { display: block; }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 18px 0; }
.dir-card { gap: 10px; }
.dir-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* The listing link gets its own full-width row; status and Save sit underneath. */
.dir-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "url url" "status save"; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.dir-form select, .dir-form input { padding: 7px 10px; font-size: 0.85rem; min-width: 0; }
.dir-form input { grid-area: url; }
.dir-form select { grid-area: status; }
.dir-form button { grid-area: save; }

/* Dashboard: ink top bar, show header with tabs */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--ink); color: var(--cream); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .brand { color: var(--cream); }
.topbar .logo-lockup { height: 26px; }
.topbar-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-links a, .topbar-btn { color: #B4AFC2; font: inherit; font-size: 0.88rem; font-weight: 550; padding: 7px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.topbar-links a:hover, .topbar-btn:hover { color: var(--cream); background: #24202F; text-decoration: none; }
.topbar-links a.active { color: var(--ink); background: var(--volt); }
.topbar-links a.topbar-new { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; color: var(--ink); background: var(--cream); font-weight: 650; }
.topbar-links a.topbar-new:hover, .topbar-links a.topbar-new.active { background: var(--volt); }
/* Phones: logo and New podcast on one row, the other links beneath. */
@media (max-width: 560px) {
  .topbar-inner { flex-wrap: wrap; justify-content: flex-start; gap: 0 4px; }
  .topbar-inner::after { content: ''; order: 1; flex-basis: 100%; height: 8px; }
  .topbar-links { display: contents; }
  .topbar-links a.topbar-new { margin: 0 0 0 auto; }
  .topbar-links > :not(.topbar-new) { order: 2; }
}
.context-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.context-inner { max-width: 1100px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 0; }
.context-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.context-art { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 6px 16px rgb(22 19 31 / 0.15); }
.context-art.art-placeholder .icon { width: 26px; height: 26px; }
.context-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.context-title h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-link { font-size: 0.85rem; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; }
.context-cta { flex: none; }
.show-switch { position: relative; min-width: 0; }
.show-switch summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.show-switch summary::-webkit-details-marker { display: none; }
.show-switch summary .icon { color: var(--muted); flex: none; }
.show-switch-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgb(22 19 31 / 0.16); padding: 6px; display: flex; flex-direction: column; }
.show-switch-menu a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 0.92rem; font-weight: 550; }
.show-switch-menu a:hover { background: var(--surface-2); text-decoration: none; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px 12px; color: var(--muted); font-weight: 600; font-size: 0.95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--ink); }
.subtabs { display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; border-top: 1px solid var(--border); }
.subtabs a { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subtabs a:hover { background: var(--surface-2); text-decoration: none; }
.subtabs a.active { background: var(--ink); color: var(--cream); }
.main { padding: 32px clamp(16px, 4vw, 40px) 64px; max-width: 1100px; width: 100%; margin: 0 auto; flex: 1; }
.app-foot { max-width: 1100px; width: 100%; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 28px; border-top: 1px solid var(--border); }
.main > .error:first-child { margin-bottom: 18px; }

/* Podcast Home tab */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.home-grid .table th, .home-grid .table td { padding: 12px 16px; }
.home-grid .table td:nth-child(3) { white-space: nowrap; }
.home-grid .table-wrap { margin: 0 -24px -24px; }
.tiles-stack { grid-template-columns: 1fr; gap: 12px; }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 14px; }
.meter span { display: block; height: 100%; background: var(--volt); border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.todo-list a:hover { border-color: var(--ink); text-decoration: none; }
.todo-check { width: 28px; height: 28px; flex: none; border-radius: 999px; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; }
.todo-list .done .todo-check { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.todo-list .done .todo-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.todo-text { flex: 1; color: var(--muted); }
.todo-text strong { color: var(--text); font-weight: 650; }
.todo-arrow { color: var(--muted); transform: rotate(-90deg); flex: none; }
.done-card { display: flex; align-items: center; gap: 18px; }
.done-card > .icon { background: var(--volt); color: var(--ink); border-radius: 999px; padding: 10px; width: 52px; height: 52px; flex: none; }
.badge-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.badge-grid strong { font-size: 0.85rem; color: var(--text); opacity: 0.55; }
.badge-grid small { font-size: 0.72rem; line-height: 1.3; }
.medal { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 2px dashed var(--border); color: var(--muted); }
.badge-grid li.earned { background: color-mix(in srgb, var(--volt) 22%, var(--surface)); }
.badge-grid li.earned strong { opacity: 1; }
.badge-grid li.earned .medal { background: var(--ink); color: var(--volt); border: 2px solid var(--volt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 40%, transparent); }

.clip-switches { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }

/* Stats tab */
.stats-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 24px; }
.stats-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.big-num { font-size: 1.35em; letter-spacing: -0.04em; }
.delta { font-weight: 650; font-size: 0.92rem; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.segmented-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.segmented-links a { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.segmented-links a:hover { color: var(--text); text-decoration: none; }
.segmented-links a.active { background: var(--ink); color: var(--cream); }
.segmented-links .locked { padding: 7px 14px; font-weight: 600; font-size: 0.88rem; color: var(--muted); opacity: 0.5; cursor: not-allowed; }
.plan-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 0; }
.plan-usage dt { font-size: 0.85rem; color: var(--muted); }
.plan-usage dd { margin: 2px 0 0; font-weight: 650; }
.plan-usage .meter { margin: 8px 0 0; }
.plan-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-pick select { width: auto; }
.plain-foot { display: flex; justify-content: center; gap: 18px; padding: 8px 16px 96px; font-size: 0.85rem; }
.plain-foot a { color: var(--muted); }
.small-seg a { padding: 5px 11px; font-size: 0.8rem; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: color-mix(in srgb, var(--chart) 14%, transparent); }
.chart circle { fill: var(--surface); stroke: var(--chart); stroke-width: 2; }
.rank-list { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.rank-list li::marker { color: var(--muted); font-weight: 700; }
.rank-list li { padding-left: 4px; }
.rank-list li > * { vertical-align: middle; }
.rank-list a { color: var(--text); font-weight: 600; }
.rank-list .num { float: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.forecast { background: var(--volt); border-color: var(--volt); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.forecast .eyebrow { color: var(--ink); }
.forecast .eyebrow::before { background: var(--ink); box-shadow: none; }
.forecast p { color: var(--ink); opacity: 0.85; }
.forecast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.forecast-grid div { background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 14px; padding: 12px 14px; }
.forecast-grid strong { display: block; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; }
.forecast-grid small { color: var(--ink); opacity: 0.75; }
main > .stats-head + .card { margin-top: 0; }
main > .two-col + .two-col { margin-top: 18px; }

/* Website customizer */
.customizer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.customizer-form { position: sticky; top: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 3px; }
.swatch-custom { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.swatch-custom input[type=color] { width: 44px; height: 38px; padding: 2px; border-radius: 10px; cursor: pointer; }
.header-thumb { width: 100%; height: 90px; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--border); }
.preview-pane { padding: 18px; }
.device-toggle { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 999px; gap: 4px; }
.device-toggle button { border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.device-toggle button[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.preview-frame { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg); height: 640px; position: relative; }
.preview-frame iframe { border: 0; display: block; transform-origin: 0 0; background: var(--bg); }
.preview-frame.mobile { width: 390px; max-width: 100%; margin-left: auto; margin-right: auto; }

/* Super admin portal */
.impersonate { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; background: var(--info-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.impersonate .icon { color: var(--info); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile small { display: block; margin-top: 2px; }
.tile:first-child small { color: #A39FB0; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar input[type=search] { flex: 1 1 260px; }
.filter-bar select { width: auto; }
.btn-ghost-link { border-color: transparent; background: transparent; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-danger { color: var(--danger); }
.start-point { color: var(--info); font-weight: 600; display: flex; align-items: center; gap: 6px; }
small.start-point { display: block; }
.card > .table-wrap:first-child { margin-top: -24px; }
.card > .table-wrap:first-child .table thead th { border-top: 0; }
.cell-show { display: flex; align-items: flex-start; gap: 11px; min-width: 230px; }
.table .usage { white-space: nowrap; }
.cell-show img, .cell-show .art-placeholder { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; }
.cell-show small, small.block { display: block; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.mini-list a { color: var(--text); min-width: 0; }
.mini-list a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.log { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.88rem; }
.log time { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.action-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.action-row.danger strong { color: var(--danger); }
.transfer-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; }
main > .filter-bar + .card, main > .two-col + .card, main > .tiles + .two-col { margin-top: 18px; }

/* Sign-up wizard */
.wizard-shell { min-height: 100vh; display: flex; flex-direction: column; }
.wizard-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 40px); }
.wizard-bar .logo-lockup { height: 28px; }
.wizard-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 48px; display: flex; flex-direction: column; gap: 22px; }
.wizard-foot { justify-content: center; padding: 0 16px 24px; }
.wizard-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.wizard-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.03em; }
.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; }
.wizard-steps li.current { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.wizard-dot { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); font-size: 0.78rem; font-weight: 750; }
.wizard-steps .current .wizard-dot { background: var(--ink); color: var(--volt); }
.wizard-steps .done .wizard-dot { background: var(--volt); color: var(--ink); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 2px solid var(--border); border-radius: 18px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.option-card:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--border)); }
.option-card input { position: absolute; opacity: 0; }
.option-card:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--volt) 14%, var(--surface)); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
.option-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.option-card:has(input:checked) .option-icon { background: var(--volt); color: var(--ink); }
.option-body { display: flex; flex-direction: column; gap: 4px; padding-right: 22px; }
.option-body strong { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; }
.option-tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; }
.option-card:has(input:checked) .option-tick { background: var(--ink); border-color: var(--ink); color: var(--volt); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option input { position: absolute; opacity: 0; }
.chip-option span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip-option input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-option input { position: absolute; opacity: 0; }
.name-option span { display: block; padding: 14px 16px; border: 2px solid var(--border); border-radius: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; cursor: pointer; }
.name-option input:checked + span { border-color: var(--ink); background: var(--volt); color: var(--ink); }
.name-option input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.episode-ideas { background: var(--surface-2); border-radius: 16px; padding: 16px 20px; }
.episode-ideas ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* Auth */
body.auth { min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: 40px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand .brand { color: var(--cream); }
.auth-pitch { display: flex; flex-direction: column; gap: 18px; max-width: 30rem; position: relative; z-index: 1; }
.auth-pitch h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.auth-pitch p { color: #CFCAD9; font-size: 1.05rem; }
.auth-waves { display: flex; align-items: flex-end; gap: 6px; height: 120px; opacity: 0.9; }
.auth-waves span { flex: 1; height: var(--h); background: var(--volt); border-radius: 999px; opacity: 0.85; }
.auth-waves span:nth-child(3n) { background: var(--lilac); }
.auth-card { align-self: center; justify-self: center; width: 100%; max-width: 420px; padding: 40px 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 2.1rem; }
.auth-solo { min-height: 100vh; justify-content: center; }
.auth-solo .brand { margin-bottom: 16px; }

/* Public site */
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); max-width: 1200px; margin: 0 auto; }
.site-bar .logo-lockup { height: 30px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--text); font-weight: 550; font-size: 0.95rem; }
.site-foot { max-width: 1200px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px) 36px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 32px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.foot-brand .logo-lockup { height: 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px 56px; }
.foot-cols h4 { margin: 0 0 10px; font-family: var(--font); font-size: 0.75rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { color: var(--muted); }
.foot-cols a:hover { color: var(--text); }
.foot-cols strong { color: var(--text); }
.foot-legal { padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.legal { margin-top: 18px; font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Creator themes override these on their show pages. */
body.public { --show-accent: var(--ink); --show-accent-ink: var(--volt); --show-font: var(--font-display); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.public { --show-accent: var(--volt); --show-accent-ink: var(--ink); } }
body.public .public-wrap h1, body.public .public-wrap h2:not(.section-title), body.public .public-wrap h3 { font-family: var(--show-font); }
body.public .episode-page .btn-play { background: var(--show-accent); border-color: var(--show-accent); color: var(--show-accent-ink); }
body.public .episode-body h3 a:hover { color: var(--show-accent); text-decoration: none; }
body.public .chip:hover { border-color: var(--show-accent); }
.show-banner { height: clamp(140px, 22vw, 240px); border-radius: var(--radius); background: var(--surface-2) center / cover no-repeat; margin-bottom: 28px; }
body.public.has-player { padding-bottom: 104px; }
.public-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
.show-hero, .episode-hero { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; margin-bottom: 44px; }
.show-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgb(22 19 31 / 0.18); }
.show-hero h1, .episode-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.035em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 750; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--volt); box-shadow: 0 0 0 1.5px var(--ink); }
.notes { display: flex; flex-direction: column; gap: 12px; }
.notes a { word-break: break-word; }
.listen-on { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.87rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.section-title { font-family: var(--font); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.episode-list { list-style: none; padding: 0; margin: 0; }
.episode-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.episode-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.episode-body h3 { font-size: 1.2rem; }
.episode-body h3 a { color: var(--text); }
.episode-meta { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.episode-excerpt { color: var(--muted); font-size: 0.94rem; }
.play-btn { flex: none; width: 50px; height: 50px; border-radius: 999px; border: 0; background: var(--show-accent); color: var(--show-accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.12s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn.is-playing { background: var(--volt); color: var(--ink); }
.play-btn .icon { width: 18px; height: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-play .icon { width: 16px; height: 16px; }
.episode-page .notes { font-size: 1.04rem; max-width: 68ch; }

/* Landing page */
.hero { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.045em; line-height: 0.98; font-weight: 800; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; }
.hero-art { display: flex; justify-content: center; }
.mock-card { width: 100%; max-width: 420px; background: var(--ink); color: var(--cream); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 60px rgb(22 19 31 / 0.28); transform: rotate(-2deg); }
.mock-top { display: flex; align-items: center; gap: 12px; }
.mock-top img { width: 46px; height: 46px; }
.mock-top strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.mock-top small { color: #A39FB0; }
.mock-wave { display: flex; align-items: center; gap: 4px; height: 90px; }
.mock-wave span { flex: 1; height: var(--h); background: var(--volt); border-radius: 999px; animation: wave 1.4s ease-in-out var(--d) infinite alternate; }
.mock-wave span:nth-child(4n+2) { background: var(--lilac); }
@keyframes wave { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mock-wave span { animation: none; } }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-row small { color: #A39FB0; font-variant-numeric: tabular-nums; }
.mock-play { width: 44px; height: 44px; border-radius: 999px; background: var(--volt); color: var(--ink); display: grid; place-items: center; flex: none; }
.mock-bar { flex: 1; height: 6px; background: #2F2A3B; border-radius: 999px; overflow: hidden; }
.mock-bar span { display: block; width: 38%; height: 100%; background: var(--volt); }
.mock-dests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-dests li { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; background: #221E2D; padding: 8px 10px; border-radius: 10px; }
.mock-dests .icon { color: var(--ink); background: var(--volt); border-radius: 999px; padding: 2px; }
.steps { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 72px; }
.steps-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -0.035em; max-width: 22ch; margin-bottom: 28px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--volt); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.step:nth-child(2) .step-num { background: var(--lilac); }
.step:nth-child(3) .step-num { background: var(--ink); color: var(--volt); }
.apps-strip { max-width: 1200px; margin: 0 auto 72px; padding: 0 clamp(16px, 4vw, 40px); }
.apps-head { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.apps-head p { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.apps-demo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: transform 0.15s var(--ease-out), box-shadow 0.15s; }
.apps-demo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(22 19 31 / 0.16); }
.apps-demo:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.apps-status { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.apps-status:empty { display: none; }
.apps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.app-chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s; }
.app-chip:hover, .app-chip[aria-expanded="true"] { border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 18%, transparent); }
.app-chip:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.app-badge { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; transition: transform 0.25s var(--ease-out); }
.app-badge svg { width: 17px; height: 17px; }
:is(.app-badge, .apps-detail .app-badge) svg.app-art { width: 100%; height: 100%; }
.app-chip:hover .app-badge, .app-chip[aria-expanded="true"] .app-badge { transform: rotate(-8deg) scale(1.08); }
.app-tick { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--volt); color: var(--ink); border: 2px solid var(--cream); opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.app-tick .icon { width: 12px; height: 12px; }
.app-chip.sent .app-tick { opacity: 1; transform: none; }
.app-chip.sent .app-badge { animation: app-pop 0.45s var(--ease-out); }
@keyframes app-pop { 40% { transform: scale(1.22) rotate(-6deg); } }
.apps-detail { margin-top: 14px; display: flex; align-items: flex-start; gap: 16px; max-width: 640px; padding: 18px 20px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--brand, var(--ink)) 45%, var(--border)); border-radius: 20px; box-shadow: 0 14px 34px rgb(22 19 31 / 0.08); animation: apps-detail-in 0.28s var(--ease-out); }
.apps-detail[hidden] { display: none; }
@keyframes apps-detail-in { from { opacity: 0; transform: translateY(-6px); } }
.apps-detail .app-badge { width: 52px; height: 52px; border-radius: 14px; }
.apps-detail .app-badge svg { width: 28px; height: 28px; }
.apps-detail h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apps-detail p { margin-top: 4px; color: var(--muted); }
.apps-how { padding: 2px 9px; border-radius: 999px; background: var(--volt); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.apps-close { margin-left: auto; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.apps-close:hover { background: var(--border); color: var(--text); }
@media (max-width: 560px) { .app-chip { font-size: 0.82rem; gap: 7px; padding-right: 12px; } .app-badge { width: 26px; height: 26px; border-radius: 8px; } .app-badge svg { width: 15px; height: 15px; }
  .apps-detail { gap: 12px; padding: 14px 12px 14px 14px; } .apps-detail .app-badge { width: 40px; height: 40px; border-radius: 11px; } .apps-detail .app-badge svg { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .app-chip, .app-badge, .app-tick { transition: none; } .app-chip.sent .app-badge, .apps-detail { animation: none; } .app-chip:hover { transform: none; } }
.shows { max-width: 1200px; margin: 0 auto 72px; padding: 0 clamp(16px, 4vw, 40px); }
.shows h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.cta-band { max-width: 1200px; margin: 0 auto 56px; padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); background: var(--volt); color: var(--ink); border-radius: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.035em; max-width: 16ch; }
.landing .cta-band { margin-left: clamp(16px, 4vw, 40px); margin-right: clamp(16px, 4vw, 40px); }
@media (min-width: 1280px) { .landing .cta-band { margin-left: auto; margin-right: auto; } }

.steps .eyebrow, .features .eyebrow, .shows .eyebrow, .faq .eyebrow { margin-bottom: 12px; }
.features { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 88px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.93rem; }
.feature-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--violet); margin-bottom: 4px; }
.feature:nth-child(4n+1) .feature-icon { background: var(--volt); color: var(--ink); }
.feature:nth-child(4n+3) .feature-icon { background: var(--ink); color: var(--volt); }
.stats-band { max-width: 1200px; margin: 0 auto 88px; padding: clamp(32px, 5vw, 64px); background: var(--ink); color: var(--cream); border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.landing .stats-band { margin-left: clamp(16px, 4vw, 40px); margin-right: clamp(16px, 4vw, 40px); }
@media (min-width: 1280px) { .landing .stats-band { margin-left: auto; margin-right: auto; } }
.stats-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stats-copy h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.stats-copy p:not(.eyebrow) { color: #CFCAD9; font-size: 1.05rem; }
.stats-band .eyebrow { color: #A39FB0; }
.stats-band .eyebrow::before { box-shadow: none; }
.stats-mock { background: #1F1B2A; border: 1px solid #2F2A3B; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.stats-mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-mock-tiles div { background: #16131F; border-radius: 14px; padding: 14px 16px; }
.stats-mock-tiles small { color: #A39FB0; display: block; }
.stats-mock-tiles strong { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; color: var(--volt); }
.stats-mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.stats-mock-chart span { flex: 1; height: var(--h); background: var(--volt); border-radius: 6px 6px 2px 2px; }
.stats-mock-chart span:nth-child(odd) { opacity: 0.75; }
.stats-mock-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.88rem; }
.stats-mock-apps li { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; }
.stats-mock-apps .bar { height: 8px; background: #2F2A3B; border-radius: 999px; overflow: hidden; }
.stats-mock-apps .bar span { display: block; height: 100%; background: var(--lilac); border-radius: 999px; }
.stats-mock-apps b { text-align: right; font-variant-numeric: tabular-nums; }
.faq { max-width: 1200px; margin: 0 auto 88px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font); font-weight: 600; font-size: 1.1rem; transition: transform 0.15s; }
.faq details[open] summary::after { content: "−"; background: var(--volt); color: var(--ink); }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 62ch; }
.faq summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 8px; }

/* Marketing site: ink header, cream pages */
.mk-header { background: var(--ink); color: var(--cream); position: sticky; top: 0; z-index: 40; }
.mk-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 28px; }
.mk-header .brand { color: var(--cream); }
.mk-header .logo-lockup { height: 28px; }
.mk-nav { display: flex; gap: 4px; flex: 1; }
.mk-nav a { color: #CFCAD9; font-weight: 550; font-size: 0.93rem; padding: 7px 12px; border-radius: 999px; }
.mk-nav a:hover { color: var(--cream); background: #24202F; text-decoration: none; }
.mk-nav a.active { color: var(--ink); background: var(--volt); }
.mk-actions { display: flex; align-items: center; gap: 10px; }
.mk-login { color: #CFCAD9; font-weight: 600; font-size: 0.93rem; }
.mk-login:hover { color: var(--cream); }
.mk-header-slim .mk-header-inner { justify-content: space-between; }
.mk-menu { display: none; position: relative; }
.mk-menu summary { list-style: none; cursor: pointer; color: var(--cream); padding: 8px; border-radius: 10px; }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu summary .icon { width: 24px; height: 24px; }
.mk-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 85vw); background: var(--ink); border: 1px solid #2F2A3B; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px rgb(0 0 0 / 0.35); }
.mk-menu-panel a:not(.btn) { color: var(--cream); padding: 10px 12px; border-radius: 10px; font-weight: 550; }
.mk-menu-panel a:not(.btn):hover { background: #24202F; text-decoration: none; }
.mk-menu-panel .btn { margin-top: 6px; }
.mk-main { min-height: 50vh; }
.mk-footer { background: var(--ink); color: #CFCAD9; margin-top: 40px; }
.mk-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 36px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.mk-footer .brand { color: var(--cream); }
.mk-footer .logo-lockup { height: 30px; }
.mk-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 300px; }
.mk-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 32px 56px; }
.mk-footer-cols h4 { margin: 0 0 12px; font-size: 0.74rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.12em; color: var(--volt); }
.mk-footer-cols div { display: flex; flex-direction: column; gap: 9px; }
.mk-footer-cols a { color: #CFCAD9; font-size: 0.93rem; }
.mk-footer-cols a:hover { color: var(--cream); }
.mk-legal { max-width: 1200px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 30px; border-top: 1px solid #2F2A3B; font-size: 0.8rem; color: #8F8A9C; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mk-legal strong { color: #CFCAD9; }
.public .site-bar, .public .site-foot { display: none; }
body.public .public-wrap { padding-top: 36px; }
.mk-hero { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mk-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; font-weight: 800; }
.mk-hero .lead { margin: 0 auto; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; font-weight: 550; }
.hero-note .icon { background: var(--volt); color: var(--ink); border-radius: 999px; padding: 2px; }
.features-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-link { color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.feature-link:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-3px); }
.feature-more { margin-top: auto; padding-top: 6px; font-weight: 650; font-size: 0.88rem; color: var(--violet); }
.split-band { max-width: 1200px; margin: 0 auto 88px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split-copy h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.split-art { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-content: center; min-height: 260px; box-shadow: var(--shadow); }
.name-chip { padding: 14px 18px; border-radius: 14px; border: 2px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.name-chip.on { background: var(--volt); border-color: var(--ink); }
.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { flex: none; margin-top: 3px; background: var(--volt); color: var(--ink); border-radius: 999px; padding: 2px; width: 18px; height: 18px; }
.browser-mock { padding: 0; overflow: hidden; display: block; min-height: 0; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--surface-2); }
.browser-bar span { width: 10px; height: 10px; border-radius: 999px; background: var(--border); }
.browser-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bm-banner { height: 70px; border-radius: 12px; background: linear-gradient(120deg, #0B7A75, #16131F); }
.bm-hero { display: flex; gap: 14px; align-items: center; }
.bm-art { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(135deg, var(--lilac), var(--coral)); flex: none; }
.bm-hero > div:last-child, .bm-ep > div { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.bm-line { height: 10px; border-radius: 999px; background: var(--ink); opacity: 0.85; }
.bm-line.thin { height: 7px; opacity: 0.25; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.bm-ep { display: flex; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.bm-play { width: 30px; height: 30px; border-radius: 999px; background: #0B7A75; flex: none; }
.mock-note { max-width: 1200px; margin: -76px auto 88px; padding: 0 clamp(16px, 4vw, 40px); font-size: 0.78rem; color: var(--muted); text-align: right; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roadmap-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px dashed var(--border); border-radius: 18px; }
.roadmap-item > .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-2); }
.roadmap-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.roadmap-item small { color: var(--muted); }
.feature-jump { max-width: 1200px; margin: 0 auto 56px; padding: 0 clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.feature-jump a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.9rem; background: var(--surface); }
.feature-jump a:hover { border-color: var(--ink); text-decoration: none; }
.feature-section { max-width: 1200px; margin: 0 auto 80px; padding: 0 clamp(16px, 4vw, 40px); scroll-margin-top: 90px; }
.feature-section-head { max-width: 640px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature-section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.035em; }
.pricing { max-width: 1000px; margin: 0 auto 80px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.price-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: 8px 8px 0 var(--volt); }
.price-top { display: flex; flex-direction: column; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-family: var(--font-display); font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.price-side { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.price-side h3 { font-size: 1.15rem; margin-top: 10px; }
.guide { list-style: none; max-width: 860px; margin: 0 auto 80px; padding: 0 clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.guide-step { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.guide-step .step-num { flex: none; }
.guide-step > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.guide-step h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.guide-step p { color: var(--muted); }
.help-sections { display: flex; flex-direction: column; }
.help-group { margin-bottom: 48px; }
.help-group h2 { font-size: 1.6rem; letter-spacing: -0.03em; }
.help-contact { max-width: 1120px; margin: 0 auto 80px; text-align: center; }
.landing .help-contact { margin-left: clamp(16px, 4vw, 40px); margin-right: clamp(16px, 4vw, 40px); }
@media (min-width: 1200px) { .landing .help-contact { margin-left: auto; margin-right: auto; } }
.prose { max-width: 720px; margin: 0 auto 80px; padding: 0 clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin-top: 16px; letter-spacing: -0.025em; }
.prose ul:not(.tick-list) { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Blogs */
.blog-grid { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-empty { text-align: center; padding: 24px 16px 48px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card:hover { border-color: var(--ink); }
.blog-card-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--ink); color: var(--volt); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; align-items: flex-start; }
.blog-card-body h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.blog-card-body h2 a { color: var(--text); }
.blog-card-body .btn { margin-top: auto; }
.post { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px) 0; display: flex; flex-direction: column; gap: 28px; }
.post-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.post-head .back { margin-bottom: 0; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; }
.post-cover { width: 100%; border-radius: var(--radius); }
.post-listen { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--ink); color: var(--cream); border-radius: var(--radius); }
.post-listen .play-btn { background: var(--volt); color: var(--ink); }
.post-listen div { display: flex; flex-direction: column; }
.post-listen strong { font-family: var(--font-display); font-size: 1.1rem; }
.post-listen small { color: #A39FB0; }
.post-body { display: flex; flex-direction: column; gap: 16px; font-size: 1.08rem; line-height: 1.7; }
.post-body h2 { font-size: 1.7rem; letter-spacing: -0.025em; margin-top: 18px; }
.post-body h3 { font-size: 1.25rem; margin-top: 10px; }
.post-body ul, .post-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.post-body img { border-radius: var(--radius-sm); }
.post-body blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--volt); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.post-body hr { margin: 12px 0; width: 100%; }
.post-cover-preview { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex: none; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-tools button, .editor-tabs button { border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 650; font-size: 0.82rem; padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.editor-tools button:hover { background: var(--accent-soft); }
.editor-tabs { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.editor-tabs button { background: none; border-radius: 999px; color: var(--muted); }
.editor-tabs button[aria-pressed=true] { background: var(--ink); color: var(--cream); }
.editor-preview { min-height: 300px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }

/* About page */
.about-story { max-width: 1100px; margin: 0 auto 72px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); }
.about-story-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.035em; margin-top: 10px; }
.about-prose { margin: 0; padding: 0; max-width: none; }
.about-prose p:first-child::first-line { font-weight: 650; }
.about-founder { max-width: 1100px; margin: 0 auto 72px; padding: 0 clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.founder-card { display: flex; gap: clamp(20px, 4vw, 40px); align-items: center; background: var(--ink); color: var(--cream); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.founder-avatar { flex: none; width: clamp(96px, 14vw, 140px); aspect-ratio: 1; border-radius: 999px; background: var(--volt); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; box-shadow: 0 0 0 6px color-mix(in srgb, var(--volt) 25%, transparent); }
.founder-body { display: flex; flex-direction: column; gap: 8px; }
.founder-body h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.035em; }
.founder-role { color: var(--volt); font-weight: 650; }
.founder-body p:not(.founder-role) { color: #CFCAD9; font-size: 1.05rem; max-width: 60ch; }
.about-company { max-width: 1100px; margin: 0 auto 72px; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.about-company-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.about-company-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.035em; }
.about-company-copy > p { color: var(--muted); font-size: 1.04rem; }
.trio { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trio li { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.trio strong { font-family: var(--font-display); }
.about-company-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.about-company-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 0.95rem; }
.about-company-card dt { color: var(--muted); font-weight: 600; }
.about-company-card dd { margin: 0; font-weight: 600; }

/* Player */
.player-toggle { width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--volt); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.player-toggle svg { width: 18px; height: 18px; }
.player button:not(.player-toggle) { border: 0; background: none; color: inherit; opacity: 0.7; font: inherit; font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 6px; border-radius: 8px; }
.player button:not(.player-toggle):hover { opacity: 1; background: rgb(255 255 255 / 0.08); }
.player-meta { display: flex; flex-direction: column; min-width: 0; }
.player-meta strong, .player-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta strong { font-family: var(--font-display); }
.player-meta strong a { color: inherit; }
.player-seek { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; opacity: 0.85; font-variant-numeric: tabular-nums; min-width: 0; flex: 1; }
.player-seek input { flex: 1; padding: 0; border: 0; background: none; accent-color: var(--volt); height: 20px; box-shadow: none; }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: grid; grid-template-columns: 52px minmax(120px, 1fr) auto minmax(160px, 2fr) auto; align-items: center; gap: 14px;
  padding: 12px 18px; background: var(--ink); color: var(--cream); border-radius: 22px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.3);
}
.player-bar small { color: #A39FB0; }
.player-bar img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }

body.embed { background: transparent; }
.player-embed { position: relative; display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--ink); color: var(--cream); border-radius: 22px; margin: 4px; }
.player-embed small { color: #A39FB0; }
.player-embed img[data-role=art] { width: 136px; height: 136px; border-radius: 14px; object-fit: cover; flex: none; }
.embed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.embed-main .player-meta strong { font-size: 1.15rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.embed-row { display: flex; align-items: center; gap: 12px; }
.embed-row .player-toggle { width: 52px; height: 52px; }
.embed-badge { position: absolute; top: 14px; right: 14px; opacity: 0.85; }
.embed-badge:hover { opacity: 1; }
.embed-badge img { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 900px) {
  .main { padding: 24px 16px 48px; }
  .context-head { flex-wrap: wrap; }
  .context-cta { width: 100%; }
  .topbar-links a, .topbar-btn { padding: 6px 9px; font-size: 0.82rem; }
  .two-col { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 24px 20px; gap: 24px; }
  .auth-waves { height: 60px; }
  .hero { grid-template-columns: 1fr; }
  .mock-card { transform: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-band, .faq { grid-template-columns: 1fr; }
  .tiles-4 { grid-template-columns: 1fr 1fr; }
  .option-grid, .name-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-nav, .mk-actions { display: none; }
  .mk-menu { display: block; margin-left: auto; }
  .features-grid-3, .roadmap-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-band, .pricing { grid-template-columns: minmax(0, 1fr); }
  .about-story, .about-company { grid-template-columns: minmax(0, 1fr); }
  .founder-card { flex-direction: column; align-items: flex-start; }
  .split-reverse .split-copy { order: 0; }
  .mock-note { text-align: left; }
  .customizer { grid-template-columns: minmax(0, 1fr); }
  .customizer-form { position: static; }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
  .transfer-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row, .row-3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile strong { font-size: 1.8rem; }
  .artwork-field { flex-direction: column; }
  .show-hero, .episode-hero { grid-template-columns: 1fr; gap: 22px; }
  .show-art { max-width: 220px; }
  .dir-grid { grid-template-columns: 1fr; }
  .feed-box { flex-wrap: wrap; }
  .feed-box input { flex: 1 1 200px; }
  .table th, .table td { padding: 10px 14px; }
  .site-nav { gap: 12px; }
  .site-nav > a:not(.btn) { display: none; }
  .player-bar { grid-template-columns: 44px 1fr auto; padding: 10px 14px; gap: 10px; left: 8px; right: 8px; bottom: 8px; }
  .player-bar img { width: 44px; height: 44px; }
  .player-bar .player-seek { grid-column: 1 / -1; order: 5; }
  .player-bar .player-speed { display: none; }
  .player-embed img[data-role=art] { width: 72px; height: 72px; }
  .cta-band { border-radius: 24px; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-band { border-radius: 24px; padding: 28px 20px; }
  .stats-mock-apps li { grid-template-columns: 100px 1fr 36px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .features-grid-3, .roadmap-grid, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .guide-step { flex-direction: column; padding: 22px; }
  .price-card { padding: 24px; }
}

/* ---------- Flow: transitions, reveals and rhythm (public site) ---------- */
:root { --flow: clamp(64px, 8vw, 104px); --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }
html { scroll-padding-top: 88px; }

/* Cross-fade between pages while the menu bar stays put (browsers without support just load normally). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.32s; animation-timing-function: var(--ease-out); }
.mk-header, .topbar { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }

/* Header gains a soft shadow once you scroll. */
.mk-header { transition: box-shadow 0.25s ease; }
.mk-header.scrolled { box-shadow: 0 8px 24px rgb(22 19 31 / 0.18); }

/* Hero eases in, one line after another. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .mk-hero > *, .hero-art { animation: rise-in 0.8s var(--ease-out) both; }
.hero-copy > :nth-child(2), .mk-hero > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3), .mk-hero > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-art { animation-delay: 0.2s; }

/* Scroll reveals: hidden only when JavaScript is running, and shown anyway after a short fallback. */
.js :where(.mk-main > section:not(.hero, .mk-hero),
  .mk-main .features-grid > *, .mk-main .steps-grid > *, .mk-main .roadmap-grid > *, .mk-main .blog-grid > *,
  .mk-main .faq-list > *, .mk-main .guide > li, .mk-main .trio > li, .mk-main .tick-list > li,
  .public-wrap .episode-item) {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .in, .reveal-all :where(.mk-main *, .public-wrap .episode-item) { opacity: 1; transform: none; }

/* Even vertical rhythm between sections. */
.marketing .apps-strip, .marketing .features, .marketing .steps, .marketing .split-band, .marketing .stats-band,
.marketing .shows, .marketing .faq, .marketing .feature-section, .marketing .pricing, .marketing .guide,
.marketing .generator, .marketing .about-story, .marketing .about-founder, .marketing .about-company, .marketing .prose,
.marketing .help-group, .marketing .help-contact, .marketing .cta-band, .marketing .blog-grid, .marketing .post { margin-bottom: var(--flow); }
.marketing .hero { padding-bottom: var(--flow); }
.marketing .mock-note { margin-top: calc(-1 * var(--flow) + 12px); }
.marketing .cta-band + .mk-footer { margin-top: 0; }

/* Buttons and cards respond softly. */
.btn { transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease-out), box-shadow 0.15s; }
.btn-primary:hover, .btn-ink:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(22 19 31 / 0.14); }
.step, .feature, .roadmap-item, .faq details, .guide-step { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out); }
.step:hover, .guide-step:hover { box-shadow: 0 10px 28px rgb(22 19 31 / 0.08); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-copy > *, .mk-hero > *, .hero-art { animation: none; }
  .js .mk-main > section, .js .mk-main *, .js .public-wrap .episode-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary:hover, .btn-ink:hover { transform: none; }
}
.app-badge-sm { width: 22px; height: 22px; border-radius: 6px; margin-left: -8px; } .app-badge-sm svg { width: 13px; height: 13px; }
