/* WishesMatter — "a wall of wishes": bold themed walls, paper notes taped on them.
   Type: Bricolage Grotesque (display + UI), Caveat (signatures). Served by Bunny Fonts (EU). */
:root {
  --ink: #18133b;
  --ink-2: #4c4772;
  --paper: #ffffff;
  --mist: #f4f2ff;
  --line: #e3dff4;
  --primary: #3b2beb;
  --primary-ink: #ffffff;
  --primary-soft: #e8e5ff;
  --sun: #ffc53d;
  --mint: #2fd39a;
  --rose: #ff7bac;
  --sky: #8fd3ff;
  --note-cream: #ffffff;
  --note-blush: #ffe0ec;
  --note-sage: #d7f7ea;
  --note-sky: #ddf1ff;
  --note-butter: #fff1c7;
  --note-lilac: #e9e4ff;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --lift: 0 1px 0 rgba(24, 19, 59, .05), 0 14px 30px -12px rgba(24, 19, 59, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1efff;
    --ink-2: #b9b4dd;
    --paper: #120f2b;
    --mist: #1b1740;
    --line: #2e2960;
    --primary: #7d70ff;
    --primary-ink: #0e0b26;
    --primary-soft: #262063;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-optical-sizing: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.hidden { display: none !important; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 32em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.lang { display: flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--ink-2); font: 600 .8rem/1 var(--font); padding: .5em .75em; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(24, 19, 59, .18); }

/* buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 2px solid transparent; border-radius: 14px; padding: .85em 1.35em;
  font: 700 1rem/1 var(--font); cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 55%, #000);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 55%, #000); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 55%, #000); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.sun { background: var(--sun); color: #18133b; box-shadow: 0 3px 0 #c48a00; }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.small { padding: .6em 1em; font-size: .9rem; border-radius: 11px; }
.btn.top-cta { padding: .65em 1.05em; font-size: .92rem; }
label { display: block; font-weight: 700; font-size: .95rem; margin: 0 0 .4em; }
.field { margin-bottom: 1.1rem; }
.hint { font-size: .85rem; color: var(--ink-2); font-weight: 400; }
input[type=text], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px; padding: .75em .9em;
}
input[type=text]:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
input[type=text]:focus, textarea:focus { border-color: var(--primary); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Themed walls (board, reveal, previews). Patterns are pure CSS.
   ========================================================= */
.wall { --wall: #ffc53d; --wall-ink: #18133b; background-color: var(--wall); color: var(--wall-ink); }
.wall[data-theme=confetti] {
  --wall: #ffc53d; --wall-ink: #18133b;
  background-image:
    radial-gradient(circle at 20% 30%, #3b2beb 0 3px, transparent 3.6px),
    radial-gradient(circle at 70% 65%, #ff5c8a 0 4px, transparent 4.6px),
    radial-gradient(circle at 45% 85%, #ffffff 0 2.5px, transparent 3px),
    radial-gradient(circle at 85% 15%, #2fd39a 0 3px, transparent 3.6px);
  background-size: 96px 96px, 128px 128px, 72px 72px, 110px 110px;
  background-position: 0 0, 40px 20px, 10px 50px, 60px 30px;
}
.wall[data-theme=ocean] {
  --wall: #3b2beb; --wall-ink: #ffffff;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 16px, transparent 16px 32px);
}
.wall[data-theme=sunrise] {
  --wall: #ff9a4d; --wall-ink: #2a1036;
  background-image: repeating-conic-gradient(from -90deg at 50% -10%, #ff8a3d 0 5deg, #ffae66 5deg 10deg);
}
.wall[data-theme=garden] {
  --wall: #2fd39a; --wall-ink: #0d2e24;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .45) 0 2.5px, transparent 3px), radial-gradient(circle, rgba(13, 46, 36, .18) 0 2px, transparent 2.5px);
  background-size: 34px 34px, 34px 34px; background-position: 0 0, 17px 17px;
}
.wall[data-theme=bubblegum] {
  --wall: #ff7bac; --wall-ink: #3a0a24;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .5) 0 4px, transparent 4.5px), radial-gradient(circle, rgba(255, 255, 255, .25) 0 9px, transparent 9.5px);
  background-size: 46px 46px, 140px 140px; background-position: 0 0, 30px 60px;
}
.wall[data-theme=sky] {
  --wall: #8fd3ff; --wall-ink: #0b2a49;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .6) 0 34px, transparent 35px), radial-gradient(circle, rgba(255, 255, 255, .45) 0 22px, transparent 23px);
  background-size: 260px 200px, 170px 150px; background-position: 0 0, 90px 70px;
}
.wall[data-theme=night] {
  --wall: #18133b; --wall-ink: #ffffff;
  background-image: radial-gradient(circle, #ffc53d 0 1.6px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.4px), radial-gradient(circle, #ff7bac 0 1.3px, transparent 1.7px);
  background-size: 64px 64px, 37px 37px, 91px 91px; background-position: 0 0, 12px 20px, 40px 7px;
}
.wall[data-theme=calm] { --wall: #e4e8ef; --wall-ink: #26304a; background-image: linear-gradient(180deg, #edf0f5, #dfe4ec); }

/* sticker badge (occasion) */
.sticker {
  display: inline-flex; align-items: center; gap: .4em; background: #fff; color: #18133b;
  font-weight: 700; font-size: .95rem; padding: .45em .9em; border-radius: 999px;
  transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}

/* paper notes */
.notes { columns: 4 250px; column-gap: 22px; }
.note-card {
  --tilt: 0deg;
  break-inside: avoid; margin: 0 0 24px; position: relative;
  background: var(--note-cream); color: #18133b;
  border-radius: 4px; padding: 22px 20px 16px;
  box-shadow: var(--lift); transform: rotate(var(--tilt));
}
.note-card::before { /* tape */
  content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%) rotate(calc(var(--tilt) * -2 - 2deg));
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); backdrop-filter: blur(1px);
}
.note-card[data-color=blush] { background: var(--note-blush); }
.note-card[data-color=sage] { background: var(--note-sage); }
.note-card[data-color=sky] { background: var(--note-sky); }
.note-card[data-color=butter] { background: var(--note-butter); }
.note-card[data-color=lilac] { background: var(--note-lilac); }
.note-card img { border-radius: 2px; margin: 0 0 14px; width: 100%; }
.note-card .text { font-size: 1.06rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card .by { margin-top: 10px; font: 600 1.55rem/1 var(--hand); color: #3b2beb; }
.note-card .del { position: absolute; top: 6px; right: 6px; border: 0; background: rgba(255, 255, 255, .8); color: #4c4772; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; opacity: .75; }
.note-card .del:hover { opacity: 1; color: #d6244f; }
.note-card .del svg { width: 16px; height: 16px; }
.note-card:has(.del) .text { padding-right: 26px; }
.note-card.fresh { animation: pin .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes pin { from { opacity: 0; transform: translateY(-16px) rotate(calc(var(--tilt) + 4deg)) scale(1.04); } to { opacity: 1; transform: rotate(var(--tilt)); } }

/* =========================================================
   Landing page
   ========================================================= */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .reassure { margin-top: 1rem; font-size: .92rem; color: var(--ink-2); }

.demo { border-radius: 28px; padding: 26px 22px 6px; position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(24, 19, 59, .55); }
.demo-head { text-align: center; margin-bottom: 26px; }
.demo-head .title { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; line-height: 1.05; margin-top: .45em; }
.demo .notes { columns: 2 180px; column-gap: 18px; }
.demo .note-card { font-size: .92rem; padding: 18px 16px 12px; margin-bottom: 20px; }
.demo .note-card .text { font-size: .95rem; }
.demo .note-card .by { font-size: 1.35rem; }
.demo .note-card img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.credit { font-size: .78rem; color: var(--ink-2); margin-top: .7em; }
.credit a { color: var(--ink-2); }

.section { padding: 80px 0; }
.section.tint { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 36px; }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.theme-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  min-height: 150px; padding: 16px; border-radius: 20px; border: 0; cursor: pointer; text-align: left;
  font: 800 1.2rem/1.1 var(--font); letter-spacing: -.01em;
  transition: transform .15s ease;
}
.theme-tile:hover { transform: rotate(-1.5deg) translateY(-3px); }
.theme-tile .sticker { align-self: flex-start; font-size: .85rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-num { font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--primary); letter-spacing: -.04em; margin-bottom: .2em; }
.step p { color: var(--ink-2); }

.create { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--paper); border: 2px solid var(--line); border-radius: 24px; padding: 28px; }
.occasions, .theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.occasions input, .theme-pick input, .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.occasions label { margin: 0; font-weight: 600; font-size: .92rem; border: 2px solid var(--line); border-radius: 999px; padding: .45em .85em; cursor: pointer; background: var(--paper); }
.occasions input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.occasions input:focus-visible + label, .theme-pick input:focus-visible + label, .swatches input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.theme-pick label { width: 44px; height: 44px; margin: 0; border-radius: 12px; cursor: pointer; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.theme-pick input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper) inset; }

.preview { position: sticky; top: 90px; border-radius: 24px; padding: 34px 22px 10px; min-height: 360px; transition: background-color .3s ease; }
.preview .demo-head { margin-bottom: 30px; }
.preview .note-card { max-width: 300px; margin: 0 auto 22px; }
.preview-label { font-size: .85rem; color: var(--ink-2); margin: 0 0 .6em; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.price { border: 2px solid var(--line); border-radius: 24px; padding: 28px; background: var(--paper); }
.price.featured { border-color: var(--primary); background: var(--primary-soft); }
.price .amount { font-weight: 800; font-size: 3rem; letter-spacing: -.04em; line-height: 1; margin: .25em 0 .15em; }
.price ul { padding: 0; margin: 1.2em 0 0; list-style: none; }
.price li { padding: .3em 0 .3em 1.7em; position: relative; }
.price li::before { content: ""; position: absolute; left: .1em; top: .72em; width: .85em; height: .45em; border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg); }

details { border-bottom: 2px solid var(--line); padding: 1.1em 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
details p { margin: .7em 0 0; color: var(--ink-2); }

footer { background: #18133b; color: #d9d5f5; padding: 36px 0 44px; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: #d9d5f5; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   Board page
   ========================================================= */
.board-page { min-height: calc(100vh - 64px); padding-bottom: 120px; }
.board-head { padding: 52px 0 34px; text-align: center; }
.board-head h1 { margin: .35em auto .15em; max-width: 16ch; color: var(--wall-ink); }
.board-head .sub { font-weight: 600; font-size: 1.1rem; opacity: .85; }
.board-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }
.wall .btn.ghost { background: #fff; color: #18133b; border-color: transparent; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }

.fab { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 15; font-size: 1.05rem; padding: 1em 1.6em; box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 55%, #000), 0 12px 30px -8px rgba(24, 19, 59, .55); }
.fab:hover { transform: translateX(-50%) translateY(-1px); }
.fab:active { transform: translateX(-50%) translateY(2px); }

.organizer { margin: 0 auto 40px; max-width: 900px; background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); border: 0; padding: 0; }
.organizer > summary { list-style: none; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
.organizer > summary::-webkit-details-marker { display: none; }
.organizer > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.organizer[open] > summary::after { transform: rotate(-135deg); }
.organizer .org-body { padding: 4px 22px 22px; }
.organizer .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.copy { display: flex; gap: 8px; }
.copy input { font-size: .88rem; padding: .6em .75em; }
.meter { height: 10px; background: var(--mist); border-radius: 99px; overflow: hidden; margin: .5em 0 .5em; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s ease; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.org-badge { font-size: .85rem; font-weight: 600; color: var(--ink-2); }

.empty { text-align: center; padding: 40px 16px 70px; }
.empty .big { font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: .3em; }
.notice { max-width: 900px; margin: 0 auto 32px; background: #fff; color: #18133b; border-radius: 18px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 600; }

dialog { border: 0; border-radius: 24px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px rgba(10, 6, 40, .45); }
dialog::backdrop { background: rgba(24, 19, 59, .55); }
dialog[open] { animation: pop .22s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
dialog form { padding: 26px; }
dialog h2 { font-size: 1.7rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { width: 38px; height: 38px; border-radius: 50%; margin: 0; cursor: pointer; border: 2px solid var(--line); }
.swatches input:checked + label { border: 3px solid var(--primary); box-shadow: 0 0 0 3px var(--paper) inset; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.counter { text-align: right; font-size: .8rem; color: var(--ink-2); margin-top: .3em; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: #18133b; color: #fff; padding: .85em 1.25em; border-radius: 14px; font-weight: 600; opacity: 0; transition: opacity .2s ease, transform .2s ease; z-index: 50; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   Reveal page
   ========================================================= */
.reveal-page { min-height: calc(100vh - 64px); }
.cover { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.cover h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: .95; margin: .3em auto .25em; max-width: 12ch; color: var(--wall-ink); }
.cover .count { font-size: 1.3rem; font-weight: 600; margin-bottom: 2rem; opacity: .9; }
.cover .btn { font-size: 1.2rem; padding: 1em 2.2em; }
.reveal-notes .note-card { opacity: 0; transform: translateY(24px) rotate(calc(var(--tilt) + 3deg)); transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.reveal-notes .note-card.in { opacity: 1; transform: rotate(var(--tilt)); }
.reveal-content { padding: 30px 16px 40px; }
.made-with { text-align: center; padding: 10px 0 50px; font-weight: 600; }
.made-with a { color: inherit; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; }

/* sympathy: quiet, no bright colours */
.sympathy .note-card { background: #fff !important; }
.sympathy .note-card .by { color: #26304a; }
.sympathy #swatches { display: none; }

/* legal pages */
.legal { max-width: 780px; padding-top: 44px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .updated { color: var(--ink-2); font-size: .92rem; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--primary); }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: .6em .7em; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--mist); }
mark.todo { background: #fff3a6; color: #3a3000; padding: 0 .2em; border-radius: 3px; }
.form-note { font-size: .84rem; color: var(--ink-2); margin: .2em 0 1em; }
.form-note a { color: var(--ink-2); }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 600; font-size: .95rem; margin: 1em 0 .4em; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1em; flex: none; accent-color: var(--primary); }
.danger-link { background: none; border: 0; padding: 0; margin-top: 16px; color: var(--ink-2); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.danger-link:hover { color: #d6244f; }

@media (max-width: 900px) {
  .hero .wrap, .create, .pricing, .organizer .row { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 56px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 60px 0; }
  .preview { position: static; }
  .top .top-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-notes .note-card { opacity: 1; transform: rotate(var(--tilt)); }
}

/* keepsake PDF (browser print → "Save as PDF") */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .no-print, .made-with, #confetti, .del, footer, .fab { display: none !important; }
  .cover { min-height: auto; padding: 10px 0 24px; }
  .cover .btn { display: none; }
  .notes { columns: 2; }
  .note-card, .reveal-notes .note-card { opacity: 1 !important; transform: none !important; box-shadow: none; border: 1px solid rgba(0, 0, 0, .12); }
  .note-card::before { display: none; }
}

/* file input: hidden but keyboard-reachable, focus shown on its label */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.fab, .org-badge { white-space: nowrap; }
@media (max-width: 480px) { .fab { font-size: 1rem; padding: .95em 1.4em; } .organizer > summary { font-size: 1rem; } }

/* ---------- occasion landing pages ---------- */
.ideas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ideas li { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 20px 22px; font-size: 1.05rem; line-height: 1.5; }
.ideas li::before { content: "“"; display: block; font-weight: 800; font-size: 2.4rem; line-height: .7; color: var(--primary); margin-bottom: .2em; }
.steps.four { grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
.cta-line { margin: 40px 0 0; }
.h3 { font-size: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: .55em 1em; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--paper); }
.chip:hover { border-color: var(--primary); }
.occasion-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 900px) {
  .ideas { grid-template-columns: 1fr; }
  .steps.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .steps.four { grid-template-columns: 1fr; } }
.ideas-title { font-size: 1.15rem; margin: 40px 0 14px; }
section[id] { scroll-margin-top: 72px; }

/* hero: three example boards stacked in one cell, one shown at a time */
.deck { display: grid; }
.deck > .demo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.985); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.deck > .demo.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease, visibility 0s; }
.deck-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.deck-tabs button {
  position: relative; overflow: hidden; border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 .92rem/1 var(--font); padding: .6em 1em; border-radius: 999px; cursor: pointer;
}
.deck-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
/* progress bar on the active tab while the slides turn on their own */
.deck-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sun); }
.deck-tabs.auto button[aria-pressed="true"]::after { animation: deck-progress 6s linear forwards; }
.deck-tabs.auto.paused button[aria-pressed="true"]::after { animation-play-state: paused; }
@keyframes deck-progress { to { width: 100%; } }
@media (max-width: 600px) {
  .demo { padding: 20px 12px 2px; border-radius: 22px; }
  .demo-head { margin-bottom: 18px; }
  .demo .notes { columns: 2 120px; column-gap: 10px; }
  .demo .note-card { padding: 13px 11px 9px; margin-bottom: 14px; }
  .demo .note-card .text { font-size: .8rem; line-height: 1.4; }
  .demo .note-card .by { font-size: 1.1rem; margin-top: 6px; }
  .demo .note-card::before { width: 56px; height: 18px; top: -8px; }
  .demo .note-card img { margin-bottom: 8px; }
  .deck > .demo .note-card:nth-child(5) { display: none; }
  .deck-tabs { gap: 6px; }
  .deck-tabs button { font-size: .84rem; padding: .55em .75em; }
}

/* cover photo of the person, pinned like a polaroid above the title */
.cover-photo { margin: 0 auto 22px; width: min(260px, 62vw); background: #fff; padding: 10px 10px 34px; border-radius: 4px; transform: rotate(-2.5deg); box-shadow: var(--lift); position: relative; }
.cover-photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(3deg); background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cover-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.cover .cover-photo { width: min(300px, 66vw); margin-bottom: 26px; }
.cover-tools { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.preview-bar { position: sticky; top: 64px; z-index: 15; background: var(--sun); color: #18133b; font-weight: 600; }
.preview-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }

/* what unlocking gives (before) and what the organizer got (after paying) */
.upgrade { margin-top: 12px; }
.upgrade-title { font-weight: 700; margin: 0 0 .4em; }
.perks { list-style: none; padding: 0; margin: 0 0 14px; font-size: .95rem; }
.perks li { position: relative; padding: .22em 0 .22em 1.6em; }
.perks li::before { content: ""; position: absolute; left: .15em; top: .62em; width: .75em; height: .4em; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
.paid-panel { margin-top: 12px; background: #e3f9ef; color: #0f5132; border: 2px solid #1f9d6b; border-radius: 16px; padding: 14px 16px 4px; outline: none; }
.paid-title { font-weight: 800; margin: 0 0 .4em; color: #0f5132; }
.paid-title::before { content: "✓"; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: .45em; border-radius: 50%; background: #1f9d6b; color: #fff; font-size: .85em; }
.paid-panel .perks li::before { border-color: #1f9d6b; }
.paid-panel.just-paid { animation: paid-pop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes paid-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.full-perks { font-weight: 400; }
@media (prefers-color-scheme: dark) { .paid-panel { background: #0f3326; color: #c9f5e1; } .paid-title { color: #c9f5e1; } }

/* deletion date in the organizer space */
.expiry { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--line); }
.expiry-text { font-weight: 600; margin: 0 0 .7em; }
.expiry-form label { display: block; font-size: .92rem; margin-bottom: .35em; }
.expiry-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.expiry-controls input[type=date] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: .5em .7em; }
.expiry-controls .danger-link { margin-top: 0; }
.expiry .hint { margin: .7em 0 0; }
