[hidden] { display: none !important; }
:root {
  --cream: #fff8f0; --paper: #ffffff; --ink: #2b2118; --muted: #7a6a5c; --line: #eadfd2;
  --coral: #e2483d; --coral-dark: #c23a30; --sun: #ffc93c; --teal: #2a9d8f; --sky: #e8f4f8;
  --r: 18px; --shadow: 0 2px 0 var(--line), 0 10px 30px rgba(43, 33, 24, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: Rubik, system-ui, sans-serif; font-size: 17px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--coral); }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: rgba(255, 248, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--coral); margin-inline-start: 4px; }
.steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.steps li { font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.steps li.on { background: var(--ink); color: #fff; }
.steps li.done { color: var(--teal); }
@media (max-width: 560px) { .steps li:not(.on) { display: none; } }

main { max-width: 980px; margin: 0 auto; padding: 24px 20px 120px; outline: none; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 8px 0 12px; font-weight: 800; }
h2 { font-size: 24px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.hint { font-size: 14px; color: var(--muted); }

.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; } /* fields side by side line up at the top, even when one has a long hint under it */
.row > * { flex: 1 1 160px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 48px;
}
input[type=text], input[type=tel], input[type=number], select { height: 52px; } /* one height for every single-line field, so a select lines up with its neighbour */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--coral); color: #fff; font-weight: 700; font-size: 18px; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 40px; font-size: 15px; padding: 0 16px; }
.actions { position: fixed; inset-inline: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--cream) 30%); display: flex; justify-content: center; gap: 12px; z-index: 5; }
.actions .btn { min-width: 220px; }
@media (max-width: 560px) { .actions .btn { min-width: 0; flex: 1; padding: 0 16px; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 12px; }
.hero-art { aspect-ratio: 3 / 4; background: #fff; border-radius: 10px; box-shadow: 8px 8px 0 var(--sun), var(--shadow); transform: rotate(-2deg); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.bullets { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.bullets li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-inline-end: 8px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 280px; margin: 0 auto; order: -1; } }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.person { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; text-align: center; }
.person .face { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; background: var(--sky) center / cover; border: 3px solid var(--ink); }
.person b { display: block; }
.person small { color: var(--muted); }
.person .star { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--sun); border-radius: 99px; font-size: 12px; padding: 2px 8px; font-weight: 700; }
.person .x { position: absolute; top: 6px; inset-inline-end: 6px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; }
.add-tile { border: 2px dashed var(--line); background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 170px; cursor: pointer; color: var(--muted); font-weight: 500; border-radius: var(--r); }
.add-tile:hover { border-color: var(--ink); color: var(--ink); }

.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; background: var(--cream); }
.dropzone:hover { border-color: var(--ink); }
.thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); }

.fact { display: grid; grid-template-columns: 1fr 1.4fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 560px) {
  .fact { grid-template-columns: 1fr 1fr 40px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .fact [data-k=type] { order: 1; } .fact [data-k=ownerId] { order: 2; } .fact [data-rm] { order: 3; padding: 0; }
  .fact [data-k=value] { order: 4; grid-column: 1 / -1; }
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.eta { display: flex; gap: 10px; align-items: center; background: #fff7d6; border-radius: 14px; padding: 12px 16px; font-weight: 500; }

/* generating */
.making { text-align: center; padding-top: 30px; }
.bar { height: 14px; background: #fff; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); max-width: 520px; margin: 20px auto 10px; }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--coral), var(--coral) 12px, #ea6a60 12px, #ea6a60 24px); transition: width .4s; }
.pencil { font-size: 54px; display: inline-block; animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(-14deg) translateY(-4px); } }
.mini-pages { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.mini-pages img { width: 90px; aspect-ratio: 2480 / 3508; background: #fff; border-radius: 4px; box-shadow: var(--shadow); animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* preview */
.preview { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.preview > * { min-width: 0; }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; } .chat { height: 480px; } }
.viewer { position: relative; background: #e9e1d6; border-radius: var(--r); padding: 18px; }
.viewer .page { width: 100%; max-width: 520px; aspect-ratio: 2480 / 3508; display: block; margin: 0 auto; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); border-radius: 3px; object-fit: contain; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 22px; cursor: pointer; }
.viewer .nav.prev { inset-inline-start: 10px; } .viewer .nav.next { inset-inline-end: 10px; }
.viewer .pg { text-align: center; margin-top: 10px; font-weight: 500; }
.viewer .updating { position: absolute; top: 28px; inset-inline-start: 50%; transform: translateX(50%); background: var(--ink); color: #fff; border-radius: 99px; padding: 4px 14px; font-size: 14px; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scroll-snap-type: x mandatory; }
.strip button { flex: 0 0 auto; width: 62px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; scroll-snap-align: start; position: relative; }
.strip button.on { border-color: var(--coral); }
.strip img { width: 100%; display: block; aspect-ratio: 2480 / 3508; border-radius: 4px; }
.strip button.busy::after { content: "…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .7); font-weight: 800; }

.chat { display: flex; flex-direction: column; height: 600px; max-height: 78vh; padding: 0; overflow: hidden; }
.chat header { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat header b { display: block; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; }
.msg.user { align-self: flex-start; background: var(--ink); color: #fff; border-end-start-radius: 4px; }
.msg.assistant { align-self: flex-end; background: var(--sky); border-end-end-radius: 4px; }
.msg.typing { opacity: .6; }
.chat .chip-row { padding: 0 14px 10px; }
.chat .chip { font-size: 13px; padding: 6px 10px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; }
.chat form button { min-height: 48px; padding: 0 16px; }

/* order */
.summary { display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-size: 22px; font-weight: 800; border-top: 1.5px solid var(--line); padding-top: 8px; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 22px; cursor: pointer; }
.stepper span { min-width: 36px; text-align: center; font-weight: 700; font-size: 20px; }
.done-hero { text-align: center; padding-top: 30px; }
.done-hero .big { font-size: 72px; }
.timeline { list-style: none; padding: 0; max-width: 420px; margin: 24px auto; text-align: start; }
.timeline li { padding: 10px 0 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.timeline li.ok::before { content: "●"; color: var(--teal); } .timeline li.wait::before { content: "○"; color: var(--muted); }

#toast { position: fixed; bottom: 90px; inset-inline: 0; margin: auto; width: fit-content; max-width: 90vw; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; line-height: 1.45; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; }
#toast.show { opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.person .face { display: grid; place-items: center; }
.person .initial { font-size: 40px; font-weight: 800; color: var(--ink); }
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.moment { position: relative; margin: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.moment img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.moment figcaption { font-size: 13px; padding: 6px 10px; color: var(--muted); }
.moment .x { position: absolute; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 20px; cursor: pointer; }
.moments .add-tile { aspect-ratio: 3 / 4; min-height: 0; }
.tips ul { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); }
.tips { margin-top: 16px; }

.books { margin-top: 36px; }
.book-list { display: grid; gap: 10px; }
.book { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.book b { display: block; font-size: 18px; }
.book small { color: var(--muted); }
.book-actions { display: flex; gap: 8px; }

fieldset.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.chips legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; }
.chip-radio input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.eta { margin-top: 16px; }

/* per-page toggle in the editor */
.keep { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-weight: 700; cursor: pointer; user-select: none; }
.keep[hidden] { display: none; }
.keep input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.keep .sw { width: 46px; height: 26px; border-radius: 13px; background: #cfcfcf; position: relative; transition: background .15s; flex: 0 0 auto; }
.keep .sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.keep input:checked + .sw { background: var(--coral); }
.keep input:checked + .sw::after { inset-inline-start: 23px; }
.keep input:focus-visible + .sw { outline: 3px solid var(--ink, #222); outline-offset: 2px; }
.viewer.skipped .page { opacity: .35; filter: grayscale(1); }
.viewer.skipped::after { content: "לא יודפס"; position: absolute; top: 40%; inset-inline: 0; margin: auto; width: max-content; padding: 8px 18px; border-radius: 999px; background: #222; color: #fff; font-weight: 800; }
.strip button.off img { opacity: .3; filter: grayscale(1); }
.strip button.off::before { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #c0392b; z-index: 1; }

/* first screen: the example booklet up front */
.start { display: grid; gap: 14px; padding-top: 6px; }
.start h1 { margin: 0; }
.start .lead { margin: 0; }
.ex-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.ex { flex: 0 0 58%; max-width: 260px; scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: center; cursor: zoom-in; font: inherit; }
.ex img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05); display: block; }
.ex:first-child img { box-shadow: 6px 6px 0 var(--sun), 0 6px 18px rgba(0,0,0,.12); }
.ex span { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted, #555); }
.ex-hint { margin-top: -8px; }
.how { list-style: none; counter-reset: s; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how li { counter-increment: s; background: #fff; border-radius: 14px; padding: 10px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.how li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; }
.how b { font-size: 15px; }
.how span { font-size: 13px; color: var(--muted, #555); line-height: 1.35; }
.price-line { font-size: 17px; }
.price-line b { font-size: 24px; }
.price-line span { color: var(--muted, #555); }
.eta-inline { display: block; font-size: 14px; margin-top: 2px; }
.start-cta { display: grid; gap: 8px; }
/* the second start button (desktop and phone) sits at the end of the page; on phones a bar follows the reader when neither button is on screen */
.start-cta.end { margin: 22px 0 6px; }
.start-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; justify-content: center; padding: 22px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--cream) 35%); pointer-events: none; }
.start-sticky .btn { pointer-events: auto; min-width: 240px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@media (max-width: 760px) { .start-sticky:not([hidden]) { display: flex; } }

/* readable headings and prices: the thin drawn font is for the big title only */
.seo-content h2 { font-family: Rubik, system-ui, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.25; margin: 30px 0 8px; }
.price-opt b, .price-line .price-opt b { font-family: Rubik, system-ui, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; }
.price-opt s { font-weight: 500; }
@media (min-width: 761px) { .ex { flex-basis: 220px; } }
.lightbox { position: fixed; inset: 0; background: rgba(20,20,30,.88); z-index: 50; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; justify-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; background: #fff; }
.lightbox p { grid-column: 1 / -1; color: #fff; font-weight: 700; margin: 8px 0 0; }
.lb-x { position: absolute; top: 12px; inset-inline-start: 12px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }
.lb-nav { background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 34px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.sum-book { display: flex; gap: 12px; align-items: center; }
.sum-book img { width: 74px; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sum-book div { display: grid; gap: 2px; }
.sum-book span { color: var(--muted); font-size: 14px; }
.sum-book a { font-size: 14px; color: var(--coral-dark); }
.btn.wa { background: #25d366; color: #fff; }
/* "more" section in the details form: looks like something to tap */
details.more { border: 1.5px dashed var(--coral); border-radius: 14px; background: #fff; }
details.more[open] { border-style: solid; border-color: var(--line); }
details.more > summary { list-style: none; gap: 12px; justify-content: space-between; padding: 12px 14px; min-height: 64px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .more-t { display: grid; gap: 2px; }
details.more .more-t b { color: var(--coral-dark); }
details.more .more-t small { font-weight: 400; color: var(--muted); font-size: 14px; line-height: 1.35; }
details.more .more-i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; line-height: 1; transition: transform .15s; }
details.more[open] .more-i { transform: rotate(45deg); }
details.more > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
details.more > .grid { padding: 0 14px 14px; }
/* delivery choice */
.deliv { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.deliv-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.deliv-opt:has(input:checked) { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(226,72,61,.15); }
.deliv-opt input { accent-color: var(--coral); width: 20px; height: 20px; margin: 0; }
.deliv-opt span { display: grid; flex: 1; }
.deliv-opt small { color: var(--muted); font-size: 14px; }
.deliv-opt em { font-style: normal; font-weight: 800; }
.ship-inline { display: block; font-size: 14px; }
#homeOnly[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--coral); }
.center { text-align: center; }
/* owner dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis div { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: grid; }
.kpis b { font-size: 28px; }
.kpis span { color: var(--muted); font-size: 14px; }
.fun { display: grid; grid-template-columns: 110px 1fr 36px 40px; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.fun-bar { background: #f1ece3; border-radius: 6px; height: 14px; overflow: hidden; }
.fun-bar i { display: block; height: 100%; background: var(--coral); border-radius: 6px; }
.fun small { color: var(--muted); }
.days { display: flex; gap: 4px; align-items: flex-end; height: 160px; padding-top: 10px; }
.day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.day i { width: 100%; background: #9cc8f2; border-radius: 4px 4px 0 0; min-height: 2px; }
.day em { position: absolute; top: 0; font-style: normal; background: var(--coral); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: grid; place-items: center; }
.day span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td, .tbl th { padding: 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rec { font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rec small { color: var(--muted); }

/* ================= Design language D · "notebook & stickers" (interface) =================
   Grid paper, tape, stickers and handwriting headings; Rubik for reading. The booklet itself uses language A. */
:root {
  --cream: #fdfbf4; --paper: #ffffff; --ink: #2a2a2a; --muted: #6b6457; --line: #e7e0cf;
  --coral: #ef5b4c; --coral-dark: #d94a3b; --sun: #ffe27a; --teal: #49b3a6; --kraft: #e2c79f;
  --r: 8px; --shadow: 0 6px 16px rgba(42, 42, 42, .08);
  --hand: 'Amatic SC', Rubik, sans-serif;
}
html, body {
  background-color: var(--cream);
  background-image: linear-gradient(#dbe7f3 1px, transparent 1px), linear-gradient(90deg, #dbe7f3 1px, transparent 1px);
  background-size: 24px 24px;
}
.topbar { background: rgba(253, 251, 244, .94); border-bottom: 2px dashed var(--line); }
.logo { font-family: var(--hand); font-size: 34px; line-height: 1; font-weight: 700; }
.logo span { color: var(--coral); }
h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(42px, 9vw, 64px); line-height: .98; letter-spacing: .5px; }
h2 { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1; }
.lead { color: #4a4438; }
.steps li.on { background: var(--teal); transform: rotate(-2deg); }
.steps li.done { color: var(--teal); }

/* cards are paper notes taped to the page */
.card { position: relative; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 8px 18px rgba(42, 42, 42, .08); }
.card::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: var(--sun); opacity: .85; transform: rotate(-3deg); pointer-events: none; }

/* buttons: a red sticker with a hard ink shadow */
.btn { border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-.6deg); }
.btn:hover { transform: rotate(-.6deg) translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { box-shadow: 3px 3px 0 var(--line); }
.btn.wa { box-shadow: 3px 3px 0 var(--ink); }

/* choice chips look like little stickers */
.chip-radio span { border-radius: 8px; }
.chip-radio input:checked + span { transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink); }

/* the example booklet: pages pinned at slight angles, with tape */
.ex img { border-radius: 2px; }
.ex:nth-child(odd) img { transform: rotate(-1.5deg); }
.ex:nth-child(even) img { transform: rotate(1.2deg); }
.ex:first-child img { box-shadow: 5px 5px 0 var(--sun), 0 6px 18px rgba(0, 0, 0, .12); }
.ex { position: relative; padding-top: 8px; }
.ex::before { content: ""; position: absolute; top: 0; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: var(--sun); opacity: .85; transform: rotate(4deg); z-index: 1; }
.how li { border-radius: 4px; }
.how li::before { background: var(--teal); transform: rotate(-6deg); }
.price-line b { font-family: var(--hand); font-size: 40px; line-height: 1; }
details.more { border-radius: 6px; }
.more-open { border-radius: 6px; }
.deliv-opt { border-radius: 6px; }
.kpis div { border-radius: 4px; }
.kpis b { font-family: var(--hand); font-size: 44px; line-height: 1; }
/* logo: three lines of different lengths, the whole family on the same page */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: Fredoka, Rubik, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.logo .mark { flex: 0 0 auto; }
.kicker { margin: 0; font-weight: 700; color: var(--teal); font-size: 16px; }
.logo, .logo .wm { color: var(--ink); text-decoration: none; }
/* example strip, cleaner: cover and photo page lead and are bigger; no tilt, tape only on those two */
.ex, .ex:nth-child(n) { flex: 0 0 62%; max-width: 280px; }
.ex img { width: 100%; aspect-ratio: 2480 / 3508; object-fit: cover; }
.ex:nth-child(odd) img, .ex:nth-child(even) img { transform: none; }
.ex img { border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(42, 42, 42, .12); }
.ex:first-child img { box-shadow: 6px 6px 0 var(--sun), 0 10px 24px rgba(42, 42, 42, .12); }
.ex::before { display: none; }
.ex:nth-child(-n+2)::before { display: block; }
.ex span { font-size: 15px; color: var(--ink); }
@media (min-width: 761px) { .ex, .ex:nth-child(n) { flex: 0 0 240px; } }
.price-line .price-sub { display: block; font-size: 14px; margin-top: 2px; }
.redraw { display: block; margin: 6px auto 0; font-size: 14px; }
.price-opts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.price-opt { flex: 1 1 140px; max-width: 220px; background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.price-opt b { font-size: 26px; }
.price-opt span { font-size: 15px; }
.price-opt small { font-size: 13px; opacity: .75; }
.formats { margin-bottom: 14px; }

/* page arrows (Hebrew reads right to left): the left button goes forward, the right one back */
.viewer .nav.next { inset-inline-start: auto; inset-inline-end: auto; left: 10px; right: auto; } .viewer .nav.prev { inset-inline-start: auto; inset-inline-end: auto; right: 10px; left: auto; }
.done-cover { display: block; width: min(260px, 70%); margin: 8px auto 14px; border-radius: 8px; box-shadow: 0 10px 28px rgba(42,42,42,.18); transform: rotate(-2deg); }
.price-opt.free { max-width: 320px; }
/* invite-code popup */
.modal { position: fixed; inset: 0; background: rgba(20,20,30,.55); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(420px, 100%); display: grid; gap: 10px; }
.modal-box input { font-size: 24px; text-align: center; letter-spacing: 4px; }
.modal-box .row { justify-content: center; }
/* footer with WhatsApp contact */
.site-foot { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 18px 16px 120px; font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--ink); }
.site-foot .wa-link { font-weight: 700; color: #128c4a; }

/* back link: the same on every screen that has a step before it */
.backlink { display: inline-block; margin: 0 0 8px; padding: 12px 10px; min-height: 44px; box-sizing: border-box; color: var(--ink); opacity: .75; font-weight: 600; text-decoration: none; }
.backlink:hover, .backlink:focus-visible { opacity: 1; text-decoration: underline; }

/* making a booklet: pages fly in big and pile up */
.stack { position: relative; width: min(300px, 68vw); aspect-ratio: 2480 / 3508; margin: 26px auto 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stack-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; border: 3px dashed var(--line); border-radius: 8px; animation: wiggle 1.6s ease-in-out infinite; }
.stack .sp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); animation: fly .7s cubic-bezier(.2, .9, .3, 1.15) backwards; }
.stack:hover .sp { transform: translateX(var(--x, 0)) rotate(calc(var(--r, 0deg) * 1.6)); }
.stack.fan .sp { transform: translateX(calc((var(--i) - var(--mid)) * 20px)) rotate(calc((var(--i) - var(--mid)) * 3deg)); }
.stack.done { animation: cheer .6s ease-in-out 2; }
.stack-count { font-weight: 700; margin: 6px 0 14px; min-height: 1.4em; }
@keyframes fly { from { opacity: 0; transform: translate(var(--from), -25%) rotate(calc(var(--r, 0deg) * 7)) scale(1.18); } 60% { opacity: 1; } }
@keyframes cheer { 50% { transform: scale(1.06) rotate(-2deg); } }
.making { position: relative; }
.conf { position: absolute; top: 55%; left: 50%; font-size: 26px; pointer-events: none; animation: burst 1.5s ease-out forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(200deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stack .sp, .stack-empty, .stack.done, .conf { animation: none; } .stack .sp { transition: none; } }

/* without the chat the booklet viewer stands alone, centered */
.preview.solo { grid-template-columns: minmax(0, 620px); justify-content: center; }

/* test mode ribbon */
body.demo::before { content: 'מצב בדיקה · בלי עלות · ציורים פשוטים'; position: fixed; top: 0; inset-inline: 0; z-index: 99; background: #f4b942; color: #3b2a00; text-align: center; font: 600 13px/26px system-ui, sans-serif; }
body.demo { padding-top: 26px; }

/* closed-answer editor */
.improve { display: flex; flex-direction: column; max-height: 78vh; padding: 0; overflow: hidden; }
.improve header { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.improve header b { display: block; }
.imp-body { overflow-y: auto; padding: 4px 16px 18px; }
.improve h3 { font-size: 15px; margin: 16px 0 6px; }
.improve .hint { font-size: 13px; color: var(--muted, #666); margin: 0 0 8px; }
.improve .locked { background: #fff4d6; border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 0 0 8px; }
.improve .opt { border: 0; margin: 10px 0; padding: 0; display: block; font-size: 14px; }
.improve legend, .improve label.opt > span:first-child { font-size: 13px; color: var(--muted, #666); padding: 0; margin-bottom: 4px; display: block; }
.improve select { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.improve .tick { display: flex; gap: 8px; align-items: center; }
.improve .tick span { color: inherit; font-size: 14px; margin: 0; }
.pick { cursor: pointer; }
.pick input, .pic input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; background: #fff; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span, .pic input:focus-visible + img { outline: 3px solid var(--coral); outline-offset: 2px; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pic { position: relative; cursor: pointer; }
.pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 3px solid transparent; display: block; }
.pic input:checked + img { border-color: var(--coral); }
.improve form.grp { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.improve .faqh { margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.faq p { margin: 6px 0 2px; font-size: 14px; color: var(--muted, #555); }
@media (max-width: 860px) { .improve { max-height: none; } }

/* Hanukkah campaign: the free-budget banner (FOMO), the Bit payment steps and the optional "help cover the cost" box */
.free-banner { position: relative; overflow: hidden; max-width: 560px; margin: 4px auto 14px; padding: 12px 16px 16px; background: #fff; border: 2px solid var(--sun); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.free-banner b { font-size: 18px; }
.free-banner span { font-size: 14px; color: var(--muted); }
.free-banner i { position: absolute; inset-inline-start: 0; bottom: 0; height: 6px; width: var(--w, 100%); background: var(--sun); }
.free-banner.low { border-color: var(--coral); }
.free-banner.low i { background: var(--coral); }
.pay-steps { max-width: 520px; margin: 14px auto; padding-inline-start: 22px; text-align: start; display: grid; gap: 14px; }
.pay-steps li { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pay-steps small { display: block; color: var(--muted); margin-top: 4px; }
.pay-steps .btn { margin-top: 8px; }
.copyable { font-weight: 700; font-size: 19px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.bit-box { max-width: 520px; margin: 16px auto; text-align: center; border: 2px dashed var(--sun); }
.bit-box p { margin: 6px 0 10px; color: var(--muted); }

/* "Flip through the booklet" (home): one page on a phone, the open booklet on a wide screen. Hebrew book: spine on the right. */
.flip { display: grid; gap: 10px; justify-items: center; margin: 4px 0 2px; }
.flip-title { margin: 0; font-size: 22px; }
.flip-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.flip-chapters .chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.flip-chapters .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.flip-stage { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; width: 100%; max-width: 900px; }
/* RTL: the "previous" arrow is on the right, "next" on the left (as in the editor) */
.flip-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.flip-nav:disabled { opacity: .3; cursor: default; }
.flip-book { perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; justify-self: center; width: 100%; max-width: 330px; }
.flip-pages { display: flex; justify-content: center; }
.fpage { margin: 0; flex: 0 1 auto; width: 100%; aspect-ratio: 900 / 1273; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05); border-radius: 3px; overflow: hidden; transform-origin: right center; transform: rotateY(calc(var(--drag, 0) * 28deg)); transition: transform .18s ease-out; }
.fpage[hidden] { display: none; }
.fpage img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.flip-book.dragging .fpage { transition: none; }
.flip-book.turn-next .fpage:not([hidden]) { animation: flipIn .42s cubic-bezier(.2,.7,.3,1); }
.flip-book.turn-prev .fpage:not([hidden]) { animation: flipBack .42s cubic-bezier(.2,.7,.3,1); }
@keyframes flipIn { from { transform: rotateY(-75deg); opacity: .25; } to { transform: rotateY(0); opacity: 1; } }
@keyframes flipBack { from { transform: rotateY(75deg); opacity: .25; } to { transform: rotateY(0); opacity: 1; } }
/* the open booklet: right page (earlier) and left page (later) meet at a soft fold */
.flip-book.spread { max-width: 760px; }
.flip-book.spread .fpage { width: 50%; border-radius: 0; }
.flip-book.spread .fpage.right { order: 1; transform-origin: left center; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.14); border-radius: 3px 0 0 3px; }
.flip-book.spread .fpage.left { order: 2; transform-origin: right center; box-shadow: inset -14px 0 18px -14px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.14); border-radius: 0 3px 3px 0; }
.flip-book.spread .fpage.right img, .flip-book.spread .fpage.left img { mix-blend-mode: multiply; }
.flip-book.single { max-width: 330px; }
@media (min-width: 761px) { .flip-book.single { max-width: 380px; } }
.flip-count { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .flip-book .fpage { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  .flip-chapters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; max-width: 100%; justify-self: stretch; padding: 2px 2px 4px; scrollbar-width: none; }
  .flip-chapters::-webkit-scrollbar { display: none; }
  .flip-chapters .chip { flex: 0 0 auto; font-size: 13px; padding: 5px 10px; }
  .flip-stage { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; }
  .flip-nav { width: 32px; height: 32px; }
  .flip-book.single { max-width: min(330px, calc((100svh - 300px) * .707)); }
}
@media (min-width: 761px) { .flip-book.spread { max-width: min(760px, calc((100vh - 230px) * 1.414)); } }

/* ===== Hanukkah edition (body.hk): blue, white and gold on the same notebook-and-stickers language ===== */
body.hk { --coral: #1d4ea0; --coral-dark: #153a7a; --sun: #f5b82e; --teal: #1d4ea0; --sky: #e6f0ff; --line: #d3e0f2;
  background-color: #f6faff; background-image: linear-gradient(#d9e6f6 1px, transparent 1px), linear-gradient(90deg, #d9e6f6 1px, transparent 1px); }
html:has(body.hk) { background-color: #f6faff; }
body.hk .topbar { background: rgba(246, 250, 255, .95); border-bottom: 0; padding-bottom: 22px; }
body.hk .topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 26px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2290%22%20height%3D%2226%22%20viewBox%3D%220%200%2090%2026%22%3E%3Cpath%20d%3D%22M0%203%20H90%22%20stroke%3D%22%231d3557%22%20stroke-width%3D%221.6%22/%3E%3Cpath%20d%3D%22M3%203%20L27%203%20L15%2022%20Z%22%20fill%3D%22%231d4ea0%22%20stroke%3D%22%231d3557%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M33%203%20L57%203%20L45%2022%20Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%231d3557%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M63%203%20L87%203%20L75%2022%20Z%22%20fill%3D%22%23f5b82e%22%20stroke%3D%22%231d3557%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") repeat-x; background-size: 90px 26px; pointer-events: none; }
body.hk .btn { box-shadow: 3px 3px 0 #f5b82e, 3px 3px 0 1.5px var(--ink); }
body.hk .btn.wa { background: #25d366; box-shadow: 3px 3px 0 var(--ink); }
body.hk .btn.ghost { background: #fff; box-shadow: 3px 3px 0 var(--line); }
body.hk .card::before { background: #f5b82e; }
body.hk .kicker { color: #1d4ea0; }
body.hk .free-banner { border-color: #f5b82e; background: #fffdf3; }
body.hk .free-banner.low { border-color: #1d4ea0; }
body.hk .free-banner.low i { background: #1d4ea0; }
body.hk .steps li.on { background: #1d4ea0; }
body.hk .bar i { background: repeating-linear-gradient(-45deg, #1d4ea0, #1d4ea0 12px, #3a6bc4 12px, #3a6bc4 24px); }
body.hk .price-opt.free { border-color: #f5b82e; background: #fffdf3; }
/* stickers on the first screen */
.hk-stickers { display: flex; gap: 14px; align-items: flex-end; margin: 2px 0 0; }
.hk-stickers svg { width: 74px; height: auto; filter: drop-shadow(0 3px 0 rgba(29, 53, 87, .18)); }
.hk-stickers svg:nth-child(1) { transform: rotate(-8deg); } .hk-stickers svg:nth-child(2) { transform: rotate(6deg); width: 84px; } .hk-stickers svg:nth-child(3) { transform: rotate(-4deg); width: 96px; }
@media (min-width: 900px) { body.hk .start { position: relative; } .hk-stickers { position: absolute; inset-inline-end: -150px; top: 70px; flex-direction: column; align-items: center; gap: 22px; } .hk-stickers svg { width: 96px !important; } }
@media (max-width: 899px) { .hk-stickers { order: -1; } }
/* download screen + group purchase */
.btn.big { min-height: 60px; font-size: 20px; width: min(100%, 420px); margin: 8px auto; }
.done-hero .btn.big { display: flex; }
.bit-box, .group-box { max-width: 520px; margin: 18px auto; text-align: center; }
.group-box { background: #f3f8ff; border: 1.5px dashed #9bb8e0; }
.group-box p { margin: 6px 0 12px; }
.group-price { display: grid; gap: 4px; background: #fffdf3; border: 1.5px dashed #f5b82e; border-radius: 12px; padding: 10px 14px; }
.group-price b { font-size: 22px; }
.field-err { margin: 6px 0 0; color: #c23a30; font-weight: 700; font-size: 15px; }
input[readonly] { background: #f1f1f1; color: #555; }

.tiles { display: grid; gap: 14px; max-width: 520px; margin: 18px auto; }
.tiles .tile { margin: 0; max-width: none; text-align: center; }
.tiles .tile p { margin: 6px 0 12px; color: var(--muted); }
.tiles .dl-box { border: 2px solid var(--mint, #4cc9a0); }
.tiles .share-box { border: 2px solid #25d366; }
@media (min-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; max-width: 900px; } }

.moment .star { position: absolute; bottom: 0; inset-inline: 0; border: 0; padding: 8px 6px; font: inherit; font-size: 14px; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink, #222); }
.moment.is-cover { outline: 3px solid #f5b82e; }
.moment.is-cover .star { background: #f5b82e; font-weight: 700; }

/* a page being redrawn: the old picture stays, dimmed, with a clear spinner; no broken-image icon */
.viewer .page.err { visibility: hidden; }
.viewer.redrawing .page { opacity: .4; filter: grayscale(.6); }
.viewer .redraw { position: absolute; top: 38%; inset-inline: 0; margin: auto; width: max-content; max-width: 80%; display: grid; justify-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow); text-align: center; z-index: 2; }
.viewer .redraw[hidden] { display: none; }
.viewer .redraw small { color: #666; font-size: 13px; }
.viewer .redraw .spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #d9d3ca; border-top-color: var(--ink, #234); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.book-banner { max-width: 560px; margin: 4px auto 14px; padding: 14px 16px; background: #fff; border: 2px solid var(--sun); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.book-banner b { font-size: 20px; }
.book-banner span { font-size: 14px; color: var(--muted); }
.book-banner.making { border-style: dashed; }

.qnote { font-size: 16px; max-width: 460px; margin: 8px auto; text-align: center; }
/* the waiting list (after the free booklets ran out) and the "update me" opt-in */
.wait-form { display: grid; gap: 10px; margin-top: 10px; text-align: start; }
.wait-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .wait-form .row { grid-template-columns: 1fr; } }
.wait-ok { margin: 10px 0 0; font-weight: 700; }
.agree.optin { margin: 2px 0 4px; }
.faq-photos { margin: 4px 0 10px; font-size: 14px; }
.faq-photos summary { cursor: pointer; font-weight: 700; color: var(--ink, #1d2b53); }
.faq-photos p { margin: 6px 0 0; color: var(--muted); }

/* QA, 1/12: comfortable tap targets on a phone (the logo link was 26px high, the chapter buttons 32px) */
.logo { min-height: 44px; }
.flip-chapters .chip { min-height: 40px; }
.sum-book a { display: inline-block; padding: 10px 0; } /* "back to editing" was 21px high */
.agree { min-height: 44px; align-items: center; } /* the terms tick box: the whole line is easy to tap */

/* Barak, 1/12: it was not clear that "what happens with the photos" opens. Every open-and-close line now looks like a button with an arrow. */
details.faq-photos, .faq details { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px; }
details.faq-photos > summary, .faq details > summary { list-style: none; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; }
details.faq-photos > summary::-webkit-details-marker, .faq details > summary::-webkit-details-marker { display: none; }
details.faq-photos > summary::after, .faq details > summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2.5px solid var(--coral-dark); border-bottom: 2.5px solid var(--coral-dark); transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
details.faq-photos[open] > summary::after, .faq details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.faq-photos > p, .faq details > p { margin: 0 0 12px; }
.faq details { margin-bottom: 8px; }

/* "want to help with the cost?" popup and box */
.contrib-num, .ltr.contrib-num { display: block; font-size: 30px; font-weight: 700; letter-spacing: 1px; text-align: center; margin: 4px 0 10px; }
.contrib-amts { display: flex; gap: 8px; justify-content: center; margin: 4px 0; }
.contrib-amts .amt { min-width: 76px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.contrib-amts .amt.on { border-color: var(--sun); background: #fff7df; }
.contrib-modal .modal-box { text-align: center; }
.contrib-modal .modal-box > p { margin: 0; }
.btn.copied { background: #2e7d32; border-color: #2e7d32; color: #fff; }

/* text for search engines and curious readers, under the home screen */
.seo-content { max-width: 760px; margin: 0 auto; padding: 0 20px 120px; color: var(--ink); }
.seo-content h2 { font-size: 22px; margin: 28px 0 8px; }
.seo-content p, .seo-content li { color: var(--muted); font-size: 16px; }
.seo-content ol { padding-inline-start: 22px; margin: 0; }
.seo-content details { background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--line); padding: 10px 14px; margin: 8px 0; }
.seo-content summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.seo-content details p { margin: 8px 0 2px; }
main:has(+ .seo-content) { padding-bottom: 24px; }

/* personal games and dedication: always open, nothing to find or press */
.more-open { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; }
.more-open .more-t { display: grid; gap: 2px; margin: 0; font-size: inherit; }
.more-open .more-t b { color: var(--coral-dark); font-size: 17px; }
.more-open .more-t small { font-weight: 400; color: var(--muted); font-size: 14px; line-height: 1.35; }

/* the questions and answers, under the editor */
.faq-section { margin: 18px 0 0; padding: 16px; }
.faq-section h3 { margin: 0 0 8px; font-size: 18px; }

/* home page readability (feedback 2/12): the small texts were 13px and grey */
.how b { font-size: 16px; }
.how span { font-size: 15px; color: #4a4438; line-height: 1.4; }
.free-banner span { font-size: 15px; color: #4a4438; }
.price-opt small { font-size: 14.5px; opacity: 1; color: #4a4438; }
.start .hint, .flip-count { font-size: 15px; color: #4a4438; }
.start .lead { font-size: 20px; }
@media (max-width: 899px) { .hk-stickers svg { width: 52px !important; } .hk-stickers svg:nth-child(2) { width: 58px !important; } .hk-stickers svg:nth-child(3) { width: 66px !important; } }
@media (max-width: 760px) { .flip-title { display: none; } .flip-chapters { order: 3; } .flip-count { order: 2; } .start .free-banner { margin: 0 auto; } .start-cta { margin: 0; } }
/* desktop home page (2/12): one centred column instead of a wide right-aligned block with the stickers stranded on the far left */
@media (min-width: 761px) {
  .start, body.hk .start { position: static; justify-items: center; text-align: center; gap: 18px; padding-top: 14px; }
  .start .hk-stickers { position: static !important; flex-direction: row !important; align-items: flex-end; justify-content: center; gap: 18px; order: -1; margin: 0; }
  .start .hk-stickers svg { width: 58px !important; }
  .start .hk-stickers svg:nth-child(2) { width: 66px !important; }
  .start .hk-stickers svg:nth-child(3) { width: 76px !important; }
  .start h1 { max-width: 24ch; font-size: clamp(54px, 5.4vw, 68px); line-height: 1.02; text-wrap: balance; }
  .start .lead { max-width: 38ch; text-wrap: balance; }
  .start-cta { width: 100%; max-width: 340px; }
  .start .how, .start .price-line, .start .flip { width: 100%; }
  .start .how { max-width: 760px; }
}
/* the example booklet: pages lie in a pile and spread into a grid while you scroll (no slider, nothing to press) */
.pile { display: grid; gap: 14px; justify-items: center; margin: 8px 0 4px; width: 100%; }
.pile-title { margin: 0; font-size: 26px; text-align: center; }
.pile-grid { --p: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 980px; padding: 6px 0 10px; }
@media (min-width: 761px) { .pile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pp { margin: 0; aspect-ratio: 902 / 1275; background: #fff; border-radius: 6px; box-shadow: 0 6px 22px rgba(60, 40, 20, .16), 0 0 0 1px rgba(60, 40, 20, .06); overflow: hidden;
  transform: translate(calc((1 - var(--p)) * var(--dx, 0px)), calc((1 - var(--p)) * var(--dy, 0px))) rotate(calc((1 - var(--p)) * var(--r, 0deg))); will-change: transform; }
.pp img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; }
.pp:nth-child(1) { z-index: 8; } .pp:nth-child(2) { z-index: 7; } .pp:nth-child(3) { z-index: 6; } .pp:nth-child(4) { z-index: 5; } .pp:nth-child(5) { z-index: 4; } .pp:nth-child(6) { z-index: 3; } .pp:nth-child(7) { z-index: 2; } .pp:nth-child(8) { z-index: 1; }
.pile-count { margin: 0; font-size: 15px; color: #4a4438; text-align: center; }
@media (prefers-reduced-motion: reduce) { .pp { transform: none; } }
/* the pile as a slider of sets of eight: arrows at the sides on a wide screen, a button row under the pages on a phone */
.pile-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; width: 100%; max-width: 1080px; }
.pile-sets { min-width: 0; }
.pile-grid[hidden] { display: none; }
.pile-grid.in-next { animation: pileInNext .35s cubic-bezier(.2, .7, .3, 1); }
.pile-grid.in-prev { animation: pileInPrev .35s cubic-bezier(.2, .7, .3, 1); }
@keyframes pileInNext { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pileInPrev { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.pile-nav { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0; font: inherit; font-weight: 700; font-size: 16px; box-shadow: var(--shadow); }
.pile-nav:disabled { opacity: .3; cursor: default; }
.pile-nav span { display: none; }
.pile-grid { touch-action: pan-y; }
@media (max-width: 760px) {
  .pile-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "sets sets" "prev next"; gap: 12px; }
  .pile-sets { grid-area: sets; }
  .pile-nav.prev { grid-area: prev; } .pile-nav.next { grid-area: next; }
  .pile-nav { width: 100%; border-radius: 99px; min-height: 48px; }
  .pile-nav span { display: inline; }
  .pile-nav.next { background: var(--ink); color: #fff; border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .pile-grid.in-next, .pile-grid.in-prev { animation: none; } }
/* phone: all the pages in one strip you swipe sideways (the next page peeks in from the side); desktop keeps the sets with arrows */
.pile-strip { display: none; }
@media (max-width: 760px) {
  .pile-stage { display: none; }
  .pile-strip { display: flex; gap: 12px; width: calc(100% + 40px); margin-inline: -20px; padding: 6px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
  .pile-strip::-webkit-scrollbar { display: none; }
  .sp { flex: 0 0 68%; max-width: 300px; margin: 0; aspect-ratio: 902 / 1275; scroll-snap-align: center; background: #fff; border-radius: 6px; box-shadow: 0 6px 22px rgba(60, 40, 20, .16), 0 0 0 1px rgba(60, 40, 20, .06); overflow: hidden; }
  .sp img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; }
}

/* coupon code on the order screen */
.coupon{display:grid;gap:6px}.coupon label{font-weight:600}
.coupon-in{display:flex;gap:8px}.coupon-in input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:1px}
.summary .disc{color:#1d6b3a;font-weight:600}.summary .disc span:last-child{white-space:nowrap;direction:ltr}

/* the owner's rehearsal of the paid site */
#rehearsalBar{background:#6b2fa0;color:#fff;text-align:center;padding:7px 12px;font-size:14px;font-weight:600;position:sticky;top:0;z-index:50}
#rehearsalBar a{color:#fff;text-decoration:underline;margin-inline-start:8px}
.summary .was{color:#6b6458;font-size:13px}
.price-opt s{color:#8a8478;font-weight:400;font-size:.8em}
.deliv-opt em s{color:#8a8478;font-weight:400}

/* paid site: the printed booklet is the main offer */
.price-opt.main { position: relative; border: 2.5px solid #1d3557; border-style: solid; background: #fffdf3; flex: 1.35 1 170px; max-width: 260px; padding-top: 18px; box-shadow: 0 4px 14px rgba(29,53,87,.14); }
.price-opt.main b { font-size: 44px; }
.price-opt.main span { font-size: 17px; font-weight: 700; }
.price-opt .badge { position: absolute; top: -11px; inset-inline: 0; margin-inline: auto; width: max-content; background: #1d3557; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 99px; }
.price-opt:not(.main) b { font-size: 28px; }
.coupon summary { cursor: pointer; color: var(--muted); font-size: 15px; list-style: none; padding: 4px 0; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon summary::after { content: ' ▾'; }
.coupon[open] summary { color: var(--ink); font-weight: 600; margin-bottom: 6px; }

/* the order progress on the "booklet is on its way" screen: a vertical list with a check for each finished step (it used to look like radio buttons) */
.timeline { list-style: none; padding: 0; max-width: 420px; margin: 22px auto; text-align: start; }
.timeline li { position: relative; display: block; border: 0; padding: 8px 40px 14px 0; min-height: 28px; font-size: 16px; }
.timeline li::before { position: absolute; inset-inline-start: 0; top: 6px; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; text-align: center; line-height: 22px; font-size: 15px; font-weight: 800; }
.timeline li.ok::before { content: "✓"; background: var(--teal, #2a9d8f); color: #fff; border: 2px solid var(--teal, #2a9d8f); }
.timeline li.wait::before { content: ""; background: #fff; border: 2px dashed #b9b2a3; }
.timeline li.wait { color: var(--muted); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 12px; top: 34px; bottom: 0; width: 2px; background: #d9d3c6; }
.timeline li.ok:not(:last-child)::after { background: var(--teal, #2a9d8f); }
/* the file buttons: apart from each other and from the share button */
.pdf-actions { display: grid; gap: 12px; justify-items: center; margin: 8px 0 4px; }
.pdf-actions .btn { min-width: 240px; }
.done-actions { display: grid; gap: 12px; justify-items: center; margin: 22px 0 8px; }
/* the coupon toggle looks like something to press */
.coupon summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; }
.coupon summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; }
.coupon[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* pages fly in from the sides on the "drawing" screen: they must not widen the page on a phone */
.making { overflow-x: clip; }
html, body { overflow-x: clip; }
