/* Merrily — gift shop demo
   Layout concept: a night-sky "stage" for products (fixed dark, like a shop window at dusk)
   set inside a crisp snow-white storefront; gift-tag details carry the handwritten voice. */
:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --ink: #13261f;
  --muted: #56685f;
  --line: #dbe3da;
  --pine: #1d4b3b;
  --pine-ink: #ffffff;
  --berry: #b0213a;
  --berry-hover: #941a30;
  --berry-ink: #ffffff;
  --gold: #a87a1f;
  --gold-soft: #f4e9cf;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --stage: #0d2a20;
  --stage-2: #133a2d;
  --stage-ink: #f3efe2;
  --stage-muted: #a9bcb2;
  --shadow: 0 1px 2px rgba(19, 38, 31, .06), 0 8px 24px rgba(19, 38, 31, .08);
  --radius: 14px;
  --font-display: "Gloock", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Kalam", "Comic Sans MS", "Segoe Print", cursive;
  --font-letter: "Caveat", "Kalam", "Segoe Print", cursive;
  /* The opening is a fixed night scene in both themes (like the product stage), so its paper and ink stay put. */
  --paper: #fbf4e4; --paper-2: #f4e8cc; --paper-ink: #3a2a1c; --paper-faint: rgba(58, 42, 28, .45);
  --gold-hi: #e0b55a; --night-ink: #fff7e6; --night-muted: #b9c2b8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09160f; --surface: #0f2219; --surface-2: #142b21; --ink: #ecf1ea; --muted: #9db0a6;
    --line: #233c31; --pine: #3f8b6c; --pine-ink: #06120d; --berry: #e2475f; --berry-hover: #ef6177;
    --berry-ink: #1a0509; --gold: #d8b25c; --gold-soft: #2c2614; --ok: #5cc28f; --warn: #e3a64a;
    --stage: #0b221a; --stage-2: #12352a; --stage-ink: #f3efe2; --stage-muted: #a9bcb2;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09160f; --surface: #0f2219; --surface-2: #142b21; --ink: #ecf1ea; --muted: #9db0a6;
  --line: #233c31; --pine: #3f8b6c; --pine-ink: #06120d; --berry: #e2475f; --berry-hover: #ef6177;
  --berry-ink: #1a0509; --gold: #d8b25c; --gold-soft: #2c2614; --ok: #5cc28f; --warn: #e3a64a;
  --stage: #0b221a; --stage-2: #12352a; --stage-ink: #f3efe2; --stage-muted: #a9bcb2;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--stage); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--stage); color: var(--stage-ink); font-size: 13.5px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding-block: 8px; text-align: center; }
.announce strong { color: #f1d48a; font-weight: 700; }
.announce .pill { border: 1px solid rgba(241, 212, 138, .45); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
.announce.lastminute { background: #6d1424; }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--ink); }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 7px 11px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header .spacer { flex: 1; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-weight: 600; font-size: 14px; }
.icon-btn svg { width: 18px; height: 18px; }
.count { background: var(--berry); color: var(--berry-ink); border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 14px; margin: 0; }
  .menu-btn { display: inline-flex; }
  .icon-btn .label { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry); color: var(--berry-ink); }
.btn-primary:hover { background: var(--berry-hover); }
.btn-pine { background: var(--pine); color: var(--pine-ink); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-stage { border-color: rgba(243, 239, 226, .4); color: var(--stage-ink); }
.btn-ghost.on-stage:hover { border-color: var(--stage-ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .link-btn { color: var(--ok); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 80% 10%, #1d4f3e 0%, var(--stage) 55%, #071a13 100%); color: var(--stage-ink); overflow: hidden; margin-top: 0; }
.hero canvas.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-block: 56px 64px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); }
.hero h1 em { font-style: normal; color: #f1d48a; }
.hero p.sub { font-size: 18.5px; color: var(--stage-muted); margin-top: 18px; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .trust { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--stage-muted); }
.hero .trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero .trust svg { width: 16px; height: 16px; color: #f1d48a; }
.hero-show { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.hero-show .tag { position: absolute; font-family: var(--font-hand); color: #13261f; background: #f6efd9; padding: 10px 14px 8px; border-radius: 4px; font-size: 17px; line-height: 1.25; box-shadow: 0 8px 20px rgba(0,0,0,.35); max-width: 210px; }
.hero-show .tag::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #0d2a20; transform: translateY(-50%); box-shadow: inset 0 0 0 2px #c9a24a; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 44px; }
  .hero-show { max-width: 340px; }
}

/* ---------- Sections ---------- */
section.block { padding-block: 64px; }
section.block.tight { padding-block: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--muted); max-width: 46em; margin-top: 8px; }

/* Delivery timeline */
.deadline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.deadline .big { font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--berry); }
.deadline .big small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-width: 0; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: var(--line); }
.timeline .pt { position: relative; padding-top: 22px; font-size: 13.5px; min-width: 0; }
.timeline .pt::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--pine); }
.timeline .pt.now::before { background: var(--berry); border-color: var(--berry); box-shadow: 0 0 0 5px color-mix(in srgb, var(--berry) 22%, transparent); }
.timeline .pt.past { opacity: .55; }
.timeline .pt b { display: block; font-size: 14.5px; }
@media (max-width: 700px) {
  .deadline { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .timeline::before { display: none; }
}

/* Recipient tiles */
.recipients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.r-tile { position: relative; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--stage); color: var(--stage-ink); min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; isolation: isolate; transition: transform .2s ease; }
.r-tile:hover { transform: translateY(-3px); }
.r-tile svg.art { position: absolute; inset: 0; width: 100%; height: 72%; z-index: -1; }
.r-tile h3 { font-size: 26px; }
.r-tile p { font-size: 14px; color: var(--stage-muted); margin-top: 4px; }
.r-tile .go { margin-top: 10px; font-weight: 700; font-size: 14px; color: #f1d48a; }
@media (max-width: 900px) { .recipients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .r-tile { min-height: 210px; } }

/* Three-gift method */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method .step { padding: 22px; border-top: 2px solid var(--ink); }
.method .step .n { font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.method .step h3 { font-size: 22px; margin: 6px 0 6px; }
.method .step p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

/* Budget chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.budget-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.budget { text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.budget:hover { border-color: var(--ink); }
.budget .amt { font-family: var(--font-display); font-size: 34px; }
.budget .amt small { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.budget span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .budget-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: radial-gradient(90% 80% at 50% 35%, var(--stage-2), var(--stage)); max-width: 100%; }
.card .stage svg.product { position: absolute; inset: 8%; width: 84%; height: 84%; transition: transform .35s ease; }
.card:hover .stage svg.product { transform: scale(1.04) rotate(-1deg); }
.card .stage .badge { position: absolute; left: 10px; top: 10px; }
.card .heart { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #13261f; }
.card .heart[aria-pressed="true"] { color: #b0213a; }
.card .heart svg { width: 18px; height: 18px; }
.card .body { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card a.title { text-decoration: none; font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.card a.title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .one { color: var(--muted); font-size: 14px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #f6efd9; color: #5b4310; }
.arrive { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.arrive.late { color: var(--warn); }
.arrive svg { width: 15px; height: 15px; flex: none; }

/* ---------- Product page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding-block: 18px 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.pdp .media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); min-width: 0; }
.pdp .info { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pdp h1 { font-size: clamp(32px, 4vw, 46px); }
.pdp .headline { font-size: 19px; color: var(--muted); }
.pdp .buybox { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pdp .buybox .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pdp .buybox .price { font-size: 28px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--pine); background: color-mix(in srgb, var(--pine) 7%, transparent); }
.opt input { margin-top: 3px; accent-color: var(--pine); width: 18px; height: 18px; flex: none; }
.opt b { display: block; font-size: 15px; }
.opt span { font-size: 13.5px; color: var(--muted); }
.opt .add { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promise div { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); align-items: flex-start; }
.promise svg { width: 18px; height: 18px; color: var(--pine); flex: none; margin-top: 1px; }
:root[data-theme="dark"] .promise svg { color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .promise svg { color: var(--ok); } }
.story { display: flex; flex-direction: column; gap: 10px; }
.story h2 { font-size: 26px; }
.story p { font-size: 16.5px; max-width: 62ch; }
.gift-tag { position: relative; background: #f6efd9; color: #2b2410; font-family: var(--font-hand); font-size: 19px; line-height: 1.45; padding: 22px 24px 20px 40px; border-radius: 6px 18px 18px 6px; box-shadow: 0 6px 18px rgba(19, 38, 31, .12); }
.gift-tag::before { content: ""; position: absolute; left: 14px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #c9a24a; }
.gift-tag .label { font-family: var(--font-body); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a6a1c; display: block; margin-bottom: 6px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; font-size: 15px; }
.facts li svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 24px; } .pdp .media { position: static; } .split2 { grid-template-columns: 1fr; } }

details.studio { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); }
details.studio summary { cursor: pointer; font-weight: 700; }
details.studio .tbl { overflow-x: auto; margin-top: 12px; }
details.studio table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
details.studio th, details.studio td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
details.studio th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
details.studio pre { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: 13.5px; margin: 8px 0 0; }

/* ---------- Showcase player ---------- */
.player { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; overflow: hidden; background: #071a13; color: #f3efe2; isolation: isolate; box-shadow: var(--shadow); }
.player .scene { position: absolute; inset: 0; }
.player .scene .bg { position: absolute; inset: -10%; background: radial-gradient(60% 50% at 50% 60%, #2a5a45 0%, #0d2a20 60%, #06150f 100%); }
.player .window { position: absolute; left: 8%; top: 6%; width: 38%; height: 34%; border-radius: 8px; background: linear-gradient(#0b1f3a, #183a5e); box-shadow: inset 0 0 0 6px #3b2a1a, 0 0 40px rgba(255, 220, 150, .08); overflow: hidden; opacity: .8; }
.player .window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 47%, #3b2a1a 47% 53%, transparent 53%), linear-gradient(transparent 47%, #3b2a1a 47% 53%, transparent 53%); }
.player .tree { position: absolute; right: 4%; bottom: 12%; width: 34%; opacity: .9; }
.player .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(#3a2414, #24160c); }
.player .bokeh { position: absolute; inset: 0; pointer-events: none; }
.player .bokeh i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.player .hero-obj { position: absolute; left: 18%; right: 18%; top: 22%; bottom: 14%; transform-origin: 50% 60%; will-change: transform, filter; }
.player .hero-obj svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.player .glow { position: absolute; left: 20%; right: 20%; top: 30%; bottom: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .45), transparent); opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.player .lid { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.player .lid svg { width: 70%; }
.player .sparkles i { position: absolute; width: 6px; height: 6px; background: #ffe7a8; border-radius: 50%; box-shadow: 0 0 10px #ffd27a; opacity: 0; }
.player .caption { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font-weight: 800; font-size: clamp(17px, 2.6vw, 24px); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.6); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.player .caption.show { opacity: 1; transform: none; }
.player .caption span { background: rgba(7, 26, 19, .55); padding: 4px 10px; border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.player .bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; z-index: 3; }
.player .bars b { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.player .bars b i { display: block; height: 100%; width: 0; background: #fff; }
.player .ctrl { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: flex; gap: 8px; }
.player .ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(243, 239, 226, .92); color: #13261f; display: grid; place-items: center; }
.player .ctrl button svg { width: 18px; height: 18px; }
.player .ai-note { position: absolute; left: 12px; top: 22px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(7, 26, 19, .6); padding: 3px 8px; border-radius: 999px; color: #d6e2db; }
.player .start { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(7, 26, 19, .25); border: 0; color: #f3efe2; }
.player .start span { display: inline-flex; align-items: center; gap: 10px; background: rgba(243, 239, 226, .95); color: #13261f; font-weight: 800; padding: 12px 18px; border-radius: 999px; }
.player .start svg { width: 18px; height: 18px; }
.media-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; background: var(--stage); padding: 6px; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs svg { width: 100%; height: 100%; }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; margin: 0 auto; padding-block: 40px 70px; }
.quiz .progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.quiz .progress i { display: block; height: 100%; background: var(--berry); transition: width .35s ease; }
.quiz .q { margin-top: 30px; }
.quiz .q h1 { font-size: clamp(30px, 4vw, 44px); }
.quiz .q p.help { color: var(--muted); margin-top: 8px; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.answers.four { grid-template-columns: repeat(4, 1fr); }
.answer { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; min-width: 0; }
.answer:hover { border-color: var(--ink); }
.answer[aria-pressed="true"] { border-color: var(--berry); background: color-mix(in srgb, var(--berry) 8%, var(--surface)); }
.answer svg { width: 38px; height: 38px; flex: none; }
.answer small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
.answers.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.answers.tags .answer { padding: 10px 16px; border-radius: 999px; font-size: 15px; }
.quiz .nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.quiz textarea { width: 100%; min-height: 110px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; margin-top: 20px; resize: vertical; font-size: 16px; }
.quiz .examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz .examples button { border: 1px dashed var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .answers, .answers.four { grid-template-columns: 1fr; } }

.thinking { display: grid; place-items: center; gap: 16px; text-align: center; padding-block: 60px; }
.thinking .orbit { width: 90px; height: 90px; position: relative; }
.thinking .orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--berry); animation: spin 1s linear infinite; }
.thinking .orbit i + i { inset: 14px; border-top-color: var(--gold); animation-duration: 1.4s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking .line { font-family: var(--font-hand); font-size: 22px; min-height: 1.6em; }

.results-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.results-head h1 { font-size: clamp(30px, 4.2vw, 46px); }
.results-head p { color: var(--muted); margin-top: 10px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pick { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pick.top { border: 2px solid var(--gold); }
.pick .stage { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(90% 80% at 50% 35%, var(--stage-2), var(--stage)); max-width: 100%; }
.pick .stage svg.product { position: absolute; inset: 8% 20%; width: 60%; height: 84%; }
.pick .rank { position: absolute; left: 12px; top: 12px; }
.pick .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pick h3 { font-size: 23px; }
.pick .why { font-family: var(--font-hand); font-size: 17.5px; line-height: 1.45; background: #f6efd9; color: #2b2410; border-radius: 10px; padding: 12px 14px; }
.pick .why.loading { color: #7a6a40; }
.pick .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ai-badge svg { width: 14px; height: 14px; color: var(--gold); }
.results-tools { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) { .picks { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Category ---------- */
.cat-hero { background: var(--stage); color: var(--stage-ink); position: relative; overflow: hidden; }
.cat-hero .wrap { padding-block: 40px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; }
.cat-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.cat-hero p { color: var(--stage-muted); margin-top: 10px; max-width: 40em; }
.cat-hero svg.art { width: 220px; height: 160px; }
@media (max-width: 700px) { .cat-hero .wrap { grid-template-columns: 1fr; } .cat-hero svg.art { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.filters .grp { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters .grp > span { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.filters select { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-weight: 600; }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); }

/* Affiliate */
.aff { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.aff h3 { font-family: var(--font-body); font-weight: 800; font-size: 16.5px; }
.aff .disc { font-size: 12.5px; color: var(--muted); }

/* Bundles */
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.bundle { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.bundle .stage { display: flex; justify-content: center; gap: 0; padding: 18px 10px; background: radial-gradient(90% 80% at 50% 35%, var(--stage-2), var(--stage)); }
.bundle .stage svg { width: 34%; height: auto; aspect-ratio: 1; margin: 0 -4%; }
.bundle .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bundle h3 { font-size: 22px; }
.bundle .save { color: var(--ok); font-weight: 700; font-size: 14px; }
.bundle .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }

/* Guarantee */
.promise-band { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.promise-band .seal { width: 120px; height: 120px; }
.promise-band h2 { font-size: clamp(26px, 3.2vw, 36px); }
.promise-band ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.promise-band li { display: flex; gap: 10px; font-size: 15px; }
.promise-band li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
@media (max-width: 720px) { .promise-band { grid-template-columns: 1fr; } .promise-band ul { grid-template-columns: 1fr; } }

/* Email capture */
.capture { background: var(--stage); color: var(--stage-ink); border-radius: 22px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.capture h2 { font-size: clamp(26px, 3vw, 34px); }
.capture p { color: var(--stage-muted); margin-top: 8px; }
.capture form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 13px 18px; background: #f3efe2; color: #13261f; }
.capture .ok { color: #f1d48a; font-weight: 700; }
@media (max-width: 760px) { .capture { grid-template-columns: 1fr; } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4, 12, 9, .5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 90; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 26px; }
.drawer .items { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start; }
.line-item .thumb { width: 76px; aspect-ratio: 1; border-radius: 10px; background: var(--stage); padding: 6px; }
.line-item .thumb svg { width: 100%; height: 100%; }
.line-item b { display: block; font-size: 15px; line-height: 1.3; }
.line-item .meta { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { border: 0; background: none; width: 30px; height: 28px; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.shipbar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; }
.shipbar .track { height: 8px; background: var(--surface-2); border-radius: 8px; margin-top: 8px; overflow: hidden; }
.shipbar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--ok)); border-radius: 8px; transition: width .4s ease; }
.upsell { display: flex; gap: 10px; align-items: center; border: 1px dashed var(--line); border-radius: 12px; padding: 10px; }
.upsell .thumb { width: 54px; height: 54px; border-radius: 8px; background: var(--stage); padding: 4px; flex: none; }
.upsell .thumb svg { width: 100%; height: 100%; }
.upsell div { flex: 1; min-width: 0; font-size: 13.5px; }
.upsell b { display: block; font-size: 14px; }
.totals { display: grid; gap: 4px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 800; font-size: 18px; }

/* ---------- Checkout ---------- */
.demo-banner { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.demo-banner svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 1px; }
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; padding-block: 30px 70px; }
.checkout .panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.checkout h2 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-size: 15.5px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.card-writer { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.card-writer .out { font-family: var(--font-hand); font-size: 18.5px; line-height: 1.5; background: #f6efd9; color: #2b2410; border-radius: 10px; padding: 14px 16px; min-height: 90px; white-space: pre-wrap; }
.tone { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .fields2 { grid-template-columns: 1fr; } }

/* E-card */
.ecard { position: relative; max-width: 520px; margin: 0 auto; aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1d4f3e, #0d2a20 60%, #06150f); color: #f3efe2; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; box-shadow: var(--shadow); }
.ecard canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecard .to { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #f1d48a; font-weight: 800; position: relative; }
.ecard h3 { font-size: clamp(30px, 6vw, 42px); position: relative; margin-top: 6px; }
.ecard .msg { position: relative; font-family: var(--font-hand); font-size: 19px; line-height: 1.45; margin-top: 12px; white-space: pre-wrap; }
.ecard .reveal { position: relative; margin-top: 16px; display: flex; gap: 12px; align-items: center; background: rgba(243, 239, 226, .1); border: 1px solid rgba(243, 239, 226, .2); border-radius: 12px; padding: 10px; }
.ecard .reveal svg { width: 64px; height: 64px; flex: none; }
.ecard .reveal small { color: #a9bcb2; display: block; }

/* ---------- Footer + misc ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 40px 30px; font-size: 14px; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: var(--ink); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.footer a { display: block; text-decoration: none; padding: 3px 0; }
.footer a:hover { color: var(--ink); }
.footer .legal { margin-top: 26px; font-size: 12.5px; display: grid; gap: 6px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; transition: all .25s ease; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-dock { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70; }
.demo-dock > button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.demo-dock .panel { position: absolute; left: 0; bottom: 48px; width: min(320px, calc(100vw - 28px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.demo-dock .panel h4 { margin: 0; font-size: 14px; }
.demo-dock .panel p { color: var(--muted); font-size: 13px; }

.reveal-in { animation: rise .5s ease both; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* helpers added during integration */
.ok { font-weight: 700; color: var(--pine); margin: 0; align-self: center; }
.seen { display: flex; flex-direction: column; min-width: 0; }
.seen .card { flex: 1; }
.icon-btn > span[data-icon] { display: inline-flex; }
@media (max-width: 520px) { .hide-sm { display: none; } .header .wrap { gap: 8px; } .logo { font-size: 24px; } }


/* =====================================================================
   The opening: "The Little Things" (src/opening.js)
   A candle-lit night scene. The letter is cream paper in a hand you'd write a card in.
   ===================================================================== */
body.op-mode .announce { display: none; }
.op {
  position: relative; overflow: hidden; color: var(--stage-ink);
  min-height: calc(100svh - 64px);
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, rgba(255, 196, 110, .16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 10% 100%, rgba(29, 75, 59, .55), transparent 70%),
    linear-gradient(180deg, #0a1511 0%, #0b1210 55%, #130e0b 100%);
}
.op canvas.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.op-top, .op-in, .op-browse { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.op-top { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-block: 12px; font-size: 13px; color: var(--night-muted); border-bottom: 1px solid rgba(243, 239, 226, .08); }
.op-top span { display: inline-flex; align-items: center; gap: 6px; }
.op-top svg { width: 16px; height: 16px; color: var(--gold-hi); }
.op-top a { color: var(--night-ink); font-weight: 600; text-underline-offset: 3px; }
.op-in { padding-block: 26px 40px; }
.op h1 { color: var(--night-ink); font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; margin-top: 10px; }
.op h2 { color: var(--night-ink); font-size: clamp(26px, 3.4vw, 38px); }
.op .sub { color: var(--night-muted); font-size: 17px; max-width: 46ch; margin-top: 12px; }
.op .eyebrow { color: var(--gold-hi); }

/* screen 1 */
.op-write { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "head sample" "act sample"; gap: 8px 48px; align-items: start; }
.op-head { grid-area: head; align-self: end; }
.op-act { grid-area: act; }
.op-sample { grid-area: sample; align-self: center; display: flex; align-items: flex-end; gap: 8px; }
@media (max-width: 860px) {
  .op-write { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "sample" "act"; gap: 18px; }
  .op-in { padding-block: 18px 28px; }
}
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.op-chip {
  border: 1px solid rgba(243, 239, 226, .28); background: rgba(255, 255, 255, .04); color: var(--stage-ink);
  border-radius: 999px; padding: 9px 16px; min-height: 44px; font-weight: 600; transition: background .2s, color .2s, border-color .2s;
}
.op-chip:hover { border-color: rgba(243, 239, 226, .6); }
.op-chip[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); border-color: transparent; }
.op-chip.sm { padding: 6px 13px; min-height: 36px; font-size: 14px; }
.op-chip:disabled { opacity: .6; cursor: progress; }
.op-form { margin-top: 18px; display: grid; gap: 10px; max-width: 560px; }
.op-namefield { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--night-muted); }
.op-namefield input, .op-email input {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 239, 226, .28); color: var(--stage-ink);
  border-radius: 10px; padding: 8px 12px; min-height: 40px; width: 16ch; max-width: 100%;
}
.op-label { font-family: var(--font-display); font-size: 22px; color: var(--night-ink); }
.op-paper textarea {
  display: block; width: 100%; background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 12px;
  padding: 12px 16px; font-family: var(--font-letter); font-size: 25px; line-height: 1.25; resize: none; min-height: 84px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.op-paper textarea::placeholder { color: var(--paper-faint); }
.op-paper textarea:focus { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.op-stems { display: flex; flex-wrap: wrap; gap: 6px; }
.op-stem { background: none; border: 1px dashed rgba(243, 239, 226, .3); color: var(--night-muted); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.op-stem:hover { color: var(--stage-ink); border-color: rgba(243, 239, 226, .6); }
.op-go-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 4px; }
.op-go { min-height: 50px; padding-inline: 26px; font-size: 16px; }
.op-go:disabled { opacity: .55; cursor: not-allowed; }
.op-fine { font-size: 12.5px; color: var(--night-muted); max-width: 38ch; }
.op-link { background: none; border: 0; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; padding: 8px 0; }
.op-link.small { display: inline-block; font-size: 14px; margin-top: 14px; }
.op-link.dark { color: var(--berry); padding: 4px 0 0; font-size: 14px; }
.op-notice { color: #f3d9a0; font-size: 14.5px; }
.op-browse { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-block: 0 26px; font-size: 14px; color: var(--night-muted); }
.op-browse a { color: var(--stage-ink); text-underline-offset: 3px; }

/* the sample + candle */
.op-candle { width: 86px; flex: none; margin-bottom: -6px; filter: drop-shadow(0 0 18px rgba(255, 190, 100, .25)); }
.op-candle .flame { transform-origin: 60px 60px; animation: op-flick 2.4s ease-in-out infinite; }
.op-candle .glow { animation: op-glow 3.2s ease-in-out infinite; }
@keyframes op-flick { 0%, 100% { transform: scale(1, 1) rotate(-1.5deg); } 30% { transform: scale(.96, 1.06) rotate(1deg); } 60% { transform: scale(1.04, .95) rotate(-.5deg); } }
@keyframes op-glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.op-sample-card { flex: 1; min-width: 0; }
.op-sample-card.swap { animation: op-fade .35s ease; }
.op-sample-card .from { font-size: 14px; color: var(--night-muted); margin: 0 0 10px 6px; }
.op-sample-card .from span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin-right: 4px; }
@media (max-width: 860px) {
  .op-candle { width: 54px; }
  .op-sample .letter { font-size: 21px; padding: 16px 18px; }
}
@keyframes op-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the letter */
.letter {
  position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 6px;
  font-family: var(--font-letter); font-size: clamp(23px, 2.6vw, 29px); line-height: 1.32; font-weight: 500;
  padding: 22px 26px 20px; transform: rotate(-.6deg);
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(58, 42, 28, .06) 0); background-size: 100% 1.32em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .25);
}
.letter .txt { margin: 0; }
.letter .ln { display: block; }
.letter .ln + .ln { margin-top: .12em; }
.letter .w.a {
  background-image: linear-gradient(var(--gold-hi), var(--gold-hi)); background-repeat: no-repeat;
  background-size: 100% .14em; background-position: 0 92%; padding-bottom: .02em;
}
.letter.writing .w { opacity: 0; animation: op-word .45s ease forwards; }
.letter.writing .w.a { background-size: 0 .14em; animation: op-word .45s ease forwards, op-under .5s .25s ease forwards; }
@keyframes op-word { from { opacity: 0; filter: blur(3px); transform: translateY(3px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes op-under { to { background-size: 100% .14em; } }
.letter .sign { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.letter .sign input { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1.5px dashed rgba(58, 42, 28, .35); width: 11ch; padding: 0 2px; }
.letter .sign input::placeholder { color: var(--paper-faint); }
.letter.santa { background-color: var(--paper-2); border: 1px solid rgba(176, 33, 58, .18); }
.letter .seal { position: absolute; right: 14px; top: -14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #d9475d, #8f1428); color: #ffe7e0; font-family: var(--font-display); font-size: 22px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); transform: rotate(8deg); }
.letter.partial .txt { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.letter.tiny { font-size: 17px; padding: 12px 14px; max-width: 250px; flex: none; transform: rotate(-2.5deg); }
.letter.editing { padding: 12px; }
.letter.editing textarea { width: 100%; min-height: 220px; font: inherit; color: inherit; background: transparent; border: 0; resize: vertical; }
.letter.editing textarea:focus { outline: 2px dashed var(--gold-hi); outline-offset: 4px; }

/* screen 2 */
.op-back { background: none; border: 0; color: var(--night-muted); font-weight: 600; padding: 6px 0; margin-bottom: 14px; }
.op-back:hover { color: var(--stage-ink); }
.op-narrow { max-width: 640px; margin: 0 auto; }
.op-letter > .eyebrow { margin-bottom: 14px; }
.op-wait { text-align: center; padding-top: 7vh; }
.op-quote { font-family: var(--font-letter); font-size: 28px; color: #fff0cc; margin: 0 0 22px; animation: op-rise 2.4s ease-in-out infinite alternate; }
@keyframes op-rise { from { opacity: .95; transform: none; } to { opacity: .55; transform: translateY(-6px); } }
.ink { display: inline-flex; gap: 8px; }
.ink i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-hi); animation: op-dot 1s ease-in-out infinite; }
.ink i:nth-child(2) { animation-delay: .15s; } .ink i:nth-child(3) { animation-delay: .3s; }
@keyframes op-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.op-status { color: var(--night-muted); margin-top: 14px; }
.ai-badge.on-stage { color: var(--night-muted); margin-top: 16px; font-weight: 600; }
.ai-badge.on-stage svg { color: var(--gold-hi); }
.op-rest { margin-top: 12px; color: #f3d9a0; font-size: 14.5px; }
.op-tune { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.op-tune > span { color: var(--night-muted); margin-right: 4px; font-weight: 600; }
.op-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; }
.op-actions.center { justify-content: center; margin-top: 28px; }
.op-email { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-width: 440px; }
.op-email input { flex: 1; width: auto; min-width: 0; }
.op-ok { display: flex; gap: 6px; align-items: center; margin-top: 12px; color: #a8e2c0; font-size: 14px; }
.op-ok svg { width: 16px; height: 16px; }
.op.gentle .letter { transform: none; }

/* screen 3 */
.op-picks-head { display: flex; gap: 28px; align-items: center; }
@media (max-width: 700px) { .op-picks-head { flex-direction: column; align-items: flex-start; gap: 18px; } }
.op-chips.budget { margin-top: 18px; }
.op-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
@media (max-width: 960px) { .op-picks { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.op-pick { display: flex; flex-direction: column; min-width: 0; background: rgba(255, 255, 255, .045); border: 1px solid rgba(243, 239, 226, .12); border-radius: 16px; overflow: hidden; }
.op-pick.made { border-color: rgba(224, 181, 90, .45); }
.op-pick .stage { aspect-ratio: 16 / 11; background: radial-gradient(circle at 50% 40%, #1f4a39, #0d2a20 75%); display: grid; place-items: center; padding: 10px; }
.op-pick .stage > svg { width: auto; height: 100%; max-width: 100%; }
.op-pick .aff-stage .brand { font-family: var(--font-display); font-size: 36px; color: var(--night-ink); }
.op-pick .body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.op-pick .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.op-pick .badge { background: var(--paper); color: var(--paper-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.op-pick .lane { font-size: 12px; color: var(--night-muted); border: 1px solid rgba(243, 239, 226, .2); border-radius: 999px; padding: 2px 9px; }
.op-pick .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.op-pick .title { font-family: var(--font-display); font-size: 20px; color: var(--night-ink); text-decoration: none; line-height: 1.15; }
.op-pick .title:hover { text-decoration: underline; }
.op-pick .price { font-weight: 700; white-space: nowrap; color: var(--night-ink); }
.op-pick .price.muted { font-weight: 500; font-size: 13px; color: var(--night-muted); white-space: normal; text-align: right; }
.op-pick .because { font-family: var(--font-letter); font-size: 22px; line-height: 1.2; color: #ffe2a0; }
.op-pick .moment span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 2px; }
.op-pick .moment p { font-size: 14px; font-style: italic; color: var(--night-muted); }
.op-pick .arrive { color: #a8e2c0; }
.op-pick .btn-block { margin-top: auto; }
.op-pick .disc { font-size: 12px; color: var(--night-muted); }
.keepsake { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.keepsake .screen { position: relative; width: 84%; background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 14px 18px 16px; font-family: var(--font-letter); font-size: 19px; line-height: 1.2; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); }
.keepsake.santa .screen { background: var(--paper-2); border: 2px solid rgba(176, 33, 58, .25); }
.keepsake .play { position: absolute; right: -10px; top: -12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--berry); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.keepsake .play svg { width: 16px; height: 16px; }
.keepsake .cap { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--night-muted); }
.keepsake .product.ghost { display: none; }

/* the bag remembers their words */
.drawer-letter { display: flex; gap: 14px; padding: 14px; background: var(--gold-soft); border-radius: 12px; margin-bottom: 14px; }
.drawer-letter b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.drawer-letter .meta { display: block; margin-top: 4px; }
.drawer-letter .keep { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--ink); }
.mini-letter { flex: none; width: 78px; height: 92px; overflow: hidden; background: var(--paper); color: var(--paper-ink); font-family: var(--font-letter); font-size: 12.5px; line-height: 1.1; padding: 8px; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }

@media (prefers-reduced-motion: reduce) {
  .letter.writing .w, .letter.writing .w.a { animation: none; opacity: 1; background-size: 100% .14em; }
  .op-candle .flame, .op-candle .glow, .op-quote, .ink i, .op-sample-card.swap { animation: none; }
}
.op .btn svg, .op-chip svg { width: 18px; height: 18px; flex: none; }
.op-pick .btn-block { width: 100%; }

/* =====================================================================
   Home: "Watch them open it" (src/unwrap.js · docs/plan-07 + review-07)
   Light Christmas-morning page, one lit pine stage. Commerce info is static;
   only the stage animates, transform/opacity only, once per session.
   ===================================================================== */
:root { --morning: #fbf6ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --morning: #0c1b14; } }
:root[data-theme="dark"] { --morning: #0c1b14; }
body.uw-mode { background: var(--morning); }
body.uw-mode .header { background: color-mix(in srgb, var(--morning) 92%, transparent); }
.uw { background: var(--morning); padding-block: 12px 6px; }
.uw-grid { display: grid; grid-template-areas: "copy" "stage" "buy"; gap: 10px; }
.uw-copy { grid-area: copy; min-width: 0; }
.uw-stagewrap { grid-area: stage; min-width: 0; }
.uw-buywrap { grid-area: buy; min-width: 0; }
.uw-copy h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4.4vw, 54px); line-height: 1.08; margin: 0; text-wrap: balance; }
.uw-sub { display: none; color: var(--muted); margin: 10px 0 0; max-width: 34em; }
.uw-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.uw-chips::-webkit-scrollbar { display: none; }
.uw-chip { position: relative; flex: none; min-height: 42px; padding: 9px 14px 9px 26px; border-radius: 6px 999px 999px 6px; border: 1.5px solid rgba(58, 42, 28, .18); background: var(--paper); color: var(--paper-ink); font: 600 14px/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.uw-chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }
.uw-chip[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.uw-chip:focus-visible, .uw-pick:focus-visible, .uw-peek:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

/* stage */
.uw-stage { --d: .4s; position: relative; aspect-ratio: 358 / 300; max-width: 100%; border-radius: 20px; overflow: hidden; isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(38% 30% at 18% 22%, rgba(255, 190, 110, .28), transparent 70%), radial-gradient(70% 60% at 45% 62%, #2c6450 0%, #1a4535 45%, #0f2e23 100%); box-shadow: 0 10px 30px rgba(19, 38, 31, .18); }
.uw-stage.swap { --d: 0s; }
.uw-bg, .uw-bg > * { position: absolute; }
.uw-bg { inset: 0; z-index: -1; }
.uw-window { left: 7%; top: 19%; width: 23%; height: 30%; border-radius: 6px; background: linear-gradient(#d8e8ef, #f6efe0 75%); border: 4px solid #5a3a22; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); opacity: .85; }
.uw-window::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #5a3a22; }
.uw-garland { left: 0; right: 0; top: 4%; display: flex; justify-content: space-around; }
.uw-garland b { width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 2px currentColor; color: #ffd27a; }
.uw-garland b:nth-child(3n+2) { background: #ff8a8a; color: #ff8a8a; }
.uw-garland b:nth-child(3n) { background: #9fe0c0; color: #9fe0c0; }
.uw-garland b:nth-child(even) { transform: translateY(6px); }
.uw-tree { right: 3%; bottom: 15%; width: 30%; }
.uw-tree svg { width: 100%; height: auto; display: block; }
.uw-floor { left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(#5a3a22, #3a2414); }
.uw-stars { position: absolute; inset: 0 0 50% 0; z-index: 0; pointer-events: none; animation: uw-fade .9s calc(var(--d) + .8s) both; }
.uw-stars i { position: absolute; border-radius: 50%; background: #fff7e6; box-shadow: 0 0 4px #fff7e6; }
.uw-stars .neb { width: 46%; height: 70%; border-radius: 50%; box-shadow: none; filter: blur(2px); }
.uw-stars .neb.a { left: 8%; top: 4%; background: radial-gradient(closest-side, rgba(138, 127, 214, .45), transparent); }
.uw-stars .neb.b { left: 44%; top: 14%; background: radial-gradient(closest-side, rgba(95, 179, 168, .4), transparent); }
.uw-glow { position: absolute; left: 8%; bottom: -6%; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .55; animation: uw-glow .7s calc(var(--d) + .5s) both; pointer-events: none; }
.uw-prod, .uw-box { position: absolute; left: 15%; bottom: 3%; width: 58%; aspect-ratio: 1; transform-origin: 50% 85%; }
.uw-prod svg, .uw-box svg { width: 100%; height: 100%; display: block; }
.uw-prod { animation: uw-rise .6s calc(var(--d) + .45s) cubic-bezier(.2, .9, .25, 1.15) both; }
.uw-box { opacity: 0; pointer-events: none; animation: uw-boxhide .01s calc(var(--d) + 1.05s) both; }
.uw-box .body, .uw-box .lid { position: absolute; inset: 0; }
.uw-box .lid { transform-origin: 30% 45%; animation: uw-lid .75s var(--d) cubic-bezier(.5, 0, .7, .4) both; }
.uw-box .body { animation: uw-body .35s calc(var(--d) + .45s) ease-in both; }
.uw-spark { position: absolute; left: 44%; top: 56%; width: 0; height: 0; pointer-events: none; }
.uw-spark i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #ffe6a0; box-shadow: 0 0 8px #ffd27a; opacity: 0; animation: uw-spark .75s calc(var(--d) + .55s) ease-out both; }
.uw-tag { position: absolute; top: 11%; right: 4%; width: 46%; max-width: 230px; padding: 7px 10px 8px 18px; border-radius: 4px 12px 12px 4px; background: var(--paper); color: var(--paper-ink); transform: rotate(3deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); animation: uw-fade .35s calc(var(--d) + .9s) both; }
.uw-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0f2e23; }
.uw-tag .to { display: block; font: 700 10.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.uw-tag .note { display: block; font: 600 clamp(16px, 4.6vw, 21px)/1.05 var(--font-letter); margin-top: 2px; }
.uw-tag .note span { display: inline-block; animation: uw-fade .3s calc(var(--d) + 1s + var(--wi) * 45ms) both; }
.uw-tag .ai, .drawer-card .ai, .after-pay .ai { color: var(--gold-hi); font-weight: 700; font-family: var(--font-body); font-size: .8em; }
.uw-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 64px 10px 14px; background: linear-gradient(transparent, rgba(8, 20, 15, .78)); color: #fff7e6; font: 600 14.5px/1.3 var(--font-body); animation: uw-fade .4s calc(var(--d) + .85s) both; }
.uw-hook { display: block; font-size: 12px; color: #f1d48a; margin-bottom: 2px; }
.uw-ill { position: absolute; top: 9px; left: 10px; font: 600 10.5px/1 var(--font-body); color: #f3efe2; background: rgba(0, 0, 0, .38); padding: 3px 7px; border-radius: 999px; letter-spacing: .02em; }
.uw-peek { position: absolute; right: -14px; bottom: 23%; width: 70px; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; animation: uw-nudge 1.2s calc(var(--d) + 1.8s) ease-in-out 2 both; }
.uw-peek .b, .uw-peek .l { position: absolute; inset: 0; }
.uw-peek svg { width: 100%; height: 100%; }
.uw-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; }
.uw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 247, 230, .4); }
.uw-dots i.on { background: #fff7e6; }
.uw-stage.done *, .uw-stage.done { animation: none !important; }
@keyframes uw-lid { 0% { transform: none; opacity: 1; } 30% { transform: translateY(-6%) rotate(-3deg); opacity: 1; } 100% { transform: translate(-34%, -120%) rotate(-32deg); opacity: 0; } }
@keyframes uw-body { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8%) scale(.92); } }
@keyframes uw-boxhide { from { opacity: 1; } to { opacity: 0; } }
@keyframes uw-rise { from { opacity: 0; transform: translateY(16%) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes uw-glow { from { opacity: 0; } to { opacity: .55; } }
@keyframes uw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uw-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@keyframes uw-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(-8px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .uw-stage, .uw-stage * { animation: none !important; } }

/* buy row: always in first paint */
.uw-buy { padding: 2px 2px 0; }
.uw-name { display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.uw-pr { display: flex; flex-direction: column; min-width: 0; }
.uw-pr .price { font-weight: 800; font-size: 24px; line-height: 1.1; }
.uw-ship { font-size: 12.5px; color: var(--muted); }
.uw-cta { flex: none; min-height: 50px; padding-inline: 24px; font-size: 16px; }
.uw-sub2 { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.uw-kit { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--pine); font: 700 14px/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.uw-kit.done { text-decoration: none; color: var(--ok); }
.uw-demo { margin: 10px 0 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; color: var(--muted); }

/* below the fold */
.uw-sec { padding-block: 22px; }
.uw-sec.tight { padding-block: 10px; }
.uw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.uw-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 32px); margin: 0; }
.uw-head p { margin: 0; color: var(--muted); font-size: 14px; }
.uw-head a { color: var(--pine); font-weight: 700; font-size: 14px; }
.uw-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.uw-pick { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.uw-pick[aria-pressed="true"] { border-color: var(--berry); }
.uw-pick .th { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--stage); overflow: hidden; }
.uw-pick .th svg { width: 100%; height: 100%; display: block; }
.uw-pick .t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.uw-pick .t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.uw-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 74%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.uw-rail > * { scroll-snap-align: start; min-width: 0; }
.uw-capture { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.uw-capture h3 { margin: 0; font-size: 18px; }
.uw-capture p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.uw-form { display: flex; gap: 8px; }
.uw-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.uw-fine { font-size: 12px !important; }
.uw-budget { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uw-budget > span { font-weight: 700; color: var(--muted); font-size: 14px; margin-right: 4px; }
.uw-trust { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.uw-trust b { color: var(--ink); }
.uw-trust a { color: inherit; }
.uw-words { text-align: center; margin: 18px 0 8px; }
.uw-words a { color: var(--pine); font-weight: 700; }
@media (min-width: 600px) { .uw-sub { display: block; } }
@media (min-width: 1024px) {
  .uw { padding-block: 32px 10px; }
  .uw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "copy stage" "buy stage"; column-gap: 44px; row-gap: 18px; align-items: end; }
  .uw-buywrap { align-self: start; }
  .uw-stage { aspect-ratio: 16 / 12; }
  .uw-capture { grid-template-columns: 1fr minmax(320px, 420px); align-items: center; }
  .uw-capture .uw-fine { grid-column: 1 / -1; }
  .uw-rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}

/* bag: free card line, add-on, caveat */
.drawer-card { border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.drawer-card .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14px; }
.drawer-card .quote { margin: 4px 0 0; font: 600 18px/1.15 var(--font-letter); color: var(--ink); }
.drawer-card textarea { width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 600 18px/1.2 var(--font-letter); }
.drawer-card .tune { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--pine); font: 700 14px var(--font-body); text-decoration: underline; cursor: pointer; }
.upsell.addon { margin-top: 10px; }
.caveat { font-size: 12.5px; margin-top: 10px; }
.after-pay { display: grid; gap: 12px; margin-block: 20px; max-width: 640px; }
.after-pay h2 { margin: 0; }
.after-pay fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.demo-dock .metrics { font-size: 12px; margin-top: 10px; }
.demo-dock select + p, .demo-dock h4 + p { margin-top: 4px; }
body:has(#app > .uw) { background: var(--morning); }

/* Merrily affiliate edition: layered on top of styles.css (tokens, .btn, .card, .uw-*, .pdp, footer). */

/* header without a bag */
.header .icon-btn .count[hidden] { display: none; }

/* disclosure: a small designed strip, never hidden */
.aff-disc { margin: 8px 0; padding: 7px 11px; border-radius: 10px; background: var(--paper); color: var(--paper-ink); font-size: 12.5px; line-height: 1.35; }
.aff-disc .g { color: #a87a1f; }
.aff-disc a { color: inherit; font-weight: 700; text-underline-offset: 2px; white-space: nowrap; }
.aff-disc.tight { margin: 6px 0 8px; padding: 5px 10px; font-size: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aff-disc { background: #2a2416; color: #f1e6c8; } :root:not([data-theme="light"]) .aff-disc .g { color: var(--gold-hi); } }
:root[data-theme="dark"] .aff-disc { background: #2a2416; color: #f1e6c8; }

/* the one action */
.aff-cta { min-height: 52px; width: 100%; font-size: 16px; }
.aff-cta .ext { flex: none; }
.aff-ghost { min-height: 44px; width: auto; padding-inline: 18px; font-size: 15px; }
.aff-inapp { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.aff-why { display: inline-block; margin-top: 10px; color: var(--pine); font-weight: 700; font-size: 14px; text-underline-offset: 3px; }
.aff-namerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aff-namerow .uw-name { font-size: 17px; white-space: normal; line-height: 1.25; }
.aff-namerow .heart, .aff-card .heart { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.aff-namerow .heart[aria-pressed="true"], .aff-card .heart[aria-pressed="true"] { color: var(--berry); }
.aff-namerow .heart svg { width: 20px; height: 20px; }
.aff-card .stage .heart { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(255, 255, 255, .92); color: #13261f; }
.aff-card .stage .heart[aria-pressed="true"] { color: #b0213a; }
.aff-card .stage a { position: absolute; inset: 0; }
.aff-card .stage .uw-ill { pointer-events: none; }

/* labels */
.aff-eye { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aff-suits { font-size: 13px; color: var(--muted); }
.aff-suits.big { font-size: 15px; color: var(--ink); margin: 0; }

/* the stage caption carries the illustration label */
.uw-cap small { display: block; font-size: 11.5px; font-weight: 600; color: #f1d48a; margin-bottom: 2px; }
@media (max-width: 599px) { .aff-home .uw-stage { aspect-ratio: 358 / 262; } .aff-home .uw-copy h1 { font-size: 28px; } }

/* home sections */
.aff-rail { grid-auto-columns: minmax(170px, 44%); }
.aff-trust { flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .aff-trust { flex-direction: row; } .aff-trust li { flex: 1; } }
.aff-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.aff-gcard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; min-height: 88px; }
.aff-gcard:hover { border-color: var(--pine); }
.aff-gcard .th { flex: none; width: 68px; height: 68px; border-radius: 10px; background: var(--stage); overflow: hidden; }
.aff-gcard .th svg { width: 100%; height: 100%; display: block; }
.aff-gcard .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aff-gcard b { font-size: 15.5px; line-height: 1.25; }
.aff-email.compact { margin-top: 6px; }
.aff-email.compact h3 { font-size: 17px; }
.aff-ok { margin: 0; font-weight: 700; color: var(--ok); }
.aff-santa { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--paper); color: var(--paper-ink); }
.aff-santa .aff-eye { color: rgba(58, 42, 28, .7); }
.aff-santa h3 { font-size: 22px; margin: 4px 0 6px; }
.aff-santa p { margin: 0 0 10px; font-size: 14.5px; }
.aff-santa-art { width: 96px; height: 96px; border-radius: 12px; background: var(--stage); overflow: hidden; }
.aff-santa-art svg { width: 100%; height: 100%; display: block; }
.aff-santa .uw-demo { border-color: rgba(58, 42, 28, .3); color: rgba(58, 42, 28, .8); }

/* content pages */
.aff-page { padding-block: 18px 10px; }
.aff-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.aff-crumbs a { color: inherit; }
.aff-art { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: radial-gradient(90% 80% at 50% 35%, var(--stage-2), var(--stage)); overflow: hidden; }
.aff-art svg.product { position: absolute; inset: 8%; width: 84%; height: 84%; }
@media (max-width: 900px) { .aff-art { aspect-ratio: 4 / 3; } .aff-art svg.product { inset: 6% 18%; width: 64%; height: 88%; } }
.aff-buybox { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aff-buybox .aff-disc { margin: 0; }
.aff-buybox .linkish { align-self: flex-start; min-height: 32px; }
.aff-copy h2 { font-family: var(--font-body); font-weight: 800; font-size: 17px; margin: 18px 0 6px; }
.aff-copy p, .aff-copy li { font-size: 16px; line-height: 1.55; }
.aff-copy ul { padding-left: 20px; margin: 0; }
.aff-howwe { font-size: 13.5px !important; color: var(--muted); margin-top: 16px; }
.aff-ghead { max-width: 760px; margin-bottom: 12px; }
.aff-ghead h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 6px 0 10px; }
.lede { font-size: 17.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.aff-byline { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.aff-paper { max-width: 760px; }
.aff-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 18px; max-width: 860px; }
.aff-item { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.aff-item .th { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--stage); overflow: hidden; }
.aff-item .th svg { width: 100%; height: 100%; display: block; }
.aff-item .tx { position: relative; min-width: 0; }
.aff-item .n { position: absolute; right: 0; top: 0; font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.aff-item h2 { font-size: 22px; padding-right: 30px; }
.aff-item h2 a { color: var(--ink); text-decoration: none; }
.aff-item h2 a:hover { text-decoration: underline; }
.aff-item p { margin: 8px 0 0; line-height: 1.55; }
.aff-item .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.aff-more { color: var(--pine); font-weight: 700; font-size: 14px; }
@media (max-width: 600px) { .aff-item { grid-template-columns: 1fr; } .aff-item .th { aspect-ratio: 4 / 3; } .aff-item .acts .btn { width: 100%; } }
.aff-howbox { max-width: 860px; margin: 22px 0; padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.aff-howbox h3 { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.aff-howbox p { margin: 0; color: var(--muted); line-height: 1.55; }
.aff-grid { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 480px) { .aff-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } .aff-grid .card a.title { font-size: 15px; } }
.aff-prose { max-width: 720px; }
.aff-prose h1 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 14px; }
.aff-prose h2 { font-family: var(--font-body); font-weight: 800; font-size: 18px; margin: 22px 0 6px; }
.aff-prose p, .aff-prose li { line-height: 1.6; }
.aff-prose ul { padding-left: 20px; }
.aff-todo { background: var(--gold-soft); padding: 0 4px; border-radius: 4px; }

/* comes back from Amazon: a small sheet, dismissible, once */
.aff-return { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); border-radius: var(--radius); animation: uw-fade .3s both; }
.aff-return .uw-capture { margin: 0; background: var(--surface); }
.aff-return .close { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.aff-return h3 { padding-right: 36px; }

/* footer */
.aff-cols a { overflow-wrap: anywhere; }
@media (max-width: 760px) { .footer .cols.aff-cols { grid-template-columns: 1fr 1fr; } .footer .cols.aff-cols > :first-child { grid-column: 1 / -1; } }
.demo-flag { position: fixed; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 80; font: 700 11px/1 var(--font-body); background: var(--ink); color: var(--bg); padding: 6px 9px; border-radius: 999px; opacity: .8; pointer-events: none; }

/* ---- review fixes (plan08-independent-review.md) ---- */
/* dark-mode links reach 4.5:1 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pine: #56a985; } }
:root[data-theme="dark"] { --pine: #56a985; }
/* tap targets >= 44px */
.uw-chip { min-height: 44px; }
.linkish { min-height: 44px; display: inline-flex; align-items: center; }
.footer .aff-cols a { padding: 9px 0; }
.nav.open a { padding-block: 12px; }
.aff-return .close { width: 44px; height: 44px; }
.aff-why, .aff-more { display: inline-flex; align-items: center; min-height: 44px; }
/* phone: all four people chips fit in 358px, and the Amazon button lands in the first screen */
@media (max-width: 599px) {
  .aff-home .uw-chips { gap: 6px; }
  .aff-home .uw-chip { padding: 9px 10px 9px 20px; font-size: 13px; }
  .aff-home .uw-chip::before { left: 7px; }
  .aff-home .uw-stage { aspect-ratio: 358 / 230; }
  .aff-home .uw-copy h1 { font-size: 26px; }
  .aff-home .uw-tag { top: 8%; width: 44%; }
}
/* gift page on phones: short illustration, name and Amazon button before the long copy */
.aff-artcap { display: none; }
@media (max-width: 900px) {
  .aff-pdp { gap: 14px; }
  .aff-pdp .aff-art { aspect-ratio: 2 / 1; }
  .aff-pdp .aff-art svg.product { inset: 4% 30%; width: 40%; height: 92%; }
  .aff-pdp .media-note { display: none; }
  .aff-artcap { display: block; position: absolute; left: 10px; bottom: 8px; font: 600 11.5px/1 var(--font-body); color: #f1d48a; }
  .aff-pdp .info { gap: 12px; }
  .aff-pdp h1 { font-size: 28px; }
  .aff-pdp .headline { order: 3; font-size: 17px; }
  .aff-pdp .aff-buybox { order: 2; }
  .aff-pdp .info > :not(.aff-eye, h1, .headline, .aff-buybox) { order: 4; }
  .aff-crumbs { margin-bottom: 8px; }
}
/* guide picks on phones: side thumbnail instead of a full-width drawing */
@media (max-width: 600px) {
  .aff-item { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .aff-item .th { aspect-ratio: 1; }
  .aff-item h2 { font-size: 19px; }
}
.aff-why-box { margin: 4px 0 14px; }
.aff-why-box h2, .aff-prose h2 { margin-top: 18px; }
