/* Website UI (landing flow, preview, waitlist). Mobile first; desktop layout from 960px.
   The printed pages use src/render/book.css instead. */
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/fredoka/files/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 800; font-display: swap; src: url(/fonts/fredoka/files/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 400; font-display: swap; src: url(/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500; font-display: swap; src: url(/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url(/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #ffffff; --ink: #0f0e17; --soft: #6b6880; --line: #e9e8f0; --tint: #f6f5fb;
  --violet: #6c47ff; --violet-tint: #f0ecff; --coral: #ff6b5b; --sun: #ffd166; --mint: #3fd8b0;
  --r: 20px; --ease: cubic-bezier(.2,.8,.2,1);
  --pad: max(20px, env(safe-area-inset-left));
  --shadow: 0 1px 2px rgba(15,14,23,.04), 0 8px 28px rgba(15,14,23,.07);
  --display: Fredoka, 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Bricolage Grotesque', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 'Bricolage Grotesque', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }

/* ---------- soft colour blobs ---------- */
.blobs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 60vmax; height: 60vmax; top: -30vmax; right: -25vmax; background: #c9b8ff; }
.blobs i:nth-child(2) { width: 45vmax; height: 45vmax; bottom: -25vmax; left: -20vmax; background: #ffd0c4; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 30vmax; height: 30vmax; top: 40%; left: 55%; background: #bff3e3; opacity: .35; animation-delay: -12s; }
@keyframes drift { to { transform: translate(-4vmax, 3vmax) scale(1.08); } }

/* ---------- top bar ---------- */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) var(--pad) 12px; background: rgba(255,255,255,.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.logo { font: 800 17px/1 var(--display); text-decoration: none; letter-spacing: -.005em; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.logo .mark { color: var(--violet); font-size: 18px; }
.nav { flex: 1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.back { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.back:hover { background: var(--tint); }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 220px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--coral)); border-radius: 99px; transition: width .5s var(--ease); }

/* ---------- stage + steps ---------- */
.stage { position: relative; z-index: 1; }
.showcase { display: none; }
#flow { position: relative; min-height: 100dvh; max-width: 480px; margin: 0 auto; overflow-x: clip; } /* clips the off-screen sliding steps; desktop gets extra room so shadows are not cut */
.step { position: absolute; inset: 0; padding: calc(84px + env(safe-area-inset-top)) var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transform: translateX(36px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.step.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease) .05s, transform .45s var(--ease) .05s, visibility 0s; }
.step.is-left { transform: translateX(-36px); }
.q { font: 800 clamp(32px, 8.6vw, 44px)/1.04 var(--display); letter-spacing: -.005em; margin: 8px 0 2px; }
.center { text-align: center; }
.sub { margin: -4px 0 4px; color: var(--soft); }

.field { width: 100%; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: 17px 18px; font: 600 21px/1.2 'Bricolage Grotesque', sans-serif; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; box-shadow: var(--shadow); }
.field::placeholder { color: #b9b7c6; font-weight: 600; }
.field:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,71,255,.15); }
textarea.field { font-size: 18px; resize: none; font-weight: 400; }
.field.time { font-size: 24px; text-align: center; min-height: 62px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.go { display: block; width: 100%; margin-top: 4px; border: 0; border-radius: 99px; padding: 18px 24px; background: var(--ink); color: #fff; font: 600 18px/1 'Bricolage Grotesque', sans-serif; cursor: pointer; text-align: center; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 8px 20px rgba(15,14,23,.18); }
.go:hover { background: #26243a; transform: translateY(-1px); }
.go:active { transform: scale(.98); }
.go[disabled] { opacity: .5; }
.skip { align-self: center; border: 0; background: none; color: var(--soft); font-weight: 600; padding: 10px; cursor: pointer; }
.skip:hover { color: var(--ink); }
.hint { margin: 0; font-size: 15px; color: var(--soft); }
.err { color: #d6336c; font-weight: 600; }
.tiny { margin: 0; text-align: center; font-size: 13px; color: var(--soft); }

/* hello */
[data-step=hello] { padding-top: calc(76px + env(safe-area-inset-top)); }
.big { font: 800 clamp(32px, 11.2vw, 64px)/.98 var(--display); letter-spacing: -.005em; margin: 0; }
/* rotating word: always last on its own line ("the day ___"), so swapping it never reflows the headline; words cross-fade on top of each other */
.big .line { display: block; white-space: nowrap; }
.big .rot { position: relative; display: inline-block; vertical-align: bottom; width: 4.4em; height: 1em; line-height: inherit; transition: width .65s cubic-bezier(.65, 0, .35, 1); }
.big .rot .w { position: absolute; left: 0; top: 0; line-height: inherit; white-space: nowrap; padding-right: .08em;
  background: linear-gradient(90deg, var(--violet), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.38em); filter: blur(8px);
  transition: opacity .55s ease, transform .75s cubic-bezier(.22, 1, .36, 1), filter .55s ease; will-change: opacity, transform, filter; }
.big .rot .w.is-in { opacity: 1; transform: none; filter: none; }
.big .rot .w.is-out { opacity: 0; transform: translateY(-.38em); filter: blur(8px); }

@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lede { margin: 0; font-size: 18px; color: var(--soft); max-width: 34ch; }
.fan { position: relative; height: 200px; margin: 4px 0 6px; }
.fan img { position: absolute; top: 14px; left: 50%; width: 140px; height: 140px; border-radius: 12px; box-shadow: 0 14px 30px rgba(15,14,23,.18); animation: float 6s ease-in-out infinite; }
.fan img:nth-child(1) { transform: translateX(-112%) rotate(-9deg); top: 32px; animation-delay: -2s; }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(2deg); z-index: 2; width: 164px; height: 164px; }
.fan img:nth-child(3) { transform: translateX(14%) rotate(9deg); top: 34px; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -8px; } }

/* mode choices */
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s; }
.choice:hover { border-color: #cfc6ff; }
.choice:active { transform: scale(.985); }
.choice input { position: absolute; opacity: 0; }
.choice .emo { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); display: grid; place-items: center; font-size: 30px; transition: transform .3s var(--ease); }
.choice b { font: 800 21px/1.15 var(--display); letter-spacing: -.005em; }
.choice small { color: var(--soft); font-size: 15px; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--violet-tint); }
.choice:has(input:checked) .emo { transform: scale(1.1) rotate(-6deg); background: #fff; }

/* date */
.dmy { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.dmy label span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px 4px; color: var(--soft); }
.dmy .field { text-align: center; padding: 17px 6px; }
.tease { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--violet-tint); color: #3b2a99; font-weight: 600; animation: pop .45s var(--ease); }

/* towns */
.towns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.towns li button { width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 15px 18px; font-size: 18px; cursor: pointer; animation: pop .3s var(--ease) both; transition: border-color .2s, background .2s; }
.towns li:nth-child(2) button { animation-delay: .03s; } .towns li:nth-child(3) button { animation-delay: .06s; } .towns li:nth-child(4) button { animation-delay: .09s; } .towns li:nth-child(5) button { animation-delay: .12s; }
.towns li button:hover, .towns li button:active { border-color: var(--violet); background: var(--violet-tint); }
.towns li button b { font-weight: 600; }
.towns li button small { color: var(--soft); margin-left: 6px; }

/* making */
[data-step=making] { justify-content: center; text-align: center; min-height: 100dvh; padding-top: 40px; }
.orbit { position: relative; width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; border: 1.5px dashed #cfc6ff; animation: spin 7s linear infinite; }
.orbit span { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--display); color: #fff; box-shadow: 0 8px 18px rgba(15,14,23,.15); }
.orbit span:nth-child(1) { top: -22px; left: 48px; background: var(--violet); }
.orbit span:nth-child(2) { bottom: 6px; left: -12px; background: var(--mint); }
.orbit span:nth-child(3) { bottom: 6px; right: -12px; background: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }
.ticker { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; }
.ticker li { opacity: .25; transition: opacity .3s; }
.ticker li.on { opacity: 1; }
.ticker li.on::after { content: ' ✓'; color: var(--violet); }

/* ---------- preview ---------- */
body.previewing { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.pv { position: relative; z-index: 1; }
.pv-head { padding: calc(78px + env(safe-area-inset-top)) var(--pad) 4px; }
.pv-head h1 { font: 800 clamp(34px, 9vw, 48px)/1.02 var(--display); letter-spacing: -.005em; margin: 4px 0 6px; }
.pv-head p { margin: 0; color: var(--soft); }
.viewer { position: relative; }
.previewing .book { display: flex !important; flex-direction: row !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--pad) 34px !important; scroll-padding-inline: var(--pad); scrollbar-width: none; align-items: flex-start !important; background: none; }
.previewing .book::-webkit-scrollbar { display: none; }
.previewing .sheet { flex: none; scroll-snap-align: center; border-radius: 14px !important; box-shadow: 0 1px 3px rgba(15,14,23,.08), 0 10px 22px rgba(15,14,23,.13) !important; }
.arrow { display: none; }
.dots { display: flex; justify-content: center; gap: 7px; padding: 8px 0 4px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: #d9d7e3; transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 22px; background: var(--violet); }
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.dock .go { margin: 0; flex: 1; }
.dock .share { flex: none; width: 58px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.dock .share span { display: none; }
.dock .share:hover { background: var(--tint); }
.pv-side { padding: 20px var(--pad) 24px; display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); }
.card.glow { background: linear-gradient(160deg, #f3efff 0%, #fff 55%, #fff4ef 100%); }
.card h2 { font: 800 28px/1.05 var(--display); letter-spacing: -.005em; margin: 6px 0 8px; }
.card p { margin: 0 0 16px; color: #46435a; }
.card .field { font-size: 17px; padding: 15px 16px; margin-bottom: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); margin-top: 12px; }
.consent input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; margin-top: 2px; }
.ok { font-weight: 800; font-size: 18px; margin: 0; color: var(--ink) !important; }
details.fix summary { cursor: pointer; font-weight: 600; color: var(--soft); list-style: none; text-align: center; padding: 8px; }
details.fix summary::-webkit-details-marker { display: none; }
details.fix form { display: grid; gap: 10px; margin-top: 8px; }
details.fix .field { font-size: 16px; font-weight: 400; padding: 14px 16px; margin: 0; }
.again { text-align: center; margin: 0; font-weight: 600; }
.narrow { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: calc(84px + env(safe-area-inset-top)) var(--pad) 40px; display: grid; gap: 16px; }

/* ---------- desktop ---------- */
/* ---------- mobile: centre everything ---------- */
@media (max-width: 959px) {
  .bar:has(.progress[hidden]) .nav { display: none; }
  .bar:has(.progress[hidden]) .logo, .bar:not(:has(.nav)) .logo { margin: 0 auto; }
  .step { text-align: center; }
  .kicker, .big, .lede, .q, .sub, .tiny, .hint, .tease { text-align: center; }
  .lede { margin: 0 auto; }
  .field { text-align: center; }
  textarea.field { text-align: center; }
  .choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 16px; }
  .choice .emo { margin-bottom: 4px; }
  .dmy label span { text-align: center; margin-left: 0; }
  .towns li button { text-align: center; }
  .towns li button small { display: block; margin: 2px 0 0; }
  .pv-head { text-align: center; }
  .pv-side .card { text-align: center; }
  .consent { justify-content: center; text-align: left; }
  .narrow { text-align: center; }
}

@media (min-width: 960px) {
  html, body { font-size: 17px; }
  .bar { padding: 18px 40px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .logo { font-size: 20px; }
  .nav { justify-content: flex-start; margin-left: 48px; max-width: 360px; }

  .stage { max-width: 1200px; margin: 0 auto; padding: 0 40px; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: center; }
  #flow { min-height: 0; margin: 0; max-width: none; padding: 110px 0 60px; }
  .step { padding: 0; }
  [data-step=hello] { padding-top: 0; }
  [data-step=making] { min-height: 0; padding-top: 0; }
  .fan { display: none; }
  .big { font-size: 68px; }
  .lede { font-size: 20px; }
  .go, .choices, .dmy, .field, .towns, .tease { max-width: 460px; }
  [data-step=hello] .go { max-width: 300px; }
  .tiny { text-align: left; }
  .q { font-size: 48px; }

  .showcase { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 60px; }
  .stack { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1.15; }
  .stack img { position: absolute; width: 58%; height: auto; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 4px 10px rgba(15,14,23,.06), 0 30px 60px rgba(15,14,23,.18); animation: float 7s ease-in-out infinite; transition: transform .6s var(--ease); }
  .stack img:nth-child(1) { left: 0; top: 30%; transform: rotate(-12deg); animation-delay: -1s; }
  .stack img:nth-child(2) { right: 0; top: 2%; transform: rotate(9deg); animation-delay: -3s; }
  .stack img:nth-child(3) { right: 4%; bottom: 0; transform: rotate(4deg); animation-delay: -5s; }
  .stack img:nth-child(4) { left: 20%; top: 12%; transform: rotate(-3deg); z-index: 2; width: 62%; }
  .stack:hover img:nth-child(1) { transform: rotate(-16deg) translateX(-14px); }
  .stack:hover img:nth-child(2) { transform: rotate(13deg) translateX(14px); }
  .perks { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .perks li { padding: 10px 16px; border-radius: 99px; background: rgba(255,255,255,.8); border: 1px solid var(--line); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); }
  .perks span { color: var(--violet); font-weight: 800; margin-right: 4px; }

  /* preview: big viewer on the left, sticky actions on the right */
  body.previewing { padding-bottom: 0; }
  .pv { max-width: 1200px; margin: 0 auto; padding: 96px 40px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .pv-head { padding: 0 0 8px; }
  .pv-head h1 { font-size: 56px; }
  .viewer { max-width: 640px; }
  .previewing .book { padding: 20px 24px 36px !important; scroll-padding-inline: 24px; }
  .arrow { display: grid; place-items: center; position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); cursor: pointer; z-index: 3; transition: opacity .2s, transform .2s; }
  .arrow:hover { transform: scale(1.06); }
  .arrow[disabled] { opacity: 0; pointer-events: none; }
  .arrow.prev { left: -24px; }
  .arrow.next { right: -24px; }
  .dots { justify-content: flex-start; max-width: 640px; justify-content: center; }
  .pv-side { position: sticky; top: 96px; padding: 112px 0 0; }
  .dock { position: static; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; flex-direction: column; }
  .dock .share { width: 100%; height: 54px; display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 600; }
  .dock .share span { display: inline; }
  .narrow { padding-top: 120px; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .big { font-size: 56px; }
  .stack { max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the print stylesheet sizes every svg to 100%; keep UI icons at their own size */
.bar svg, .dock svg, .arrow svg { width: 22px !important; height: 22px !important; flex: none; display: block; }

/* preview watermark + many-page dots */
.previewing .sheet { position: relative; }
.previewing .sheet::after { content: 'PREVIEW'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 clamp(40px, 14vw, 96px)/1 var(--display); color: rgba(255,255,255,.28); -webkit-text-stroke: 1px rgba(0,0,0,.12); transform: rotate(-30deg); pointer-events: none; letter-spacing: .1em; }
.previewing .sheet img { -webkit-user-drag: none; user-select: none; }
.dots { flex-wrap: wrap; max-width: 300px; margin: 0 auto; }
.dots i { width: 6px; height: 6px; }
.dots i.on { width: 16px; }
.fine { font-size: 13px; color: var(--soft); margin: 10px 0 0 !important; }
.card .go { display: block; }

/* ---------- checkout ---------- */
.co { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(78px + env(safe-area-inset-top)) var(--pad) 48px; }
.co-back { display: inline-block; color: var(--soft); text-decoration: none; font-weight: 600; margin-bottom: 6px; }
.co-title { font: 800 clamp(32px, 8vw, 44px)/1.05 var(--display); letter-spacing: -.005em; margin: 4px 0 16px; }
.co-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 20px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.co-card h2 { font: 800 22px/1.15 var(--display); letter-spacing: -.005em; margin: 0 0 12px; }
.co-step { position: absolute; top: -12px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.co-book { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.mini-cover { flex: none; width: 96px; height: 96px; border-radius: 10px; background: repeating-conic-gradient(from 0deg, #f2a65a 0 10deg, #e4572e 10deg 20deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #241f2e; box-shadow: 0 6px 16px rgba(15,14,23,.2); position: relative; overflow: hidden; }
.mini-cover::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: #fbf6f0; box-shadow: 0 0 0 2px #241f2e; }
.mini-cover > * { position: relative; }
.mc-the { font: 800 9px/1 var(--display); }
.mini-cover b { font: 800 15px/1.1 var(--display); color: #e4572e; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-date { font-size: 6px; font-weight: 700; max-width: 60px; }
.co-meta { margin: 0 0 10px; color: var(--soft); font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 18px; text-align: center; font-weight: 800; font-size: 18px; }
.co-lbl { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.co-lbl .field, .co-card > .field { margin-top: 6px; font-size: 17px; font-weight: 500; padding: 14px 16px; text-align: left !important; }
.co-card > .field { margin-top: 8px; }
.co-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.co-note { font-size: 13px; color: var(--soft); margin: 12px 0 0; }
.co-sum { margin: 0 0 16px; }
.co-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.co-sum dt { color: var(--soft); }
.co-sum dd { margin: 0; font-weight: 700; text-align: right; }
.co-sum .tot dt, .co-sum .tot dd { color: var(--ink); font: 800 20px var(--display); }
.co-card.done { text-align: center; }
.co-card.done .co-sum { text-align: left; margin-top: 16px; }
.tick { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 50%; background: var(--mint); color: #fff; font: 800 34px/64px var(--display); }
.checkout .co-card textarea.field { text-align: left !important; }
@media (max-width: 959px) { .checkout .co-card { text-align: left; } .checkout .co-card.done { text-align: center; } .checkout .field { text-align: left !important; } }

/* ---- preview: one buy block with the cover picker ---- */
.card.buy h2 { margin-bottom: 14px; }
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cv-pick { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: var(--muted, #555); }
.cv-thumb { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.15); outline: 2.5px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; }
.cv-thumb > .page { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.cv-pick:hover .cv-thumb { transform: translateY(-2px); }
.cv-pick[aria-checked="true"] .cv-thumb { outline-color: var(--ink, #111); }
.cv-pick[aria-checked="true"] .cv-name { color: var(--ink, #111); font-weight: 700; }
.cv-name { font-size: 11.5px; line-height: 1.2; text-align: center; }
.spec { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.spec li { font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; }
@media (min-width: 960px) { .spec { justify-content: flex-start; } }

/* new-baby details step */
.baby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left; margin: 6px 0 4px; }
.baby-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted, #555); }
.baby-grid .wide { grid-column: 1 / -1; }
.baby-grid .field { margin: 0; }
.fam { display: grid; gap: 10px; margin: 6px 0 4px; }
.fam-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.fam-row .field { margin: 0; }

/* ---- landing: dealt pages, peek strip, cover row ---- */
[data-deck] img { transition: opacity .32s ease, scale .32s ease, transform .6s var(--ease); }
[data-deck] img.dealing { opacity: 0; scale: .9; }
/* desktop pile: three pages (left, right, front) */
@media (min-width: 960px) {
  .stack { aspect-ratio: 1.25; }
  .stack img:nth-child(1) { left: 0; top: 18%; bottom: auto; right: auto; transform: rotate(-10deg); width: 56%; z-index: 0; }
  .stack img:nth-child(2) { right: 0; left: auto; top: 6%; bottom: auto; transform: rotate(9deg); width: 56%; z-index: 0; }
  .stack img:nth-child(3) { left: 50%; right: auto; top: 14%; bottom: auto; transform: translateX(-50%) rotate(-2deg); width: 62%; z-index: 2; }
  .stack:hover img:nth-child(1) { transform: rotate(-14deg) translateX(-16px); }
  .stack:hover img:nth-child(2) { transform: rotate(13deg) translateX(16px); }
}

/* ---------- share card ---------- */
.sharecard { margin-top: 18px; overflow: hidden; }
.sharecard .sc-top { margin: -24px -20px 16px; background: var(--tint); }
.sharecard .sc-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; transition: transform .15s var(--ease), border-color .15s; }
.sh:hover { transform: translateY(-2px); border-color: #d6d3e4; }
.sh:active { transform: scale(.97); }
.sh i { width: 44px; height: 44px; display: grid; place-items: center; }
.sh-ok { margin: 12px 0 0 !important; text-align: center; font-weight: 600; color: #0f7a5e !important; }

/* ---------- buy options ---------- */
.buy-opts { display: grid; gap: 10px; margin-top: 16px; }
.bopt { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: border-color .15s, transform .15s var(--ease); }
.bopt:hover { border-color: var(--ink); transform: translateY(-1px); }
.bopt.hard { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.bopt b { font: 700 19px/1.2 var(--display); }
.bopt .o-p { font: 700 19px/1.2 var(--display); }
.bopt small { grid-column: 1 / -1; color: var(--soft); font-size: 13.5px; line-height: 1.4; }
.bopt .o-k { position: absolute; top: -10px; left: 14px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.dock .go.alt { flex: none; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- locked preview pages ---------- */
.page.locked { position: relative; overflow: hidden; background: #f4f2f8; }
.page.locked .lk-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(.85); transform: scale(1.06); opacity: .55; }
.page.locked .lk-top { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.page.locked:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.78) 45%, rgba(255,255,255,.92) 100%); pointer-events: none; }
.page.locked .lk-note { position: absolute; z-index: 2; left: 22mm; right: 22mm; bottom: 20mm; background: #fff; border-radius: 6mm; padding: 7mm 8mm 8mm; text-align: center; box-shadow: 0 2mm 8mm rgba(15,14,23,.14); display: flex; flex-direction: column; align-items: center; gap: 2.4mm; font-family: 'Bricolage Grotesque', system-ui, sans-serif; color: #0f0e17; }
.page.locked .lk-note svg { width: 9mm; height: 9mm; color: #6c47ff; }
.page.locked .lk-note b { font: 700 7.4mm/1.15 Fredoka, 'Bricolage Grotesque', sans-serif; }
.page.locked .lk-note span { font-size: 5mm; line-height: 1.35; color: #46435a; }
.page.locked .lk-btns { display: flex; gap: 3mm; margin-top: 2mm; flex-wrap: wrap; justify-content: center; }
.page.locked .lk-btns a { font: 700 5.4mm/1 'Bricolage Grotesque', sans-serif; text-decoration: none; background: #0f0e17; color: #fff; padding: 4mm 6mm; border-radius: 99mm; }
.page.locked .lk-btns a.alt { background: #fff; color: #0f0e17; box-shadow: inset 0 0 0 .5mm #0f0e17; }
.previewing .sheet:has(.locked)::after { display: none; }

/* ---------- express checkout ---------- */
.express { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.ex-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ex-head b { font: 700 20px/1.1 var(--display); }
.ex-head span { font: 700 20px/1.1 var(--display); }
.ex-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ex { height: 54px; border-radius: 14px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; transition: transform .12s var(--ease), opacity .15s; }
.ex:active { transform: scale(.98); }
.ex:disabled { opacity: .6; cursor: progress; }
.ex svg { height: 34px; width: auto; }
.ex.apple svg { height: 22px; margin-top: -3px; }
.ex.apple .ap { font: 600 22px/1 -apple-system, 'SF Pro Display', 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em; margin-left: -4px; }
.ex.apple, .ex.google { background: #000; color: #fff; }
.ex.google svg { height: 46px; }
.ex.card { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.ex.card svg { height: 20px; }
.ex-wait { font-size: 15px; }
.ex-note { margin: 10px 0 0; font-size: 13.5px; color: var(--soft); text-align: center; }
.ex-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--soft); font-size: 13px; font-weight: 600; }
.ex-or:before, .ex-or:after { content: ''; flex: 1; height: 1px; background: var(--line); }
.express .err { margin: 10px 0 0; }
.co-lbl .opt { color: var(--soft); font-weight: 400; font-size: 13px; margin-left: 4px; }

/* ================= homepage: who it's for ================= */
.sell { display: none; position: relative; z-index: 1; padding: 0 var(--pad) 40px; }
body.at-hello .sell { display: block; }
.sell section { max-width: 1200px; margin: 0 auto 28px; border-radius: 36px; overflow: hidden; position: relative; display: grid; gap: 28px; padding: 40px 24px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.sell h2 { font: 700 clamp(34px, 6vw, 56px)/1.02 var(--display); letter-spacing: -.01em; margin: 8px 0 14px; }
.sell ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.sell li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.sell li i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 800; }
.sell .go { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 17px 28px; min-height: 56px; }

/* birthdays: bold and dark */
.sb { background: #120f24; color: #fff; }
.sb-dots { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, #ffd166 1.6px, transparent 2px) 0 0/46px 46px, radial-gradient(circle, #ff6b5b 1.4px, transparent 1.8px) 23px 23px/46px 46px; -webkit-mask: linear-gradient(115deg, transparent 30%, #000 75%); mask: linear-gradient(115deg, transparent 30%, #000 75%); }
.sb > *:not(.sb-dots) { position: relative; }
.sb-kick, .sn-kick { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sb-kick { color: #ffd166; }
.sb h2 em { font-style: normal; background: linear-gradient(90deg, #ffd166, #ff6b5b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-lede { color: #c9c5e0; font-size: 18px; line-height: 1.5; margin: 0 0 22px; }
.sb li { color: #e9e6f7; }
.sb li b { color: #fff; }
.sb li i { background: rgba(255,255,255,.08); color: #ffd166; border: 1px solid rgba(255,255,255,.12); }
.sb-ages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.sb-ages span { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: rgba(255,209,102,.12); color: #ffd166; border: 1px solid rgba(255,209,102,.3); }
.sb-go { background: #ffd166; color: #120f24; }
.sb-visual { position: relative; display: grid; gap: 18px; }
.sb-pages { position: relative; width: 100%; aspect-ratio: 2.1 / 1; }
.sb-pages img { position: absolute; width: 44%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 22px 44px rgba(0,0,0,.45); transition: transform .5s var(--ease); }
.sb-pages img:nth-child(1) { left: 2%; top: 9%; transform: rotate(-9deg); }
.sb-pages img:nth-child(2) { left: 28%; top: 0; transform: rotate(2deg); z-index: 2; }
.sb-pages img:nth-child(3) { right: 2%; top: 10%; transform: rotate(10deg); }
.sb:hover .sb-pages img:nth-child(1) { transform: translateX(-3%) rotate(-12deg); }
.sb:hover .sb-pages img:nth-child(3) { transform: translateX(3%) rotate(13deg); }
.dial { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 20px; backdrop-filter: blur(6px); }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; }
.dial-top span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9c5e0; }
.dial-top output { font: 700 54px/1 var(--display); color: #ffd166; font-variant-numeric: tabular-nums; }
.dial input[type=range] { width: 100%; margin: 12px 0 16px; accent-color: #ffd166; height: 28px; }
.dial-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dial-facts div { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.dial-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a9a4c7; }
.dial-facts dd { margin: 3px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.dial-facts dd.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: .2; transform: translateY(4px); } }
.dial-note { margin: 12px 0 0; font-size: 13.5px; color: #c9c5e0; text-align: center; }
.dial-note b { color: #ffd166; }

/* babies: soft and dreamy */
.sn { background: linear-gradient(135deg, #fff4ee 0%, #fdeff4 40%, #eaf3fd 100%); color: #3b3552; }
.sn-kick { color: #e07a86; }
.sn h2 em { font-style: normal; color: #e07a86; }
.sn-lede { font-size: 18px; line-height: 1.5; color: #5d5773; margin: 0 0 22px; }
.sn li i { background: #fff; box-shadow: 0 3px 10px rgba(59,53,82,.08); }
.sn-for { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.sn-for span { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: #fff; color: #7a6c9a; border: 1px solid #ece4f6; }
.sn-go { background: #3b3552; color: #fff; }
.sn-visual { position: relative; height: 330px; }
.sn-visual img { position: absolute; border-radius: 14px; box-shadow: 0 22px 44px rgba(59,53,82,.22); }
.sn-cover { width: 230px; height: 230px; left: 50%; top: 40px; transform: translateX(-50%) rotate(-3deg); z-index: 2; }
.sn-p1 { width: 170px; height: 170px; left: 50%; top: 10px; transform: translateX(-118%) rotate(-11deg); }
.sn-p2 { width: 170px; height: 170px; left: 50%; top: 120px; transform: translateX(22%) rotate(9deg); }
.stk { position: absolute; z-index: 3; background: #fff; color: #3b3552; font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 99px; box-shadow: 0 10px 24px rgba(59,53,82,.16); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.stk.s1 { left: 0; top: 0; }
.stk.s2 { right: 0; top: 70px; animation-delay: -1.6s; }
.stk.s3 { left: 6%; bottom: 0; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.sell-strip { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 700; font-size: 14.5px; color: #46435a; padding: 6px 0 10px; }

@media (min-width: 960px) {
  .sell { padding: 20px 40px 60px; }
  .sell section { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 64px 60px; }
  .sn-visual { height: 440px; order: 0; }
  .sn-cover { width: 300px; height: 300px; top: 60px; }
  .sn-p1, .sn-p2 { width: 220px; height: 220px; }
  .sn-p2 { top: 170px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .stk { animation: none; } }

/* line icons (replacing emoji) */
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }
.sell li i .ico { width: 20px; height: 20px; }
.sb-kick .ico, .sn-kick .ico { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; }
.stk { display: inline-flex; align-items: center; gap: 7px; }
.stk .ico { color: #e07a86; }
.sell-strip span { display: inline-flex; align-items: center; gap: 6px; }
.sell-strip .ico { color: #0f9d74; }
.perks .ico { vertical-align: -2px; }
.choice .emo .ico { width: 34px; height: 34px; color: var(--violet); }
.orbit .ico { width: 22px; height: 22px; }
.tick svg { display: block; margin: auto; }
/* homepage section buttons keep their own colours on hover */
.sb-go:hover { background: #ffdd85; color: #120f24; box-shadow: 0 10px 28px rgba(255,209,102,.35); }
.sn-go:hover { background: #4a4366; color: #fff; }
.sell .go:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }

.dial-facts .locked { position: relative; border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03); }
.dial-facts .locked dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ffd166; }
.dial-facts .blur { filter: blur(5px); color: #fff; user-select: none; }
.dial-go { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; border: 0; border-radius: 99px; padding: 15px 20px; background: #ffd166; color: #120f24; font: 700 16px/1.1 var(--body); cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.dial-go:hover { background: #ffdd85; transform: translateY(-1px); }

@media (min-width: 960px) { #flow { padding-inline: 32px; margin-inline: -32px; max-width: calc(480px + 64px); } }
/* phones: everything in the homepage sections is centred */
@media (max-width: 959px) {
  .sell section { text-align: center; justify-items: center; }
  .sb-copy, .sn-copy, .sb-visual, .sn-visual { width: 100%; }
  .sell ul { justify-items: center; }
  .sell ul { width: 100%; max-width: 360px; margin-inline: auto; }
  .sell li { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; width: 100%; }
  .sell .go { margin: 0 auto; }
  .sn-for { justify-content: center; }
  .dial-top { flex-direction: column; align-items: center; gap: 4px; }
  .dial-facts div { text-align: center; }
  .dial-facts .locked dd { justify-content: center; }
  .dial-note { text-align: center; }
  .sell-strip { flex-direction: column; align-items: center; text-align: center; }
  .sn-visual .stk.s1 { left: 50%; translate: -50% 0; }
  .sn-visual .stk.s2 { right: 4%; }
  .sn-visual .stk.s3 { left: 50%; translate: -50% 0; }
}

/* ================= site footer ================= */
.site-foot { position: relative; z-index: 1; background: #0f0e17; color: #c9c5e0; margin-top: 40px; padding: 48px var(--pad) calc(28px + env(safe-area-inset-bottom)); }
body.flow:not(.at-hello) .site-foot { display: none; }
body.previewing .site-foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.sf-in { max-width: 1200px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
.sf-brand .logo { color: #fff; font: 700 22px/1 var(--display); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sf-brand .mark { color: #b9a6ff; }
.sf-brand p { margin: 12px 0 16px; max-width: 360px; line-height: 1.5; font-size: 15px; }
.sf-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sf-trust li { display: flex; gap: 8px; align-items: center; }
.sf-trust .ico { color: #ffd166; }
.sf-col { display: grid; gap: 9px; align-content: start; }
.sf-col h4 { margin: 0 0 4px; color: #fff; font: 700 15px/1 var(--display); letter-spacing: .02em; }
.sf-col a { color: #c9c5e0; text-decoration: none; font-size: 14.5px; }
.sf-col a:hover { color: #fff; text-decoration: underline; }
.sf-base { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #8f8aa8; }
.sf-base a { color: #c9c5e0; }
@media (min-width: 760px) { .sf-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
@media (max-width: 759px) { .site-foot { text-align: center; } .sf-brand p { margin-inline: auto; } .sf-trust { justify-items: center; } .sf-in { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } .sf-col:last-child { grid-column: 1 / -1; } .sf-base { justify-content: center; text-align: center; } }

/* ================= information pages ================= */
body.info .bar { position: relative; }
.lg { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 24px var(--pad) 20px; line-height: 1.6; }
.lg h1 { font: 700 clamp(36px, 7vw, 54px)/1.05 var(--display); margin: 6px 0 10px; letter-spacing: -.01em; }
.lg-lede { font-size: 19px; color: #46435a; margin: 0 0 26px; }
.lg h2 { font: 700 24px/1.2 var(--display); margin: 34px 0 10px; display: flex; gap: 8px; align-items: center; scroll-margin-top: 20px; }
.lg p, .lg li { font-size: 16.5px; color: #2d2a3e; }
.lg ul { padding-left: 1.2em; }
.lg li { margin: 6px 0; }
.lg a { color: var(--violet); }
.lg-small { font-size: 14px !important; color: var(--soft) !important; margin-top: 28px; }
.lg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 10px; }
.lg-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.lg-card .ico { color: var(--violet); }
.lg-card b { font: 700 24px/1.1 var(--display); }
.lg-card span { color: var(--soft); font-size: 14.5px; line-height: 1.4; }
.lg-note { background: linear-gradient(135deg, #fff4ee, #f0ecff); border: 1px solid #ece4f6; border-radius: 20px; padding: 6px 20px; }
.lg-faq { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; margin: 10px 0; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.lg-faq summary { cursor: pointer; padding: 16px 0; font: 700 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--violet); transition: transform .2s; }
.lg-faq[open] summary::after { transform: rotate(45deg); }
.lg-faq p { margin: 0 0 16px; }
.lg-cta { margin-top: 24px; font-weight: 600; }
.lg-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.lg-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.lg-form .field { font-size: 17px; font-weight: 400; margin: 0; }
.lg-form .opt { color: var(--soft); font-weight: 400; font-size: 13px; }
.lg-form .ok { color: #0b7556; font-weight: 600; margin: 0; }
.lg-form .err { color: #b0281a; margin: 0; }
.co-legal { font-size: 13px !important; margin-top: 8px !important; }
.co-legal a { color: inherit; }

/* ---------- "your book so far" card under each form step ---------- */
.build { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; margin: 4px var(--pad) 28px; padding: 16px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(6px); text-align: left; animation: bkIn .5s var(--ease); }
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } }
.bk-cover { flex: none; width: 112px; height: 112px; border-radius: 12px; background: repeating-conic-gradient(from 0deg, #f4c430 0 10deg, #e23d78 10deg 20deg); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #1d1a3a; box-shadow: 0 8px 18px rgba(15,14,23,.18); padding: 0 18px; transform: rotate(-3deg); }
.bk-cover::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #f3f0fb; box-shadow: 0 0 0 2px #1d1a3a; }
.bk-cover > * { position: relative; }
.bk-the, .bk-verb { font: 700 9.5px/1.1 var(--display); }
.bk-cover b { font: 800 17px/1.05 var(--display); color: #e23d78; max-width: 70px; overflow-wrap: anywhere; margin: 1px 0; }
.bk-cover b.ph { color: #b9b4cc; font-size: 11px; }
.bk-date { font: 600 7.5px/1.2 var(--body); max-width: 70px; margin-top: 2px; }
.bk-info { min-width: 0; }
.bk-k { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.bk-list li { font-size: 14px; color: var(--soft); display: flex; align-items: center; gap: 7px; }
.bk-list li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cfcbe0; flex: none; box-sizing: border-box; }
.bk-list li.done { color: var(--ink); }
.bk-list li.done::before { border: 0; background: #0f9d74 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; }
.bk-list li.now { color: var(--ink); font-weight: 700; }
.bk-list li.now::before { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.bk-list small { font-weight: 400; color: var(--soft); }
.bk-why { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: #46435a; }
@media (min-width: 960px) { .build { margin: 8px 0 0; } }
/* preview bottom bar on phones: two buttons that always fit, text on one line */
@media (max-width: 959px) {
  .dock { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
  .dock .go, .dock .go.alt { width: auto; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; padding: 0 12px; height: 54px; font-size: 16px; line-height: 1; }
  body.previewing { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .dock .go, .dock .go.alt { font-size: 14.5px; padding: 0 8px; } }

/* swipe hint over the first preview page (phones) */
.swipe-hint { position: absolute; z-index: 4; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px; background: rgba(15,14,23,.82); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; box-shadow: 0 8px 24px rgba(15,14,23,.25); pointer-events: none; animation: hintIn .4s var(--ease) both; transition: opacity .4s, transform .4s; }
.swipe-hint svg { width: 22px !important; height: 22px !important; animation: swipeHand 1.6s ease-in-out infinite; }
.swipe-hint.bye { opacity: 0; transform: translateX(-50%) translateY(8px); }
@keyframes swipeHand { 0%, 100% { transform: translateX(6px) rotate(8deg); } 50% { transform: translateX(-8px) rotate(-6deg); } }
@keyframes hintIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }

/* small phones: section buttons stay on one line */
@media (max-width: 420px) {
  .sell .go { font-size: 16px; padding: 16px 22px; white-space: nowrap; }
  .dial-go { font-size: 15px; padding: 14px 16px; }
}
.dial-go > span:first-child { white-space: nowrap; }
/* checkout: copies control wraps under the description on very narrow phones */
@media (max-width: 359px) {
  .co-book { flex-direction: column; align-items: flex-start; }
  .qty { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  .sell { padding-inline: 10px; }
  .sell section { padding: 30px 14px; border-radius: 28px; }
  .dial { padding: 14px; }
  .dial-go { font-size: 14px; padding: 13px 12px; }
}
.co-sum .vat dt, .co-sum .vat dd { color: var(--soft); font-size: 14px; font-weight: 500; }
/* site icons keep their size everywhere (the preview page also loads the book's styles, which make SVGs fill their box) */
.site-foot svg.ico, .sell svg.ico, .perks svg.ico, .swipe-hint svg, .bk-list svg { flex: none; }
.site-foot svg.ico { width: 16px !important; height: 16px !important; }
.site-foot .sf-trust li { flex-wrap: nowrap; }
.ece { min-height: 54px; }
.card-box { margin: 4px 0 14px; }
.card-lbl { margin: 0 0 8px !important; font-weight: 700; }

/* bottom bar labels: name + price (price on a second line on phones) */
.dock .go .dk-p::before { content: ' · '; }
@media (max-width: 959px) {
  .dock .go, .dock .go.alt { flex-direction: column; gap: 3px; height: 58px; }
  .dock .go .dk-l { font-size: 15.5px; font-weight: 700; }
  .dock .go .dk-p { font-size: 13px; font-weight: 600; opacity: .8; }
  .dock .go .dk-p::before { content: none; }
}
@media (max-width: 359px) { .dock .go .dk-l { font-size: 13.5px; } .dock .go .dk-p { font-size: 12px; } }
/* header stays readable over any section while scrolling (desktop was transparent) */
@media (min-width: 960px) {
  .bar { background: rgba(255,255,255,.8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(15,14,23,.06); }
}
.bar { z-index: 40; }
/* logo centred when it's the only thing in the header (form steps keep it left, beside back + progress) */
.bar:not(:has(.back:not([hidden]))) { justify-content: center; }
.bar:not(:has(.back:not([hidden]))) .nav { display: none; }

/* ================= BirthdayRewind logo (simple wordmark) ================= */
.br-logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font: 800 22px/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.035em; white-space: nowrap; }
.br-word b { font-weight: 800; color: var(--violet); }
.br-word small { font-size: .55em; font-weight: 700; letter-spacing: 0; color: var(--soft); margin-left: 1px; }
.site-foot .br-logo { color: #fff; font-size: 26px; }
.site-foot .br-word b { color: #b9a6ff; }
.site-foot .br-word small { color: #8f8aa8; }
.adm-bar .br-logo { font-size: 19px; }
@media (max-width: 380px) { .br-logo { font-size: 20px; } }
/* ================= Christmas promo strip (above the header) ================= */
body:has(.promo) { --promo-h: 34px; }
.promo { position: fixed; z-index: 41; top: 0; left: 0; right: 0; height: calc(var(--promo-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: #fff; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden;
  background: linear-gradient(90deg, #8f1028, #c8173a 50%, #8f1028); }
.promo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat; animation: prSheen 7s ease-in-out 2s infinite; }
@keyframes prSheen { 0% { background-position: -150% 0; } 30%, 100% { background-position: 250% 0; } }
.promo .ico { flex: none; color: #ffd166; }
.promo b { font-weight: 800; }
.promo em { font-style: normal; font-weight: 800; color: #ffd166; }
.promo .pr-go { font-weight: 800; transition: transform .2s; }
.promo:hover .pr-go { transform: translateX(3px); }
.pr-short { display: none; }
@media (max-width: 700px) { .pr-long { display: none; } .pr-short { display: inline; } .promo { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .promo::after { animation: none; } }
/* the header and the page content move down by the strip's height */
body:has(.promo) .bar { top: calc(var(--promo-h) + env(safe-area-inset-top)); padding-top: 12px; }
@media (min-width: 960px) { body:has(.promo) .bar { padding-top: 16px; } }
body.info:has(.promo) .promo { position: relative; }
body.info:has(.promo) .bar { top: 0; }
body:has(.promo) .step { padding-top: calc(84px + var(--promo-h) + env(safe-area-inset-top)); }
body:has(.promo) [data-step=hello] { padding-top: calc(76px + var(--promo-h) + env(safe-area-inset-top)); }
body:has(.promo) [data-step=making] { padding-top: calc(40px + var(--promo-h)); }
body:has(.promo) .pv-head { padding-top: calc(78px + var(--promo-h) + env(safe-area-inset-top)); }
body:has(.promo) .narrow { padding-top: calc(84px + var(--promo-h) + env(safe-area-inset-top)); }
body:has(.promo) .co { padding-top: calc(78px + var(--promo-h) + env(safe-area-inset-top)); }
@media (min-width: 960px) {
  body:has(.promo) [data-step=hello] { padding-top: 0; }
  body:has(.promo) [data-step=making] { padding-top: 0; }
  body:has(.promo) .narrow { padding-top: calc(120px + var(--promo-h)); }
  body:has(.promo) .stage { padding-top: var(--promo-h); }
}
@media (min-width: 960px) { body:has(.promo) .step { padding: 0; } }
.promo svg.ico { width: 16px !important; height: 16px !important; display: inline-block; }
/* "Rewind" uses the same violet → coral gradient as the hero wording */
.br-word b { background: linear-gradient(90deg, var(--violet), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.site-foot .br-word b { background: linear-gradient(90deg, #b9a6ff, #ff8a7d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-foot .sf-brand a.br-logo { font-family: 'Bricolage Grotesque', system-ui, sans-serif !important; font-weight: 800; letter-spacing: -.035em; }
.tick { display: grid; place-items: center; line-height: 1; }
.tick svg { margin: 0; }
/* hero heading: the longest rotating line ("the day Grandma") must fit a phone screen */
@media (max-width: 959px) { .big { font-size: clamp(28px, 9.8vw, 48px); } }
.big .rot .w { padding-bottom: .14em; }

/* desktop: the heading column is 480px; keep "the day Grandma" inside it */
@media (min-width: 960px) { .big { font-size: clamp(44px, 4.4vw, 54px); } }

/* "Made in the UK" badge at the top of the homepage hero */
.made-uk { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 5px 11px 5px 7px; background: #fff; border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 2px 8px rgba(15,14,23,.06); font-size: 13px; font-weight: 700; color: var(--ink); }
.made-uk .uk { border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); flex: none; }
[data-step=hello] .made-uk { align-self: center; }
@media (min-width: 960px) { [data-step=hello] .made-uk { align-self: flex-start; } }
