/* Layout: show, don't tell. Hero = tool + a files→Kindle scene; every section below is one picture with a few words. One light look, Amazon-style orange, handwritten notes for a personal voice. */
:root {
  color-scheme: light;
  --page: #FFFFFF;
  --warm: #FBF7F1;
  --card: #FFFFFF;
  --ink: #131A22;
  --text: #3B4450;
  --muted: #6B7380;
  --line: #E8E2D8;
  --orange: #FF9900;
  --orange-hover: #F08804;
  --orange-deep: #C45500;
  --orange-tint: #FFF1DD;
  --green: #1E8E5A;
  --red: #B3261E;
  --bezel: #232F3E;
  --screen: #EEEEE8;
  --screen-ink: #1F2125;
  --screen-muted: #6E7076;
  --focus: #C45500;
  --c-pdf: #D93025;
  --c-doc: #2B579A;
  --c-ppt: #C43E1C;
  --c-txt: #5F6B7A;
  --c-img: #1E8E5A;
  --c-epub: #0F7B6C;
  --font-head: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-book: "Literata", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--page); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); }
a { color: var(--orange-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
button { font: inherit; color: inherit; }
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--orange-deep); }

.proto { background: var(--orange-tint); color: var(--orange-deep); font-size: 13px; text-align: center; padding-block: 7px; font-weight: 500; }
/* Sticky top bar: stays pinned while you scroll; gains a hairline once the page moves, and a "Make a book" button once the tool is off screen. */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: var(--page); background: color-mix(in srgb, var(--page) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(19,26,34,.45); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 16; background: var(--page); }
section[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-block: 12px; }
.nav-links { display: flex; justify-content: center; gap: 30px; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a[aria-current="page"] { color: var(--orange-deep); border-bottom-color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.textbtn { background: none; border: 0; padding: 8px 10px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--ink); cursor: pointer; }
.textbtn:hover { background: var(--warm); }
.acct { position: relative; display: flex; align-items: center; gap: 8px; }
.acct-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bezel); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; flex: none; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(19,26,34,.4); padding: 8px; display: flex; flex-direction: column; z-index: 5; }
.acct-menu .who { padding: 8px 10px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 15px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--warm); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); place-items: center; cursor: pointer; flex: none; }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(19,26,34,.5); }
.mnav .wrap { display: flex; flex-direction: column; padding-block: 6px 12px; }
.mnav a, .mnav button { text-align: left; padding: 13px 2px; font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mnav .wrap > :last-child { border-bottom: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 32px; border-radius: 6px; background: var(--bezel); position: relative; flex: none; }
.brand-mark::before { content: ""; position: absolute; inset: 4px 4px 8px; border-radius: 2px; background: var(--screen); }
.brand-mark::after { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 2px; background: var(--orange); box-shadow: 0 4px 0 var(--orange), 0 8px 0 var(--orange); }
.credits { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--orange-tint); color: var(--orange-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- File icons ---------- */
.ficon { --c: var(--c-pdf); width: 34px; height: 44px; border-radius: 5px; background: #FFFFFF; position: relative; flex: none; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(19,26,34,.5); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; }
.ficon::before { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; background: linear-gradient(225deg, var(--warm) 50%, #E6DFD3 50%); border-bottom-left-radius: 3px; }
.ficon::after { content: ""; position: absolute; left: 6px; right: 13px; top: 9px; height: 2px; border-radius: 1px; background: #E2DDD4; box-shadow: 0 5px 0 #E2DDD4, 0 10px 0 #E2DDD4; }
.ficon b { font-family: var(--font-head); font-weight: 700; font-size: 8.5px; letter-spacing: .02em; color: #FFFFFF; background: var(--c); border-radius: 3px; padding: 1px 4px; line-height: 1.3; position: relative; z-index: 1; }
.ficon.doc { --c: var(--c-doc); } .ficon.ppt { --c: var(--c-ppt); } .ficon.txt { --c: var(--c-txt); } .ficon.img { --c: var(--c-img); } .ficon.epub { --c: var(--c-epub); }
.ficon.lg { width: 52px; height: 66px; border-radius: 7px; padding-bottom: 7px; }
.ficon.lg::before { width: 15px; height: 15px; }
.ficon.lg::after { left: 8px; right: 18px; top: 13px; height: 3px; box-shadow: 0 7px 0 #E2DDD4, 0 14px 0 #E2DDD4; }
.ficon.lg b { font-size: 11px; padding: 1px 5px; }
.ficons { display: flex; gap: 8px; justify-content: center; }
.linkpill { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 500; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(19,26,34,.5); white-space: nowrap; }
.linkpill svg { color: var(--orange-deep); flex: none; }

/* ---------- Kindle device (fixed size; content never resizes it) ---------- */
.kd { width: var(--kw, 290px); max-width: 100%; background: var(--bezel); border-radius: calc(var(--kw, 290px) * .085); padding: calc(var(--kw, 290px) * .06) calc(var(--kw, 290px) * .055) calc(var(--kw, 290px) * .13); position: relative; box-shadow: 0 30px 60px -32px rgba(19,26,34,.6); flex: none; }
.kd::after { content: ""; position: absolute; bottom: calc(var(--kw, 290px) * .048); left: 50%; transform: translateX(-50%); width: 16%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.14); }
.kd .scr { background: var(--screen); color: var(--screen-ink); border-radius: 3px; height: var(--kh, 380px); overflow: hidden; position: relative; }

/* hero page */
.page { padding: 16px 16px 0; font-family: var(--font-book); font-size: 12.5px; line-height: 1.55; height: 100%; display: flex; flex-direction: column; }
.page .bt { font-family: var(--font-body); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--screen-muted); text-align: center; margin-bottom: 9px; }
.page h3 { font-family: var(--font-book); color: var(--screen-ink); font-size: 17px; line-height: 1.2; margin: 0 0 8px; font-weight: 700; text-wrap: balance; }
.page p { margin: 0 0 7px; text-indent: 1.1em; hyphens: auto; }
.page p.first { text-indent: 0; }
.page sup { font-family: var(--font-body); font-size: 7.5px; font-weight: 700; padding-left: 1px; color: var(--screen-ink); }
.page .fn { margin-top: auto; border-top: 0.75px solid var(--screen-muted); padding-top: 4px; font-family: var(--font-body); font-size: 8.5px; line-height: 1.45; color: var(--screen-muted); }
.page .fn div sup { font-size: 6.5px; margin-right: 2px; color: var(--screen-muted); }
.page .foot { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 8.5px; color: var(--screen-muted); padding-block: 6px 7px; font-variant-numeric: tabular-nums; }
.page .spacer { margin-top: auto; }
/* basic (no AI) preview: page clutter shows up, title is just text */
.page .junk { display: none; font-family: var(--font-body); font-size: 8px; letter-spacing: .06em; color: var(--screen-muted); text-indent: 0; margin: 3px 0 6px; }
.page.basic .junk, .page.messy .junk { display: block; }
.page.basic h3 { font-size: 12.5px; font-weight: 400; margin-bottom: 6px; }
.page.messy p { margin: 0; text-indent: 0; }
.page.messy .junk { margin: 5px 0; }
.basic-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); padding-inline: 4px; cursor: pointer; }
.basic-opt input { accent-color: var(--orange); margin: 2px 0 0; flex: none; width: 16px; height: 16px; }
.basic-opt b { color: var(--ink); font-weight: 700; }
.basic-opt .d { font-size: 12px; }
.switches.dim { opacity: .4; pointer-events: none; }
.scr.flash::after { content: ""; position: absolute; inset: 0; background: var(--screen-ink); animation: refresh .42s steps(1, end) forwards; }
@keyframes refresh { 0% { opacity: 1; } 45% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--orange); background: var(--orange); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .1s; }
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--warm); }
.btn.small { min-height: 38px; font-size: 14px; padding: 0 14px; white-space: nowrap; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 170px; }
.linkish { background: none; border: 0; padding: 0; color: var(--orange-deep); text-decoration: underline; cursor: pointer; font-size: 14px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero-band { background: var(--warm); border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head scene" "tool scene"; column-gap: 56px; row-gap: 22px; align-items: start; padding-block: 40px 60px; }
.head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.tool { grid-area: tool; }
.scene { grid-area: scene; align-self: center; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
h1 { font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.03; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.hl { color: var(--orange); position: relative; white-space: nowrap; }
.hl svg { position: absolute; left: 0; right: 0; bottom: -0.16em; width: 100%; height: 0.32em; }
.lede { font-size: 19px; margin: 0; max-width: 30em; color: var(--text); }

.tool { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 18px 40px -28px rgba(19,26,34,.35); }
.view { display: flex; flex-direction: column; gap: 14px; }
.drop { border: 1.5px dashed #D9CFC0; border-radius: 14px; padding: 20px 16px; background: var(--warm); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-tint); }
.drop strong { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
.drop span { font-size: 14px; color: var(--muted); }
.picked { font-size: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--orange-tint); color: var(--ink); }
.picked button { margin-left: auto; background: none; border: 0; color: var(--orange-deep); cursor: pointer; font-size: 13px; text-decoration: underline; }
.or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding-block: 12px; outline: none; }
.field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.field svg { flex: none; color: var(--muted); }
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt .t { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.opt .d { font-size: 12px; color: var(--muted); }
.sw { flex: none; width: 42px; height: 26px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #D8D3CA; position: relative; transition: background-color .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.sw[aria-checked="true"] { background: var(--orange); }
.sw[aria-checked="true"]::after { transform: translateX(16px); }
.deliver-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.deliver-note b { color: var(--ink); font-weight: 500; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); align-items: center; justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }

.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stages li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.stages li .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; color: #FFFFFF; }
.stages li.now { color: var(--ink); font-weight: 700; }
.stages li.now .dot { border-color: var(--orange); border-top-color: transparent; animation: spin .8s linear infinite; }
.stages li.done { color: var(--ink); }
.stages li.done .dot { background: var(--green); border-color: var(--green); }
.stages li.done .dot::after { content: "✓"; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 6px; border-radius: 999px; background: var(--orange-tint); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s ease; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.view h2 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
.view p { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.note { font-size: 15px; color: var(--text); }
.fail { color: var(--red); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.steps i.on { background: var(--orange); }
label.lbl { font-size: 14px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
select.field-select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.err { font-size: 13px; color: var(--red); margin-top: 4px; }
details.help { font-size: 14px; color: var(--muted); }
details.help summary { cursor: pointer; color: var(--orange-deep); }
details.help p { margin-top: 8px !important; }
.copybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--orange-tint); font-weight: 700; font-size: 16px; color: var(--ink); min-width: 0; }
.copybox code { font: inherit; overflow-wrap: anywhere; min-width: 0; }
.copybox button { margin-left: auto; flex: none; }
ol.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.tips { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.big-check { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #FFFFFF; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.inbox { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* hero scene */
.scene { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.sources { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; position: relative; }
.sgrid { display: grid; grid-template-columns: repeat(2, 52px); gap: 12px 10px; }
.sgrid .ficon:nth-child(1) { transform: rotate(-7deg); }
.sgrid .ficon:nth-child(2) { transform: rotate(5deg) translateY(6px); }
.sgrid .ficon:nth-child(3) { transform: rotate(4deg); }
.sgrid .ficon:nth-child(4) { transform: rotate(-5deg) translateY(6px); }
.note-any { position: absolute; top: -34px; left: -8px; font-size: 22px; transform: rotate(-6deg); white-space: nowrap; }
.arrow { width: 58px; height: 54px; color: var(--orange); flex: none; }
.arrow .trail { stroke-dasharray: 5 6; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -11; } }
.device-wrap { position: relative; }
.note-kindle { position: absolute; right: -6px; top: -34px; font-size: 22px; transform: rotate(5deg); white-space: nowrap; }
.contents { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; }
.contents span { padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: opacity .2s; }
.contents span.off { opacity: .35; text-decoration: line-through; }
.also { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.also .ficon { transform: scale(.85); }

/* ---------- Sections ---------- */
section.band { padding-block: 72px; }
section.band.alt { background: var(--warm); }
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 40px; }
.sec-head .hand { font-size: 24px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* formats strip */
.strip { padding-block: 36px; border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; }
.fmt .hand { font-size: 19px; color: var(--ink); line-height: 1; }
.strip-arrow { color: var(--orange); }
.fmt-out { display: flex; align-items: center; gap: 14px; }
.kmini { width: 40px; height: 54px; border-radius: 7px; background: var(--bezel); position: relative; flex: none; }
.kmini::before { content: ""; position: absolute; inset: 4px 4px 10px; border-radius: 2px; background: var(--screen); }
.kmini::after { content: ""; position: absolute; left: 10px; right: 10px; top: 11px; height: 2px; background: #B9B8B0; box-shadow: 0 5px 0 #B9B8B0, 0 10px 0 #B9B8B0, 0 15px 0 #B9B8B0; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
.ba-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ba-card.good { border: 2px solid var(--orange); }
.ba-tag { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--warm); color: var(--muted); }
.ba-card.good .ba-tag { background: var(--orange-tint); color: var(--orange-deep); }
.ba ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink); align-self: stretch; padding-inline: 12px; }
.ba li { display: flex; gap: 10px; align-items: baseline; }
.ba li::before { content: "✕"; color: var(--red); font-weight: 700; font-size: 13px; }
.ba-card.good li::before { content: "✓"; color: var(--green); }
.pdfpage { height: 100%; padding: 10px 9px 6px; display: flex; flex-direction: column; gap: 5px; font-family: var(--font-body); position: relative; }
.pdfpage .hdr { font-size: 5px; letter-spacing: .1em; color: #888; display: flex; justify-content: space-between; border-bottom: .5px solid #AAA; padding-bottom: 3px; }
.pdfpage .ttl { height: 6px; width: 70%; background: #6E7076; border-radius: 1px; }
.pdfpage .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.pdfpage .cols i { display: block; background: repeating-linear-gradient(to bottom, #8F8F8A 0 1.4px, transparent 1.4px 4px); }
.pdfpage .pg { font-size: 6px; color: #888; text-align: center; }
.zoom { position: absolute; right: 10px; bottom: 26px; display: flex; align-items: center; gap: 4px; background: var(--ink); color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.page.mini { padding: 13px 12px 0; font-size: 11px; line-height: 1.5; }
.page.mini h3 { font-size: 14px; margin-bottom: 6px; }

/* how it works */
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; position: relative; }
.stepc { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; }
.stepc .art { height: 96px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.stepc .num { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.stepc h4 { margin: 0; font-size: 20px; font-weight: 600; }
.stepc p { margin: 0; color: var(--muted); font-size: 15px; }
.stepc:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -24px; width: 48px; border-top: 2px dashed var(--orange); }
.magic { width: 72px; height: 72px; border-radius: 20px; background: var(--orange-tint); display: grid; place-items: center; color: var(--orange-deep); }

/* inside the book */
.inside { display: grid; grid-template-columns: auto minmax(0, 420px); gap: 48px; align-items: center; justify-content: center; }
.toc { height: 100%; padding: 14px 14px 0; font-family: var(--font-body); color: var(--screen-ink); display: flex; flex-direction: column; }
.toc .tt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--screen-muted); text-align: center; padding-bottom: 8px; border-bottom: .75px solid #C9C9C1; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { display: flex; justify-content: space-between; font-family: var(--font-book); font-size: 12.5px; padding: 10px 2px; border-bottom: .75px solid #D5D5CE; }
.toc li span:last-child { font-family: var(--font-body); font-size: 10px; color: var(--screen-muted); }
.toc li.cur { font-weight: 700; }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.feat li { display: flex; gap: 16px; align-items: center; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--orange-tint); color: var(--orange-deep); display: grid; place-items: center; flex: none; font-family: var(--font-book); font-weight: 700; font-size: 20px; }
.feat h4 { margin: 0; font-size: 18px; font-weight: 600; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* kindle or epub */
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.out { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--card); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.out.main { border: 2px solid var(--orange); }
.out .art { height: 70px; display: flex; align-items: center; gap: 12px; }
.out h3 { margin: 0; font-size: 22px; font-weight: 700; }
.out p { margin: 0; color: var(--text); }
.readers { display: flex; flex-wrap: wrap; gap: 6px; }
.readers span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--warm); color: var(--ink); }

/* founder */
.founder { max-width: 680px; margin: 0 auto; display: flex; gap: 22px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; flex: none; }
.founder p { margin: 0 0 10px; font-size: 17px; color: var(--ink); }
.founder .sig { font-size: 26px; }
.founder .role { font-size: 14px; color: var(--muted); }

/* pricing: free / credit pack / monthly, credits priced at AI cost + markup */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 14px; background: var(--card); position: relative; box-shadow: 0 14px 30px -26px rgba(19,26,34,.35); }
.plan.main { border: 2px solid var(--orange); }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--orange); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.plan .label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.price { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.per { font-size: 14px; color: var(--muted); margin-top: -6px; font-variant-numeric: tabular-nums; }
.amt { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); }
.amt output { font-variant-numeric: tabular-nums; }
.plan input[type="range"] { width: 100%; accent-color: var(--orange); margin: 0; height: 22px; cursor: pointer; }
.ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -10px; font-variant-numeric: tabular-nums; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--text); display: flex; flex-direction: column; gap: 7px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan .btn { width: 100%; }
.credit-guide { max-width: 1040px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.cg .what { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.cg .cost { font-size: 14px; color: var(--muted); }
.cg .cost b { color: var(--orange-deep); }
.ic-sq { width: 34px; height: 44px; border-radius: 6px; background: var(--orange-tint); color: var(--orange-deep); display: grid; place-items: center; font-family: var(--font-book); font-weight: 700; font-size: 22px; flex: none; }
.plan-note { font-size: 14px; color: var(--muted); margin: 20px auto 0; text-align: center; max-width: 46em; }
.price-why { max-width: 640px; margin: 10px auto 0; font-size: 14px; color: var(--muted); text-align: center; }
.price-why summary { cursor: pointer; color: var(--orange-deep); }
.price-why p { margin: 8px 0 0; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-deep); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--text); }

.cta-band { text-align: center; padding-block: 64px; background: var(--warm); }
.cta-band h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
footer { padding-block: 20px 40px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 44px 22px; border-bottom: 1px solid var(--line); }
.foot-grid h5 { margin: 0 0 10px; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.foot-grid a { display: block; color: var(--text); text-decoration: none; font-size: 14px; padding-block: 3px; }
.foot-grid a:hover { color: var(--orange-deep); }
.foot-grid .brand { display: flex; font-size: 19px; }
.foot-grid p { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 28em; }

/* tool: credit line + partial-credit result */
.cost-line { font-size: 13px; color: var(--muted); text-align: center; margin-top: -4px; }
.cost-line b { color: var(--ink); font-weight: 700; }
.partial { border-radius: 14px; background: var(--orange-tint); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); }
.partial .bar2 { height: 8px; border-radius: 999px; background: #FFFFFF; overflow: hidden; }
.partial .bar2 i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.partial .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* sign-in dialog */
dialog.modal { border: 0; padding: 0; border-radius: 22px; width: min(420px, calc(100% - 32px)); background: var(--card); color: var(--text); box-shadow: 0 40px 80px -30px rgba(19,26,34,.5); }
dialog.modal::backdrop { background: rgba(19,26,34,.38); }
.modal-card { padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.modal-card h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; text-wrap: balance; padding-right: 30px; }
.modal-card p { margin: 0; }
#si-main, #si-form { display: flex; flex-direction: column; gap: 12px; }
.x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--warm); cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); }
.gmark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--ink); }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }

/* extension page */
.xhero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 56px 64px; }
.xhead { display: flex; flex-direction: column; gap: 16px; }
.xhead h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.xactions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.xactions small { font-size: 14px; color: var(--muted); }
.popup { width: 100%; max-width: 360px; justify-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(19,26,34,.45); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.popup-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.popup-top .brand { font-size: 17px; }
.lbl2 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.rl li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.rl li:last-child { border-bottom: 0; }
.rl li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl li button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.rl-empty { padding: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.mini-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-opts span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--orange-tint); color: var(--orange-deep); font-weight: 500; }
.weekly { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text); padding-top: 10px; border-top: 1px solid var(--line); }
.browser-ic { width: 84px; height: 62px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 20px -14px rgba(19,26,34,.5); position: relative; overflow: hidden; }
.browser-ic::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--warm); border-bottom: 1px solid var(--line); }
.browser-ic::after { content: ""; position: absolute; left: 10px; right: 26px; top: 24px; height: 3px; background: #D9D3C8; box-shadow: 0 8px 0 #D9D3C8, 0 16px 0 #D9D3C8; }
.browser-ic i { position: absolute; right: 6px; top: 3px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; min-width: 0; }
.post-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.post-art { height: 124px; border-radius: 14px; background: var(--warm); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--orange); }
.post-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); margin-top: 4px; }
.post-card h3 { margin: 0; font-size: 21px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.post-card p { margin: 0; font-size: 15px; }
.post-card .rt { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.next-up { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }
.article { max-width: 680px; margin: 0 auto; padding-block: 40px 72px; }
.article .back { font-size: 14px; text-decoration: none; font-weight: 500; }
.article h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 14px 0 10px; }
.article .byline { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.article h2 { font-size: 24px; margin: 34px 0 10px; }
.article p, .article li { font-size: 17.5px; line-height: 1.65; color: var(--text); }
.article p { margin: 0 0 14px; }
.article ol, .article ul { padding-left: 22px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.article b { color: var(--ink); }
.article .tip { border-left: 3px solid var(--orange); background: var(--warm); padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 16px; }
.article-cta { margin-top: 40px; padding: 20px 22px; border-radius: 20px; background: var(--orange-tint); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.article-cta strong { font-family: var(--font-head); font-size: 19px; color: var(--ink); font-weight: 600; }
#start { scroll-margin-top: 90px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "head" "scene" "tool"; padding-block: 28px 48px; }
  .head { text-align: left; }
  .inside { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .plans, .credit-guide { grid-template-columns: 1fr; max-width: 460px; }
  .xhero { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 48px; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 720px) {
  .posts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .ba, .outs { grid-template-columns: 1fr; max-width: 440px; }
  .how3 { grid-template-columns: 1fr; gap: 36px; }
  .stepc:not(:last-child)::after { top: auto; bottom: -26px; right: 50%; width: 0; height: 20px; border-top: 0; border-left: 2px dashed var(--orange); }
  .founder { flex-direction: column; }
}
@media (max-width: 560px) {
  .flow { flex-direction: column; gap: 4px; }
  .sources { flex-direction: row; gap: 14px; }
  .sgrid { grid-template-columns: repeat(4, 44px); gap: 8px; }
  .sgrid .ficon { width: 44px; height: 56px; }
  .note-any { top: -26px; left: 0; font-size: 19px; }
  .arrow { transform: rotate(90deg); width: 46px; height: 44px; }
  .scene .kd { --kw: 250px; --kh: 330px; }
  .page { font-size: 11px; }
  .page h3 { font-size: 15px; }
  .note-kindle { display: none; }
  .switches { grid-template-columns: 1fr; }
  .tool { padding: 16px; }
  #signin-open, .acct .credits { display: none; }
  .nav { gap: 10px; }
  .nav .brand { font-size: 19px; gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav .btn.small { padding: 0 12px; }
  .strip-inner { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Real-site additions ---------- */
.page-head { background: var(--warm); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 44px 40px; display: flex; flex-direction: column; gap: 8px; }
.page-head .hand { font-size: 24px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 40em; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-deep); }
.article .crumbs { margin-bottom: 4px; }
.article table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 16px; display: block; overflow-x: auto; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article th { color: var(--ink); }
.legal h2 { font-size: 21px; }
.soon { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -6px; }
.soon-pill::before { background: var(--orange); }
.how3.simple .stepc:not(:last-child)::after { top: 15px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
footer { gap: 6px 18px; }
