/* Storiabilia — editorial, quiet, premium. One accent color, hairlines instead of shadows. */
:root {
  --bg: #fff9f1;
  --bg-2: #f6eee2;
  --surface: #ffffff;
  --ink: #1d1a16;
  --ink-2: #3d3832;
  --muted: #6e665c;
  --faint: #a69d91;
  --line: #ece3d6;
  --line-2: #ddd2c2;
  --accent: #ef5b3b;
  --accent-2: #d9472a;
  --accent-soft: #ffe7de;
  --butter: #ffe7a1;
  --sky: #d5e8ff;
  --mint: #d7f1de;
  --lilac: #e8e1ff;
  --peach: #ffdccb;
  --ok: #2f7a4a;
  --ok-soft: #dff3e5;
  --warn: #9a6a1a;
  --warn-soft: #fff1cc;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --r: 12px;
  --r-lg: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #e9dcc9; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.035em; line-height: 1.02; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; max-width: 34em; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 28px } .mt4 { margin-top: 48px } .mt5 { margin-top: 80px }
.mb0 { margin-bottom: 0 } .mb1 { margin-bottom: 8px } .mb2 { margin-bottom: 16px } .mb3 { margin-bottom: 28px }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.mid { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.page { padding: 48px 0 96px; }
.top { height: 68px; display: flex; align-items: center; gap: 20px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.top .crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; min-width: 0; }
.top .crumb a { text-decoration: none; color: var(--muted); }
.top .crumb a:hover { color: var(--ink); }
.top .crumb b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sep { color: var(--line-2); }
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 1.3rem; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.wordmark .mk { width: 22px; height: 22px; flex: none; }
.acct { position: relative; }
.acct-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: .8rem; font-weight: 600; }
.menu { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 220px; padding: 6px; box-shadow: 0 12px 40px rgba(28, 27, 25, .1); z-index: 40; }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: var(--r); cursor: pointer; text-decoration: none; font-size: .9rem; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.head { margin-bottom: 36px; }
.head p { margin-top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; background: none; line-height: 1.2; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #38332d; transform: translateY(-1px); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-2); }
.btn.secondary { border-color: var(--ink); background: transparent; }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.quiet { padding: 8px 10px; color: var(--ink-2); }
.btn.quiet:hover { background: var(--bg-2); }
.btn.danger { color: var(--accent); }
.btn.danger:hover { background: var(--accent-soft); }
.btn.sm { padding: 7px 12px; font-size: .85rem; }
.btn.lg { padding: 15px 28px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 22px; height: 22px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid transparent; background: none; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn.on { color: var(--accent); }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.link:hover { text-decoration-color: var(--ink); }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card.pad-sm { padding: 18px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 28px 0; }
.note { background: var(--bg-2); border-radius: var(--r-lg); padding: 14px 16px; font-size: .9rem; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); }
.note.bad { background: var(--accent-soft); color: var(--accent-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.spin { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field > small { color: var(--muted); font-size: .8rem; }
.input, select.input, textarea.input { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 27, 25, .06); }
.input.lg { height: 58px; font-size: 1.2rem; font-weight: 500; }
.fields { display: grid; gap: 18px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 3px; flex: none; margin: 2px 0 0; cursor: pointer; display: grid; place-items: center; background: var(--surface); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check b { font-weight: 500; display: block; }
.check p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: .85rem; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }

/* Choice cards */
.choices { display: grid; gap: 14px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; cursor: pointer; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.choice:hover { border-color: var(--ink-2); }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .t { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.3rem; }
.choice .d { color: var(--muted); font-size: .9rem; }
.choice .price { margin-top: auto; padding-top: 10px; font-weight: 500; }
.choice .tick { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.choice.on .tick { background: var(--ink); border-color: var(--ink); }
.choice.on .tick::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Step flow */
.flow { padding: 56px 0 96px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; gap: 16px; }
.steps-bar { display: flex; gap: 6px; flex: 1; max-width: 260px; }
.steps-bar i { height: 2px; flex: 1; background: var(--line-2); }
.steps-bar i.on { background: var(--ink); }
.flow h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.flow .lede { margin-top: 14px; }
.flow-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 12px; }

/* Projects list */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.proj:hover { border-color: var(--ink-2); }
.proj .cover { aspect-ratio: 4 / 3; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.proj .cover img, .proj .cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj .cover.new { border-bottom: 1px dashed var(--line-2); color: var(--muted); }
.proj .meta { padding: 18px 20px 20px; }
.proj .meta h3 { font-size: 1.25rem; }

/* Project home */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-lg); padding: 28px 26px 24px; text-decoration: none; display: flex; flex-direction: column; min-height: 248px; transition: border-color .15s, transform .15s; position: relative; }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.tiles .tile:nth-child(1) { background: var(--butter); }
.tiles .tile:nth-child(2) { background: var(--peach); }
.tiles .tile:nth-child(3) { background: var(--sky); }
.tile p, .tile .foot { color: var(--ink-2); }
.tile .num { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.7); display: grid; place-items: center; color: var(--ink); }
.tile h3 { font-size: 1.9rem; margin-top: 30px; }
.tile p { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.tile .foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-2); }
.tile .arrow { transition: transform .15s; }
.tile:hover .arrow { transform: translateX(3px); }
.tile.dim { opacity: .55; pointer-events: none; }
.meter { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.meter.ok i { background: var(--ok); }
.unlock { margin-top: 18px; display: flex; align-items: center; gap: 28px; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.unlock.ready { background: var(--ink); color: #fff; border-color: var(--ink); }
.unlock.ready .btn.accent { background: var(--accent); }
.unlock.ready .muted { color: #b9b4aa; }
.unlock.ready .meter { background: #3a3834; }
.unlock.ready .meter i { background: #fff; }
.foot-links { margin-top: 36px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.foot-links a, .foot-links button { color: var(--muted); }

/* Generating */
.gen { text-align: center; padding: 56px 28px; }
.gen .book3d { margin: 0 auto 36px; }
.gen-steps { max-width: 380px; margin: 28px auto 0; text-align: left; }
.gen-steps div { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: var(--faint); font-size: .95rem; }
.gen-steps div.done { color: var(--ink); }
.gen-steps div.now { color: var(--ink); font-weight: 500; }
.gen-steps .s { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }

/* Lists (sources, plan) */
.list { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item .ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink-2); overflow: hidden; }
.item .ic img, .item .ic svg.ph { width: 100%; height: 100%; object-fit: cover; }
.item .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { color: var(--muted); font-size: .85rem; }
.item .acts { display: flex; gap: 2px; align-items: center; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.play:hover { border-color: var(--ink); }
.play .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.play[disabled] { opacity: .35; pointer-events: none; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 12px; }
.section-label h3 { font-size: 1.2rem; }
.dropzone { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: #fbfaf7; }
.dropzone h3 { font-size: 1.4rem; }
.uploads .item .meter { width: 120px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo { position: relative; }
.photo .im { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.photo .im img, .photo .im svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .cap { font-size: .8rem; color: var(--ink-2); margin-top: 7px; outline: none; border-radius: 2px; min-height: 1.3em; }
.photo .cap:focus { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.photo .x { position: absolute; top: 6px; right: 6px; opacity: 0; background: rgba(255, 255, 255, .92); }
.photo:hover .x { opacity: 1; }

/* Prepare */
.prep { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.plan { position: sticky; top: 92px; }
.plan-list { counter-reset: q; }
.plan-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan-item::before { counter-increment: q; content: counter(q); font-family: var(--display); font-weight: 700; color: var(--accent); width: 18px; flex: none; }
.plan-item .grow { padding-top: 1px; }
.plan-item .acts { display: flex; opacity: .35; }
.plan-item:hover .acts { opacity: 1; }
.plan-item .acts button { width: 26px; height: 26px; }
.chapters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chapters button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .85rem; color: var(--ink-2); }
.chapters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chapters button { font-weight: 500; }
.q { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.q .txt { font-size: 1.02rem; line-height: 1.45; font-weight: 500; }
.q .meta { font-size: .78rem; color: var(--faint); margin-top: 3px; }
.q .add { flex: none; }
.q.in .add { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Recorder */
.rec { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 36px 32px; }
.qcard .qlabel { display: flex; justify-content: space-between; align-items: center; }
.qcard .qtext { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 18px 0 26px; min-height: 2.5em; }
.qcard .qnav { display: flex; gap: 8px; flex-wrap: wrap; }
.wave { width: 100%; height: 64px; display: block; margin: 30px 0 10px; }
.controls { display: flex; align-items: center; gap: 22px; justify-content: center; margin-top: 18px; }
.rec-btn { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
.rec-btn:active { transform: scale(.97); }
.rec-btn i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); transition: all .2s; }
.rec-btn.live i { width: 24px; height: 24px; border-radius: 4px; }
.timer { font-variant-numeric: tabular-nums; font-size: 2.2rem; font-family: var(--display); font-weight: 600; text-align: center; letter-spacing: .02em; }
.status-line { text-align: center; font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.status-line .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.transcript-live { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; max-height: 190px; overflow: auto; font-family: var(--serif); font-size: .98rem; color: var(--ink-2); }
.transcript-live p { margin: 0 0 8px; }
.transcript-live .who { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-right: 6px; }
.transcript-live .interim { color: var(--faint); }
.people { display: flex; gap: 8px; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .875rem; cursor: pointer; }
.person .av { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: .7rem; font-weight: 600; }
.person.on { border-color: var(--ink); }
.person.on .av { background: var(--ink); color: #fff; }
.level { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.level i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .06s; }

/* Source detail + trim */
.player { display: flex; align-items: center; gap: 14px; }
.trim { position: relative; height: 96px; margin: 20px 0 8px; user-select: none; touch-action: none; }
.trim canvas { width: 100%; height: 100%; display: block; }
.trim .shade { position: absolute; top: 0; bottom: 0; background: rgba(247, 245, 240, .78); pointer-events: none; }
.trim .h { position: absolute; top: -4px; bottom: -4px; width: 14px; margin-left: -7px; cursor: ew-resize; display: grid; place-items: center; }
.trim .h::after { content: ''; width: 3px; height: 100%; background: var(--ink); border-radius: 2px; }
.trim .ph { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent); pointer-events: none; }
.tr-line { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-line .ts { font-size: .78rem; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.tr-line .who { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.tr-line .tx { font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.tr-line.q .tx { color: var(--muted); font-style: italic; }
.tr-gap { text-align: center; font-size: .78rem; color: var(--faint); padding: 10px 0; border-bottom: 1px solid var(--line); letter-spacing: .04em; }

/* Order flow */
.order-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.summary { position: sticky; top: 92px; }
.lines .ln { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: .92rem; }
.lines .ln small { display: block; color: var(--muted); font-size: .8rem; }
.lines .total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; font-weight: 500; }
.size-pics { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 8px; }
.size-pics i { display: block; border: 1px solid var(--ink-2); border-radius: 1px 3px 3px 1px; background: var(--bg); }
.reveal { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.included { list-style: none; padding: 0; margin: 0; }
.included li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.included li .icon { color: var(--ok); margin-top: 2px; }
.paybox { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; background: var(--surface); }
.fake-input { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); background: #fbfaf8; font-variant-numeric: tabular-nums; }
.testmode { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); padding: 3px 8px; border-radius: 3px; }

/* Animated book ("what you'll get") */
.book3d { width: 240px; height: 310px; perspective: 1400px; position: relative; }
.book3d .b { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(6deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotateY(-14deg) rotateX(4deg) translateY(-6px); } }
.book3d .pg { position: absolute; inset: 4px 4px 4px 10px; background: #fbf8f1; border-radius: 1px 3px 3px 1px; transform-origin: left center; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .25); padding: 26px 22px; font-family: var(--serif); font-size: 7.5px; line-height: 1.6; color: #3a362f; overflow: hidden; }
.book3d .pg h4 { font-family: var(--serif); font-weight: 500; font-size: 15px; margin: 6px 0 10px; }
.book3d .pg .k { font-style: italic; font-size: 7px; color: #8a7f70; }
.book3d .pg .im { height: 70px; margin: 10px 0; overflow: hidden; border-radius: 1px; }
.book3d .pg .im svg { width: 100%; height: 100%; }
.book3d .flip { animation: flip 9s cubic-bezier(.6, 0, .3, 1) infinite; }
.book3d .flip.f2 { animation-delay: 3s; }
.book3d .flip.f3 { animation-delay: 6s; }
@keyframes flip { 0%, 8% { transform: rotateY(0); } 30%, 100% { transform: rotateY(-178deg); opacity: .0; } }
.book3d .cover { position: absolute; inset: 0; background: var(--cv, #2b3a33); border-radius: 2px 6px 6px 2px; transform-origin: left center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #efe6d4; padding: 30px 24px; box-shadow: inset 8px 0 14px -6px rgba(0, 0, 0, .45), 0 30px 50px -20px rgba(28, 27, 25, .5); animation: open 9s cubic-bezier(.6, 0, .3, 1) infinite; backface-visibility: hidden; }
.book3d .cover .t { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.12; }
.book3d .cover .s { font-family: var(--serif); font-style: italic; font-size: 11px; margin-top: 10px; opacity: .8; }
.book3d .cover .r { width: 30px; height: 1px; background: currentColor; opacity: .5; margin: 18px 0; }
.book3d .cover.soft { --cv: #6a4b3a; }
@keyframes open { 0%, 12% { transform: rotateY(0); } 26%, 88% { transform: rotateY(-165deg); } 100% { transform: rotateY(0); } }
.book3d.digital .b { transform: none; animation: none; }
.book3d.static .cover, .book3d.static .flip { animation: none; }
.screen { width: 300px; border-radius: 12px; border: 8px solid #1c1b19; background: #fbf8f1; height: 210px; overflow: hidden; padding: 18px 22px; font-family: var(--serif); font-size: 8.5px; line-height: 1.6; color: #3a362f; box-shadow: 0 30px 50px -24px rgba(28, 27, 25, .5); }
.screen h4 { font-family: var(--serif); font-weight: 500; font-size: 16px; margin: 4px 0 8px; }

/* Editor */
.ed { position: fixed; inset: 0; display: grid; grid-template-rows: 60px 1fr; background: #e9e5dc; z-index: 50; }
.ed-top { display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ed-body { display: grid; grid-template-columns: 132px 1fr 340px; min-height: 0; }
.ed-pages { overflow: auto; padding: 16px 14px; border-right: 1px solid var(--line); background: var(--bg); }
.ed-pages .th { width: 100%; aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--line); border-radius: 2px; margin-bottom: 4px; cursor: pointer; padding: 8px 7px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.ed-pages .th i { display: block; height: 2px; background: #ddd6c9; border-radius: 1px; }
.ed-pages .th i.h { height: 5px; width: 60%; background: #bfb6a6; margin: 2px 0; }
.ed-pages .th i.im { height: 22px; background: #e2d8c6; }
.ed-pages .th i.q { height: 4px; width: 80%; background: #d8b8aa; }
.ed-pages .lbl { font-size: .7rem; color: var(--muted); text-align: center; margin-bottom: 12px; }
.ed-pages .th.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.ed-pages .th.drag-over { outline: 2px dashed var(--accent); }
.ed-canvas { overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 36px 24px 60px; position: relative; }
.spread { display: flex; gap: 0; box-shadow: 0 30px 60px -30px rgba(28, 27, 25, .45); transform-origin: top center; }
.bpage { width: 425px; height: 550px; background: #fffdf8; padding: 46px 44px 40px; position: relative; overflow: hidden; font-family: var(--serif); font-size: 11.5px; line-height: 1.65; color: #2c2924; }
.bpage + .bpage { box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .18); }
.bpage:first-child { box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, .14); }
.bpage .folio { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 9px; color: #a39b8e; }
.bpage.over::after { content: 'Too much on this page'; position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); color: #fff; font: 600 9px var(--sans); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 4px; }
.blk { position: relative; border-radius: 2px; margin: 0 -6px; padding: 0 6px; transition: background .12s; }
.blk:hover { background: rgba(138, 59, 43, .045); box-shadow: 0 0 0 1px rgba(138, 59, 43, .15); }
.blk.dragging { opacity: .35; }
.blk.drop-before::before, .blk.drop-after::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); }
.blk.drop-before::before { top: -2px; } .blk.drop-after::after { bottom: -2px; }
.blk .tools { position: absolute; right: -2px; top: -26px; display: none; background: var(--ink); border-radius: 3px; padding: 2px; z-index: 3; }
.blk:hover .tools, .blk:focus-within .tools { display: flex; }
.blk .tools button { width: 24px; height: 22px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 2px; }
.blk .tools button:hover { background: #45423c; }
.blk .tools .icon { width: 13px; height: 13px; }
.blk .tools .grip { cursor: grab; }
.blk [contenteditable] { outline: none; }
.blk [contenteditable]:focus { background: #fff7e8; }
.b-kicker { font-style: italic; font-size: 12px; color: #8a7f70; margin-bottom: 4px; }
.b-title { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.08; text-align: center; margin: 70px 0 10px; }
.b-sub { font-style: italic; text-align: center; color: #6e665a; font-size: 13px; margin-bottom: 18px; }
.b-h { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; margin-bottom: 18px; letter-spacing: -.01em; }
.b-p { margin: 0 0 10px; text-align: justify; hyphens: auto; }
.b-p.drop::first-letter { font-family: var(--serif); float: left; font-size: 46px; line-height: .9; padding: 3px 6px 0 0; color: #b4472e; }
.b-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.35; margin: 14px 0; padding-left: 14px; border-left: 2px solid #b4472e; color: #3a352e; }
.b-quote small { display: block; font-family: var(--sans); font-size: 8px; color: #a39b8e; margin-top: 5px; letter-spacing: .04em; }
.b-photo { margin: 12px 0 12px; }
.b-photo .im { height: 150px; overflow: hidden; border-radius: 1px; background: #eee6d8; }
.b-photo .im img, .b-photo .im svg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.b-photo .cap { font-size: 9px; font-style: italic; color: #857b6d; margin-top: 5px; text-align: center; }
.b-small { font-size: 9px; color: #9b9184; text-align: center; margin-top: 18px; letter-spacing: .03em; }
.b-rule { width: 40px; height: 1px; background: #c9bfae; margin: 120px auto 24px; }
.b-toc .r { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dotted #d6ccbb; font-size: 12px; }
.b-toc .r span:first-child { color: var(--accent); width: 14px; }
.b-toc .r span:nth-child(2) { flex: 1; }
.style-modern .bpage { font-family: var(--sans); font-size: 11px; }
.style-modern .b-h, .style-modern .b-title { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.style-modern .b-quote { font-family: var(--sans); font-weight: 500; border-left-color: var(--ink); }
.style-modern .b-p.drop::first-letter { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.style-scrapbook .bpage { background: #fbf4e6; }
.style-scrapbook .b-photo .im { transform: rotate(-1.4deg); border: 6px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); height: 140px; }
.style-scrapbook .blk:nth-child(even) .b-photo .im { transform: rotate(1.2deg); }
.style-scrapbook .b-h { font-style: italic; }
.watermark { position: absolute; inset: 0; pointer-events: none; z-index: 2; background-repeat: repeat; opacity: .5; }
.ed-side { border-left: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.chat { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 10px; font-size: .88rem; line-height: 1.5; }
.msg.a { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-top-left-radius: 3px; }
.msg.u { background: var(--accent); color: #fff; align-self: flex-end; border-top-right-radius: 3px; }
.chat-in { border-top: 1px solid var(--line); padding: 12px; }
.chat-in form { display: flex; gap: 8px; }
.chat-in .input { height: 42px; font-size: .9rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .75rem; cursor: pointer; color: var(--ink-2); }
.chips button:hover { border-color: var(--ink); }
.shield { position: fixed; inset: 0; background: #fbfaf7; z-index: 80; display: none; place-items: center; text-align: center; padding: 24px; }
.shield.on { display: grid; }
.shield h2 { font-size: 1.9rem; }
.ed.locked .blk .tools { display: none !important; }
.ed .no-select, .ed .bpage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ed [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
@media print { body * { visibility: hidden !important; } body::after { content: 'Printing is turned off for private books.'; visibility: visible; } }

/* Landing */
.l-nav { height: 76px; display: flex; align-items: center; gap: 28px; }
.l-nav .links { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.l-nav .links a { text-decoration: none; color: var(--ink-2); }
.l-nav .links a:hover { color: var(--ink); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0 96px; }
.hero h1 { max-width: 11em; }
.hero .lede { margin: 26px 0 34px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.spread-sample { display: flex; background: #fffdf8; box-shadow: 0 40px 80px -40px rgba(28, 27, 25, .5), 0 0 0 1px rgba(28, 27, 25, .05); transform: rotate(-1.5deg); }
.spread-sample .bpage { width: 270px; height: 350px; padding: 30px 26px; font-size: 8.4px; }
.spread-sample .b-h { font-size: 18px; margin-bottom: 12px; }
.spread-sample .b-p.drop::first-letter { font-size: 30px; }
.spread-sample .b-quote { font-size: 11.5px; }
.spread-sample .b-photo .im { height: 110px; }
.band { border-top: 1px solid var(--line); padding: 96px 0; }
.quote-band { text-align: center; padding: 110px 0; border-top: 1px solid var(--line); }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; max-width: 22em; margin: 0 auto; }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); font-size: .9rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.how .n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.how > div:nth-child(1) .n { background: var(--butter); } .how > div:nth-child(2) .n { background: var(--peach); } .how > div:nth-child(3) .n { background: var(--sky); }
.how h3 { margin: 18px 0 10px; }
.how p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; }
.price-card .amt { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: 3.2rem; line-height: 1; margin: 22px 0 6px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.price-card li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 40em; }
.cta-band { background: var(--accent); color: #fff3ee; text-align: center; padding: 110px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band .btn.primary { background: var(--ink); color: #fff; }
.foot { padding: 40px 0 56px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .side { background: var(--accent); color: #e9e4da; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login .side blockquote { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.3; margin: 0; color: #fff; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); cursor: pointer; font-weight: 500; }
.oauth:hover { border-color: var(--ink); }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .8rem; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Toast + modal */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r); font-size: .9rem; animation: up .25s ease; max-width: 90vw; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(28, 27, 25, .38); display: grid; place-items: center; z-index: 90; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 32px; width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { font-size: 1.7rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero, .split, .reveal { grid-template-columns: 1fr; gap: 48px; }
  .prep, .rec, .order-wrap { grid-template-columns: 1fr; }
  .plan, .summary { position: static; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile h3 { margin-top: 16px; }
  .ed-body { grid-template-columns: 1fr; grid-template-rows: 1fr 260px; }
  .ed-pages { display: none; }
  .ed-side { border-left: 0; border-top: 1px solid var(--line); }
  .login { grid-template-columns: 1fr; }
  .login .side { display: none; }
}
@media (max-width: 700px) {
  .container { padding: 0 18px; }
  .top { padding: 0 16px; gap: 12px; }
  .top .crumb .hide-sm { display: none; }
  .l-nav .links a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  .spread-sample .bpage { width: 165px; height: 235px; padding: 18px 14px; font-size: 5.6px; }
  .spread-sample .b-h { font-size: 12px; }
  .spread-sample .b-photo .im { height: 60px; }
  .spread-sample .b-quote { font-size: 8px; }
  .how, .price-cards, .choices.two, .choices.three, .fields.two { grid-template-columns: 1fr; gap: 28px; }
  .price-cards, .choices.two, .choices.three { gap: 14px; }
  .band { padding: 64px 0; }
  .stage { padding: 28px 20px; }
  .unlock { flex-direction: column; align-items: stretch; gap: 16px; }
  .item { gap: 12px; }
  .item .acts .icon-btn.opt { display: none; }
  .flow { padding: 32px 0 64px; }
  .modal { padding: 24px; }
}

/* ---------- Landing extras ---------- */
.rot { display: inline-block; color: var(--accent); transition: opacity .25s, transform .25s; }
.rot.out { opacity: 0; transform: translateY(10px); }
.story { background: var(--butter); padding: 110px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.story h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.story .lede { max-width: none; color: var(--ink); }
.compare-band { background: var(--surface); }
.compare { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cmp { border-radius: var(--r-lg); padding: 22px 24px; }
.cmp p { margin: 0; }
.cmp.raw { background: var(--bg-2); color: var(--muted); font-size: .95rem; }
.cmp.book { background: #fffdf8; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.cmp.book p { font-size: 1.1rem; line-height: 1.5; }
.cmp.book p.q { font-style: italic; margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--accent); }
.cmp-h { font-weight: 600; font-size: .85rem; margin-bottom: 8px; color: var(--ink); }
.cmp-arrow { align-self: center; color: var(--accent); }
.price-card.hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card.hl .muted { color: #bdb5aa; }
.price-card.hl li { color: #e9e3da; border-color: #3a352f; }
.price-card.hl ul { border-color: #3a352f; }
.price-card h3 { font-size: 1.4rem; }

.demo { width: 100%; max-width: 480px; }
.demo-win { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-bar i:nth-child(1) { background: var(--accent); } .demo-bar i:nth-child(2) { background: #f2c14e; } .demo-bar i:nth-child(3) { background: #7cc28f; }
.demo-bar span { margin-left: 10px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.demo-body { position: relative; height: 360px; }
.scene { position: absolute; inset: 0; padding: 30px 28px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.s0 { background: var(--butter); }
.s1 { background: var(--peach); }
.s2 { background: var(--sky); display: grid; place-items: center; }
.d-small { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.d-q { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 2rem; line-height: 1.08; margin: 18px 0 26px; transition: opacity .25s; height: 3.3em; overflow: hidden; }
.d-q.swap { opacity: 0; }
.d-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.d-btns span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.6); transition: all .15s; }
.d-btns span.press { background: var(--ink); color: #fff; transform: scale(.95); }
.d-hint { margin-top: 22px; font-size: .85rem; color: var(--ink-2); }
.d-rec { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.d-rec b { font-family: var(--display); font-size: 1.6rem; }
.d-rec .live-dot, .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; animation: blink 1.4s infinite; }
.d-wave { display: flex; align-items: center; gap: 4px; height: 70px; margin: 20px 0; }
.d-wave i { flex: 1; background: var(--ink); border-radius: 3px; height: 20%; animation: bar .9s ease-in-out infinite alternate; }
@keyframes bar { 0% { height: 12%; } 50% { height: 80%; } 100% { height: 35%; } }
.d-lines p { margin: 0 0 9px; font-size: .92rem; animation: up .35s ease; }
.d-lines b { margin-right: 6px; }
.d-page { width: 250px; height: 310px; background: #fffdf8; padding: 24px 22px; box-shadow: 0 20px 40px -18px rgba(29, 26, 22, .45); font-family: var(--serif); font-size: 9.5px; line-height: 1.55; color: #2f2b26; transform: rotate(-2deg); overflow: hidden; }
.d-page > * { opacity: 0; animation: rise .5s ease forwards; }
.scene:not(.on) .d-page > * { animation: none; }
.d-kick { font-style: italic; color: #8a7f70; animation-delay: .2s !important; }
.d-h { font-size: 19px; font-weight: 500; line-height: 1.1; margin: 4px 0 10px; animation-delay: .5s !important; }
.d-p { margin: 0 0 8px; animation-delay: 1s !important; }
.d-quote { font-style: italic; font-size: 12px; line-height: 1.35; border-left: 2px solid #b4472e; padding-left: 9px; margin: 8px 0; animation-delay: 1.8s !important; }
.d-img { height: 82px; overflow: hidden; animation-delay: 2.4s !important; }
.d-img svg { width: 100%; height: 100%; }
.demo-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.demo-tabs button { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.demo-tabs button b { color: var(--accent); margin-right: 3px; }
.demo-tabs button.on { border-color: var(--ink); color: var(--ink); }
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr; gap: 28px; } .hero-art { justify-content: flex-start; } }
@media (max-width: 700px) { .demo-win { box-shadow: 6px 6px 0 var(--ink); } .d-q { font-size: 1.6rem; } .story { padding: 72px 0; } .demo-body { height: 340px; } }
.cover-blank { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -.04em; background: var(--lilac); color: var(--ink); }
.proj:nth-child(3n+2) .cover-blank { background: var(--mint); } .proj:nth-child(3n) .cover-blank { background: var(--peach); }
.track2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.track2 > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .8rem; color: var(--faint); position: relative; }
.track2 > div::before { content: ''; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.track2 > div:first-child::before { display: none; }
.track2 > div.done::before, .track2 > div.now::before { background: var(--ink); }
.track2 i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; z-index: 1; }
.track2 i .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.track2 .done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.track2 .now i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track2 b { font-weight: 600; color: var(--ink-2); }
.track2 .now b, .track2 .done b { color: var(--ink); }
.ed-nav { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 10px; align-items: center; padding: 10px; }
.ed-nav .pg-ind { font-size: .85rem; color: var(--muted); min-width: 90px; text-align: center; }
.addblk { display: none; gap: 6px; margin-top: 10px; justify-content: center; }
.bpage:hover .addblk { display: flex; }
.addblk button { border: 1px dashed #c9bfae; background: none; border-radius: 999px; font: 500 9px var(--sans); padding: 3px 10px; cursor: pointer; color: #8a7f70; }
.addblk button:hover { border-color: var(--ink); color: var(--ink); }
.ed.locked .addblk { display: none !important; }
.b-photo .im[data-swap] { cursor: pointer; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pick-grid button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--bg-2); }
.pick-grid button:hover { border-color: var(--ink); }
.pick-grid img, .pick-grid svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.ai-head h3 { font-size: 1.1rem; }
.l-nav .links a.btn.primary { color: #fff; }

/* ---------- No accidental layout shift: anything whose text changes gets a fixed box ---------- */
.rot-line { display: block; white-space: nowrap; }
.qcard .qlabel > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qcard .qtext { min-height: 0; height: 3.5em; overflow: hidden; }
.status-line { height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: 6px; }
.status-line .live-dot { margin-right: 0; }
.controls .btn { min-width: 140px; }
.transcript-live { height: 170px; max-height: none; }
.q .add { min-width: 96px; }
#save { display: inline-block; min-width: 120px; text-align: right; white-space: nowrap; }
.ed-nav .pg-ind { min-width: 140px; }
.scene { overflow: hidden; }
.d-hint { height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-lines { height: 150px; overflow: hidden; }
.unlock h3 { min-height: 1.2em; }
.b-lines i { display: block; height: 26px; border-bottom: 1px solid #e6dccb; }
.dropzone { display: block; }
@media (max-width: 700px) {
  .controls { gap: 18px; }
  .controls .btn { min-width: 0; width: 56px; height: 56px; padding: 0; border-radius: 50%; }
  .controls .btn span { display: none; }
  .rec-btn { width: 76px; height: 76px; }
  .ed-top { gap: 8px; padding: 0 10px; }
  .ed-top .seg, .ed-top #save, .ed-top .hide-sm { display: none; }
  .ed-body { grid-template-rows: 1fr 230px; }
  .ed-canvas { padding: 16px 8px 30px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; }
  .chips button { white-space: nowrap; }
  .phead { align-items: flex-start; }
  .track2 b { font-size: .72rem; }
  .track2 span { display: none; }
  .order-wrap .summary { order: -1; }
  .flow-top { margin-bottom: 28px; }
}

/* ---------- Editor: fixed layouts ---------- */
.ed-stage { display: flex; flex-direction: column; align-items: center; }
.spread { gap: 0; box-shadow: none; }
.pwrap { display: flex; flex-direction: column; }
.pwrap:first-child .bpage { box-shadow: -12px 24px 40px -28px rgba(29, 26, 22, .45), inset -14px 0 18px -14px rgba(0, 0, 0, .14); }
.pwrap + .pwrap .bpage { box-shadow: 12px 24px 40px -28px rgba(29, 26, 22, .45), inset 14px 0 18px -14px rgba(0, 0, 0, .18); }
.ptools { height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
.ptools.invisible { visibility: hidden; }
.ptools .icon-btn { width: 32px; height: 32px; }
.lay-pick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 4px 0 10px; height: 32px; background: var(--surface); font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.lay-pick select { border: 0; background: none; font: inherit; color: inherit; height: 30px; cursor: pointer; outline: none; max-width: 170px; }
.lay-pick .icon { width: 14px; height: 14px; }
.bpage [contenteditable="true"]:empty::before { content: 'Click to write'; color: #c4b9a8; }
.bpage [contenteditable="true"] { outline: none; border-radius: 2px; transition: background .12s; }
.bpage [contenteditable="true"]:hover { background: rgba(239, 91, 59, .05); }
.bpage [contenteditable="true"]:focus { background: #fff6e6; }
.b-kicker.center, .center.b-kicker { text-align: center; }
.slot { margin: 12px 0; }
.slot .im { height: 160px; overflow: hidden; border-radius: 1px; background: #eee6d8; cursor: pointer; position: relative; }
.slot .im img, .slot .im svg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.slot .im:hover::after { content: 'Change photo'; position: absolute; inset: auto 8px 8px auto; background: rgba(29, 26, 22, .8); color: #fff; font: 600 9px var(--sans); padding: 4px 8px; border-radius: 999px; }
.ed.locked .slot .im:hover::after { display: none; }
.slot.empty .im { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f3ece0, #f3ece0 8px, #efe6d7 8px, #efe6d7 16px); border: 1.5px dashed #cdbfa9; }
.slot.empty .im span { font: 600 10px var(--sans); color: #8a7f70; display: inline-flex; gap: 6px; align-items: center; }
.slot.empty .im .icon { width: 14px; height: 14px; }
.slot .cap { font-size: 9px; font-style: italic; color: #857b6d; margin-top: 5px; text-align: center; min-height: 1em; }
.lay-cover .slot .im { height: 210px; }
.lay-cover .b-title { margin-top: 40px; }
.lay-dedication .slot { max-width: 220px; margin: 20px auto; }
.lay-dedication .b-rule { margin-top: 90px; }
.lay-opener-photo .slot .im { height: 150px; }
.lay-text-photo .slot .im { height: 180px; }
.lay-photo .slot .im { height: 400px; }
.lay-photo2 .slot .im { height: 196px; }
.lay-photo2 .slot { margin: 6px 0 10px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 .slot { margin: 0; }
.grid4 .slot .im { height: 196px; }
.b-bigquote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; text-align: center; margin: 110px 10px 0; color: #3a352e; }
.b-bigquote small { display: block; font: normal 9px var(--sans); color: #a39b8e; margin-top: 14px; }
.b-bigquote::before { content: ''; display: block; width: 30px; height: 2px; background: #b4472e; margin: 0 auto 22px; }
.style-modern .b-bigquote { font-family: var(--sans); font-style: normal; font-weight: 500; }
.style-scrapbook .slot .im { transform: rotate(-1.2deg); border: 6px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.style-scrapbook .grid4 .slot:nth-child(even) .im, .style-scrapbook .lay-photo2 .slot:nth-child(even) .im { transform: rotate(1.3deg); }
.ed-pages .th i.big { height: 34px; background: #e2d8c6; }
.ed-pages .th i.full { flex: 1; height: auto; background: #e2d8c6; }
.ed-pages .th i.g4 { flex: 1; height: auto; background: linear-gradient(90deg, #e2d8c6 48%, transparent 48% 52%, #e2d8c6 52%); }
@media (max-width: 700px) { .ptools .small { display: none; } .lay-pick select { max-width: 110px; } }
.lprev { display: flex; gap: 0; margin-bottom: 10px; }
.lp { width: 46px; height: 60px; background: #fffdf8; border: 1px solid var(--line-2); padding: 6px 5px; display: flex; flex-direction: column; gap: 3px; }
.lp + .lp { border-left: 0; }
.lp b { display: block; height: 3px; background: #d8cfc0; border-radius: 1px; }
.lp u { display: block; flex: 1; background: #e6d9c3; border-radius: 1px; margin-top: 2px; }
.lp s { display: block; height: 8px; border-left: 2px solid var(--accent); background: #f6ece6; margin-top: 3px; }
.lp-p b { display: none; }
.lp-t b:nth-child(n) { display: block; }
.lp-t::after { content: ''; display: block; height: 3px; background: #d8cfc0; margin-top: 3px; box-shadow: 0 6px 0 #d8cfc0, 0 12px 0 #d8cfc0, 0 18px 0 #d8cfc0; width: 100%; }
.likes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.like { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; cursor: pointer; }
.like b { display: block; font-weight: 600; }
.like small { color: var(--muted); font-size: .85rem; }
.like .lk { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.like .lk .icon { width: 14px; height: 14px; }
.like.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.like.on .lk { background: var(--ink); border-color: var(--ink); color: #fff; }
.design-classic { font-family: var(--serif) !important; font-weight: 500 !important; }
.design-scrapbook { font-family: var(--serif) !important; font-style: italic; font-weight: 500 !important; }
@media (max-width: 700px) { .likes { grid-template-columns: 1fr; } }
.pill.soon { background: var(--butter); color: var(--ink); font-weight: 600; padding: 7px 14px; font-size: .85rem; }
.ai-band { background: var(--ink); color: #efe9df; }
.ai-band h2 { color: #fff; }
.ai-band .lede { color: #d9d2c6; max-width: 46em; }
.ai-head2 { max-width: 820px; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.ai-col { border-radius: var(--r-lg); padding: 30px 28px; }
.ai-col h3 { font-size: 1.35rem; margin-bottom: 14px; }
.ai-col ul { list-style: none; padding: 0; margin: 0; }
.ai-col li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: .98rem; line-height: 1.45; }
.ai-col li .icon { flex: none; margin-top: 2px; stroke-width: 2.4; }
.ai-col.does { background: var(--mint); color: var(--ink); }
.ai-col.does .icon { color: var(--ok); }
.ai-col.never { background: var(--peach); color: var(--ink); }
.ai-col.never .icon { color: var(--accent-2); }
.ai-col h3 { color: var(--ink); }
.ai-foot { margin: 34px 0 0; font-size: 1.15rem; color: #fff; font-weight: 500; }
@media (max-width: 860px) { .ai-cols { grid-template-columns: 1fr; } .l-nav .links a[href="#ai"] { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.s2 { position: absolute; }
.s2 .d-page { position: absolute; left: 34px; top: 26px; }
.d-book { position: absolute; right: 30px; bottom: 34px; width: 170px; height: 224px; background: #2e4a3f; border-radius: 3px 8px 8px 3px; color: #f1e9d8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; box-shadow: inset 8px 0 12px -6px rgba(0, 0, 0, .45), 14px 18px 0 -2px rgba(29, 26, 22, .9); opacity: 0; transform: translate(30px, 30px) rotate(8deg); }
.d-book .t { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.1; }
.d-book .r { width: 26px; height: 1px; background: currentColor; opacity: .55; margin: 14px 0; }
.d-book .s { font-family: var(--serif); font-style: italic; font-size: 11px; opacity: .85; }
.d-badge { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; opacity: 0; }
.d-badge .icon { width: 14px; height: 14px; stroke-width: 2.6; color: #7cd39a; }
.scene.on .d-book { animation: bookIn .7s cubic-bezier(.2, .9, .3, 1.2) 3s forwards; }
.scene.on .d-badge { animation: badgeIn .4s ease 3.8s forwards; }
@keyframes bookIn { to { opacity: 1; transform: rotate(4deg); } }
@keyframes badgeIn { to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 700px) { .s2 .d-page { left: 18px; top: 18px; width: 210px; height: 270px; } .d-book { right: 16px; bottom: 44px; width: 130px; height: 172px; } .d-book .t { font-size: 15px; } }
.ai-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.ai-story h2 { margin-bottom: 26px; }
.ai-story p { color: #d9d2c6; font-size: 1.1rem; line-height: 1.65; }
.ai-story .ai-hammer { color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.5rem; line-height: 1.2; margin: 28px 0 0; }
.needle { background: #fffdf8; color: var(--ink); border-radius: 22px; padding: 28px 26px; box-shadow: 10px 10px 0 var(--accent); }
.nd-top { display: flex; justify-content: space-between; font-size: .9rem; }
.nd-top span { color: var(--muted); }
.nd-wave { display: flex; align-items: center; gap: 2px; height: 70px; margin: 22px 0 6px; }
.nd-wave i { flex: 1; background: #d9d1c4; border-radius: 2px; }
.nd-wave i.hit { background: var(--accent); }
.nd-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.nd-find { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.nd-find .pill { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.nd-ch { font-size: .82rem; color: var(--muted); }
.nd-q { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; margin: 16px 0 10px; padding-left: 16px; border-left: 3px solid var(--accent); }
.nd-who { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 700px) { .needle { box-shadow: 6px 6px 0 var(--accent); padding: 22px 20px; } .nd-q { font-size: 1.12rem; } .ai-story p { font-size: 1.02rem; } }
.btn.req { min-width: 196px; }
.btn.sm.req { min-width: 128px; }
.btn.req .icon { width: 17px; height: 17px; }
.btn.req.done { background: var(--ok); color: #fff; opacity: 1; pointer-events: none; }
.btn.req.done .icon { fill: currentColor; }
.cta-band .btn.req.done { background: var(--ink); }
.req-note { min-height: 1.5em; }
@media (max-width: 700px) { .l-nav .links .btn.req { display: inline-flex; } .btn.lg.req { min-width: 0; } }
.tour { padding: 20px 0 100px; }
.tour h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.tour-video { max-width: 980px; margin: 40px auto 0; border-radius: 22px; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--ink); aspect-ratio: 16 / 9; }
.tour-video video { width: 100%; height: 100%; display: block; }
.btn .icon[class] { flex: none; }
@media (max-width: 700px) { .tour { padding: 0 0 64px; } .tour-video { border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); margin-top: 28px; } }
