/* Endpaper landing — flat, one accent, hairlines instead of shadows.
   The "paper" panels are the brand: a patterned endpaper the app sits on. */
:root {
  --bg: #FBFAF7; --surface: #FFFFFF; --sunk: #F3F1EC; --ink: #1C1B19; --ink-2: #4A4842; --muted: #6E6B63; --line: #E7E4DC; --line-2: #D9D5CB;
  --accent: #2F54C8; --accent-ink: #FFFFFF; --accent-soft: #E8EDFB;
  --ep: #2F54C8;
  --ep-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%234C6DD8' stroke-width='1.5'%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='48' cy='0' r='16'/%3E%3Ccircle cx='0' cy='48' r='16'/%3E%3Ccircle cx='48' cy='48' r='16'/%3E%3C/g%3E%3Cg fill='%234C6DD8'%3E%3Ccircle cx='24' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='24' r='2.5'/%3E%3Ccircle cx='48' cy='24' r='2.5'/%3E%3Ccircle cx='24' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Literata, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --surface: #1B1B19; --sunk: #222220; --ink: #ECE9E2; --ink-2: #C9C5BC; --muted: #9C988F; --line: #2C2B28; --line-2: #3A3935;
    --accent: #8EA6FF; --accent-ink: #10172E; --accent-soft: #1F2742; --ep: #22398A;
    --ep-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23324CA6' stroke-width='1.5'%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='48' cy='0' r='16'/%3E%3Ccircle cx='0' cy='48' r='16'/%3E%3Ccircle cx='48' cy='48' r='16'/%3E%3C/g%3E%3Cg fill='%23324CA6'%3E%3Ccircle cx='24' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='24' r='2.5'/%3E%3Ccircle cx='48' cy='24' r='2.5'/%3E%3Ccircle cx='24' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #141413; --surface: #1B1B19; --sunk: #222220; --ink: #ECE9E2; --ink-2: #C9C5BC; --muted: #9C988F; --line: #2C2B28; --line-2: #3A3935;
    --accent: #8EA6FF; --accent-ink: #10172E; --accent-soft: #1F2742; --ep: #22398A;
    --ep-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23324CA6' stroke-width='1.5'%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='48' cy='0' r='16'/%3E%3Ccircle cx='0' cy='48' r='16'/%3E%3Ccircle cx='48' cy='48' r='16'/%3E%3C/g%3E%3Cg fill='%23324CA6'%3E%3Ccircle cx='24' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='24' r='2.5'/%3E%3Ccircle cx='48' cy='24' r='2.5'/%3E%3Ccircle cx='24' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h2 { font: 600 clamp(30px, 4.2vw, 46px)/1.1 var(--serif); letter-spacing: -.025em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s, border-color .15s; }
.btn:hover { background: var(--sunk); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* announcement banner */
.announce { position: relative; background: var(--ink); color: var(--bg); font-size: 14px; }
.announce p { max-width: 1200px; margin: 0 auto; padding: 10px 56px; text-align: center; line-height: 1.5; }
.announce .tag { display: inline-block; margin-right: 10px; padding: 1px 9px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px; }
.announce a { color: inherit; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; margin-left: 4px; }
.announce-x { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: inherit; opacity: .7; cursor: pointer; }
.announce-x:hover { opacity: 1; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.announce-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.no-announce .announce { display: none; }
#coming[open] summary { color: var(--accent); }

/* theme switch */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex: none; }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--sunk); color: var(--ink); }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* cover gallery */
.covers { margin-top: 150px !important; }
.try { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.try label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); flex: 1 1 260px; max-width: 420px; }
.try input { height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px var(--sans); }
.try input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; margin-top: 32px; }
.gal-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gal-cover { aspect-ratio: 2 / 3; border-radius: 3px 10px 10px 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .3s var(--ease); }
.gal-cover svg { display: block; width: 100%; height: 100%; }
.gal-item:hover .gal-cover { transform: translateY(-6px) rotate(-1deg); }
.gal-item figcaption { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.prem { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; background: #F2C14E; color: #2A2218; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.gal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -.015em; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

main > section { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.head { max-width: 680px; }
.sub { color: var(--ink-2); margin-top: 18px; font-size: 18px; }

/* hero */
.hero { text-align: center; padding-top: 84px !important; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; }
.hero h1 { font: 600 clamp(42px, 7.4vw, 84px)/1.02 var(--serif); letter-spacing: -.035em; }
.lede { max-width: 640px; margin: 26px auto 0; font-size: 19px; color: var(--ink-2); }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.assure { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* endpaper panel */
.paper { background-color: var(--ep); background-image: var(--ep-tile); background-size: 48px 48px; border-radius: 24px; padding: 28px; }
.stage { margin-top: 72px !important; }
.tour { display: flex; justify-content: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tour button { border: 0; background: rgba(255,255,255,.12); padding: 8px 16px; border-radius: 99px; font: 500 15px var(--sans); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.tour button:hover { background: rgba(255,255,255,.22); }
.tour button[aria-selected="true"] { background: #fff; color: #1C1B19; }
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { margin: 0 auto; font-size: 13px; color: var(--muted); padding-right: 45px; }
.frame iframe { display: block; width: 100%; height: 680px; border: 0; background: var(--bg); }
.caption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px !important; }
.facts div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { font: 600 44px/1 var(--serif); letter-spacing: -.03em; }
.facts span { font-size: 15px; color: var(--muted); }

/* journey */
.journey { margin-top: 150px !important; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.step { position: relative; }
.art { height: 190px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 22px; overflow: hidden; position: relative; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }

.art-tpl { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--sunk); }
.mini-cover { width: 64px; aspect-ratio: 2/3; border-radius: 2px 6px 6px 2px; background: var(--c); color: var(--f, #fff); font: 600 10px/1.2 var(--serif); padding: 10px 8px; box-shadow: inset 4px 0 0 rgba(0,0,0,.12); transition: transform .3s var(--ease); }
.mini-cover.on { transform: translateY(-8px); outline: 2px solid var(--accent); outline-offset: 3px; }
.step:hover .mini-cover:not(.on) { transform: translateY(4px); }

.art-goal { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.goal-top { display: flex; align-items: baseline; gap: 8px; }
.goal-top b { font-size: 26px; letter-spacing: -.02em; }
.goal-top span { font-size: 13px; color: var(--muted); }
.goal-bar { height: 6px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.week { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.week i { flex: 1; background: var(--line-2); border-radius: 4px; }
.week i.hit { background: var(--accent); }
.week i.now { background: var(--accent-soft); outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }

.art-outline { padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ol-part { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 6px; }
.ol-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.ol-row.drag { background: var(--surface); border: 1px solid var(--line-2); transform: translateX(10px) rotate(-1.2deg); color: var(--ink); transition: transform .3s var(--ease); }
.step:hover .ol-row.drag { transform: none; }
.d { width: 8px; height: 8px; border-radius: 50%; background: #B5B1A7; flex: none; }
.d.done { background: #2E8B57; }
.d.rev { background: #D9922E; }

.art-out { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 20px; background: var(--sunk); }
.chip { padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font: 500 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transition: transform .25s var(--ease); }
.chip:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.ghost { border-style: dashed; color: var(--muted); background: none; }
.step:hover .chip:nth-child(1) { transform: translateY(-4px); }
.step:hover .chip:nth-child(2) { transform: translateY(-2px); }

/* templates */
.templates { margin-top: 150px !important; }
.shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 52px; }
.book { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.book .cover { aspect-ratio: 2/3; border-radius: 3px 10px 10px 3px; background: var(--c); color: var(--f); padding: 16% 12% 12%; display: flex; flex-direction: column; box-shadow: inset 7px 0 0 rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05); transition: transform .3s var(--ease); }
.book .cover b { font: 600 20px/1.12 var(--serif); letter-spacing: -.01em; }
.book .cover b::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; margin-top: 12px; opacity: .8; }
.book .cover small { margin-top: auto; font-size: 12px; opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .book .cover, :root:not([data-theme="light"]) .ereader .scr, :root:not([data-theme="light"]) .gal-cover { box-shadow: inset 7px 0 0 rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.12); } }
:root[data-theme="dark"] .book .cover, :root[data-theme="dark"] .ereader .scr, :root[data-theme="dark"] .gal-cover { box-shadow: inset 7px 0 0 rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.12); }
.book:hover .cover { transform: translateY(-6px) rotate(-1deg); }
.prompt { font: italic 400 14.5px/1.5 var(--serif); color: var(--ink-2); }

/* features */
.features { margin-top: 150px !important; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.grid article { background: var(--bg); padding: 30px 30px 34px; transition: background .2s; }
.grid article:hover { background: var(--surface); }
.grid svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.grid p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* export */
.export { margin-top: 150px !important; }
.outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.out { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.device { height: 340px; border-radius: 18px; background: var(--sunk); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.out figcaption { color: var(--ink-2); font-size: 15.5px; }
.out figcaption strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.ereader .scr { width: 190px; height: 270px; background: #F4F2EC; color: #2A2925; border: 14px solid #2A2925; border-bottom-width: 30px; border-radius: 16px; padding: 14px 12px; font: 400 9.5px/1.55 var(--serif); position: relative; transition: transform .35s var(--ease); }
.ereader .scr small, .print .pg small, .web .wpage small { display: block; font: 500 7.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.ereader .scr b { display: block; font-size: 15px; line-height: 1.15; margin-bottom: 10px; }
.ereader .scr p + p { margin-top: 6px; }
.ereader .scr em { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 400 7px var(--sans); opacity: .5; font-style: normal; }
.out:hover .ereader .scr { transform: rotate(-2deg) translateY(-4px); }

.print .pg { width: 200px; height: 290px; background: #fff; color: #1C1B19; border: 1px solid #DDD8CC; padding: 30px 22px; font: 400 9px/1.55 var(--serif); position: relative; box-shadow: 8px 8px 0 #E7E2D6; transition: transform .35s var(--ease); }
.print .pg small { margin-top: 18px; }
.print .pg b { display: block; font-size: 16px; line-height: 1.15; margin-bottom: 12px; }
.print .pg .ind { text-indent: 1.4em; }
.print .pg em { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 8px; color: #8A867C; }
.out:hover .print .pg { transform: rotate(1.5deg) translateY(-4px); }

.web { place-items: end center; }
.web .wbar { position: absolute; left: 24px; right: 24px; top: 36px; height: 26px; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.web .wbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.web .wbar span { margin-left: 8px; font: 400 10px var(--sans); color: var(--muted); }
.web .wpage { position: absolute; left: 24px; right: 24px; top: 62px; bottom: -1px; background: var(--surface); border: 1px solid var(--line-2); padding: 26px 30px; font: 400 11px/1.6 var(--serif); color: var(--ink); }
.web .wpage b { display: block; font-size: 20px; line-height: 1.15; margin-bottom: 10px; }
.web .wpage .next { display: inline-block; margin-top: 16px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 10px var(--sans); transition: border-color .2s, color .2s; }
.out:hover .web .next { border-color: var(--accent); color: var(--accent); }
.also { margin-top: 32px; color: var(--ink-2); text-align: center; }

/* compare */
.compare { margin-top: 150px !important; }
.table { margin-top: 44px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.tr + .tr { border-top: 1px solid var(--line); }
.tr > span { padding: 16px 20px; font-size: 15px; }
.tr > span[role="rowheader"] { font-weight: 500; }
.th > span { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--sunk); }
.tr .us { background: var(--accent-soft); }
.th .us { color: var(--accent); }
.tr .y::before, .tr .n::before { display: inline-block; width: 18px; font-weight: 600; }
.tr .y::before { content: "✓"; color: #2E8B57; }
.tr .n { color: var(--muted); }
.tr .n::before { content: "–"; }

/* manifesto band */
.band { margin-top: 150px !important; }
.paper.slim { padding: 72px 28px; }
.band blockquote { margin: 0 auto; max-width: 760px; background: var(--bg); border-radius: 16px; padding: 48px 40px; text-align: center; }
.band blockquote p { font: 400 clamp(26px, 3.4vw, 38px)/1.25 var(--serif); font-style: italic; letter-spacing: -.015em; }
.band blockquote footer { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* faq */
.faq { margin-top: 150px !important; display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.faq .head { position: sticky; top: 100px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 22px 0; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); font-size: 18px; line-height: 1; transition: transform .2s var(--ease), background .2s; }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--sunk); }
.qa p { margin: -6px 0 24px; color: var(--ink-2); max-width: 640px; }

/* end */
.end { margin-top: 150px !important; margin-bottom: 96px !important; }
.end .paper { padding: 72px 28px; }
.end-card { max-width: 620px; margin: 0 auto; background: var(--bg); border-radius: 20px; padding: 52px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.end-card h2 { margin-top: 22px; }
.end-card p { color: var(--ink-2); margin-top: 12px; font-size: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 32px 24px 44px; display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; }

/* reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}
@media (max-width: 900px) {
  .grid, .outs { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq .head { position: static; }
  .frame iframe { height: 600px; }
  .tr { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .tr > span { padding: 14px 12px; font-size: 14px; }
}
@media (max-width: 640px) {
  .announce p { padding: 10px 48px 10px 16px; text-align: left; font-size: 13.5px; }
  .announce .tag { margin: 0 6px 2px 0; }
  .nav-in { gap: 12px; padding: 12px 16px; }
  .nav nav { display: none; }
  .nav .theme-switch { margin-left: auto; }
  .nav .btn { padding: 0 14px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .covers { margin-top: 100px !important; }
  main > section { padding: 0 16px; }
  .hero { padding-top: 44px !important; }
  .lede { font-size: 17px; }
  .cta .btn.lg { width: 100%; }
  .paper { padding: 14px; border-radius: 18px; }
  .tour { gap: 6px; margin-bottom: 14px; }
  .tour button { padding: 7px 12px; font-size: 14px; }
  .frame iframe { height: 560px; }
  .frame-bar span { padding-right: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts strong { font-size: 36px; }
  .steps, .grid, .outs { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .journey, .templates, .features, .export, .compare, .band, .faq, .end { margin-top: 100px !important; }
  .table { overflow-x: auto; }
  .tr { min-width: 560px; }
  .paper.slim, .end .paper { padding: 40px 14px; }
  .band blockquote, .end-card { padding: 36px 22px; }
  .foot-in { grid-template-columns: 1fr; padding: 28px 16px 36px; }
  .foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
