/* Negosyo Starter Kit: the shop as a ledger notebook in the cut-paper world. */
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo.woff2') format('woff2'); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/Caveat.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --manila: #F1E8CB; --manila-d: #E6D9AF; --ink: #1D2B44; --ink-2: #4A5670; --red: #C8322B; --green: #2E6B4A;
  --yellow: #F7DC4A; --cream: #FCFBF6; --rule: rgba(29, 43, 68, .13); --margin: rgba(200, 50, 43, .45);
  --shadow: 0 3px 4px rgba(29, 43, 68, .14), 0 10px 22px rgba(29, 43, 68, .12);
  --shadow-lift: 0 6px 8px rgba(29, 43, 68, .16), 0 18px 34px rgba(29, 43, 68, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1120px, 100% - 2.5rem);
  --display: 'Archivo', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; accent-color: var(--red); }
body {
  margin: 0; color: var(--ink); font-family: var(--display); font-size: 1.0625rem; line-height: 1.55;
  background: var(--manila) url('../img/paper_manila.webp') center top / 900px auto;
  font-variant-numeric: tabular-nums lining-nums;
}
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--manila-d); }
::-webkit-scrollbar-thumb { background: var(--ink-2); border-radius: 8px; border: 3px solid var(--manila-d); }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--cream); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 850; font-stretch: 72%; line-height: .98; letter-spacing: -.01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); }
h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-stretch: 80%; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.hand { font-family: 'Caveat', cursive; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1; }
.mono { font-family: 'Plex Mono', ui-monospace, monospace; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink-2); }
.peso { font-family: 'Plex Mono', monospace; font-weight: 600; white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(241, 232, 203, .94); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 850; font-stretch: 68%; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-family: 'Caveat'; font-size: 1.05rem; color: var(--red); text-transform: none; font-stretch: 100%; font-weight: 700; }
.nav { margin-left: auto; display: flex; gap: .25rem; }
.nav a { text-decoration: none; font-weight: 700; font-stretch: 85%; padding: .55rem .8rem; border-radius: 6px; }
.nav a:hover, .nav a[aria-current] { background: var(--manila-d); }
.nav a.cta { background: var(--ink); color: var(--cream); }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; background: var(--manila); border-bottom: 2px solid var(--ink); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .5rem; font-size: 1.15rem; border-bottom: 1px solid var(--rule); }
}

/* ---------- the notebook (signature) ---------- */
.notebook {
  position: relative; background: var(--cream); border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow-lift);
  background-image: linear-gradient(90deg, transparent 3.1rem, var(--margin) 3.1rem, var(--margin) calc(3.1rem + 2px), transparent calc(3.1rem + 2px)),
                    repeating-linear-gradient(180deg, transparent 0 2.1rem, var(--rule) 2.1rem calc(2.1rem + 1px));
  padding: 2.4rem 1.4rem 2rem 4.3rem;
}
.notebook::before { /* binding holes */
  content: ''; position: absolute; left: .9rem; top: 1.4rem; bottom: 1.4rem; width: 14px;
  background: radial-gradient(circle at 7px 7px, var(--manila-d) 6px, rgba(29,43,68,.25) 7px, transparent 8px) 0 0 / 14px 3.4rem repeat-y;
}
.tape { position: absolute; width: 110px; height: 30px; background: rgba(247, 220, 74, .72); box-shadow: 0 1px 2px rgba(29,43,68,.15); }

.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero .notebook .q { font-size: clamp(2.6rem, 8.5vw, 4.4rem); color: var(--ink); display: block; transform: rotate(-1.5deg); margin: 0 0 .2rem; }
.hero .notebook .q em { color: var(--red); font-style: normal; }
.hero .notebook p.lede { margin: .4rem 0 1.4rem; }
.stages { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.stage-btn {
  --c: var(--yellow); --fg: var(--ink);
  display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-radius: 3px 10px 10px 3px; padding: 1rem 1.1rem 1rem 1.3rem; background: var(--c); color: var(--fg);
  font: inherit; box-shadow: 0 2px 3px rgba(29,43,68,.18), 0 8px 16px rgba(29,43,68,.1); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 1.5% 82%, 0 64%, 1.2% 46%, 0 28%, 1.6% 12%);
}
.stage-btn b { display: block; font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.45rem, 4.6vw, 1.9rem); line-height: 1; }
.stage-btn span { font-size: .98rem; opacity: .9; }
.stage-btn svg { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.stage-btn:hover { transform: translateX(6px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.stage-btn:hover svg { transform: translateX(4px); }
.stage-btn[data-c='red'] { --c: var(--red); --fg: var(--cream); }
.stage-btn[data-c='green'] { --c: var(--green); --fg: var(--cream); }
.stage-btn[aria-pressed='true'] { outline: 3px solid var(--ink); outline-offset: 3px; transform: translateX(10px); }
.hero-art { position: relative; }
.hero-art .scene { border-radius: 10px; transform: rotate(1.5deg); box-shadow: var(--shadow); border: 8px solid var(--cream); }
.hero-art .sticker { position: absolute; width: 38%; left: -12%; bottom: -8%; filter: drop-shadow(0 6px 8px rgba(29,43,68,.25)); transform: rotate(-4deg); }
.note-hand { font-family: 'Caveat'; font-weight: 700; font-size: 1.6rem; color: var(--red); transform: rotate(-3deg); display: inline-block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin-inline: auto; }
  .hero-art .sticker { width: 30%; left: -4%; }
  .notebook { padding-left: 3.6rem; padding-right: 1.1rem; }
  .notebook { background-image: linear-gradient(90deg, transparent 2.6rem, var(--margin) 2.6rem, var(--margin) calc(2.6rem + 2px), transparent calc(2.6rem + 2px)), repeating-linear-gradient(180deg, transparent 0 2.1rem, var(--rule) 2.1rem calc(2.1rem + 1px)); }
  .notebook::before { left: .55rem; }
}

/* ---------- stage result (the answer to the hero question) ---------- */
.pick { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.pick-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: var(--ink); color: var(--cream); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.6rem); position: relative; box-shadow: var(--shadow-lift);
  background-image: url('../img/paper_navy.webp'); background-size: 700px auto; }
.pick-panel .note-hand { color: var(--yellow); margin-top: .2rem; }
.pick-panel h2 { color: var(--cream); margin: .3rem 0 .8rem; }
.pick-panel p { color: #D9DEE8; }
.pick-panel .also { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pick-panel .also a { color: var(--cream); border: 1.5px solid rgba(252,251,246,.45); padding: .45rem .8rem; border-radius: 999px; text-decoration: none; font-size: .95rem; }
.pick-panel .also a:hover { background: rgba(252,251,246,.12); }
.pick-panel .cover { transform: rotate(-2deg); max-width: 330px; justify-self: center; }
.pick-panel[data-anim] { animation: pickIn .7s var(--ease); }
@keyframes pickIn { from { clip-path: inset(0 0 100% 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@media (max-width: 760px) { .pick-panel { grid-template-columns: 1fr; } .pick-panel .cover { max-width: 230px; order: -1; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; font-stretch: 85%; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 3px rgba(29,43,68,.25), 0 6px 12px rgba(29,43,68,.14); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(29,43,68,.25), 0 12px 22px rgba(29,43,68,.16); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 2px rgba(29,43,68,.25); }
.btn.ghost { background: transparent; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }
.pick-panel .btn { border-color: var(--yellow); }

/* ---------- shelves ---------- */
.shelf { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.shelf-head p { color: var(--ink-2); }
.plank { height: 14px; border-radius: 3px; background: linear-gradient(#B2885A, #8E6A43); box-shadow: 0 6px 10px rgba(29,43,68,.22); margin-top: -6px; position: relative; z-index: 0; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1.2rem, 3vw, 2rem); align-items: end; position: relative; z-index: 1; }
.book { text-decoration: none; display: grid; gap: .7rem; }
.book .cover { transition: transform .6s var(--ease); transform-origin: bottom center; }
.book:hover .cover { transform: translateY(-8px) rotate(-1.2deg); }
.cover { position: relative; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream); aspect-ratio: 4 / 5; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(29,43,68,.28), transparent); }
.book h3 { font-size: 1.4rem; }
.book .meta { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; color: var(--ink-2); font-size: .95rem; }
.price-tag { font-family: 'Plex Mono'; font-weight: 600; color: var(--ink); background: var(--cream); border: 1.5px dashed var(--ink-2); padding: .1rem .5rem; border-radius: 4px; font-size: .85rem; white-space: nowrap; }

/* tool cards: index cards, not book covers */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.tool { position: relative; display: grid; grid-template-columns: 1fr 84px; gap: .4rem 1rem; text-decoration: none; padding: 1.2rem 1.2rem 1.1rem; background: var(--cream);
  border-radius: 4px; box-shadow: var(--shadow); background-image: repeating-linear-gradient(180deg, transparent 0 1.9rem, var(--rule) 1.9rem calc(1.9rem + 1px)); background-position: 0 3.2rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tool:nth-child(odd) { transform: rotate(-.6deg); } .tool:nth-child(even) { transform: rotate(.5deg); }
.tool:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lift); }
.tool h3 { font-size: 1.45rem; border-bottom: 2px solid var(--red); padding-bottom: .35rem; grid-column: 1 / -1; padding-right: 84px; }
.tool p { font-size: .98rem; color: var(--ink-2); }
.tool img { width: 84px; align-self: end; filter: drop-shadow(0 4px 4px rgba(29,43,68,.2)); }
.tool .meta { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: center; font-size: .9rem; margin-top: .3rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--manila-d); }
.chip svg { width: 14px; height: 14px; }

/* ---------- libre strip ---------- */
.libre { background: var(--ink); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; background-image: url('../img/paper_navy.webp'); background-size: 700px auto; }
.libre h2 { color: var(--cream); }
.libre .lede { color: #D9DEE8; }
.calcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.calc-link { display: grid; gap: .5rem; text-decoration: none; padding: 1.4rem; background: var(--cream); color: var(--ink); border-radius: 6px; box-shadow: var(--shadow); position: relative;
  transition: transform .5s var(--ease); }
.calc-link:hover { transform: translateY(-5px) rotate(-.6deg); }
.calc-link .hand { color: var(--red); font-size: 1.6rem; }
.calc-link .sum { font-family: 'Plex Mono'; font-size: .9rem; color: var(--ink-2); border-top: 2px dashed var(--rule); padding-top: .6rem; margin-top: .2rem; }

/* ---------- reels ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 1rem; overflow-x: auto; padding: .5rem .2rem 1.2rem; scroll-snap-type: x mandatory; }
.reel { scroll-snap-align: start; text-decoration: none; display: grid; gap: .5rem; }
.reel .frame { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 4px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.reel .frame img, .reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .play { position: absolute; inset: auto .6rem .6rem auto; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 2px 4px rgba(29,43,68,.35); }
.reel .play svg { width: 18px; height: 18px; margin-left: 3px; }
.reel b { font-weight: 800; font-stretch: 85%; line-height: 1.15; }
.reel small { color: var(--ink-2); }

/* ---------- product page ---------- */
.crumbs { font-size: .95rem; color: var(--ink-2); padding: 1.2rem 0 0; }
.crumbs a { color: var(--ink-2); }
.p-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 1.5rem 0 3rem; align-items: start; }
.p-hero .cover { max-width: 420px; transform: rotate(-1.5deg); }
.p-hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin: .3rem 0 .8rem; }
.p-hero .tag { font-family: 'Caveat'; font-weight: 700; color: var(--red); font-size: 1.7rem; }
.buybox { margin-top: 1.6rem; padding: 1.2rem 1.3rem; background: var(--cream); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: .8rem; max-width: 460px; }
.buybox .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.buybox .amount { font-family: 'Plex Mono'; font-weight: 600; font-size: 1.5rem; }
.buybox .fine { font-size: .9rem; color: var(--ink-2); }
.pay-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.pay-badges span { font-size: .78rem; font-weight: 700; border: 1.5px solid var(--ink-2); border-radius: 4px; padding: .1rem .4rem; color: var(--ink-2); }
.who { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.who li { display: grid; grid-template-columns: 26px 1fr; gap: .5rem; align-items: start; }
.who svg { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 2rem; margin-top: 1.4rem; counter-reset: k; }
.toc div { padding: .9rem 0; border-bottom: 1.5px solid var(--rule); display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem .8rem; counter-increment: k; }
.toc div::before { content: counter(k); grid-row: span 2; font-family: 'Caveat'; font-weight: 700; font-size: 2.2rem; color: var(--red); line-height: .9; }
.toc b { font-weight: 800; font-stretch: 85%; font-size: 1.12rem; }
.toc span { color: var(--ink-2); font-size: .98rem; }
.peek { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 1rem; overflow-x: auto; padding: .5rem .2rem 1.4rem; scroll-snap-type: x mandatory; }
.peek figure { margin: 0; scroll-snap-align: start; }
.peek img { border-radius: 4px; box-shadow: var(--shadow); background: var(--cream); }
.peek figcaption { font-size: .85rem; color: var(--ink-2); margin-top: .4rem; }
.files { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.files li { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; background: var(--cream); border-radius: 6px; box-shadow: 0 1px 2px rgba(29,43,68,.12); }
.files svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section + .section { border-top: 2px dashed var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .p-hero, .split { grid-template-columns: 1fr; } .p-hero .cover { max-width: 280px; } }
.honest { font-size: .92rem; color: var(--ink-2); border-left: 1px solid var(--ink-2); padding-left: .9rem; margin-top: 1.4rem; }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--cream); border-radius: 10px; box-shadow: var(--shadow-lift); overflow: hidden; }
.calc form { padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 800; font-stretch: 85%; font-size: 1.05rem; }
.field small { color: var(--ink-2); font-size: .9rem; }
.input { display: flex; align-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 0 .8rem; min-height: 54px; }
.input span { font-family: 'Plex Mono'; font-weight: 600; color: var(--ink-2); }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1.35rem 'Plex Mono', monospace; color: var(--ink); padding: .5rem .4rem; caret-color: var(--red); }
.input input:focus { outline: none; }
.input:focus-within { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--red); }
.field.err .input { border-color: var(--red); background: #FBE3E1; }
.field .msg { color: var(--red); font-weight: 700; font-size: .92rem; min-height: 0; }
.result { background: var(--ink); color: var(--cream); padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1rem; align-content: start;
  background-image: url('../img/paper_navy.webp'); background-size: 700px auto; }
.result .big { font-family: 'Plex Mono'; font-weight: 600; font-size: clamp(2.4rem, 7vw, 3.4rem); color: var(--yellow); line-height: 1; }
.result .lbl { font-family: 'Caveat'; font-weight: 700; font-size: 1.6rem; color: var(--cream); }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; border-top: 1px dashed rgba(252,251,246,.35); padding-top: .9rem; }
.result dt { color: #D9DEE8; }
.result dd { margin: 0; font-family: 'Plex Mono'; font-weight: 600; text-align: right; }
.result .verdict { background: var(--cream); color: var(--ink); border-radius: 6px; padding: .8rem 1rem; font-weight: 700; }
.result .verdict.bad { background: var(--red); color: var(--cream); }
.result .next { border-top: 1px dashed rgba(252,251,246,.35); padding-top: 1rem; display: grid; gap: .6rem; }
.result .next p { color: #D9DEE8; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.toggle button { font: inherit; font-weight: 800; border: 0; background: transparent; padding: .6rem 1rem; cursor: pointer; min-height: 44px; color: var(--ink); }
.toggle button[aria-pressed='true'] { background: var(--ink); color: var(--cream); }

/* ---------- lead capture ---------- */
.lead { display: grid; gap: .6rem; padding: 1.2rem; border: 2px dashed var(--ink-2); border-radius: 10px; margin-top: 1.5rem; background: rgba(252,251,246,.6); }
.lead form { display: flex; gap: .6rem; flex-wrap: wrap; }
.lead input { flex: 1 1 220px; min-height: 48px; border: 2px solid var(--ink); border-radius: 8px; padding: 0 .8rem; font: inherit; background: var(--cream); }
.lead .ok { color: var(--green); font-weight: 700; }

/* ---------- prose (legal/about) ---------- */
.prose { max-width: 70ch; padding: 1rem 0 4rem; }
.prose h1 { margin: 1rem 0 1rem; }
.prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.prose p, .prose li { margin: 0 0 .8rem; }
.prose ul { padding-left: 1.2rem; }
.draft-banner { background: var(--yellow); border: 2px solid var(--ink); padding: .8rem 1rem; border-radius: 8px; font-weight: 700; margin: 1.5rem 0 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D9DEE8; padding: 3rem 0 2rem; margin-top: 2rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot b { color: var(--cream); display: block; margin-bottom: .6rem; font-weight: 800; font-stretch: 85%; }
.foot a { display: block; text-decoration: none; padding: .25rem 0; color: #D9DEE8; }
.foot a:hover { color: var(--yellow); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(252,251,246,.2); padding-top: 1.2rem; font-size: .88rem; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- dialog (checkout placeholder) ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; max-width: min(460px, 92vw); box-shadow: var(--shadow-lift); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(29,43,68,.55); }
dialog .in { padding: 1.6rem; display: grid; gap: .9rem; }
dialog h2 { font-size: 2rem; }

.preview-flag { position: fixed; right: .6rem; bottom: .6rem; z-index: 60; background: var(--red); color: var(--cream); font-weight: 800; font-size: .8rem; padding: .3rem .6rem; border-radius: 6px; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* made covers (tools/bundles): paper card + character, not a fake book */
.cover.made { display: grid; grid-template-rows: auto 1fr; padding: 1.2rem; background: var(--cream);
  background-image: repeating-linear-gradient(180deg, transparent 0 1.9rem, var(--rule) 1.9rem calc(1.9rem + 1px)); }
.cover.made .made-in b { display: block; font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.cover.made .made-in .hand { color: var(--red); font-size: 1.4rem; }
.cover.made img { width: 70%; height: auto; object-fit: contain; align-self: end; justify-self: center; filter: drop-shadow(0 6px 8px rgba(29,43,68,.25)); }

/* fix round 1 */
.btn svg, .nav svg { width: 20px; height: 20px; flex: none; }
.price-tag { font-size: .95rem; padding: .15rem .55rem; }
.book .meta { font-size: 1rem; }
.swipe { font-family: 'Caveat'; font-weight: 700; font-size: 1.35rem; color: var(--red); display: inline-flex; gap: .3rem; align-items: center; }
.swipe svg { width: 20px; height: 20px; }
.reels, .peek { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 3rem; }
.was { font-family: 'Plex Mono', monospace; color: var(--soft); font-size: .85em; margin-right: .3rem; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
