:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1eee6;
  --ink: #16140f;
  --muted: #6b665c;
  --line: #e6e1d6;
  --accent: #ff5a36;
  --accent-2: #e8431f;
  --accent-ink: #ffffff;
  --soft: #fff0ea;
  --ok: #128a4e;
  --ok-soft: #e6f6ec;
  --danger: #c8322b;
  --shadow: 0 1px 2px rgba(22, 20, 15, .05), 0 8px 24px -12px rgba(22, 20, 15, .18);
  --shadow-lg: 0 2px 4px rgba(22, 20, 15, .04), 0 24px 60px -20px rgba(22, 20, 15, .28);
  --r: 14px;
  --r-lg: 22px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110e; --surface: #1b1a16; --surface-2: #24221d; --ink: #f3efe6; --muted: #a39d90; --line: #2f2c26;
    --soft: #2c1a13; --ok-soft: #11291c; --ok: #4ccb84;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110e; --surface: #1b1a16; --surface-2: #24221d; --ink: #f3efe6; --muted: #a39d90; --line: #2f2c26;
  --soft: #2c1a13; --ok-soft: #11291c; --ok: #4ccb84; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; flex: 1; }
main.wide { max-width: 1180px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
img, video { max-width: 100%; display: block; }
.i { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.narrow { max-width: 680px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink); --t: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b); color: var(--t); font: 600 15px/1 Inter, sans-serif; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { color: var(--t); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.accent { --b: var(--accent); --t: var(--accent-ink); box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.accent:hover:not(:disabled) { --b: var(--accent-2); }
.btn.ghost { --b: transparent; --t: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.linkish:hover { color: var(--accent); }
.danger { color: var(--danger) !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-weight: 500; }
.topbar nav > a:not(.btn) { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 19px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.logo b { color: var(--accent); font-weight: 800; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; transform: rotate(-6deg); }
.logo:hover { color: var(--ink); }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px; display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: .95; letter-spacing: -.045em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .12em; background: currentColor; opacity: .22; border-radius: 99px; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-trust { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--soft); padding: 5px 11px; border-radius: 99px; margin-bottom: 18px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art::before { content: ''; position: absolute; inset: 6% 4%; border-radius: 40px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, #ffb800 30%, transparent), transparent 55%); filter: blur(10px); }
.mock { position: relative; width: min(340px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(2deg); border: 1px solid var(--line); }
.mock .cover { border-radius: 0; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-title { font: 700 18px/1.2 var(--display); }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.mock-btn { background: var(--accent); color: #fff; text-align: center; padding: 13px; border-radius: 99px; font-weight: 600; }
.mock-pay { display: flex; gap: 6px; justify-content: center; }
.mock-pay span { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float .i { color: var(--ok); }
.f1 { top: 12%; left: -2%; }
.f2 { bottom: 14%; right: -2%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); margin: 0 -16px; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-in { display: flex; gap: 12px; width: max-content; animation: marq 40s linear infinite; }
.marquee span { font: 600 15px var(--display); padding: 6px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-in, .float { animation: none; } }

.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 800 16px var(--display); margin-bottom: 16px; }

.pricing { display: flex; justify-content: center; }
.price-card { width: 100%; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px; }
.price-card .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.price-card .btn.accent { grid-column: 1 / -1; justify-self: start; }
.price-card .eyebrow { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.big-price { font: 800 44px/1 var(--display); letter-spacing: -.03em; margin-bottom: 6px; }
.big-price small { font-size: 16px; font-weight: 500; opacity: .6; margin-left: 4px; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .i { color: var(--accent); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- covers & cards ---------- */
.cover { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.gen { background: linear-gradient(135deg, hsl(var(--h) 90% 64%), hsl(calc(var(--h) + 45) 85% 52%)); display: grid; place-items: center; }
.cover.gen span { font: 800 clamp(48px, 9vw, 96px)/1 var(--display); color: rgba(255,255,255,.92); text-shadow: 0 4px 30px rgba(0,0,0,.15); letter-spacing: -.04em; }
.cover.gen::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.35), transparent 45%); }
.cover.xl { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.cover.sm { width: 96px; flex: none; aspect-ratio: 1; }
.cover.sm.gen span { font-size: 40px; }
.cover.thumb { width: 64px; aspect-ratio: 1; border-radius: 10px; flex: none; }
.cover.thumb.gen span { font-size: 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.pcard:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .cover { border-radius: 0; }
.pcard-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.pcard-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.by span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; flex: none; color: #fff; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 45%)); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill.free { background: var(--ok-soft); color: var(--ok); }

/* ---------- product page ---------- */
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--soft); border-radius: var(--r); padding: 10px 10px 10px 16px; margin-bottom: 20px; font-size: 14px; }
.owner-bar > span { display: inline-flex; gap: 8px; align-items: center; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.product-main .cover { margin-bottom: 28px; }
.product-title { font-size: clamp(26px, 3.4vw, 36px); }
.prose { font-size: 16.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose a { color: var(--accent); }
.product-side { position: sticky; top: 86px; }
.buy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.buy-card .by { font-weight: 500; }
.price-line { display: grid; gap: 2px; }
.price-line .big-price { font-size: 40px; margin: 0; }
.buy { display: grid; gap: 10px; }
.includes { border-top: 1px solid var(--line); padding-top: 14px; }
.inc-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.includes ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 7px; }
.includes li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.includes .i { color: var(--accent); }
.trust { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.trust li { display: flex; gap: 9px; align-items: center; }
.trust .i { color: var(--ok); }
.mobile-buy { display: none; }
.only-sm { display: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form label, .field { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
.lbl { font-weight: 600; font-size: 14px; }
input, textarea, select {
  width: 100%; font: 400 15.5px/1.4 Inter, sans-serif; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.money-in, .prefix-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.money-in:focus-within, .prefix-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.money-in span, .prefix-in span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; font-size: 17px; }
.money-in input, .prefix-in input { border: 0; box-shadow: none !important; padding-left: 4px; font-size: 17px; font-weight: 600; }
.prefix-in input { font-weight: 500; font-size: 15.5px; }
.prefix-in span { font-size: 15px; font-weight: 500; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface-2); border-radius: 12px; padding: 4px; justify-self: start; }
.seg label { cursor: pointer; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 22px; border-radius: 9px; font-weight: 600; color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 8px; font-weight: 500 !important; }
.toggle { display: flex !important; align-items: center; gap: 12px; cursor: pointer; font-size: 15px !important; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + .sw { background: var(--ok); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle.off { opacity: .5; cursor: not-allowed; }

.alert { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-radius: 12px; padding: 12px 16px; font-weight: 500; margin-bottom: 16px; }
.alert.soft { background: var(--soft); color: var(--ink); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%), radial-gradient(circle at 90% 90%, color-mix(in srgb, #ffb800 12%, transparent), transparent 40%); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card .logo { margin-bottom: 28px; }
.auth-card h1 { font-size: 28px; }
.auth-card .form { margin: 22px 0 18px; }
.gsi { margin: 28px 0 24px; min-height: 44px; display: grid; justify-items: center; gap: 10px; }
.gsi-btn { width: 100%; display: flex; justify-content: center; color-scheme: light; }
main:has(.auth) { padding: 0; max-width: none; }

/* ---------- access page ---------- */
.access { display: grid; gap: 22px; }
.access-head { display: flex; gap: 20px; align-items: center; }
.access-head h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 6px 0 8px; }
.paid-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--ok-soft); color: var(--ok); padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.keep { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--soft); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.keep > div { flex: 1 1 280px; }
.keep .i { color: var(--accent); margin-right: 4px; }
.deliv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.deliv h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.deliv h2 .i { color: var(--accent); }
.note { font-size: 15.5px; }
.note p:last-child { margin: 0; }
.linkbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); text-decoration: none; font-weight: 600; }
.linkbox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files { display: grid; gap: 12px; }
.file { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.file-preview { width: 100%; max-height: 520px; object-fit: contain; background: #000; }
.file audio { width: 100%; display: block; padding: 10px 12px 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; flex-wrap: wrap; }
.file-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.file-name { flex: 1 1 160px; min-width: 0; display: grid; }
.file-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* text blocks */
.texts { display: grid; gap: 12px; }
.tblock { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tblock-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--surface-2); }
.tblock-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.tblock-body { margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 420px; overflow-y: auto; }
.tedits { display: grid; gap: 10px; }
.tedits:empty { display: none; }
.tedit { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tedit-h { display: flex; gap: 6px; align-items: center; background: var(--surface-2); padding: 4px 4px 4px 0; }
.tedit-h input { border: 0; background: transparent; font-weight: 600; font-size: 14.5px; box-shadow: none !important; }
.tedit textarea { border: 0; border-radius: 0; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: none !important; }
.tedit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.add-text { justify-self: start; }

/* ---------- storefront ---------- */
.store-head { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 16px 0 40px; }
.store-head h1 { margin: 12px 0 0; }
.bio { max-width: 560px; margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- library ---------- */
.lib { display: grid; gap: 10px; margin-top: 24px; }
.lib-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: box-shadow .15s; }
.lib-item:hover { color: inherit; box-shadow: var(--shadow); }
.lib-item .cover { width: 56px; aspect-ratio: 1; border-radius: 10px; flex: none; }
.lib-item .cover.gen span { font-size: 22px; }
.lib-item > div:nth-child(2) { flex: 1; min-width: 0; }
.lib-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.dash-nav { position: sticky; top: 86px; display: grid; gap: 18px; }
.dash-user { display: flex; gap: 10px; align-items: center; }
.dash-user > div { display: grid; min-width: 0; line-height: 1.3; }
.dash-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user a { text-decoration: none; }
.dash-nav nav { display: grid; gap: 2px; }
.dash-nav nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--muted); }
.dash-nav nav a:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.dash-nav nav a.on .i { color: var(--accent); }
.dash-plan { font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.dash-plan a { text-decoration: none; display: flex; gap: 6px; align-items: center; color: var(--accent); }
.dash-plan.ok { background: var(--ok-soft); color: var(--ok); display: flex; gap: 6px; align-items: center; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.stat b { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.checklist { display: grid; gap: 4px; }
.checklist-h { display: flex; justify-content: space-between; align-items: baseline; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 10px; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.check-item:hover { background: var(--surface-2); color: inherit; }
.check-item > .i { margin-left: auto; color: var(--muted); }
.check-item.ok { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.check-item.ok .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table th.r { text-align: right; }
.table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table input { padding: 7px 9px; font-size: 13.5px; width: auto; }
.plist { display: grid; gap: 10px; }
.prow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 10px 10px; }
.prow-main { flex: 1; min-width: 0; }
.prow-main a { text-decoration: none; }
.prow-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.status.published { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty.sm { padding: 24px 8px; }
.empty.big h1 { font-size: 80px; color: var(--ink); }
.empty .btn { margin-top: 4px; }
.card.empty { padding: 56px 16px; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.editor-side { position: sticky; top: 86px; display: grid; gap: 0; }
.editor-side > .linkish { justify-self: center; margin-top: 4px; }
.drop { position: relative; display: grid !important; justify-items: center; gap: 6px !important; text-align: center; padding: 26px 16px; border: 2px dashed var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400 !important; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop > .i { color: var(--accent); }
.drop-list { display: grid; gap: 4px; width: 100%; margin-top: 6px; }
.drop-list span { font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.efiles { display: grid; gap: 8px; }
.efile { display: flex !important; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-weight: 400 !important; }
.efile .file-ic { width: 34px; height: 34px; }
.rm { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.efile:has(.rm input:checked) { opacity: .5; text-decoration: line-through; }
.cover-pick { position: relative; cursor: pointer; display: block !important; }
.cover-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-pick .cover.gen span { font-size: 56px; }
.cover-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.62); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 13px; white-space: nowrap; backdrop-filter: blur(6px); }
.plan-card { max-width: 560px; display: grid; gap: 18px; }
.plan-top { display: flex; justify-content: space-between; align-items: start; }
.plan-card .eyebrow { margin-bottom: 10px; }
.plan-card .btn { justify-self: start; }
.plan-card p { margin: 0; }
.narrow-form { max-width: 560px; }
.narrow-form .btn { justify-self: start; }

/* payouts */
.payout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.payout-grid > .card.form { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.section-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: none; }
.consent { align-items: start !important; font-size: 13.5px !important; line-height: 1.5; }
.consent input { margin-top: 3px; }
.consent a { color: var(--accent); }
.fee-card { position: sticky; top: 86px; display: grid; gap: 14px; }
.fee-rows { display: grid; gap: 8px; font-size: 14.5px; }
.fee-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.fee-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 16px; }
.fee-total span:last-child { color: var(--ok); }
.fee-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.acct-card { display: grid; gap: 16px; }
.acct-card .card-h { margin: 0; }
.acct-row { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.acct-row > .i { color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.reqs { margin: 6px 0; padding-left: 18px; text-transform: capitalize; }
.bank-edit summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.bank-edit .form { margin-top: 14px; }
.bank-edit .btn { justify-self: start; }
.status.warn { background: color-mix(in srgb, #f5a524 18%, var(--surface)); color: #b26b00; }
.status .i { margin-right: 2px; }
.month-in { width: auto; padding: 7px 10px; font-size: 14px; }
tr.strike td { text-decoration: line-through; text-decoration-color: var(--line); }
.alert .reqs + * { margin-top: 4px; }
@media (max-width: 960px) { .payout-grid { grid-template-columns: 1fr; } .fee-card { position: static; } }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* earnings preview + fee rules */
.earn { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.earn .hint { margin: 0; }
.earn-rows { display: grid; gap: 4px; font-size: 14px; }
.earn-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.earn-rows .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.earn-rows .tot span:last-child { color: var(--ok); }
.fee-rules { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.fee-rules > div { display: flex; gap: 8px; align-items: start; }
.fee-rules .i { color: var(--ok); margin-top: 2px; }
.th-note { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-lg); animation: tin .25s ease; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .hero-art { min-height: 360px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-side { position: static; }
  .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .dash-nav { position: static; }
  .dash-nav nav { grid-auto-flow: column; overflow-x: auto; gap: 4px; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
  .dash-nav nav a { white-space: nowrap; }
  .dash-user, .dash-nav form { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  main { padding-top: 20px; }
  .hide-sm { display: none !important; }
  .only-sm { display: block; }
  .steps { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .product-main .cover { margin: 0 -16px 18px; border-radius: 0; width: calc(100% + 32px); }
  .product { display: flex; flex-direction: column; gap: 18px; }
  .product-main { display: contents; }
  .product-main .cover { order: 0; margin-bottom: 0; }
  .product-title.only-sm { order: 1; margin: 0; }
  .product-side { order: 2; }
  .product-main .prose { order: 3; margin-top: 0; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); justify-content: space-between; align-items: center; gap: 12px; }
  .mobile-buy > div { min-width: 0; }
  .mobile-buy .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-buy .btn { height: 46px; padding: 0 26px; }
  body:has(.mobile-buy) .foot { padding-bottom: 76px; }
  .access-head { gap: 14px; }
  .cover.sm { width: 72px; }
  .auth-card { padding: 24px 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 10px 12px 12px; }
  .pcard-meta .by { display: none; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
  #toasts { bottom: 86px; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
