/* Reveleto: playful, high-contrast "paper and ink" system.
   Ink borders + hard offset shadows, bright blocks, grid-paper backgrounds. */

:root {
  --ink: #1a1430;
  --ink-soft: #3b3352;
  --muted: #5d5570;
  --paper: #fff7ec;
  --card: #fffdf8;
  --pink: #ff5c8a;
  --pink-deep: #e23d6d;
  --sun: #ffd23f;
  --lilac: #b8a4ff;
  --mint: #6fe0b8;
  --sky: #8cc8ff;
  --coral: #ff8a5c;
  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 16px;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.grid-paper {
  background-image:
    linear-gradient(rgba(26, 20, 48, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 20, 48, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
}
.h2 { font-size: clamp(38px, 6vw, 68px); }
.h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 36ch; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 16px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: var(--line); border-radius: 999px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1 var(--sans);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: var(--line); border-radius: 14px;
  background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow);
  font: 700 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }
.btn-pink { --bg: var(--pink); --fg: #fff; }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-light { --bg: var(--card); --fg: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 8px 4px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 247, 236, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: var(--line); border-radius: 10px; background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 18px; transform: rotate(-6deg);
}
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-switch { font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.lang-switch:hover { background: rgba(26, 20, 48, .07); }
.header-cta { min-height: 38px; padding: 0 12px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; border-bottom: var(--line); }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero .hero-title { font-size: clamp(46px, 9vw, 104px); margin: 20px 0 22px; }
.hero-h1 { margin: 0; }
.hero .hero-title .block {
  display: inline-block; margin-top: 8px;
  padding: 2px 14px 8px;
  background: var(--pink); color: #fff;
  border: var(--line); box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.reassure li::before { content: "✓"; margin-right: 6px; color: var(--pink-deep); font-weight: 800; }
.shape { position: absolute; border: var(--line); z-index: -1; }
.shape-a { width: 220px; height: 220px; border-radius: 50%; background: var(--sun); right: -80px; top: 40px; }
.shape-b { width: 140px; height: 140px; background: var(--sky); left: -80px; bottom: -40px; transform: rotate(12deg); }

/* Phone mockup used by hero and demo */
.phone {
  width: min(330px, 100%);
  margin-inline: auto;
  border: 3px solid var(--ink); border-radius: 40px;
  background: var(--ink); padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 20px; translate: -50% 0; background: var(--ink); border-radius: 12px; z-index: 2; }
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 31px; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 56px 22px 28px;
}
.hero-visual { position: relative; }
.sticker {
  position: absolute; z-index: 3;
  padding: 10px 14px; border: var(--line); border-radius: 12px;
  background: var(--card); box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1.25 var(--sans);
}
.sticker small { display: block; font-weight: 500; color: var(--muted); }
.sticker-1 { left: -4px; top: 70px; transform: rotate(-5deg); }
.sticker-2 { right: -4px; bottom: 90px; transform: rotate(4deg); background: var(--mint); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-bottom: var(--line); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 14px 22px; font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker span:nth-child(odd) { color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; border-bottom: var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 52ch; color: var(--ink-soft); font-size: 18px; }
.bg-sun { background-color: var(--sun); }
.bg-pink { background-color: #ffd0dd; }
.bg-sky { background-color: #d7ebff; }
.bg-lilac { background-color: #e6deff; }
.bg-ink { background: var(--ink); color: #fff; }

/* Demo */
.demo { display: grid; gap: 40px; align-items: center; }
.demo-points { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.demo-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.demo-points b { display: block; font-family: var(--display); font-size: 18px; }
.demo-points span { color: var(--muted); font-size: 15px; }
.num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--sun); font-weight: 800; font-size: 14px; }

/* Occasions */
.occasions { display: grid; gap: 16px; grid-template-columns: 1fr; }
.occasion {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; min-height: 190px;
  padding: 22px; border: var(--line); border-radius: var(--radius);
  background: var(--c, var(--card)); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.occasion:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.occasion .glyph { width: 52px; height: 52px; display: grid; place-items: center; border: var(--line); border-radius: 14px; background: var(--card); font-size: 26px; }
.occasion strong { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; margin-top: auto; }
.occasion small { font-size: 15px; color: var(--ink-soft); }
.occasion .go { position: absolute; right: 18px; top: 18px; font-weight: 800; }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px; border: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.steps .big { font: 800 64px/1 var(--display); color: var(--pink); -webkit-text-stroke: 2px var(--ink); }
.steps h3 { margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Group */
.group { display: grid; gap: 40px; align-items: center; }
.notes-stack { position: relative; display: grid; gap: 14px; max-width: 420px; margin-inline: auto; }
.note-card { padding: 18px 20px; border: var(--line); border-radius: 14px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.note-card:nth-child(1) { transform: rotate(-2deg); background: #fff3c4; }
.note-card:nth-child(2) { transform: rotate(1.5deg) translateX(18px); background: #ffe0e9; }
.note-card:nth-child(3) { transform: rotate(-1deg); background: #dff6ee; }
.note-card p { margin: 0 0 8px; font: 22px/1.25 var(--serif); font-style: italic; }
.note-card cite { font-style: normal; font-weight: 700; font-size: 14px; }

/* Features */
.features { display: grid; gap: 16px; }
.feature { padding: 24px; border: var(--line); border-radius: var(--radius); background: var(--card); }
.feature .glyph { font-size: 26px; margin-bottom: 12px; }
.feature p { margin: 8px 0 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 700 18px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border: var(--line); border-radius: 50%; font: 800 18px/1 var(--sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--ink-soft); }

/* Closing */
.closing { text-align: center; padding: 96px 0; }
.closing .display { font-size: clamp(42px, 8vw, 92px); }
.closing .serif { color: var(--sun); }
.closing p { color: #d9d3ea; font-size: 18px; margin: 22px auto 34px; max-width: 46ch; }

/* Footer */
.footer { padding: 40px 0 120px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* Floating CTA pill */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 40;
  translate: -50% 140%; opacity: 0;
  transition: translate .3s ease, opacity .3s;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 20px; border: var(--line); border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink);
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.float-cta.show { translate: -50% 0; opacity: 1; }
.float-cta .pill { padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 13px; }

/* ---------- Creator dialog ---------- */
dialog.creator {
  width: min(1040px, 100% - 16px); max-height: calc(100dvh - 16px);
  padding: 0; border: 3px solid var(--ink); border-radius: 22px;
  background: var(--paper); box-shadow: var(--shadow-lg); color: var(--ink);
  overflow: hidden;
}
dialog.creator::backdrop { background: rgba(26, 20, 48, .6); backdrop-filter: blur(3px); }
dialog.creator[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.creator-layout { display: grid; max-height: calc(100dvh - 22px); }
.creator-main { padding: 22px 20px 24px; overflow-y: auto; }
.creator-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress span { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); }
.progress span.on { background: var(--pink); }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 20px; line-height: 1; }
.icon-btn:hover { background: var(--sun); }
.step h2 { font: 800 clamp(30px, 4vw, 40px)/1 var(--display); letter-spacing: -.03em; margin: 6px 0 8px; }
.step .hint { color: var(--muted); margin: 0 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; border: var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.tile[aria-pressed="true"] { background: var(--c, var(--sun)); box-shadow: 4px 4px 0 var(--ink); }
.tile .glyph { font-size: 22px; }
.tile strong { font: 700 16px/1.2 var(--display); }
.tile small { color: var(--ink-soft); font-size: 13px; line-height: 1.35; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: var(--line); border-radius: 12px; background: var(--card);
  font-size: 16px; transition: box-shadow .12s;
}
.input:focus { outline: none; box-shadow: 4px 4px 0 var(--pink); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.inspire { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.inspire button { padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; }
.inspire button:hover { background: var(--sun); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.swatch { padding: 10px; border: var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; font-weight: 700; font-size: 13px; }
.swatch i { display: block; height: 44px; border: 2px solid var(--ink); border-radius: 10px; margin-bottom: 8px; }
.swatch[aria-pressed="true"] { box-shadow: 4px 4px 0 var(--ink); background: var(--sun); }
.when { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.when button { padding: 10px 14px; border: var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 700; font-size: 14px; }
.when button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.when-note { font-size: 14px; color: var(--muted); min-height: 22px; margin: 0 0 8px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.error { margin: 14px 0 0; padding: 12px 14px; border: var(--line); border-radius: 12px; background: #ffe0e9; font-weight: 600; }
.error:empty { display: none; }

.creator-preview { display: none; }
.share-box { display: flex; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--card); margin: 8px 0 12px; }
.share-box code { flex: 1; min-width: 0; padding: 14px; font: 600 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-box button { flex: none; padding: 0 18px; border: 0; border-left: var(--line); background: var(--sun); font-weight: 800; cursor: pointer; }
.share-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.keep { padding: 14px 16px; border: 2px dashed var(--ink); border-radius: 14px; background: #fff3c4; font-size: 14px; margin: 0 0 16px; }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--mint); box-shadow: var(--shadow); font-size: 34px; margin-bottom: 18px; }

/* ---------- Reveal card (recipient + previews) ---------- */
.theme-violet { --t-bg: #2a1f52; --t-card: #3a2c6e; --t-accent: #b8a4ff; --t-text: #fff; --t-soft: #e3dcff; }
.theme-rose { --t-bg: #ffd0dd; --t-card: #fff5f8; --t-accent: #ff5c8a; --t-text: var(--ink); --t-soft: #6b3a4b; }
.theme-sun { --t-bg: #ffd23f; --t-card: #fffaf0; --t-accent: #ff8a5c; --t-text: var(--ink); --t-soft: #5e4a17; }
.theme-mint { --t-bg: #bff0de; --t-card: #f6fffb; --t-accent: #1f9e78; --t-text: var(--ink); --t-soft: #2d5a4b; }
.theme-sky { --t-bg: #cfe6ff; --t-card: #f7fbff; --t-accent: #3a7bd5; --t-text: var(--ink); --t-soft: #2f4a6b; }
.theme-night { --t-bg: #0f0c1d; --t-card: #1c1733; --t-accent: #ffd23f; --t-text: #fff; --t-soft: #cfc8e6; }

.mini-reveal {
  background: var(--t-bg); color: var(--t-text);
  border-radius: 31px; min-height: 560px; padding: 64px 22px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  transition: background .3s;
}
.mini-reveal .for { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.mini-reveal .name { font: 800 46px/1 var(--display); letter-spacing: -.03em; margin: 6px 0 4px; word-break: break-word; }
.mini-reveal .gift { font-size: 64px; margin: 14px 0; animation: bob 2.6s ease-in-out infinite; }
.mini-reveal .headline { font: 26px/1.15 var(--serif); font-style: italic; margin: 6px 0 10px; }
.mini-reveal .msg { font-size: 14px; line-height: 1.5; opacity: .9; max-height: 140px; overflow: hidden; white-space: pre-line; }
.mini-reveal .from { font: 22px/1 var(--serif); font-style: italic; margin-top: 12px; }
.mini-count { display: flex; gap: 6px; margin: 12px 0; }
.mini-count div { min-width: 56px; padding: 8px 4px; border: 2px solid currentColor; border-radius: 12px; background: var(--t-card); color: var(--t-text); }
.mini-count b { display: block; font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.mini-count small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* ---------- Recipient / manage / join pages ---------- */
.app-body { min-height: 100dvh; }
.stage {
  min-height: 100dvh; padding: 24px var(--gutter) 48px;
  display: grid; place-items: center;
  background-color: var(--t-bg); color: var(--t-text);
  /* clip, not hidden: hidden would make the stage a scroll container and
     break scrollIntoView for the gift and the revealed content. */
  position: relative; overflow: clip;
}
.stage.grid-paper { background-image: linear-gradient(color-mix(in srgb, var(--t-text) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--t-text) 8%, transparent) 1px, transparent 1px); }
.stage-card {
  width: min(680px, 100%); position: relative; z-index: 1;
  padding: 44px 22px 34px; text-align: center;
  border: 3px solid var(--ink); border-radius: 26px;
  background: var(--t-card); color: var(--t-text);
  box-shadow: var(--shadow-lg);
}
.stage-card .for { font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--t-soft); margin: 0; }
.stage-card h1 { font: 800 clamp(48px, 12vw, 92px)/.95 var(--display); letter-spacing: -.04em; margin: 12px 0 6px; word-break: break-word; }
.stage-card .sub { color: var(--t-soft); font-size: 17px; margin: 8px auto 0; max-width: 34ch; }
.gift-btn {
  display: inline-grid; place-items: center; gap: 4px;
  margin: 26px auto 8px; padding: 22px 30px 18px;
  border: 3px solid var(--ink); border-radius: 22px;
  background: var(--t-accent); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer;
  font: 800 18px/1.1 var(--display);
  transition: transform .15s, box-shadow .15s;
}
.gift-btn .g { font-size: 64px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
.gift-btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.gift-btn:is([disabled], .sealed) { cursor: default; filter: grayscale(.3); opacity: .85; transform: none; box-shadow: var(--shadow); }
.gift-btn.opening .g { animation: shake .5s ease-in-out 2; }
@keyframes shake { 25% { transform: rotate(-12deg) scale(1.08); } 75% { transform: rotate(12deg) scale(1.08); } }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 24px 0 6px; }
.countdown div { min-width: 70px; padding: 12px 6px 10px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.countdown b { display: block; font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opens-at { color: var(--t-soft); font-weight: 600; margin: 10px 0 0; }
.reveal-content { text-align: left; margin-top: 28px; }
.reveal-content[hidden] { display: none; }
.reveal-content.shown { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.reveal-headline { font: 400 clamp(34px, 6vw, 48px)/1.08 var(--serif); font-style: italic; text-align: center; margin: 0 0 22px; }
.reveal-message { font-size: 19px; line-height: 1.7; white-space: pre-line; margin: 0; }
.reveal-from { font: 30px/1 var(--serif); font-style: italic; text-align: right; margin: 22px 0 0; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.photos img, .photos button { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }
.photos button { padding: 0; cursor: zoom-in; overflow: hidden; }
.photos button img { border: 0; border-radius: 0; }
.photos:has(> :only-child) { grid-template-columns: 1fr; }
.notes-wall { margin-top: 34px; display: grid; gap: 12px; }
.notes-wall h2, .stage-card h2 { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.notes-wall blockquote { margin: 0; padding: 16px 18px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.notes-wall blockquote:nth-child(3n+1) { background: #fff3c4; }
.notes-wall blockquote:nth-child(3n+2) { background: #ffe0e9; }
.notes-wall blockquote:nth-child(3n) { background: #dff6ee; }
.notes-wall blockquote p { margin: 0 0 8px; font: 20px/1.35 var(--serif); font-style: italic; white-space: pre-line; }
.notes-wall cite { font-style: normal; font-weight: 700; font-size: 14px; }
.reply { margin-top: 30px; padding-top: 24px; border-top: 2.5px dashed currentColor; }
.reply .input { color: var(--ink); }
.pass-it-on { margin-top: 30px; padding: 20px; border: 3px solid var(--ink); border-radius: 18px; background: var(--sun); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.pass-it-on p { margin: 0 0 12px; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15, 12, 29, .9); border: 0; cursor: zoom-out; }
.lightbox img { max-height: 90dvh; border: 3px solid #fff; border-radius: 14px; }
.brand-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--t-soft); }
.brand-foot a { font-weight: 700; }

.confetti { position: fixed; z-index: 70; top: -20px; width: 10px; height: 16px; border: 1.5px solid var(--ink); pointer-events: none; animation: fall var(--d, 2.4s) cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }

/* Manage */
.manage { padding: 28px 0 100px; }
.manage-grid { display: grid; gap: 22px; }
.panel { padding: 22px; border: var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.panel h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.panel > p { margin: 0 0 16px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--mint); }
.status.locked { background: var(--sun); }
.status.off { background: #ffd0dd; }
.manage h1 { font: 800 clamp(36px, 6vw, 60px)/1 var(--display); letter-spacing: -.035em; margin: 14px 0 8px; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.upload-grid figure { position: relative; margin: 0; aspect-ratio: 1; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); }
.upload-grid img { width: 100%; height: 100%; object-fit: cover; }
.upload-grid figure button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer; font-weight: 800; }
.upload-grid figure.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='%231a1430' stroke-width='4' stroke-dasharray='60 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 40px no-repeat; }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2.5px dashed var(--ink); border-radius: 14px; background: var(--paper); text-align: center; cursor: pointer; font-weight: 700; }
.dropzone.over { background: var(--sun); }
.dropzone small { font-weight: 500; color: var(--muted); }
.note-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1.5px solid rgba(26, 20, 48, .15); }
.note-row:last-child { border-bottom: 0; }
.note-row div { flex: 1; min-width: 0; }
.note-row p { margin: 2px 0 0; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 0; padding: 12px 18px; border: var(--line); border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); font-weight: 700; animation: rise .25s ease; max-width: calc(100% - 32px); }
.toast.bad { background: #ffe0e9; color: var(--ink); }
.empty { color: var(--muted); font-style: italic; margin: 0; }
.center-page { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .occasions { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .swatches { grid-template-columns: repeat(6, 1fr); }
  .stage-card { padding: 54px 44px 40px; }
  .photos { grid-template-columns: repeat(3, 1fr); }
  .upload-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions { margin-left: 18px; }
  .header-cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .demo, .group { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding: 110px 0; }
  .section-head { grid-template-columns: 1.2fr .8fr; align-items: end; }
  .occasions { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .creator-layout { grid-template-columns: 1.15fr .85fr; }
  .creator-main { padding: 30px 34px 30px; }
  .creator-preview { display: grid; place-items: center; padding: 28px; border-left: 3px solid var(--ink); background: var(--sun); }
  .creator-preview .phone { width: 290px; }
  .creator-preview .mini-reveal { min-height: 500px; }
  .manage-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .countdown div { min-width: 62px; }
  .countdown b { font-size: 28px; }
  .share-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Fixes ---------- */
/* Component display rules must never beat the hidden attribute. */
[hidden] { display: none !important; }
.gift-btn { display: grid; }
.cal-btn { display: flex; width: fit-content; margin: 14px auto 0; }
.creator-preview .mini-reveal { min-height: min(500px, calc(100dvh - 120px)); }
.creator-preview .phone { width: min(290px, calc((100dvh - 90px) * .56)); }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px; border: var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.price-card.popular { background: #fff0f4; box-shadow: var(--shadow-lg); }
.price-sub { margin: 0; color: var(--muted); }
.price { margin: 6px 0 4px; font: 800 44px/1 var(--display); letter-spacing: -.03em; }
.price small { font: 600 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.perks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); font: 800 11px/1 var(--sans); }
.price-card .btn { margin-top: auto; }
.badge { position: absolute; top: -14px; left: 20px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font: 800 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-3deg); }
.price-fine { margin: 26px 0 0; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* Plan picker (creator + creator studio) */
.plans { display: grid; gap: 10px; margin: 6px 0 16px; }
.plan { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; text-align: left; padding: 16px 16px 14px; border: var(--line); border-radius: 16px; background: var(--card); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.plan:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.plan[aria-checked="true"] { background: #fff0f4; box-shadow: 5px 5px 0 var(--pink); }
.plan[aria-checked="true"]::after { content: "✓"; position: absolute; right: -10px; top: -10px; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; }
.plan strong { font: 800 19px/1.1 var(--display); }
.plan .plan-price { font: 800 22px/1 var(--display); }
.plan small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.plan .perks { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; gap: 4px; }
.plan .perks li::before { width: 16px; height: 16px; font-size: 9px; margin-right: 6px; }
.plan .badge { top: -12px; left: auto; right: 22px; font-size: 10px; padding: 4px 9px; }
.secure { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.draft-panel { background: #fff0f4; }
.plan-line { margin: 0; font-weight: 700; color: var(--ink-soft); }
details.upgrade summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
details.upgrade summary::-webkit-details-marker { display: none; }
details.upgrade summary span { color: var(--muted); font-size: 14px; }
details.upgrade[open] summary { margin-bottom: 12px; }
details.upgrade strong { font: 800 20px/1.1 var(--display); }
details.upgrade strong::after { content: " ↓"; }

@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .plan { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .price-card.popular { transform: translateY(-10px); }
}

/* ---------- Occasion pages ---------- */
.occasion-hero { background-color: var(--c, var(--paper)); }
.occasion-hero h1 { font-size: clamp(40px, 6.5vw, 76px); margin: 14px 0 20px; }
.crumbs { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.cta-sub { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.ideas { display: grid; gap: 16px; }
.idea { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.idea blockquote { margin: 0; font: 22px/1.35 var(--serif); font-style: italic; }
.idea .btn { align-self: flex-start; margin-top: auto; }
.more-occasions { margin-top: 40px; }
.more-occasions > div, .guide-links { display: flex; flex-wrap: wrap; gap: 10px; }
.more-occasions .chip { text-decoration: none; }
.guide-links { margin-top: 26px; }
.guide-links a { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; text-decoration: none; }
.guide-links a:hover { background: var(--sun); }
.footer nav a + a { margin-left: 0; }
@media (min-width: 900px) {
  .ideas { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile creator: full-screen live preview on demand */
.preview-back { display: none; }
@media (max-width: 899px) {
  dialog.creator.show-preview .creator-preview { display: grid; place-items: center; align-content: center; gap: 16px; position: absolute; inset: 0; z-index: 5; padding: 18px; background: var(--sun); overflow-y: auto; }
  dialog.creator.show-preview .preview-back { display: inline-flex; }
  .creator-preview .mini-reveal { min-height: min(520px, calc(100dvh - 140px)); }
}
@media (min-width: 900px) {
  .preview-toggle { display: none; }
}


/* Draft restore note, preview banner, staged reveal */
.draft-note { margin: -8px 0 16px; padding: 10px 14px; border: 2px dashed var(--ink); border-radius: 12px; background: #fff3c4; font-size: 14px; font-weight: 600; }
.draft-note .link-btn { padding: 0; font-size: 14px; }
.preview-banner { position: sticky; top: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; width: min(680px, 100%); margin: 0 auto 16px; padding: 10px 14px; border: var(--line); border-radius: 14px; background: var(--sun); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 14px; }
.stage:has(.preview-banner) { align-content: start; }
.reveal-content.shown > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 160ms); }


/* Guides */
.guide-head { padding-bottom: 56px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--pink); color: #fff; }
.guide-more { grid-column: 1 / -1; margin: 0 0 4px; }


/* Printable QR card */
.print-sheet { display: none; }
@media print {
  @page { size: A5; margin: 12mm; }
  body.printing-card > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: grid !important; place-items: center; min-height: 100vh; }
  .print-card { width: 120mm; padding: 14mm 10mm 10mm; border: 1mm solid #1a1430; border-radius: 6mm; background: var(--t-card); color: var(--t-text); text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-card .for { font: 700 9pt var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0; }
  .print-card .name { font: 800 30pt/1 var(--display); margin: 4mm 0 6mm; }
  .print-card .qr { width: 52mm; margin: 0 auto; padding: 3mm; background: #fff; border: .6mm solid #1a1430; border-radius: 3mm; }
  .print-card .qr svg { display: block; width: 100%; height: auto; }
  .print-card .scan { font: 700 11pt var(--sans); margin: 5mm 0 1mm; }
  .print-card .when { font: 10pt var(--sans); margin: 0; }
  .print-card .from { font: italic 16pt var(--serif); margin: 6mm 0 2mm; }
  .print-card .brand-line { font: 700 8pt var(--sans); opacity: .7; margin: 0; }
}


/* ---------- The reveal moment ---------- */
.gift-art { position: relative; display: block; width: 92px; height: 86px; margin: 0 auto 6px; }
.gift-art i { position: absolute; display: block; border: 3px solid var(--ink); }
.gift-art .box { left: 10px; right: 10px; bottom: 0; height: 52px; border-radius: 6px; background: var(--pink); }
.gift-art .lid { left: 2px; right: 2px; top: 22px; height: 18px; border-radius: 6px; background: var(--pink); transform-origin: 20% 100%; z-index: 2; }
.gift-art .ribbon { left: 50%; width: 16px; top: 22px; bottom: 0; translate: -50% 0; background: var(--sun); border-top: 0; border-bottom: 0; z-index: 3; }
.gift-art .bow { left: 50%; top: 2px; width: 44px; height: 24px; translate: -50% 0; border-radius: 50% 50% 40% 40%; background: var(--sun); z-index: 4; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08); }
.gift-btn .gift-art { animation: bob 2.4s ease-in-out infinite; }
.gift-btn:is([disabled], .sealed) .gift-art { animation: none; filter: saturate(.6); }
.gift-btn.opening .gift-art { animation: shake .45s ease-in-out 2; }
.gift-btn.opening .lid, .gift-btn.opening .bow { animation: lid-off .8s .7s cubic-bezier(.3, .6, .3, 1) forwards; }
.gift-btn.opening .ribbon { animation: fade-out .3s .7s forwards; }
.gift-btn.opening::after { content: ""; position: absolute; left: 50%; top: 30%; width: 20px; height: 20px; translate: -50% -50%; border-radius: 50%; background: #fff7c2; box-shadow: 0 0 60px 30px #fff2a8; opacity: 0; animation: glow 1s .8s ease-out forwards; pointer-events: none; }
.gift-btn { position: relative; }
@keyframes lid-off { to { transform: translate(60px, -140px) rotate(55deg); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes glow { 40% { opacity: 1; } to { opacity: 0; transform: scale(6); } }

.sound-toggle { position: fixed; top: 14px; right: 14px; z-index: 30; width: 46px; height: 46px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--card); box-shadow: 3px 3px 0 var(--ink); font-size: 20px; cursor: pointer; }
.reveal-message.typing::after { content: "▍"; animation: blink .8s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.reactions { margin-top: 26px; text-align: center; }
.reactions p { margin: 0 0 10px; font-weight: 700; color: var(--t-soft); }
.reaction-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reaction-row button { width: 54px; height: 54px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); font-size: 26px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s; }
.reaction-row button:hover { transform: translateY(-3px) scale(1.06); }
.reaction-row button.sent { background: var(--sun); }
.float-emoji { position: fixed; z-index: 75; font-size: 30px; pointer-events: none; animation: float-up 1.8s ease-out both; }
@keyframes float-up { from { transform: translate(-50%, 0) scale(.6); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), -220px) scale(1.3); opacity: 0; } }

/* Polaroid carousel */
.photos.polaroids { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 6px 22px; margin-inline: -6px; }
.photos.polaroids > button { flex: 0 0 min(78%, 300px); aspect-ratio: auto; scroll-snap-align: center; padding: 10px 10px 40px; border: 2.5px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.photos.polaroids > button:nth-child(odd) { transform: rotate(-2deg); }
.photos.polaroids > button:nth-child(even) { transform: rotate(2deg); }
.photos.polaroids > button img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 2px; }

.opened-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.reaction-summary { display: inline-flex; gap: 8px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; }

/* The drawn gift needs a neutral backdrop to stand out on every theme. */
.gift-btn { background: var(--paper); }
.gift-btn:not([disabled], .sealed) { box-shadow: 5px 5px 0 var(--t-accent, var(--pink)), 5px 5px 0 2.5px var(--ink); }


/* Countdown teaser, creator tips, keep-link panel */
.waiting-notes { display: inline-block; margin: 14px auto 0; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; }
.tips { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.tips li { padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #fff3c4; font-weight: 600; }
.keep-panel { background: #eef8ff; }


/* Hero quick-start */
.hero-start { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 560px; }
.hero-start input { flex: 1 1 220px; min-height: 56px; padding: 0 18px; border: var(--line); border-radius: 14px; background: var(--card); font-size: 17px; box-shadow: var(--shadow); }
.hero-start input:focus { outline: none; box-shadow: 5px 5px 0 var(--pink); }
.hero-start .btn { min-height: 56px; }
.hero .hero-ctas { margin-top: 14px; }

/* Last minute, unlocked, after the reveal */
.countdown.soon div { animation: pulse 1s ease-in-out infinite; background: var(--sun); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.gift-btn.ready { animation: ready-breathe 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes ready-breathe { 50% { transform: scale(1.035) rotate(-1deg); } }
.after-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 26px; }
.after-actions .link-btn { color: inherit; font-size: 15px; }

/* Keepsake print of an opened surprise */
@media print {
  body:not(.printing-card) .stage { background: #fff !important; min-height: 0; padding: 0; }
  body:not(.printing-card) .stage-card { box-shadow: none; border-width: 1.5px; }
  body:not(.printing-card) :is(.sound-toggle, .reactions, .reply, .pass-it-on, .after-actions, .preview-banner, .brand-foot, .confetti, .float-emoji) { display: none !important; }
  body:not(.printing-card) .photos.polaroids { flex-wrap: wrap; overflow: visible; }
  body:not(.printing-card) .photos.polaroids > button { flex-basis: 30%; transform: none; box-shadow: none; }
  body:not(.printing-card) * { animation: none !important; }
}


/* Watch-it-open preview before paying */
.watch-cta { display: grid; gap: 6px; margin: 4px 0 18px; text-align: center; }
.watch-cta small { color: var(--muted); font-size: 13px; }
dialog.watch-overlay { width: min(460px, 100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; border: 3px solid var(--ink); border-radius: 24px; background: var(--sun); box-shadow: var(--shadow-lg); display: grid; gap: 12px; justify-items: center; overflow: auto; }
dialog.watch-overlay:not([open]) { display: none; }
dialog.watch-overlay::backdrop { background: rgba(26, 20, 48, .7); backdrop-filter: blur(3px); }
.watch-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 18px; }
.watch-phone { width: 100%; height: min(680px, calc(100dvh - 190px)); border: 3px solid var(--ink); border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: 6px 6px 0 var(--ink); }
.watch-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: var(--paper); }
dialog.watch-overlay > .btn { width: 100%; }


/* Voice message, teaser, reminders */
.teaser-bubble { position: relative; display: inline-block; margin: 16px auto 0; padding: 12px 18px; border: 2.5px solid var(--ink); border-radius: 18px 18px 18px 4px; background: var(--paper); color: var(--ink); font: 20px/1.3 var(--serif); font-style: italic; box-shadow: 3px 3px 0 var(--ink); max-width: 90%; }
.voice-wrap { display: flex; justify-content: center; margin-top: 24px; }
.voice-player { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--t-accent, var(--pink)); color: var(--ink); font: 800 17px var(--display); box-shadow: var(--shadow); cursor: pointer; }
.voice-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.voice-bars i { width: 4px; height: 8px; border-radius: 2px; background: var(--ink); }
.voice-player.playing .voice-bars i { animation: eq .8s ease-in-out infinite; }
.voice-player.playing .voice-bars i:nth-child(2) { animation-delay: .1s; }
.voice-player.playing .voice-bars i:nth-child(3) { animation-delay: .2s; }
.voice-player.playing .voice-bars i:nth-child(4) { animation-delay: .3s; }
.voice-player.playing .voice-bars i:nth-child(5) { animation-delay: .4s; }
@keyframes eq { 50% { height: 22px; } }
.voice-panel audio { width: 100%; margin-bottom: 10px; }
.voice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.voice-actions.recording { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #ffe0e9; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #e0263d; animation: blink 1s steps(1) infinite; }
.rec-timer { font: 800 20px var(--display); font-variant-numeric: tabular-nums; }


/* ---------- Recipient polish: ambient layer, bursts, halo ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient span { position: absolute; bottom: -40px; color: var(--t-text); opacity: .18; animation: drift linear infinite; }
@keyframes drift { from { transform: translateY(0) rotate(0); } to { transform: translateY(calc(-100dvh - 80px)) rotate(200deg); } }
.stage > .stage-card, .stage > .brand-foot, .stage > .preview-banner { position: relative; z-index: 1; }
.rise-emoji { position: fixed; bottom: -60px; z-index: 72; pointer-events: none; animation: rise-up 4.2s cubic-bezier(.25, .6, .3, 1) forwards; }
@keyframes rise-up { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--sway), -55vh) scale(1); } 100% { transform: translate(calc(var(--sway) * -1), -115vh) scale(1.1); opacity: .9; } }
.gift-btn:not([disabled], .sealed)::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 34px; background: radial-gradient(closest-side, color-mix(in srgb, var(--t-accent, var(--pink)) 55%, transparent), transparent); animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .ambient { display: none; } }

/* Branded loading state for app pages */
.loading-gift { display: grid; justify-items: center; gap: 16px; }
.loading-gift .gift-art { animation: bob 1.6s ease-in-out infinite; }
.loading-gift p { margin: 0; font: 800 20px var(--display); letter-spacing: .3em; opacity: .7; }

/* Sealed gift: keep the colours, show a lock instead of greying out */
.gift-btn { isolation: isolate; }
.gift-btn:is([disabled], .sealed) { opacity: 1; filter: none; }
.gift-btn:is([disabled], .sealed) .gift-art { filter: none; }
.gift-btn:is([disabled], .sealed) .gift-art::after { content: "🔒"; position: absolute; right: -14px; bottom: -6px; z-index: 6; display: grid; place-items: center; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--sun); font-size: 16px; box-shadow: 2px 2px 0 var(--ink); }
.ambient span { opacity: .28; }


/* Landing audit fixes */
.hero-gift { margin: 18px auto 14px; animation: bob 2.6s ease-in-out infinite; }
.feature-hl { background: #fff3c4; box-shadow: 4px 4px 0 var(--ink); }
.feature-hl:nth-child(2) { background: #ffe0e9; }
.feature-hl:nth-child(3) { background: #dff6ee; }

/* Mobile recipient fixes */
.photos.polaroids { scrollbar-width: none; }
.photos.polaroids::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .sound-toggle { top: auto; bottom: 14px; right: 14px; width: 42px; height: 42px; font-size: 18px; }
  .reaction-row { gap: 6px; flex-wrap: nowrap; }
  .reaction-row button { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
}

/* Mobile plan picker: only the chosen plan lists its perks */
@media (max-width: 640px) {
  .plan:not([aria-checked="true"]) .perks { display: none; }
  .plan { padding: 14px 14px 12px; }
}

/* Mobile creator: keep Back / Continue / Create within reach */
@media (max-width: 899px) {
  .creator-main .step-actions { position: sticky; bottom: -24px; z-index: 3; margin: 18px -20px -24px; padding: 12px 20px 16px; background: var(--paper); border-top: 2px solid var(--ink); }
}

/* The creator body must scroll inside the dialog on every screen size;
   without a height cap the grid row grew past the clipped dialog and the
   Create button was unreachable on phones. */
.creator-main { max-height: calc(100dvh - 22px); min-height: 0; }


/* ---------- Story player (message, notes and photos, one at a time) ---------- */
.story-cta { margin: 22px auto 0; display: flex; }
.story { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr; padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); background: #1a1430; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; transition: background .5s; }
.story[data-tone="1"] { background: #3a1238; }
.story[data-tone="2"] { background: #102a3a; }
.story-bars { display: flex; gap: 4px; max-width: 640px; width: 100%; margin: 0 auto; padding-right: 44px; }
.story-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: #fff; }
.story-bars i.done b { width: 100%; animation: none !important; }
@keyframes story-fill { from { width: 0; } to { width: 100%; } }
.story-close { position: absolute; top: max(4px, env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.story-body { display: grid; place-items: center; min-height: 0; padding: 20px 0; }
.story-note { margin: 0; max-width: 620px; text-align: center; }
.story-note blockquote { margin: 0; font: italic clamp(24px, 5.5vw, 40px)/1.3 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.story-note .story-head { margin: 0 0 18px; font: 800 14px var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.story-note figcaption { margin-top: 22px; font-weight: 800; font-size: 17px; color: #ffd84d; }
.story-photo { max-width: min(100%, 620px); max-height: calc(100dvh - 130px); object-fit: contain; border: 6px solid #fff; border-bottom-width: 26px; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); }
.story-end { text-align: center; display: grid; gap: 10px; justify-items: center; }
.story-end .story-big { margin: 0; font: 800 clamp(34px, 8vw, 56px)/1.05 var(--display); }
.story-end p { margin: 0 0 8px; font-size: 18px; opacity: .85; }
.story-in { animation: story-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes story-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .story-in { animation: none; } }
@media print { .story, .story-cta { display: none !important; } }


/* ---------- Sealed gift: tap to rattle ---------- */
.gift-btn.sealed { cursor: pointer; }
.gift-btn.rattle .gift-art { animation: rattle .55s cubic-bezier(.36, .07, .19, .97); }
@keyframes rattle { 15% { transform: rotate(-9deg) translateY(-4px); } 35% { transform: rotate(8deg); } 55% { transform: rotate(-6deg) translateY(-2px); } 75% { transform: rotate(4deg); } 100% { transform: none; } }
.gift-btn.sealed > span:last-child { min-height: 1.4em; }

/* ---------- Final ten seconds ---------- */
.final-count { position: fixed; inset: 0; z-index: 75; display: grid; place-content: center; justify-items: center; gap: 8px; background: color-mix(in srgb, #1a1430 82%, transparent); color: #fff; pointer-events: none; backdrop-filter: blur(4px); animation: fade-in .4s ease-out; }
.final-count p { margin: 0; font: 800 16px var(--display); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.final-count b { font: 800 clamp(140px, 40vw, 280px)/1 var(--display); font-variant-numeric: tabular-nums; color: #ffd84d; text-shadow: 6px 6px 0 #ff5c8a; }
.final-count b.pop { animation: count-pop 1s cubic-bezier(.16, 1, .3, 1); }
@keyframes count-pop { 0% { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.85); opacity: .2; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gift-btn.rattle .gift-art, .final-count b.pop { animation: none; } }


/* ---------- Creator studio: readiness meter ---------- */
.ready { margin-top: 20px; padding: 16px 18px; border: var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.ready.all { background: #dff6ee; }
.ready-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ready-head strong { font: 800 19px/1.2 var(--display); }
.ready-head span { font-weight: 800; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ready-bar { height: 12px; margin: 10px 0 12px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); overflow: hidden; }
.ready-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--pink), #ffd84d); transform-origin: left center; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.ready-items { display: flex; flex-wrap: wrap; gap: 8px; }
.ready-items button { min-height: 38px; padding: 6px 12px; border: 2px dashed var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.ready-items button:hover { background: #fff3c4; }
.ready-items button.ok { border-style: solid; background: #dff6ee; }
.panel.flash { animation: panel-flash 1.4s ease-out; }
@keyframes panel-flash { 0%, 40% { box-shadow: 0 0 0 5px #ffd84d, var(--shadow); } 100% { box-shadow: var(--shadow); } }
.panel { scroll-margin-top: 90px; }

/* ---------- After payment: next steps sheet ---------- */
.paid-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(15, 12, 29, .6); animation: fade-in .3s ease-out; }
.paid-card { position: relative; width: min(560px, 100%); margin: auto; padding: 28px 24px 22px; border: var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); text-align: center; animation: story-in .5s cubic-bezier(.2, .8, .2, 1); }
.paid-card h2 { margin: 6px 0 4px; font: 800 clamp(30px, 7vw, 42px)/1.05 var(--display); letter-spacing: -.02em; outline: none; }
.paid-sub { margin: 0 0 18px; color: var(--muted); }
.paid-gift { display: grid; place-items: center; }
.paid-gift .gift-art { animation: bob 2.4s ease-in-out infinite; }
.paid-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; text-align: left; }
.paid-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); }
.paid-steps h3 { margin: 4px 0 4px; font: 800 18px/1.2 var(--display); }
.paid-steps p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.paid-steps .share-box { margin-bottom: 10px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: #ffd84d; font: 800 16px var(--display); }
@media (max-width: 480px) { .paid-steps li { grid-template-columns: 1fr; } .step-n { width: 28px; height: 28px; font-size: 14px; } }
.paid-sheet { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.paid-steps li > div { min-width: 0; }
.paid-steps .share-box code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .paid-card { padding: 22px 16px 18px; } .paid-steps .share-actions .btn { flex: 1 1 40%; } }


/* ---------- Landing: example surprise and pay steps ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.example-btn { gap: 8px; }
.pay-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: none; }
.pay-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 16px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); }
.pay-steps .num { display: grid; place-items: center; width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 50%; background: #dff6ee; font: 800 17px var(--display); }
.pay-steps li:last-child .num { background: var(--pink); color: #fff; }
.pay-steps b { display: block; font: 800 17px/1.2 var(--display); margin: 2px 0 4px; }
.pay-steps small { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 760px) { .pay-steps { grid-template-columns: 1fr; } }
.closing-example { color: inherit; opacity: .85; }

/* Creator: reassurance at the commit point, and a clear "add more first" path */
.create-free { margin: 10px 0 0; text-align: right; font-size: 13px; }
.later-link { margin-top: 14px; }
.inspire button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .create-free { text-align: center; } }

.on-device { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--ink); }
.on-device div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 420px) { .header-cta { white-space: nowrap; padding-inline: 12px; font-size: 13px; } }

/* Creator step 4: add photos before paying */
.photo-adder { margin: 16px 0; padding: 14px; border: 2px dashed var(--ink); border-radius: 16px; background: var(--paper); }
.photo-adder-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-adder-head small { flex: 1 1 200px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.add-photos { cursor: pointer; }
.add-photos.busy { pointer-events: none; opacity: .7; }
.mini-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-thumbs:not(:empty) { margin-top: 12px; }
.mini-thumbs figure { margin: 0; width: 58px; height: 58px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.mini-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumbs figure.busy { opacity: .45; animation: pulse 1s ease-in-out infinite; }

.plan.too-small { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.plan .plan-note { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.pv-photos { display: flex; justify-content: center; margin: 12px 0 0; }
.pv-photos:empty { display: none; }
.pv-photos img { width: 54px; height: 62px; object-fit: cover; margin: 0 -8px; border: 3px solid #fff; border-bottom-width: 10px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transform: rotate(-6deg); }
.pv-photos img:nth-child(even) { transform: rotate(5deg) translateY(-3px); }
.pv-photos img:nth-child(n+6) { display: none; }

.mini-thumbs figure { position: relative; }
.mini-thumbs figure button { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; }

/* Join page: ideas and passing the invite on */
.note-ideas { margin-bottom: 14px; }
.join-share { margin-top: 26px; padding: 18px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: center; }
.join-share h2 { margin: 0 0 6px; font: 800 22px/1.15 var(--display); }
.join-share p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.join-share .share-actions { justify-content: center; }

.sent-seal { font-size: 84px; line-height: 1; margin: 6px 0 14px; animation: seal-in .7s cubic-bezier(.16, 1, .3, 1), bob 2.6s 0.7s ease-in-out infinite; filter: drop-shadow(4px 6px 0 rgba(26, 20, 48, .25)); }
@keyframes seal-in { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }

.reply-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 99px; background: #ffe0e9; font-size: 12px; font-weight: 800; vertical-align: 2px; }

/* ---------- Contrast (WCAG AA): white text only on deep enough pinks ---------- */
:root { --pink-btn: #db2a63; --muted: #4f4862; }
.btn-pink { --bg: var(--pink-btn); }
.hero .hero-title .block { background: var(--pink-deep); }
.pay-steps li:last-child .num { background: var(--pink-btn); }
.bg-pink .eyebrow { color: var(--ink); }


/* ---------- Drawn icon family (src/icons.mjs) ---------- */
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-inline { width: 1.1em; height: 1.1em; margin-right: .35em; vertical-align: -.2em; }
.occasion .glyph .icon { width: 26px; height: 26px; }
.feature .glyph { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border: var(--line); border-radius: 14px; background: var(--card); }
.feature .glyph .icon { width: 26px; height: 26px; }
.feature-hl .glyph { background: var(--paper); }
.tile .glyph { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 12px; background: var(--c, var(--card)); }
.tile .glyph .icon { width: 22px; height: 22px; }

/* ---------- Browser surfaces carry the design too ---------- */
::selection { background: var(--sun); color: var(--ink); }
html { scrollbar-color: var(--ink) transparent; accent-color: var(--pink-btn); }
input, textarea { caret-color: var(--pink-btn); }
a { text-underline-offset: .2em; text-decoration-thickness: .09em; }
.section-head h2 { margin-top: 0; }

/* ---------- Creator review (real proof, shown only with consent) ---------- */
.review-panel { background: #fff3c4; }
.review-stars, .review-stars-static { display: flex; gap: 6px; margin: 0 0 14px; }
.star-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.star-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; }
.star .icon { width: 36px; height: 36px; color: var(--ink); transition: transform .2s cubic-bezier(.16, 1, .3, 1), fill .15s; }
.review-stars-static .star .icon { width: 26px; height: 26px; }
.star.on .icon { fill: var(--sun); }
.star-btn:hover .icon, .star-btn:active .icon { transform: scale(1.12); }
.review-form .check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 14px; cursor: pointer; }
.review-form .check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.review-quote { margin: 0 0 12px; font: italic 20px/1.35 var(--serif); }
@media (prefers-reduced-motion: reduce) { .star .icon { transition: none; } }

/* ---------- Landing: real reviews ---------- */
.review-wall { display: grid; gap: 18px; }
@media (min-width: 760px) { .review-wall { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 0; padding: 22px; border: var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.review-card.tone-1 { background: #ffe0e9; }
.review-card.tone-2 { background: #dff6ee; }
.review-card blockquote { margin: 0; font: italic 21px/1.35 var(--serif); }
.review-card figcaption { font-size: 14px; color: var(--ink-soft); }
.review-card figcaption strong { color: var(--ink); }
.review-card .review-stars-static { margin: 0; }

.pay-down { margin: 14px 0 0; padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff3c4; text-align: left; }
.pay-down strong { display: block; font: 800 17px/1.2 var(--display); margin-bottom: 4px; }
.pay-down p { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }

/* Icon + label pairs in buttons, headings and small print */
.ic { display: inline-flex; vertical-align: -.18em; margin-right: .4em; }
.btn .ic { margin-right: 0; }
.ic .icon { width: 1.15em; height: 1.15em; }
.dropzone .drop-ic .icon { width: 30px; height: 30px; }

/* Phones: the device is the phone, so the preview goes full-screen */
@media (max-width: 640px) {
  dialog.watch-overlay { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 10px 10px max(10px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; box-shadow: none; grid-template-rows: auto 1fr auto; overflow: hidden; }
  .watch-top { font-size: 16px; }
  .watch-phone { height: 100%; min-height: 0; padding: 0; border-width: 2.5px; border-radius: 18px; box-shadow: none; }
  .watch-phone iframe { border-radius: 15px; }
}
/* Phones: on the last creator step the pay button stays within reach */
@media (max-width: 899px) {
  .creator-main [data-step="4"] .btn-block.btn-pink { position: sticky; bottom: 10px; z-index: 3; box-shadow: 3px 3px 0 var(--ink), 0 0 0 10px var(--paper); }
}

/* Story: the voice slide */
.story-voice { margin: 0; display: grid; justify-items: center; gap: 22px; text-align: center; }
.story-voice-orb { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--sun); color: var(--ink); border: 3px solid #fff; }
.story-voice-orb .icon { width: 56px; height: 56px; }
.story-voice-orb::before, .story-voice-orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: voice-ring 2s cubic-bezier(.16, 1, .3, 1) infinite; }
.story-voice-orb::after { animation-delay: 1s; }
@keyframes voice-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.story-voice figcaption { font: italic clamp(24px, 5vw, 34px)/1.25 var(--serif); }
@media (prefers-reduced-motion: reduce) { .story-voice-orb::before, .story-voice-orb::after { animation: none; opacity: .4; } }

/* Landing: the hero phone opens the live example */
.phone-link { display: block; position: relative; color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.phone-link:hover { transform: translateY(-4px) rotate(-1deg); }
.try-badge { position: absolute; left: 50%; bottom: -16px; z-index: 3; translate: -50% 0; white-space: nowrap; padding: 9px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--sun); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 14px/1 var(--sans); }
.phone-link:hover .try-badge { background: var(--card); }
@media (prefers-reduced-motion: reduce) { .phone-link { transition: none; } .phone-link:hover { transform: none; } }

/* Language suggestion */
.lang-hint { position: fixed; top: 82px; right: 16px; z-index: 40; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 16px; border: var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); animation: story-in .5s cubic-bezier(.16, 1, .3, 1); }
.lang-hint p { margin: 0; font-weight: 700; font-size: 14px; }
.lang-hint .icon-btn { flex: none; }
@media (max-width: 640px) { .lang-hint { left: 16px; right: 16px; flex-wrap: wrap; } .lang-hint p { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .lang-hint { animation: none; } }

/* Locked page: what's waiting inside (counts only) */
.inside-row { margin: 18px auto 4px; display: grid; justify-items: center; gap: 8px; }
.inside-row p { margin: 0; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.inside-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.inside-row li { display: inline-flex; align-items: center; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 14px/1 var(--sans); }
.waiting-notes.inside-row { display: grid; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-weight: inherit; }
.pv-count { margin: 10px 0 2px; }

/* 44px touch targets for small text actions */
.inspire button, .after-actions .link-btn { min-height: 44px; }
.after-actions .link-btn { display: inline-flex; align-items: center; }

/* Creator: writing nudge and saved reassurance */
.msg-hint { display: flex; justify-content: space-between; gap: 12px; min-height: 20px; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.msg-saved { margin-left: auto; white-space: nowrap; opacity: 0; transition: opacity .4s; font-weight: 700; color: var(--ink-soft); }
.msg-saved.on { opacity: 1; transition-duration: .15s; }
@media (prefers-reduced-motion: reduce) { .msg-saved { transition: none; } }

/* Voice recorder level meter */
.rec-meter { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.rec-meter i { width: 4px; height: 100%; border-radius: 2px; background: var(--pink-btn); transform: scaleY(.12); transition: transform 80ms linear; }
@media (prefers-reduced-motion: reduce) { .rec-meter i { transition: none; } }

/* Studio: photo order */
.upload-grid .first-badge { position: absolute; left: 6px; top: 6px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font: 800 11px/1 var(--sans); }
.upload-grid .mv { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; }
.upload-grid .mv button { position: static; width: 36px; height: 36px; font-size: 20px; line-height: 1; }
.upload-grid .mv button[disabled] { visibility: hidden; }
@media (hover: hover) { .upload-grid .mv { opacity: 0; transition: opacity .15s; } .upload-grid figure:hover .mv, .upload-grid .mv:focus-within { opacity: 1; } }

.reconnect { margin: 16px auto 0; }

.edit-note { margin: 0 0 14px; padding: 10px 12px; border: 2px dashed var(--ink); border-radius: 12px; background: #fff3c4; font-size: 14px; }

/* Recipient themes: chips keep ink on their own light fill; labels follow the card's text colour */
.stage .inspire button { color: var(--ink); background: var(--card); }
.stage .eyebrow { color: inherit; opacity: 1; }
.stage .inspire button:hover { background: var(--sun); }

/* Long content never widens the card past the screen */
.stage { grid-template-columns: minmax(0, 1fr); }
.stage-card { min-width: 0; justify-self: center; }
.reveal-message, .reveal-headline, .notes-wall blockquote p { overflow-wrap: anywhere; }

/* Studio columns shrink to the screen whatever the content */
.manage-grid { grid-template-columns: minmax(0, 1fr); }
.manage-grid > div { min-width: 0; }
@media (min-width: 900px) { .manage-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.manage h1, .panel p, .panel h2 { overflow-wrap: anywhere; }
.manage-grid > div { grid-template-columns: minmax(0, 1fr); }

/* Tablets: short sequences and plans sit side by side */
@media (min-width: 640px) and (max-width: 899px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 20px; }
  .steps .big { font-size: 48px; }
}
@media (min-width: 720px) and (max-width: 899px) {
  .pricing { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 480px) { .new-surprise .label { display: none; } .new-surprise { min-width: 44px; min-height: 44px; padding-inline: 0; } }

/* Landing: returning creators */
.welcome-back { margin-top: 18px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 16px; background: var(--card); max-width: 520px; }
.welcome-back p { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.welcome-back div { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-back .chip { text-decoration: none; color: var(--ink); min-height: 44px; }
.welcome-back .chip:hover { background: var(--sun); }

/* Payment being confirmed: reassure, never invite a second payment */
.pay-wait { display: flex; gap: 14px; align-items: flex-start; width: min(var(--max), 100% - var(--gutter) * 2); margin: 18px auto 0; padding: 14px 16px; border: var(--line); border-radius: 16px; background: #fff3c4; box-shadow: var(--shadow); }
.pay-wait strong { display: block; font: 800 17px/1.2 var(--display); margin-bottom: 4px; }
.pay-wait p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.pay-wait .spinner { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.more-room { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.voice-download { text-decoration: none; color: inherit; }


/* ---------- Lightbox gallery ---------- */
.lightbox { cursor: default; }
.lightbox img { max-width: min(100%, 1100px); max-height: 84dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border: 2.5px solid #fff; border-radius: 50%; background: rgba(15, 12, 29, .6); color: #fff; font: 700 28px/1 var(--sans); cursor: pointer; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--card); color: var(--ink); font: 800 30px/1 var(--sans); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; color: #fff; font: 700 14px var(--sans); }

/* ---------- Polaroid strip arrows (mouse users) ---------- */
.polaroid-wrap { position: relative; }
.strip-nav { display: none; position: absolute; top: 45%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--card); color: var(--ink); font: 800 24px/1 var(--sans); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.strip-prev { left: -10px; }
.strip-next { right: -10px; }
@media (hover: hover) and (pointer: fine) { .strip-nav { display: grid; place-items: center; } }

/* ---------- Printed keepsake: nothing interactive ---------- */
@media print {
  .voice-wrap, .reconnect, .strip-nav, .inside-row, .final-count, .lightbox, .lang-hint { display: none !important; }
  .photos.polaroids { flex-wrap: wrap; overflow: visible; justify-content: center; }
  .photos.polaroids > button { flex: 0 0 30%; break-inside: avoid; }
}


/* ---------- Drawn icons in place of the last emoji ---------- */
.sound-toggle .ic { margin: 0; }
.sound-toggle .ic .icon { width: 22px; height: 22px; }
.status .ic { margin-right: 0; }
.preview-banner .ic { margin-right: .4em; }
.final-count b .ic { margin: 0; }
.final-count b .ic .icon { width: .9em; height: .9em; stroke-width: 1.6; }
.sent-seal { display: grid; place-items: center; width: 104px; height: 104px; margin: 6px auto 14px; border: var(--line); border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); filter: none; }
.sent-seal .icon { width: 56px; height: 56px; stroke-width: 1.8; }


/* ---------- Skip link: visible when a keyboard lands on it ---------- */
a.sr-only[href="#main"]:focus { position: fixed; top: 10px; left: 10px; z-index: 100; width: auto; height: auto; clip: auto; overflow: visible; padding: 10px 16px; border: var(--line); border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Characters left ---------- */
.char-left { display: block; margin-top: 6px; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); }
.char-left.at-limit { color: var(--pink-deep, #b0124a); }


/* ---------- Writers fixing their own note ---------- */
.sent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 20px; }
.edit-note { display: inline-flex; align-items: center; min-height: 44px; }
.note-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 0 0 14px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--mint); font-weight: 700; font-size: 14px; }
.note-in, .note-in .link-btn { color: var(--ink); }
.note-in .link-btn { text-decoration-color: var(--ink); }

/* ---------- Small phones (320–360px): the header fits ---------- */
@media (max-width: 360px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .header-actions { gap: 2px; }
  .lang-switch { padding: 8px 6px; font-size: 13px; }
  .header-cta { padding-inline: 10px; font-size: 12.5px; }
}
@media (max-width: 335px) {
  .brand { font-size: 0; gap: 0; }
}

/* ---------- Text links big enough to tap ---------- */
.nav a { display: inline-block; padding: 10px 2px; }
.footer a { display: inline-block; padding: 6px 0; }

/* ---------- Dialogs use the whole phone width ----------
   Browsers cap <dialog> at calc(100% - 6px - 2em), which squeezed the
   creator to ~260px on small phones. */
dialog.creator, dialog.watch-overlay { max-width: none; }
@media (max-width: 480px) {
  dialog.creator { width: calc(100% - 10px); max-height: calc(100dvh - 10px); border-radius: 18px; }
  .creator-layout, .creator-main { max-height: calc(100dvh - 16px); }
  .creator-main { padding-inline: 16px; }
  .creator-main .step-actions { margin-inline: -16px; padding-inline: 16px; }
}

/* Drawn icons inherit text colour: the sound toggle sits on light paper, so ink it. */
.sound-toggle { color: var(--ink); }

.hint-label { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: inherit; opacity: .8; }

/* ---------- The rest of the gift unfolds after the last typed word ---------- */
.unfold { transition: opacity .7s cubic-bezier(.16, 1, .3, 1), translate .7s cubic-bezier(.16, 1, .3, 1); }
.await-type { opacity: 0; translate: 0 12px; pointer-events: none; }
@media print { .await-type { opacity: 1; translate: none; } }

/* ---------- Share row: Share first, then the apps side by side ---------- */
.share-actions.share-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.share-actions.share-4 > :first-child { grid-column: 1 / -1; }
.share-actions.share-4 .btn { padding-inline: 6px; }

/* ---------- "It's ready" sheet: a close button always in reach ---------- */
.paid-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 71; width: 46px; height: 46px; border: var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 26px/1 var(--sans); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
