/* Authorvia theme, "ink and amber": deep ink-indigo for the brand and
   buttons, warm amber for the way forward (the "via" in the logo), soft
   periwinkle and amber washes behind heroes, rounded white cards.
   Tracked-change colours (red deletions, indigo insertions) carry through
   from the edited manuscripts. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0b;
  --ink-soft: #585B70;
  --rule: #E6E8F2;
  --brand: #2A2F86;          /* deep ink indigo: accents, links, active states */
  --brand-strong: #1A1D57;
  --brand-tint: #EEF0FB;
  --brand-tint-2: #DDE1F7;
  --accent: #F5A524;         /* amber: the "via" path, highlights */
  --accent-strong: #C97A00;  /* amber text on white (large text) */
  --accent-tint: #FFF4DF;
  --grad-btn: linear-gradient(180deg, #4A55D9 0%, #2F3AB8 100%);
  --grad-btn-hover: linear-gradient(180deg, #3D48CC 0%, #252F9F 100%);
  --grad-band: linear-gradient(178deg, #E3E8FB 0%, #B9C1F2 7%, #2A2F86 45%, #1A1D57 100%);
  --delete: #c0362f;
  --delete-tint: #fdecea;
  --ok: #1f7a4d;
  --ok-tint: #e5f5ec;
  --wait: #9a5d0c;
  --wait-tint: #fdf2de;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(26, 29, 87, .06), 0 8px 24px rgba(26, 29, 87, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #4A55D9; outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 1.6em; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.brand-word { color: var(--accent-strong); }

/* ── Top bar ── */
.topbar { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: inline-block; flex: none; border-radius: 8px; box-shadow: 0 2px 6px rgba(47, 58, 184, .30); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand { letter-spacing: -0.01em; font-weight: 800; color: var(--brand-strong); }
.brand-via { color: var(--accent-strong); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--brand-tint); }
.nav a.active { color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.account { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-soft); }

main { max-width: 1120px; margin: 0 auto; padding: 36px 20px 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }

/* ── Panels ── */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .95rem/1 var(--sans); padding: 13px 20px; border-radius: var(--radius); border: 0; background: var(--grad-btn); color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(47, 58, 184, .28); }
.btn:hover { background: var(--grad-btn-hover); }
.btn:disabled, .btn:disabled:hover { background: #CDD0E0; box-shadow: none; color: #fff; cursor: not-allowed; }
.btn-deep { background: var(--brand); box-shadow: 0 4px 14px rgba(42, 47, 134, .3); border-radius: 14px; }
.btn-deep:hover { background: var(--brand-strong); }
.btn-large { padding: 18px 34px; font-size: 1.1rem; }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }
.btn-quiet:hover { background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand); box-shadow: none; }
.btn-light:hover { background: var(--brand-tint); }
.btn-danger { background: var(--surface); color: var(--delete); border: 1px solid #f0c3bf; box-shadow: none; }
.btn-danger:hover { background: var(--delete-tint); }
.btn-small { padding: 8px 13px; font-size: .85rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

/* ── Forms ── */
.field { margin-bottom: 18px; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .help { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.field .errors { color: var(--delete); font-size: .9rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #D3D6E6; border-radius: var(--radius); padding: 11px 13px; }
input:focus, select:focus, textarea:focus { border-color: #4A55D9; outline: 3px solid var(--brand-tint-2); outline-offset: 0; }
input[type=file] { padding: 20px 14px; border: 2px dashed #C7CDEE; background: var(--brand-tint); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 500; }
.choices label:has(input:checked) { border-color: #4A55D9; background: var(--brand-tint); box-shadow: inset 0 0 0 1px #4A55D9; }
.choices input { margin-top: 5px; accent-color: #2F3AB8; }
input[type=checkbox] { accent-color: #2F3AB8; width: 17px; height: 17px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500 !important; }
.form-errors { background: var(--delete-tint); color: var(--delete); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .cols-2 { grid-template-columns: 1fr; } }

/* ── Messages ── */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 8px; background: var(--brand-tint); color: var(--brand-strong); }
.messages li.error { background: var(--delete-tint); color: var(--delete); }
.messages li.success { background: var(--ok-tint); color: var(--ok); }

/* ── Tables ── */
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
table.list th { text-align: left; font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: 12px 16px; border-bottom: 1px solid var(--rule); background: #FAFAFE; }
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list a { font-weight: 600; text-decoration: none; }
table.list a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  table.list thead { display: none; }
  table.list tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.list td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 16px; }
  table.list td::before { content: attr(data-label); color: var(--ink-soft); font-size: .85rem; }
  table.list td.num { text-align: left; }
}

/* ── Status ── */
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EFF0F5; color: var(--ink-soft); white-space: nowrap; }
.status-processing, .status-queued { background: var(--brand-tint); color: var(--brand); }
.status-in_review { background: var(--wait-tint); color: var(--wait); }
.status-delivered { background: var(--ok-tint); color: var(--ok); }
.status-failed { background: var(--delete-tint); color: var(--delete); }
.status-soon { background: var(--brand-tint); color: var(--brand); }
.status-live { background: var(--ok-tint); color: var(--ok); }

.progress { height: 10px; background: var(--brand-tint); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-btn); width: 0; border-radius: 999px; transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .progress > span { transition: none; } }

.meter { margin: 6px 0 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

.downloads { display: grid; gap: 10px; }
.download { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fdfcff; }
.download strong { display: block; }

/* ── Auth pages ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-pitch { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.auth-pitch::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(40% 45% at 15% 30%, #c9f2f7 0%, transparent 70%),
  radial-gradient(45% 50% at 85% 20%, #C9D0F5 0%, transparent 70%),
  radial-gradient(50% 50% at 60% 90%, #FCEBD0 0%, transparent 70%),
  linear-gradient(180deg, #F4F6FE, #FAFBFF); }
.auth-pitch > * { position: relative; }
.auth-pitch .brand { margin-bottom: 48px; }
.auth-pitch .markup { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; font-weight: 700; color: var(--ink); max-width: 15ch; margin: 0 0 24px; letter-spacing: -0.02em; }
.markup del { color: var(--delete); text-decoration-thickness: 3px; font-weight: 600; }
.markup ins { color: var(--brand); text-decoration: underline; text-decoration-color: #4A55D9; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.auth-pitch p:not(.markup) { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.auth-form { padding: 56px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-pitch { padding: 32px 20px; }
  .auth-pitch .brand { margin-bottom: 24px; }
  .auth-form { padding: 32px 20px; }
}

.empty { text-align: center; padding: 52px 24px; }
.empty p { margin: 0 auto 18px; }
pre.prompt { white-space: pre-wrap; background: #FAFAFE; border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; font-size: .85rem; max-height: 360px; overflow: auto; }
.notes { white-space: pre-wrap; font-size: .95rem; max-height: 420px; overflow: auto; background: #FAFAFE; padding: 14px; border-radius: var(--radius); border: 1px solid var(--rule); }
.price { font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); box-shadow: var(--shadow); }
.plan.current { border-color: #4A55D9; box-shadow: 0 0 0 2px #4A55D9, var(--shadow); }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .9rem; }
.plan .btn { margin-top: auto; }
.segmented { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #fff; }
.segmented a { padding: 7px 14px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.segmented a.on { background: var(--brand); color: #fff; }

/* ═════════════ Public homepage ═════════════ */
.site { background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero { position: relative; overflow: hidden; text-align: center; padding: 104px 20px 112px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(30% 45% at 8% 55%, #c4f1f6 0%, transparent 70%),
  radial-gradient(35% 45% at 92% 15%, #D3D8FA 0%, transparent 70%),
  radial-gradient(40% 40% at 70% 95%, #FBE6C4 0%, transparent 70%),
  radial-gradient(40% 50% at 25% 5%, #d6dcfb 0%, transparent 70%),
  linear-gradient(180deg, #F3F5FE 0%, #FAFBFF 100%); }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { font-weight: 600; margin: 0 auto 14px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); color: #8A5300; font-size: .9rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 16ch; margin: 0 auto 20px; }
.hero .lede { font-size: 1.2rem; color: #2A2C3D; max-width: 54ch; margin: 0 auto 34px; }
.hero .markup-line { font-size: 1.15rem; margin: 26px auto 0; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.icon-tile svg { width: 24px; height: 24px; }

.band { background: var(--grad-band); color: #fff; padding: 96px 0; }
.band .section-head p { color: #DCE0F8; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: rgba(255,255,255,.06); }
.step .icon-tile { margin: 0 auto; background: #fff; }
.step h3 { margin: 18px 0 8px; font-size: 1.15rem; color: #fff; }
.step p { margin: 0 auto; color: #DCE0F8; }

.roadmap { display: grid; gap: 16px; }
.phase { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px 26px; box-shadow: var(--shadow); }
.phase.now { border-color: #4A55D9; box-shadow: 0 0 0 2px #4A55D9, var(--shadow); }
.phase-label { font-weight: 700; color: var(--brand); }
.phase-label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.phase h3 { margin: 0 0 4px; }
.phase p { margin: 0; color: var(--ink-soft); }
.phase ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 720px) { .phase { grid-template-columns: 1fr; gap: 8px; } }

.faq-box { background: linear-gradient(180deg, #6C76E0 0%, #3D48CC 100%); border-radius: 26px; padding: 56px clamp(18px, 4vw, 56px); color: #fff; }
.faq-box h2 { text-align: center; color: #fff; margin: 0 0 30px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
details.faq { background: #fff; color: var(--ink); border-radius: 14px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '⌄'; color: var(--ink-soft); }
details.faq[open] summary::after { content: '⌃'; }
details.faq p { padding: 0 24px 20px; margin: 0; color: var(--ink-soft); }

.waitlist { max-width: 720px; margin: 0 auto; }
.feature-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.feature-picks label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 500; }
.feature-picks label:has(input:checked) { border-color: #4A55D9; background: var(--brand-tint); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 260px; }

.footer { background: #fff; border-top: 1px solid var(--rule); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line, #e3e5ef); }
.footer .brand-big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 10px; }
.footer h4 { margin: 0 0 12px; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer a.btn, .footer a.btn:hover { color: #fff; }
.account a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 720px) {
  .topbar-inner { gap: 10px 14px; padding: 10px 16px; min-height: 60px; }
  .account { margin-left: auto; }
  .account > span { display: none; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; }
  .nav a { white-space: nowrap; }
  .site .nav { display: flex; }
  .hero { padding: 64px 16px 72px; }
  .section { padding: 60px 0; }
  .band { padding: 64px 0; }
}
.chapter-plan li { margin-bottom: 10px; }
.outline h3 { margin-top: 18px; }
details > summary::-webkit-details-marker { color: var(--brand); }

/* Audiobooks */
.btn svg { width: 16px; height: 16px; }
.voice-list label { align-items: center; }
.voice-list input { margin-top: 0; }
.voice-list .play.playing { border-color: #4A55D9; color: var(--brand); }
.voice-list .play.loading { opacity: .6; }
.audio-preview { width: 100%; margin: 6px 0 14px; }
.tracks { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tracks td { padding: 7px 4px; border-bottom: 1px solid var(--rule); }
.tracks td:last-child { text-align: right; color: var(--ink-soft); white-space: nowrap; }
/* More menu items since audiobooks: keep the top bar on one line */
.nav a { padding: 8px 10px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1400px) { .topbar-inner { gap: 18px; } .account > span { display: none; } }
@media (min-width: 900px) { .voice-list { grid-template-columns: 1fr 1fr; } }

/* ── Public site: pricing, demo, affiliates ─────────────────────────────── */
.page-hero { position: relative; overflow: hidden; text-align: center; padding: 72px 0 40px; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(35% 60% at 10% 40%, #c4f1f6 0%, transparent 70%),
  radial-gradient(35% 60% at 90% 20%, #D3D8FA 0%, transparent 70%),
  linear-gradient(180deg, #F3F5FE 0%, var(--bg) 100%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.page-hero .lede { color: #2A2C3D; font-size: 1.12rem; max-width: 56ch; margin: 0 auto; }
.page-hero .kicker { font-weight: 600; margin: 0 0 10px; color: var(--brand); }
.catalog-group { margin-top: 44px; scroll-margin-top: 90px; }
.catalog-group:first-child { margin-top: 12px; }
.catalog-group > h2 { margin: 0 0 6px; }
.catalog-group > p.muted { margin: 0 0 18px; }
.steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.steps-inline > div { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-left: 3px solid #4A55D9; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 760px) { .steps-inline { grid-template-columns: 1fr; } }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 22px; background: var(--grad-band); color: #fff; }
.cta-panel h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-panel p { margin: 0; color: #DCE0F8; max-width: 58ch; }

.video-frame { max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0E1030; box-shadow: 0 24px 60px rgba(26, 29, 87, .22); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { position: relative; height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; color: #DCE0F8;
  background: radial-gradient(60% 70% at 50% 40%, #2A2F86 0%, #12153F 100%); }
.mock-window { width: min(78%, 620px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: .92; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: #EEF0F8; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CDD1E6; }
.mock-body { padding: 18px 22px; color: var(--ink); text-align: left; font-size: clamp(.8rem, 1.6vw, 1rem); }
.mock-body p { margin: 0 0 10px; }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #FFC04D 0%, #F5A524 100%); color: #fff; box-shadow: 0 10px 30px rgba(245, 165, 36, .45); }
.play-badge svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video-placeholder > p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; }
.btn-large svg { width: 18px; height: 18px; }

/* ── Customer plan ──────────────────────────────────────────────────────── */
.kicker-small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.plan-summary { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) { .plan-summary { grid-template-columns: 1fr; } }
.credit-list, .service-list, .member-list { list-style: none; margin: 0; padding: 0; }
.credit-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.credit-list li:last-child { border-bottom: 0; }
.service-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.service-list li.on { color: var(--ink); font-weight: 500; }
.service-list li:last-child { border-bottom: 0; }
.plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--brand-tint); }
.plan-strip strong { font-weight: 600; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.member-list li > div { display: flex; flex-direction: column; }
.member-list li:last-child { border-bottom: 0; }

/* ── Staff and affiliate dashboards ─────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 22px; }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.tile > span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.tile > strong { font-size: 1.6rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tile > small { color: var(--ink-soft); font-size: .8rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.filters input, .filters select { width: auto; min-width: 180px; padding: 9px 12px; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EFF0F5; color: var(--ink-soft); }
.pill-plan { background: var(--ok-tint); color: var(--ok); }
.pill-package { background: var(--brand-tint); color: var(--brand); }
.pill-trial, .pill-warn { background: var(--wait-tint); color: var(--wait); }
.mini-meter { height: 5px; border-radius: 99px; background: var(--rule); margin: 6px 0 2px auto; width: 90px; overflow: hidden; }
.mini-meter span { display: block; height: 100%; background: var(--grad-btn); }
table.list.compact { box-shadow: none; }
table.list.compact td, table.list.compact th { padding: 9px 12px; font-size: .9rem; }
.copy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; background: #FAFAFE; }
@media (max-width: 600px) {
  .mock-window { width: 74%; }
  .mock-body p:last-child, .video-placeholder > p { display: none; }
  .play-badge { width: 58px; height: 58px; transform: translate(-50%, -50%); }
}

/* Paid editor review */
.review-offer { margin: 4px 0 18px; padding: 14px 16px; border: 1px dashed #BFC6F0; border-radius: var(--radius); background: #FBFCFF; }
.review-offer label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.review-offer input { margin-top: 4px; accent-color: #2F3AB8; }
.price-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); font-size: .82rem; font-weight: 700; }
.panel.reviewed { border-color: #bfe3cf; background: #f6fcf8; }

.pill-blocked { background: var(--delete-tint); color: var(--delete); }
.danger-zone { border-color: #f1c9c5; }
.danger-zone h3 { color: var(--delete); }
.member-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.member-tools input { width: 170px; padding: 7px 10px; font-size: .85rem; }

/* Credits */
.plan.featured { border-color: #4A55D9; box-shadow: 0 0 0 1px #4A55D9, var(--shadow); position: relative; }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: #3A2400; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-custom { background: var(--brand-tint); border-style: dashed; }
.credit-amount { font-size: 1rem; color: var(--brand); padding: 8px 12px; background: var(--brand-tint); border-radius: var(--radius); align-self: flex-start; }
.credit-amount strong { font-size: 1.15rem; }
.balance-big { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-strong); line-height: 1.1; }
.credit-table-wrap { overflow-x: auto; }
.calc { margin-top: 18px; }
.calc-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.calc-row label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.calc-row input, .calc-row select { min-width: 220px; font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line, #d9dbe8); border-radius: 10px; background: #fff; }
.calc-result { font-size: 1.6rem; font-weight: 800; color: var(--brand-strong); padding-bottom: 6px; }
.calc-result span { color: var(--accent-strong); }
td.neg { color: var(--delete); } td.pos { color: var(--ok); }
.cost-hint { background: var(--accent-tint); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 84px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: #2A2C3D; }
.legal ul { padding-left: 1.2em; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 28px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; background: var(--brand-tint, #eef0fb); text-decoration: none; font-size: .9rem; }
.legal-nav a.active { background: var(--brand); color: #fff; }
.legal .summary { background: var(--accent-tint, #fff4e0); border-radius: 12px; padding: 16px 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e5ef); vertical-align: top; }

.quote-box { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--accent-tint, #fff4e0); border: 1px solid #f3d9a6; }
.panel-accent { border-color: #f3d9a6; background: linear-gradient(180deg, var(--accent-tint, #fff4e0), #fff 70%); }


/* ═════════════ 2026 refresh: friendlier public site and sign-in ═════════════
   Warm paper background, a book-like serif for big headings (Fraunces), Inter
   for text, Authorvia ink-indigo for actions and amber for highlights. */
:root {
  --paper: #FBF8F3;
  --paper-2: #F3EEE6;
  --ink-btn: #1A1D57;          /* the dark "Sign up" button: deep Authorvia indigo */
  --ink-btn-hover: #2A2F86;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --teal: #0E7C7B; --teal-tint: #E1F3F2;
}
.btn-dark { background: var(--ink-btn); color: #fff; border: 1px solid var(--ink-btn); box-shadow: none; }
.btn-dark:hover { background: var(--ink-btn-hover); border-color: var(--ink-btn-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; justify-content: center; padding-top: 13px; padding-bottom: 13px; font-size: 1rem; }
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }

.ic { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; flex: none;
        background: #F1F1F5; color: var(--ink-soft); border: 1px solid rgba(0,0,0,.05); }
.ic svg { width: 20px; height: 20px; }
.ic-amber { background: var(--accent-tint); color: #A15F00; }
.ic-indigo { background: var(--brand-tint); color: var(--brand); }
.ic-teal { background: var(--teal-tint); color: var(--teal); }

/* Announcement bar */
.announce { background: linear-gradient(90deg, #FFE7BF, #FFDCA8); color: #3D2A00; }
.announce-inner { max-width: 1180px; margin: 0 auto; padding: 10px 52px 10px 20px; position: relative; display: flex;
                  align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: .95rem; text-align: center; }
.announce-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0;
                  font-size: 1.1rem; cursor: pointer; color: #3D2A00; padding: 6px; }

/* Public header */
.site { background: var(--paper); }
.site-top { background: var(--paper); border-bottom: 1px solid #E9E3D9; position: sticky; top: 0; z-index: 20; }
.site-top-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; min-height: 76px; display: flex; align-items: center; gap: 34px; }
.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link { background: none; border: 0; font: inherit; font-weight: 500; color: var(--ink); text-decoration: none;
            padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.nav-link:hover, .nav-link.active { background: var(--paper-2); }
.chev { display: inline-block; transform: rotate(90deg); margin-left: 4px; font-size: 1.1em; }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid #DDD5C8; border-radius: 8px;
               font-size: 1.2rem; padding: 6px 11px; cursor: pointer; }
.has-mega { position: relative; }
.mega { display: none; position: absolute; left: -12px; top: calc(100% + 10px); background: #fff; border: 1px solid #E9E3D9;
        border-radius: 16px; box-shadow: 0 24px 60px rgba(26,29,87,.16); padding: 22px; grid-template-columns: repeat(4, 220px); gap: 8px 22px; }
.has-mega:hover .mega, .has-mega.show .mega, .has-mega:focus-within .mega { display: grid; }
.has-mega::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.mega-head { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.mega-col a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega-col a:hover { background: var(--paper); }
.mega-col strong { display: block; font-weight: 600; font-size: .95rem; }
.mega-col small { color: var(--ink-soft); font-size: .82rem; }
.mega-soon strong { color: var(--ink-soft); font-weight: 500; }

/* Hero */
.hero2 { background: linear-gradient(180deg, var(--paper) 0%, #F4EFE7 100%); border-bottom: 1px solid #E9E3D9; }
.hero2-inner { max-width: 1180px; margin: 0 auto; padding: 72px 20px 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero2-kicker { display: inline-block; font-weight: 600; font-size: .9rem; color: #8A5300; background: var(--accent-tint);
                padding: 6px 14px; border-radius: 999px; margin: 0 0 18px; }
.hero2 h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 22px; color: #12142F; }
.hero2 h1 em { font-style: italic; color: var(--brand); }
.hero2-lede { font-size: 1.2rem; color: #33354A; max-width: 34em; margin: 0 0 30px; line-height: 1.6; }
.hero2-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero2-note { margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); }
.hero2-art { position: relative; min-height: 430px; }
.doc-sheet { position: absolute; left: 0; top: 40px; width: 62%; height: 380px; background: #fff; border: 1px solid #E6E0D6;
             border-radius: 14px; padding: 28px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 14px; }
.doc-line { height: 12px; border-radius: 6px; background: #ECE8E1; }
.w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }
.doc-text { font-family: var(--serif); font-size: 1.05rem; margin: 4px 0; line-height: 1.7; }
.doc-text ins { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tool-panel { position: absolute; right: 0; top: 0; width: 64%; background: #fff; border: 1px solid #E6E0D6; border-radius: 18px;
              box-shadow: 0 30px 70px rgba(26,29,87,.18); overflow: hidden; }
.tool-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #EFEAE2; }
.tool-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-strong); }
.tool-brand .brand-mark { width: 26px; height: 26px; }
.tool-x { color: var(--ink-soft); }
.tool-tabs { margin: 16px 18px 6px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink-btn); border-radius: 12px; padding: 5px; }
.tool-tabs button { border: 0; background: transparent; color: #DADDF7; font: inherit; font-weight: 600; padding: 9px 6px; border-radius: 9px; cursor: pointer; }
.tool-tabs button.on { background: #fff; color: var(--ink-btn); }
.tool-list[hidden] { display: none; }
.tool-list { padding: 10px 18px 18px; display: grid; gap: 10px; }
.tool-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #E6E0D6; border-radius: 12px;
             text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; transition: border-color .15s, transform .15s; }
.tool-item:hover { border-color: var(--brand); transform: translateY(-1px); }
.free-tag, .soon-tag { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.free-tag { background: var(--accent); color: #2B1B00; }
.soon-tag { background: #EEE; color: var(--ink-soft); }
.hero2-strip { max-width: 1180px; margin: 0 auto; padding: 0 20px 34px; display: flex; flex-wrap: wrap; gap: 10px 28px;
               color: var(--ink-soft); font-size: .92rem; }
.hero2-strip span::before { content: '✓'; color: var(--teal); font-weight: 700; margin-right: 8px; }
.site .section-head h2, .site .faq-box h2, .site .cta-panel h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

/* Sign-in pages */
.auth-page { background: var(--paper); }
.auth-simple { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 22px 32px; }
.auth-main { flex: 1; display: flex; justify-content: center; padding: 24px 20px 64px; }
.auth-card { width: 100%; max-width: 470px; }
.auth-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.3rem); text-align: center;
              margin: 18px 0 10px; letter-spacing: -0.02em; color: #12142F; }
.auth-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 26px; }
.social-buttons { display: grid; gap: 12px; }
.social-buttons form { margin: 0; }
.social-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 16px; background: #fff;
              border: 1px solid #D9D3C9; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.social-btn:hover:not([disabled]) { border-color: var(--ink); }
.social-btn[disabled] { opacity: .55; cursor: not-allowed; }
.social-logo { width: 20px; height: 20px; flex: none; }
.or-divider { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); margin: 24px 0 14px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-top: 1px solid #DDD6CB; }
.auth-form-fields .field input:not([type=checkbox]):not([type=radio]) { background: #fff; padding: 13px 14px; border-radius: 6px; }
.auth-legal { text-align: center; margin: 16px 0 0; }
.auth-switch { text-align: center; margin: 22px 0 0; }
.notice-box { background: var(--accent-tint); border: 1px solid #F3D9A6; border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: .95rem; }
.trial-choices { margin-top: 28px; padding-top: 22px; border-top: 1px solid #E6E0D6; display: grid; gap: 10px; }
.trial-choice { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #E6E0D6; border-radius: 12px; padding: 12px 14px; }
.trial-choice strong { display: block; }
.trial-choice small { color: var(--ink-soft); }

/* Confirm-your-email bar (inside the app) */
.verify-bar { background: var(--accent-tint); border-bottom: 1px solid #F3D9A6; }
.verify-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.account-link { color: var(--ink-soft); text-decoration: none; }
.account-link:hover { color: var(--ink); text-decoration: underline; }

/* Account page */
.connections { display: grid; gap: 10px; }
.connection { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.connection small { display: block; color: var(--ink-soft); }
.conn-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #F6F6FA; border-radius: 10px; font-size: 1.1rem; }
.conn-icon svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .hero2-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero2-art { min-height: 420px; }
  .mega { grid-template-columns: repeat(2, 220px); }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .site-top-inner { flex-wrap: wrap; gap: 12px; min-height: 64px; padding: 10px 16px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 14px; }
  .site-nav.open { display: flex; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { justify-content: center; }
  .has-mega .nav-link { width: 100%; text-align: left; }
  .mega { position: static; box-shadow: none; grid-template-columns: 1fr; padding: 8px 4px; border: 0; background: transparent; }
  .has-mega:hover .mega { display: none; }
  .has-mega.show .mega { display: grid; }
  .has-mega::after { display: none; }
  .hero2-art { min-height: 0; }
  .doc-sheet { display: none; }
  .tool-panel { position: static; width: 100%; }
  .auth-top { padding: 16px; }
}

/* Logged-in pages share the same warm look */
:root { --bg: var(--paper); }
.topbar { background: rgba(251, 248, 243, .92); backdrop-filter: blur(6px); border-bottom-color: #E9E3D9; }
.page-head h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; font-size: 2.2rem; }
.panel, .card, .plan { border-color: #ECE6DC; }

.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-logout { display: inline-flex; gap: 10px; align-items: center; }

/* Usage tiles (dashboard and My plan) */
.usage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 0; align-items: stretch; }
.utile { background: #fff; border: 1px solid #ECE6DC; border-radius: 12px; padding: 12px 14px; }
.utile span { display: block; font-size: .8rem; color: var(--ink-soft); }
.utile strong { display: block; font-size: 1.35rem; letter-spacing: -0.01em; }
.utile small { color: var(--ink-soft); font-size: .8rem; }
.utile-link { align-self: center; font-weight: 600; text-decoration: none; padding: 0 6px; }
#usage, #packs, #plans, #topups, #credits { scroll-margin-top: 90px; }

.utile-low { border-color: #E9A23B; background: #FFF6E5; }
.low-note { display: block; color: #8A4B00 !important; font-weight: 600; margin-top: 4px; }

.field input[type=number], .field input[type=date] { width: 100%; max-width: 260px; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }


/* ── Author websites (in the app) ─────────────────────────────── */
.site-addr { display: flex; align-items: center; border: 1px solid #D3D6E6; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.site-addr input { border: 0 !important; border-radius: 0 !important; flex: 1 1 auto; min-width: 0; }
.site-addr span { padding: 0 12px; color: var(--muted, #5B5E73); font-size: 14px; white-space: nowrap; }
.style-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.style-pick { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #E1DFD8; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.style-pick:has(input:checked) { border: 2px solid #2A2F86; padding: 9px; }
.style-swatch { height: 62px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.style-swatch span { display: block; height: 7px; border-radius: 4px; }
.style-swatch span + span { height: 5px; width: 55%; }
.style-romance .style-swatch { background: #F7EEE8; } .style-romance .style-swatch span { background: #B5485D; width: 70%; } .style-romance .style-swatch span + span { background: #D9B8AE; }
.style-thriller .style-swatch { background: #121318; } .style-thriller .style-swatch span { background: #D23C2E; width: 70%; } .style-thriller .style-swatch span + span { background: #4A4D58; }
.style-kids .style-swatch { background: #FFF6D9; } .style-kids .style-swatch span { background: #2B7DE9; width: 70%; } .style-kids .style-swatch span + span { background: #F2A93B; }
.style-nonfiction .style-swatch { background: #EEF2F4; } .style-nonfiction .style-swatch span { background: #0F4C5C; width: 70%; } .style-nonfiction .style-swatch span + span { background: #9DB4BC; }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-row input[type=text] { flex: 1 1 200px; min-width: 0; padding: 8px 10px; font-size: 13px; }
.ai-btn { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.dot-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2E7D5B; margin-right: 6px; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #D3D6E6; border-radius: 8px; background: #fff; }
.current-img { display: flex; align-items: center; gap: 14px; margin: -6px 0 16px; }
.current-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #E1DFD8; }
.current-img .field { margin: 0; }

/* Author websites: switcher, tabs, hosting bar, content */
.site-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.site-switch form { margin: 0; }
.site-switch button.pill { border: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; }
.site-switch a.pill { text-decoration: none; }
.site-tabs { margin: 4px 0 16px; flex-wrap: wrap; }
.hosting-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--ok-tint); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; font-size: .95rem; }
.hosting-bar.hosting-off { background: var(--wait-tint); }
.allow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.allow-row .utile-mini { background: #FAFAFE; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; }
.allow-row .utile-mini strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.allow-row .utile-mini span { font-size: .82rem; color: var(--ink-soft); }
.content-list { display: grid; gap: 8px; margin-top: 12px; }
.content-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.content-item > div { min-width: 0; }
.content-item strong { display: block; overflow-wrap: anywhere; }
.write-box { display: grid; gap: 8px; background: var(--brand-tint); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 18px; }
.write-box-title { font-weight: 700; }
.write-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.write-sentence label { font-weight: 500; }
.write-sentence select { width: auto; max-width: 100%; min-width: 0; padding: 7px 10px; }
.social-group { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.social-card { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.social-card.used { background: #FAFAFE; }
.social-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.social-platform { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.social-dot { width: 10px; height: 10px; border-radius: 50%; background: #6B6E7B; }
.social-facebook .social-dot { background: #1877F2; } .social-instagram .social-dot { background: #D62976; }
.social-x .social-dot { background: #111111; } .social-threads .social-dot { background: #444444; }
.social-book { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.social-card textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: .93rem; line-height: 1.5; border: 1px solid var(--rule); border-radius: 8px; padding: 10px; overflow: hidden; }
.social-meta { display: flex; justify-content: space-between; gap: 8px; }
.social-meta .over { color: var(--delete); font-weight: 600; }
.social-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.social-minor { margin-left: auto; display: inline-flex; gap: 12px; }
.social-done { margin-top: 18px; }
.social-done summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.write-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.write-form .field { margin: 0; flex: 1 1 180px; min-width: 0; }
.dns-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dns-table th, .dns-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dns-table code { font-size: .88rem; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.step-done { color: var(--ok); font-weight: 600; }

/* Founding members (homepage) */
.founding { background: var(--brand-tint); scroll-margin-top: 72px; }
.founding-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.founding-copy h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 6px 0 12px; letter-spacing: -0.015em; text-wrap: balance; }
.founding-copy p { color: var(--ink-soft); max-width: 560px; }
.founding-meter { height: 10px; background: #fff; border-radius: 999px; overflow: hidden; max-width: 420px; margin-top: 18px; }
.founding-meter span { display: block; height: 100%; background: var(--grad-btn); border-radius: 999px; min-width: 6px; }
.founding-form { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px; }
.founding-form label { font-weight: 600; font-size: .9rem; }
.founding-form input, .founding-form select { width: 100%; }
.founding-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.founding-row > div { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 800px) { .founding-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 420px) { .founding-row { grid-template-columns: minmax(0, 1fr); } }

/* Client feedback rounds (job page) */
.rev-thread { list-style: none; margin: 16px 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule); display: grid; gap: 14px; }
.rev-item { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.rev-item::before { content: ''; position: absolute; left: -26px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--rule); border: 2px solid #fff; }
.rev-done::before { background: var(--ok); } .rev-running::before { background: var(--brand); } .rev-failed::before { background: var(--delete); }
.rev-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 4px; }
.rev-head .status { margin-left: auto; }
.rev-feedback summary { cursor: pointer; color: var(--ink-soft); }
.rev-comments { margin: 8px 0; padding-left: 18px; }
.rev-response { margin-top: 10px; }
.rev-response td { vertical-align: top; }
.rev-form { display: grid; gap: 4px; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 6px; }
.spinner { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--brand-tint); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.service-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.service-checks .check { font-weight: 400 !important; }
