/* Preview A · Document-first. Tokens measured from docsie.io (2026-12-01):
   Inter UI + Lora reading serif, 18px body, warm off-white surfaces, 16px card radius,
   ring+blur shadow, color 0.2s ease transitions, 600ms fade-up reveals (Magic UI BlurFade port). */
:root {
  --bg: #fffaf6; --bg-warm: #fff4ec; --surface: #fff; --line: rgba(169, 69, 47, .12);
  --ink: #3c2218; --ink-2: rgba(110, 76, 61, .92); --ink-3: #7d665c;
  --accent: #e2552f; --accent-2: #a9452f; --accent-soft: rgba(226, 85, 47, .1);
  --teal: #1f6f73; --teal-soft: rgba(31, 111, 115, .1);
  --r: 16px; --r-sm: 10px; --pill: 9999px;
  --shadow: 0 0 0 1px rgba(169, 69, 47, .08), 0 1px 16px rgba(0, 0, 0, .04);
  --shadow-lift: 0 0 0 1px rgba(169, 69, 47, .1), 0 18px 40px -24px rgba(86, 58, 48, .45);
  --ui: "Inter", system-ui, sans-serif; --read: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--ui); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.i { width: 1.05em; height: 1.05em; vertical-align: -.16em; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* reveal (BlurFade port) */
[data-reveal] { opacity: 0; transform: translateY(8px); filter: blur(6px); transition: opacity .4s ease-out, transform .4s ease-out, filter .4s ease-out; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-primary { background: #c4472a; color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border: 1px solid #d9cfc8; color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-quiet { height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 500; color: var(--ink-2); }
.btn-quiet:hover { background: var(--accent-soft); color: var(--ink); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 246, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
.nav a:hover, .nav a.on { color: var(--accent-2); background: var(--accent-soft); }
.top .spacer { flex: 1; }
.credits-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.menu-btn { display: none; }

/* marketing */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #ffe6d6 0, transparent 60%), linear-gradient(180deg, var(--bg-warm), var(--bg)); padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--accent-2); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 56px; line-height: 1.06; letter-spacing: -.025em; margin: 22px 0 18px; color: var(--ink); font-weight: 700; }
.hero .lede { font: 400 20px/1.6 var(--read); color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .assure { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .assure span { display: inline-flex; gap: 6px; align-items: center; }
.hero-card { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-lift); }
.hero-card img { width: 100%; display: block; border-radius: 14px; }
.hero-card .cap { display: flex; justify-content: space-around; padding: 14px 6px 4px; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.section { padding: 64px 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 14px; color: var(--ink); }
.section .sub { font: 400 18px/1.65 var(--read); color: var(--ink-2); max-width: 640px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 20px; margin-top: 40px; }
.tile { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; overflow: hidden; position: relative; transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.4, 0, .2, 1); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile h3 { margin: 0 0 6px; font-size: 20px; }
.tile p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.tile.tall { grid-row: span 2; }
.mini-doc { font: 400 15px/1.7 var(--read); color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; }
.mini-doc h4 { font: 600 18px/1.3 var(--ui); margin: 0 0 8px; }
.pricing-band { background: var(--accent-2); color: #fff; border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pricing-band h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.01em; }
.pricing-band p { margin: 0; opacity: .85; }
.pricing-band .btn-primary { background: #fff; color: var(--accent-2); box-shadow: none; }
footer { padding: 40px 0 60px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* app shell */
.page { padding: 32px 0 80px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); min-width: 280px; color: var(--ink-3); }
.search input { border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; width: 100%; }
.chips { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); transition: background-color .2s ease, color .2s ease; }
.chip.on, .chip:hover { background: var(--accent-2); color: #fff; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .thumb { aspect-ratio: 16 / 9; background: #eee center / cover; position: relative; }
.card .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 12, 8, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.kind { padding: 2px 8px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 12px; }
.status-processing { color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* document page */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 720px) 360px; gap: 40px; justify-content: center; padding: 28px 24px 120px; max-width: 1480px; margin: 0 auto; }
.toc { position: sticky; top: 88px; align-self: start; }
.mini-player { background: #120b08; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lift); }
.mini-player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.mini-player .bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: #fff; font-size: 12px; }
.toc h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 8px; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.toc a .t { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; padding-top: 2px; min-width: 32px; }
.toc a:hover { background: var(--accent-soft); }
.toc a.on { background: var(--surface); color: var(--accent-2); box-shadow: var(--shadow); font-weight: 600; }
.doc { min-width: 0; }
.crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.doc h1 { font: 700 40px/1.12 var(--ui); letter-spacing: -.025em; margin: 12px 0 6px; color: var(--ink); }
.doc .meta { margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.tabs button { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; transition: color .2s ease; }
.tabs button.on { color: var(--accent-2); border-color: var(--accent); }
.summary { background: var(--bg-warm); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 40px; }
.summary .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2); margin-bottom: 10px; }
.summary p { font: 400 18px/1.7 var(--read); margin: 0 0 16px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--ink); }
.ts { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--ui); font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: var(--pill); background: var(--surface); color: var(--accent-2); box-shadow: 0 0 0 1px var(--line); transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.ts:hover { background: var(--accent); color: #fff; }
.chapter { scroll-margin-top: 90px; margin-bottom: 44px; }
.chapter h2 { font: 600 26px/1.25 var(--ui); letter-spacing: -.015em; margin: 0 0 6px; display: flex; gap: 12px; align-items: baseline; }
.chapter .csum { font: italic 400 17px/1.6 var(--read); color: var(--ink-2); margin: 0 0 18px; }
.chapter .lead { font: 400 19px/1.75 var(--read); color: var(--ink); margin: 10px 0 16px; }
.points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.points li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font: 400 17px/1.65 var(--read); transition: background-color .2s ease; }
.points li:hover { background: var(--bg-warm); }
.points li.active { background: var(--accent-soft); }
blockquote.said { margin: 22px 0 0; padding: 18px 22px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); position: relative; }
blockquote.said::before { content: "“"; position: absolute; left: 16px; top: -14px; font: 600 54px/1 var(--read); color: var(--accent); }
blockquote.said p { margin: 0 0 10px; font: italic 400 17px/1.65 var(--read); color: var(--ink); }
blockquote.said footer { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); }
.prose p { font: 400 18px/1.8 var(--read); margin: 0 0 18px; position: relative; }
.prose p .pt { position: absolute; left: -64px; top: 6px; }
.prose p.active { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); border-radius: 8px; box-shadow: -10px 0 0 var(--accent-soft); }
figure.moment { margin: 26px 0 30px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
figure.moment .fig-top { display: grid; grid-template-columns: 1.1fr 1fr; }
figure.moment img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: top left; display: block; cursor: zoom-in; }
figure.moment .content { padding: 18px 20px; font-size: 14.5px; }
figure.moment .content h5 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
figure.moment ul { margin: 0 0 12px; padding-left: 18px; }
figure.moment li { margin: 3px 0; }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.hier { display: grid; gap: 4px; margin: 6px 0 4px; }
.hier div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 5px 10px; border-radius: 8px; font-size: 13px; background: #faf5f1; }
.hier div b { font-weight: 600; }
.hier div.hl { background: var(--teal); color: #fff; }
.tbl-wrap { overflow-x: auto; padding: 4px 20px 16px; }
table.slide { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.slide th, table.slide td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.slide th:first-child, table.slide td:first-child { text-align: left; }
table.slide thead th { font-size: 12px; color: var(--ink-3); font-weight: 600; }
table.slide td.y { color: var(--teal); font-weight: 700; }
.refnote { font: italic 400 14px/1.6 var(--read); color: var(--ink-2); padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-warm); border-radius: 0 8px 8px 0; }

/* ask rail */
.ask { position: sticky; top: 88px; align-self: start; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.ask-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ask-head small { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.ask-body { overflow-y: auto; padding: 16px 18px; display: grid; gap: 18px; }
.q { justify-self: end; background: var(--bg-warm); border-radius: 14px 14px 4px 14px; padding: 9px 13px; font-size: 14px; max-width: 90%; }
.ans { font-size: 14.5px; line-height: 1.65; }
.ans p { margin: 0 0 8px; }
.ans ul { margin: 0 0 8px; padding-left: 18px; }
.tag-inference { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); background: var(--teal-soft); padding: 2px 6px; border-radius: 5px; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin: 0 1px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); font: 700 11px/1 var(--ui); vertical-align: 2px; transition: background-color .2s ease, color .2s ease; position: relative; }
.cite:hover, .cite:focus-visible { background: var(--accent); color: #fff; outline: none; }
.sources { display: grid; gap: 6px; margin-top: 8px; }
.src { display: grid; grid-template-columns: 22px 56px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; font-size: 12.5px; text-align: left; transition: background-color .2s ease; }
.src:hover { background: var(--bg-warm); }
.src .num { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.src .th { width: 56px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--teal-soft) center / cover; display: grid; place-items: center; color: var(--teal); }
.src b { display: block; font-weight: 600; color: var(--ink); }
.src span { color: var(--ink-3); }
.ask-input { margin: 12px; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: var(--bg); }
.ask-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.ask-input button { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.hint { font-size: 12px; color: var(--ink-3); padding: 0 16px 14px; }
.hovercard { position: fixed; z-index: 50; width: 300px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 12px; font-size: 13px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.hovercard.on { opacity: 1; transform: none; }
.hovercard img { width: 100%; border-radius: 8px; display: block; margin-bottom: 8px; }
.hovercard q { font: italic 400 14px/1.55 var(--read); display: block; }
.hovercard .h { font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; color: var(--accent-2); }
.gen-w { display: inline-block; animation: gen .5s ease-out both; }
@keyframes gen { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }

/* transcript tab */
.tr-p { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 10px; border-radius: 12px; transition: background-color .2s ease; }
.tr-p:hover { background: var(--bg-warm); }
.tr-p.active { background: var(--accent-soft); }
.tr-p .who { font-weight: 600; font-size: 13px; color: var(--teal); }
.tr-p p { margin: 2px 0 0; font: 400 16.5px/1.75 var(--read); }
mark { background: #ffd9c7; color: inherit; border-radius: 3px; padding: 0 2px; }

/* upload + account */
.panel { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
.drop { display: block; cursor: pointer; border: 2px dashed rgba(169, 69, 47, .28); border-radius: 18px; padding: 56px 24px; text-align: center; background: var(--bg-warm); transition: border-color .2s ease, background-color .2s ease; }
.drop:hover { border-color: var(--accent); background: #fff0e6; }
.drop .big { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); font-size: 28px; }
.drop h3 { margin: 0 0 6px; font-size: 22px; }
.drop p { margin: 0 0 18px; color: var(--ink-2); }
.formats { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--bg-warm); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .3s ease; }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--bg-warm); border-radius: 16px; padding: 22px 24px; margin: 20px 0; }
.quote .cost { font-size: 32px; font-weight: 700; color: var(--accent-2); letter-spacing: -.02em; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--ink-3); transition: color .2s ease; }
.checklist li .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; }
.checklist li.done { color: var(--ink); }
.checklist li.done .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.checklist li.now { color: var(--ink); font-weight: 600; }
.checklist li.now .dot { border-color: var(--accent); color: var(--accent); }
.balance { font-size: 56px; font-weight: 700; letter-spacing: -.03em; color: var(--accent-2); line-height: 1; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pack { border-radius: 16px; padding: 22px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.pack:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-2px); }
.pack .price { font-size: 28px; font-weight: 700; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.activity .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.activity .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 8, .82); display: grid; place-items: center; z-index: 60; padding: 24px; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 12px; }

/* responsive */
@media (max-width: 1240px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .ask { position: fixed; right: 16px; bottom: 16px; top: auto; width: min(380px, calc(100vw - 32px)); max-height: 70vh; z-index: 30; transform: translateY(calc(100% - 56px)); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
  .ask.open { transform: none; }
  .ask-head { cursor: pointer; }
}
@media (max-width: 860px) {
  .nav, .top .credits-chip { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 18px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 30px; }
  .steps, .bento, .two, .packs { grid-template-columns: 1fr; }
  .tile.tall { grid-row: auto; }
  .doc-layout { grid-template-columns: 1fr; padding: 0 0 120px; gap: 0; }
  .toc { position: sticky; top: 64px; z-index: 15; background: var(--bg); padding: 0 0 8px; }
  .toc .mini-player { border-radius: 0; }
  .toc h4, .toc nav { display: none; }
  .doc { padding: 20px 18px; }
  .doc h1 { font-size: 30px; }
  .prose p .pt { position: static; margin-right: 8px; }
  figure.moment .fig-top { grid-template-columns: 1fr; }
  .hier div { grid-template-columns: 1fr; gap: 0; }
  .search { min-width: 0; width: 100%; }
  .wrap { padding: 0 18px; }
  .pricing-band { padding: 28px; }
  .quote { grid-template-columns: 1fr; }
}

/* critique fixes */
.hero-doc { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 16px; display: grid; gap: 12px; }
.hero-doc .src { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; padding: 0; font-size: 13px; }
.hero-doc .src img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.hero-doc .arrow { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-doc .arrow::before, .hero-doc .arrow::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hero-doc .page { border-radius: 12px; background: var(--bg); padding: 16px 18px; font: 400 15px/1.6 var(--read); }
.hero-doc .page h4 { font: 600 17px/1.3 var(--read); margin: 0 0 8px; }
.hero-doc .page li { margin: 4px 0; }
.hero-links { display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--accent-2); padding: 0 4px; }
.hero-links a { text-decoration: underline; text-underline-offset: 3px; }
.pricing-band { background: var(--accent-2) url(../shared/media/generated/a-hero-illustration-alt.jpg) right center / auto 140% no-repeat; }
.pricing-band > div { max-width: 560px; }
.mini-player .bar { display: none; }
@media (max-width: 860px) {
  .top .btn-quiet:not(.menu-btn) { display: none; }
  .top .btn-primary { height: 36px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .top .wrap { gap: 10px; }
  .pricing-band { background-image: none; }
}
@media (max-width: 1240px) { .ask { transform: translateY(calc(100% - 56px)); } .ask.open { transform: none; } .ask-head::after { content: ""; } }

/* round 2 */
.doc .subtitle { font: 400 17px/1.5 var(--read); color: var(--ink-2); margin: 0 0 14px; }
.hint { display: flex; flex-wrap: wrap; gap: 8px; }
.hint a { text-decoration: none !important; font-size: 13.5px; padding: 6px 12px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); line-height: 1.35; transition: background-color .2s ease; }
.hint a:hover { background: var(--bg-warm); }
.ts { min-height: 26px; justify-content: center; }
@media (max-width: 860px) { .hero .ctas .btn { width: 100%; justify-content: center; } }
