:root {
  --ink: #1d1a24;
  --ink-soft: #5b5666;
  --line: #e6e1ea;
  --bg: #faf8f5;
  --card: #ffffff;
  --accent: #d6452f;
  --accent-soft: #fbe9e5;
  --ok: #2f7d4f;
  --ok-soft: #e6f3ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-family: var(--serif); font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-family: var(--serif); font-size: 1.45rem; margin: 2rem 0 1rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
h4 { font-size: .9rem; margin: 1rem 0 .4rem; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 10; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.6rem; margin-right: .15rem; vertical-align: -0.2rem; }
.topbar nav a { margin-left: 1.25rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }

.page { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 420px; margin: 3rem auto; }
.card.notice { border-color: var(--accent); background: var(--accent-soft); }
.card.notice h2 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.hint { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: .3rem; }

.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 2.4rem; max-width: 18ch; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: .65rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink-soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(.95); }
.btn.small { padding: .35rem .8rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.link-btn { background: none; border: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: .35rem; }

.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--accent-soft); color: #9c2a19; }

.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .75rem; }
legend { font-weight: 600; padding: 0 .4rem; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; font-weight: 500 !important; cursor: pointer; }
.dropzone:hover { border-color: var(--accent); }
.or { text-align: center; color: var(--ink-soft); margin: .25rem 0; font-size: .9rem; }

.episode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.episode-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.episode-list a:hover { border-color: var(--ink-soft); }
.ep-title { font-weight: 600; }
.ep-meta { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.status { font-weight: 600; }
.status-ready { color: var(--ok); }
.status-failed { color: var(--accent); }
.status-transcribing, .status-extracting, .status-writing { color: var(--warn); }

.back { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.ep-header { margin-bottom: 1rem; }
.ep-header h1 { margin-top: .5rem; }

.progress .steps { padding-left: 1.2rem; }
.progress .steps li { margin: .4rem 0; color: var(--ink-soft); }
.progress .steps li.current { color: var(--ink); font-weight: 600; }
.progress .steps li.current::after { content: " …"; }
.progress .steps li.done { color: var(--ok); }
.progress .steps li.done::after { content: " ✓"; }
.error-text { color: #9c2a19; }
.delete-form { margin-top: 1rem; }

.summary-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.summary-bar p { margin: 0 0 .75rem; }
.verify-note { color: var(--ok); font-size: .9rem; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; font-size: .82rem; }
.chip.strong { background: var(--ink); color: #fff; border-color: var(--ink); }

.tabs { display: flex; gap: .25rem; margin: 1.5rem 0 .5rem; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 61px; background: var(--bg); z-index: 5; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; padding: .7rem .9rem; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.panel { display: none; }
.panel.active { display: block; }
.panel > h2:first-child { margin-top: 1.25rem; }

.calendar { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.calendar li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.calendar li.cal-newsletter { border-left: 4px solid var(--accent); }
.cal-date { font-weight: 600; }
.cal-label a { color: var(--ink); text-decoration: none; }
.cal-label a:hover { text-decoration: underline; }

.copyable { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 5.5rem .85rem 1rem; margin-bottom: .6rem; }
.copy-text { white-space: pre-wrap; word-wrap: break-word; }
.copyable .copy { position: absolute; top: .55rem; right: .55rem; }

.post header { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .25rem; }
.post .day { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.post .angle { color: var(--ink-soft); font-weight: 600; }
.seo-score { margin-left: auto; font-size: .8rem; background: var(--ok-soft); color: var(--ok); padding: .1rem .55rem; border-radius: 999px; font-weight: 600; }
.source { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .75rem; }
.platform-tabs { display: flex; gap: .3rem; margin-bottom: .5rem; }
.ptab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.ptab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ppanel { display: none; }
.ppanel.active { display: block; }
.visual { font-size: .9rem; margin: .5rem 0; }
.alt strong { display: block; font-size: .85rem; margin: .5rem 0 .3rem; }

details.seo { margin-top: .75rem; }
details.seo summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; display: grid; gap: .3rem; }
.checks li.ok { color: var(--ok); }
.checks li.fix { color: var(--warn); }
.tip { display: block; color: var(--ink-soft); font-size: .85rem; margin-left: 1.1rem; }

ul.plain { padding-left: 1.1rem; }
ul.plain li { margin: .4rem 0; }
.stamp { display: inline-block; font-variant-numeric: tabular-nums; font-size: .78rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 .4rem; color: var(--ink-soft); }
blockquote { margin: .75rem 0; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
blockquote.quote { font-family: var(--serif); font-size: 1.05rem; }
.spin h3 { margin-top: 0; }
.starter { margin-bottom: 0; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .topbar { flex-direction: column; gap: .5rem; }
  .topbar nav a { margin: 0 .6rem; }
  .tabs { top: 96px; }
  .calendar li { grid-template-columns: 1fr; gap: .2rem; }
  .episode-list a { flex-direction: column; align-items: flex-start; }
}
.card > h1:first-child, .card > h2:first-child { margin-top: 0; }
.hint.warn { color: var(--warn); }
.tip-box { margin-top: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.tip-box summary { cursor: pointer; font-weight: 600; }
.tip-box ol { padding-left: 1.2rem; }
.pick-list form { margin: 0; }
.pick { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pick:hover { border-color: var(--accent); }
.form label .muted { font-weight: 400; font-size: .85rem; }

/* ---------- home hero with drop box ---------- */
.hero-center { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero-center h1 { font-size: 2.7rem; max-width: 24ch; margin: 0 auto .75rem; }
.hero-center .lead { margin: 0 auto 1.75rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .3rem .8rem; border-radius: 999px; margin: 0 0 1rem; }
.dropbox { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.1rem; box-shadow: 0 10px 30px rgba(29, 26, 36, .08); text-align: left; transition: border-color .15s, background .15s; }
.dropbox.dragging { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }
.dropbox.busy { opacity: .8; }
.dropbox-row { display: flex; gap: .6rem; }
.dropbox-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dropbox-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; background: #fff; }
.dropbox-row .btn { white-space: nowrap; padding: .85rem 1.3rem; }
.dropbox-or { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.dropbox-or > span:first-child { color: var(--ink-soft); }
.upload-btn { cursor: pointer; }
.dropbox-extra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; font-size: .9rem; flex-wrap: wrap; }
.dropbox-extra label { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); }
.dropbox-extra input { font: inherit; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.formats { font-size: .8rem; color: var(--ink-soft); margin: .8rem 0 0; }
.drop-overlay { display: none; position: absolute; inset: 0; border-radius: 16px; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem; color: var(--accent); background: rgba(251, 233, 229, .92); pointer-events: none; }
.dropbox.dragging .drop-overlay { display: flex; }
.outputs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.outputs .chip { background: var(--card); font-size: .88rem; padding: .3rem .8rem; }
.outputs .chip::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 1rem; }
.how-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.how-step h3 { margin: .6rem 0 .3rem; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.how-num { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
@media (max-width: 700px) {
  .hero-center h1 { font-size: 2rem; }
  .dropbox-row { flex-direction: column; }
  .how { grid-template-columns: 1fr; }
}

/* ---------- pricing ---------- */
.pricing-hero { padding-bottom: .5rem; }
.billing-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; gap: .25rem; }
.billing-toggle button { border: none; background: none; font: inherit; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.billing-toggle button.active { background: var(--ink); color: #fff; }
.billing-toggle .save { font-size: .75rem; color: var(--ok); margin-left: .3rem; }
.billing-toggle button.active .save { color: #9be3b5; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; align-items: stretch; width: min(1180px, calc(100vw - 2.5rem)); position: relative; left: 50%; transform: translateX(-50%); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.2rem; }
.plan h2 { margin: 0; font-size: 1.3rem; }
.plan-highlight { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(214, 69, 47, .12); }
.plan-badge { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; white-space: nowrap; }
.plan-tagline { color: var(--ink-soft); font-size: .9rem; margin: .3rem 0 1rem; min-height: 1.4em; }
.plan-price { margin: 0; }
.plan-price .amount { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; }
.plan-price .per { color: var(--ink-soft); }
.plan-episodes { font-weight: 700; margin: .4rem 0 1rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; font-size: .9rem; align-content: start; }
.plan-cta { margin-top: auto; }
.plan-features li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .45rem; }
.plan-features li.soon { color: var(--ink-soft); }
.plan-features li.soon::before { content: "○"; color: var(--ink-soft); }
.plan-cta { text-align: center; }
.every-plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.every-plan h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.every-plan ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; }
.every-plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .5rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6rem 0 0; color: var(--ink-soft); }
.join { margin-top: 2.5rem; }
.join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.join-form select { font: inherit; font-weight: 400; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { background: var(--bg); font-weight: 700; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; } }
@media (max-width: 600px) { .plans, .every-plan ul, .join-row { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.feature-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.feature-jump a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.feature-jump a:hover { border-color: var(--accent); }
.feature-section { margin-top: 2.5rem; scroll-margin-top: 80px; }
.feature-section > h2 { margin-bottom: .25rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.feature { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.feature h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.feature p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .93rem; flex: 1; }
.feature-link { font-weight: 700; text-decoration: none; }
.feature-link:hover { text-decoration: underline; }
.feature.soon { background: transparent; border-style: dashed; }
.feature.soon p { margin-bottom: 0; }
.soon-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); background: var(--warn-soft); padding: .15rem .55rem; border-radius: 999px; margin-bottom: .6rem; }
.cta-band { text-align: center; margin-top: 2.5rem; }
.cta-band h2 { margin-top: 0; }
.cta-band .btn { margin: .25rem; }
@media (max-width: 650px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- features menu (top bar) ---------- */
.topbar nav { display: flex; align-items: center; }
.menu { position: relative; margin-left: 1.25rem; }
.menu-btn { background: none; border: none; font: inherit; font-weight: 500; color: var(--ink-soft); cursor: pointer; padding: .4rem 0; }
.menu-btn:hover, .menu.open .menu-btn { color: var(--ink); }
.caret { font-size: .7rem; }
.menu-panel { display: none; position: fixed; top: 66px; left: 50%; transform: translateX(-50%); max-height: calc(100vh - 80px); overflow-y: auto; width: min(1040px, calc(100vw - 2rem)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(29, 26, 36, .16); padding: 1.25rem; z-index: 50; grid-template-columns: 1fr 260px; gap: 1.25rem; text-align: left; }
.menu.open .menu-panel { display: grid; }
@media (hover: hover) and (min-width: 701px) {
  .menu:hover .menu-panel, .menu:focus-within .menu-panel { display: grid; }
  .menu::after { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: 1.6rem; }
}
.menu-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1rem; }
.menu-side { border-left: 1px solid var(--line); padding-left: 1.25rem; display: flex; flex-direction: column; }
.menu-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: .2rem 0 .5rem .5rem; }
.topbar nav .menu-item { display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: .55rem .5rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.topbar nav .menu-item:hover { background: var(--bg); }
.menu-item b { display: block; font-size: .92rem; font-weight: 600; }
.menu-item small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
.menu-icon { flex: none; display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.menu-item.soon .menu-icon { background: var(--bg); color: var(--ink-soft); }
.menu-item.soon b::after { content: "Soon"; font-size: .65rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: .05rem .4rem; margin-left: .4rem; vertical-align: 2px; }
.topbar nav .menu-all { margin: auto 0 0 .5rem; padding-top: .75rem; font-weight: 700; color: var(--accent); }
.f-icon { display: inline-flex; width: 2.3rem; height: 2.3rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: .7rem; }
@media (max-width: 900px) {
  .menu-panel { grid-template-columns: 1fr; }
  .menu-main { grid-template-columns: repeat(2, 1fr); }
  .menu-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (max-width: 600px) {
  .topbar nav { flex-wrap: wrap; justify-content: center; }
  .menu { margin: 0 .6rem; }
  .menu-panel { top: 100px; }
  .menu-main { grid-template-columns: 1fr; }
}
.tagline-strong { font-weight: 700; color: var(--accent); margin: 0 0 .75rem; }

/* ---------- brand settings ---------- */
.brand-box { gap: 1rem; }
.brand-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.brand-image { display: flex; gap: .8rem; align-items: flex-start; }
.brand-image .thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: .75rem; }
.brand-image .thumb img { width: 100%; height: 100%; object-fit: cover; }
.brand-image input[type=file] { font-size: .85rem; padding: .3rem 0; border: none; background: none; }
.form .inline-check { display: flex; flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; font-size: .85rem; }
.inline-check input { width: auto; }
.brand-colors { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; }
.brand-colors input[type=color] { width: 64px; height: 40px; padding: 2px; cursor: pointer; }
@media (max-width: 600px) { .brand-images { grid-template-columns: 1fr; } }

/* ---------- quote cards ---------- */
.card-controls { display: grid; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.seg > span { width: 4rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.seg button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; display: grid; gap: .5rem; align-content: start; }
.qcard canvas { width: 100%; height: auto; border-radius: 8px; background: var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.qcard textarea, .qcard input { font: inherit; font-size: .88rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; width: 100%; resize: vertical; }
.qcard-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.qcard-actions .card-download { margin-left: auto; }
.add-photo { cursor: pointer; }
@media (max-width: 650px) { .card-grid { grid-template-columns: 1fr; } .seg > span { width: 100%; } }

/* ---------- Pro teasers ---------- */
.pro-badge { display: inline-block; font-family: var(--font); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #d6452f, #9b2c8f); padding: .12rem .45rem; border-radius: 999px; vertical-align: 2px; }
.upsell { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #fff4ef, #f8eefb); border: 1px solid #f0d6cf; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.upsell p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.upsell .btn { white-space: nowrap; }
.card-unlock { margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.view-as { margin-top: 1.5rem; }
.preview-bar { background: #2d2440; color: #fff; text-align: center; font-size: .9rem; padding: .5rem 1rem; }
.preview-bar a { color: #ffd7cc; margin-left: .5rem; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; margin-bottom: 2rem; }
.showcase h2 { margin: .6rem 0 .5rem; }
.showcase img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
@media (max-width: 700px) { .showcase { grid-template-columns: 1fr; } .upsell { flex-direction: column; align-items: flex-start; } }
.announce { display: block; text-align: center; padding: .55rem 1rem; font-size: .9rem; color: #fff; text-decoration: none; background: linear-gradient(90deg, #1d1a24, #3a1f4a 50%, #1d1a24); }
.announce b { color: #ffd7cc; }
.announce:hover b { text-decoration: underline; }
.announce-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #d6452f, #9b2c8f); border-radius: 999px; padding: .1rem .5rem; margin-right: .4rem; vertical-align: 1px; }
.outputs .chip-new { border-color: #e7b7ad; background: #fff7f4; }

/* ---------- accounts, dashboard, landing ---------- */
.brand-close { margin: 0 0 0 .1rem; }
.topbar nav a.nav-cta { background: var(--accent); color: #fff; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; }
.topbar nav a.nav-cta:hover { color: #fff; filter: brightness(.95); }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.auth-pitch h1 { font-size: 2.2rem; }
.auth-points { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 1rem 0; }
.auth-points li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.auth-card h2 { margin-top: 0; }
.auth-switch { margin: 1rem 0 0; font-size: .92rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: .5rem 0 .25rem; }
.btn.big { padding: .9rem 1.5rem; font-size: 1.05rem; }
.landing-showcase { margin-top: 2.5rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: .2rem 0 0; }
.dash-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.usage { font-size: .85rem; font-weight: 600; background: var(--ok-soft); color: var(--ok); padding: .3rem .75rem; border-radius: 999px; }
.usage.usage-out { background: var(--accent-soft); color: #9c2a19; }
.dash-add h2 { margin-top: .5rem; }
.dash-add .dropbox { margin-top: .5rem; }
.dash-add .outputs { justify-content: flex-start; }
.count { font-family: var(--font); font-size: .95rem; font-weight: 600; }
.inline-form { display: inline; margin: 0; }
.inline-form select { font: inherit; padding: .25rem .4rem; border: 1px solid var(--line); border-radius: 8px; }
.password-form { max-width: 420px; margin: .5rem 0 1rem; }
.password-form h3 { margin: .5rem 0 0; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; gap: 1rem; } }
.stripe-card h2 { margin-top: 0; }
.steps-list { padding-left: 1.2rem; display: grid; gap: .35rem; }
.plan-buy { margin: 0; display: grid; }
.plan-buy .btn, .plan-current { width: 100%; text-align: center; }
.plan-current { background: var(--bg); color: var(--ink-soft); cursor: default; }
a.plan-current { cursor: pointer; }
.secret-box { margin: 1rem 0; }
.secret-box .copyable { margin-top: .5rem; background: #fff; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 .3rem; font-size: .88em; }

/* ---------- quarterly summary ---------- */
.summary-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; filter: blur(.4px); opacity: .85; }
.sp-card { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; }
.sp-card p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.pick-eps { display: grid; gap: .4rem; }
.summary-headline { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.signature { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.signature p { font-family: var(--serif); font-size: 1.2rem; margin: .5rem 0 0; }
.thread h3 { margin-top: 0; }
a.chip { text-decoration: none; color: var(--ink); }
.dash-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.dash-link { display: flex; gap: .9rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; text-decoration: none; color: var(--ink); }
.dash-link:hover { border-color: var(--accent); }
.dash-link small { display: block; color: var(--ink-soft); }
@media (max-width: 700px) { .summary-preview, .dash-links { grid-template-columns: 1fr; } }
.meme-empty p { margin-top: 0; }
.meme-again { margin-top: 1rem; }
.qcard input[data-field] { font-weight: 700; }
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .75rem; background: #fff4e5; color: #5a3b0a; border-bottom: 1px solid #f3d9b0; font-size: .92rem; padding: .55rem 1rem; text-align: center; }
.plan-bar a { color: #9c2a19; font-weight: 700; text-decoration: none; white-space: nowrap; }
.plan-bar a:hover { text-decoration: underline; }
.plan-bar.plan-bar-out { background: var(--accent-soft); border-bottom-color: #f2c3b8; color: #5c1a10; }
.plan-chip { background: #5a3b0a; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; }
.plan-bar-out .plan-chip { background: #9c2a19; }
.plan-name { font-size: .85rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line, #e6e1da); padding: .3rem .75rem; border-radius: 999px; }
.plan { position: relative; }
.your-plan { position: absolute; top: -.7rem; left: 1.25rem; background: #5a3b0a; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.meme-photo-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); }
.photo-credit a { color: inherit; }
.photo-picker { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: #fff; display: grid; gap: .5rem; }
.photo-picker[hidden] { display: none; }
.pp-search { display: flex; gap: .4rem; }
.pp-search input { flex: 1; min-width: 0; }
.pp-msg { margin: 0; }
.pp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.pp-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #eee; }
.pp-thumb:hover, .pp-thumb:focus { border-color: var(--accent); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-foot { display: flex; gap: 1rem; align-items: center; font-size: .85rem; }
.pp-credit { margin-left: auto; color: var(--ink-soft); }
