/* Moment Minis: designer-toy shop. Flat colour blocks, chunky grotesque type, one hero moment (the 3D figurine). */
:root {
  --lilac: #ede7ff; --lilac-d: #d9cffd; --white: #fff; --ink: #1e1452; --ink-2: #4b4479; --line: #e3dcfb;
  --pink: #ff3d7f; --pink-d: #e22a69; --marigold: #ffb627; --mint: #2bd9a0; --mint-bg: #d8f8ec; --red-bg: #ffe3ec;
  --hand: "Caveat", "Comic Sans MS", cursive; --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --r-stage: 36px; --r-block: 24px; --r-ctl: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lilac); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-d); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
main { max-width: 1160px; margin: 0 auto; padding: 0 18px 80px; }
.muted { color: var(--ink-2); } .small { font-size: .88rem; } .center { text-align: center; }
.eyebrow { font-weight: 600; color: var(--ink-2); margin-bottom: .4em; }
.inline { display: inline; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; max-width: 1160px; margin: 0 auto; }
.top nav { display: flex; gap: 18px; align-items: center; font-weight: 600; font-size: .95rem; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); display: inline-grid; place-items: center; }
.logo-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; background: var(--pink); color: #fff;
  padding: 16px 26px; border-radius: 999px; font: 700 1.02rem var(--body); text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--pink-d); } .btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--lilac); }
.btn-google { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; }
.btn-google:hover { background: #faf8ff; }
.link { background: none; border: 0; color: var(--pink-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; padding: 0; }

/* surfaces */
.card { background: var(--white); border-radius: var(--r-block); padding: 24px; margin: 16px 0; }
.narrow { max-width: 470px; margin: 28px auto; }
.alert { background: var(--red-bg); color: #9b1745; padding: 12px 16px; border-radius: var(--r-ctl); font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg { margin-top: 12px; color: #9b1745; font-weight: 600; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 14px 16px; border: 0; border-radius: var(--r-ctl); background: var(--lilac); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: #8a83b3; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.row2, .row3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.or { text-align: center; margin: 18px 0; color: var(--ink-2); display: flex; gap: 12px; align-items: center; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1.5px solid var(--line); }

/* ---------------- home ---------------- */
.hero { display: grid; gap: 30px; padding: 12px 0 8px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; padding-top: 36px; } }
.hero h1 { font-size: clamp(3.1rem, 13vw, 5.3rem); line-height: .9; letter-spacing: -.055em; margin-bottom: .3em; }
.hero h1 span { display: block; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
/* hero collage: the real photo pinned onto the painted figurine picture */
.collage { position: relative; padding: 34px 0 0 0; }
@media (min-width: 900px) { .collage { padding: 40px 0 0 70px; } }
.fig-card { margin: 0 0 0 auto; width: 86%; border-radius: var(--r-stage); overflow: hidden; background: radial-gradient(110% 85% at 50% 30%, #fff 0%, #f7f3ff 50%, var(--lilac-d) 100%); transform: rotate(1.5deg); }
.fig-card { position: relative; aspect-ratio: 1; }
.fig-card .fig-still { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: opacity .5s; }
.fig-card model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; opacity: 0; transition: opacity .5s; }
.fig-card.live model-viewer { opacity: 1; } .fig-card.live .fig-still { opacity: 0; }
.drag-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255, 255, 255, .92); color: var(--ink);
  font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.fig-card.live .drag-hint { opacity: 1; } .fig-card.touched .drag-hint { opacity: 0; }
.polaroid { position: absolute; z-index: 2; left: 0; top: 0; width: 42%; margin: 0; background: #fff; padding: 8px 8px 0; border-radius: 6px;
  transform: rotate(-7deg); box-shadow: 0 14px 30px rgba(30, 20, 82, .22); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font: 600 clamp(.8rem, 2.6vw, 1.1rem)/1 var(--hand); white-space: nowrap; color: var(--ink); text-align: center; padding: 10px 0 12px; margin: 0; }
.scribble { position: absolute; z-index: 3; left: 12%; top: 58%; width: 16%; color: var(--pink); transform: rotate(18deg); }
.scribble-note { position: absolute; z-index: 3; left: 0; top: 74%; width: 13%; font: 700 1.3rem/1 var(--hand); color: var(--pink); transform: rotate(-8deg); text-align: center; }
@media (min-width: 900px) { .scribble { left: 16%; top: 56%; width: 14%; } .scribble-note { left: 2%; top: 70%; width: 14%; font-size: 1.55rem; } }
.collage .sticker { top: auto; bottom: -14px; right: -4px; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .polaroid { animation: drop .7s cubic-bezier(.2, .9, .3, 1.2) .15s both; }
  .scribble, .scribble-note { animation: fade .4s ease .8s both; }
  @keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-16deg); } to { opacity: 1; transform: rotate(-7deg); } }
  @keyframes fade { from { opacity: 0; } }
}

.occasions { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.occasions p { margin: 0; font: 700 1.4rem/1 var(--hand); color: var(--ink-2); }
.occasions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.occasions li { padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.o-pink { background: var(--pink); color: #fff; } .o-marigold { background: var(--marigold); } .o-mint { background: var(--mint); } .o-white { background: #fff; }
.sticker { position: absolute; right: 14px; top: 14px; width: 112px; height: 112px; border-radius: 50%; background: var(--marigold); color: var(--ink);
  display: grid; place-content: center; text-align: center; transform: rotate(-10deg); pointer-events: none; }
.sticker b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.04em; line-height: 1; }
.sticker span { font-size: .72rem; font-weight: 700; line-height: 1.2; }

.how { margin-top: 56px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.how ol::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .how ol { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.how li { scroll-snap-align: start; border-radius: var(--r-block); padding: 22px; min-height: 230px; display: flex; flex-direction: column; }
.how li:nth-child(1) { background: var(--white); } .how li:nth-child(2) { background: var(--marigold); }
.how li:nth-child(3) { background: var(--mint); } .how li:nth-child(4) { background: var(--pink); color: #fff; }
.how .n { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: .8; letter-spacing: -.05em; margin-bottom: 20px; }
.how .how-big { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 9vw, 5rem); letter-spacing: -.06em; line-height: .9; margin: 6px 0 22px; }
.how .how-big small { display: block; font: 700 .95rem var(--body); letter-spacing: 0; margin-top: 6px; }
.how-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.how p { margin: 0; font-size: .98rem; }
.how li:nth-child(4) p { color: #ffe6ee; }

.price-band { margin-top: 56px; background: var(--ink); color: #fff; border-radius: var(--r-stage); padding: 34px 26px; display: grid; gap: 24px; }
@media (min-width: 900px) { .price-band { grid-template-columns: auto 1fr; align-items: center; gap: 56px; padding: 48px 56px; } }
.price-band .price { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 6.5rem); letter-spacing: -.06em; line-height: .85; margin: 0; color: var(--marigold); }
.price-band .price small { display: block; font: 600 1rem var(--body); letter-spacing: 0; color: #cfc9f3; margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.faq { margin-top: 56px; }
@media (min-width: 900px) { .faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }
.faq details:first-child { margin-top: 0; }
.faq details { background: var(--white); border-radius: 18px; padding: 18px 22px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.4rem/1 var(--display); color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; display: flex; }
.mobile-cta .btn { flex: 1; box-shadow: 0 10px 30px rgba(30, 20, 82, .28); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
body.home .foot { padding-bottom: 80px; }

/* ---------------- studio ---------------- */
.studio { max-width: 760px; margin: 0 auto; }
.drop { position: relative; display: block; border-radius: var(--r-block); background: var(--lilac); cursor: pointer; min-height: 190px; outline: 2px dashed #b8acf2; outline-offset: -8px; }
.drop:hover { background: #e6defe; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-in { display: grid; place-items: center; min-height: 190px; color: var(--ink-2); font-weight: 600; padding: 16px; gap: 10px; text-align: center; }
.drop-in img { max-height: 280px; border-radius: 16px; }
.designs { display: grid; gap: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; align-items: start; }
.pair figure { margin: 0; }
.pair img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--lilac); }
.pair .fig img { object-fit: contain; background: #fff; }
figcaption { font-size: .82rem; color: var(--ink-2); font-weight: 600; margin-top: 8px; }
.fig-box { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #fff, var(--lilac)); border-radius: 18px; display: grid; place-items: center; overflow: hidden; }
.fig-box.big img { width: 100%; height: 100%; object-fit: contain; }
.spinner { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 12px; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.spinner.overlay { position: absolute; inset: 0; place-content: center; background: rgba(237, 231, 255, .72); }
.spinner span { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--lilac-d); border-top-color: var(--pink); animation: spin .9s linear infinite; }
.spinner p { margin: 0; max-width: 18ch; }
@keyframes spin { to { transform: rotate(360deg); } }
.design-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1.5px solid var(--lilac); text-decoration: none; color: var(--ink); font-weight: 600; }
.pill { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--lilac); color: var(--ink); white-space: nowrap; }
.pill-model_ready, .pill-shipped, .pill-delivered, .pill-approved { background: var(--mint-bg); color: #0b6b4a; }
.pill-model_failed, .pill-cancelled { background: var(--red-bg); color: #9b1745; }
.pill-paid, .pill-modelling, .pill-printing { background: #fff1d1; color: #7a5200; }
.quota { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink-2); }
.quota i { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); display: inline-block; }
.quota i.used { background: var(--lilac-d); }

/* ---------------- checkout + order ---------------- */
.checkout { display: grid; gap: 2px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .checkout { grid-template-columns: .9fr 1.2fr; gap: 20px; align-items: start; } .checkout .summary { position: sticky; top: 16px; } }
.summary img { border-radius: 20px; background: radial-gradient(circle at 50% 35%, #fff, var(--lilac)); margin-bottom: 18px; aspect-ratio: 1; object-fit: contain; width: 100%; }
.summary .price { font-family: var(--display); font-weight: 800; font-size: 2.8rem; letter-spacing: -.05em; margin: 4px 0 0; }
.order { max-width: 820px; margin: 0 auto; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.timeline li { font-size: .7rem; font-weight: 600; color: var(--ink-2); padding-top: 12px; position: relative; line-height: 1.2; }
.timeline li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: var(--lilac); }
.timeline li.done::before { background: var(--mint); }
.timeline li.now::before { background: var(--pink); }
.timeline li.now { color: var(--ink); }
@media (max-width: 520px) { .timeline li { color: transparent; font-size: .7rem; } .timeline li.now { color: var(--ink); white-space: nowrap; overflow: visible; } }
model-viewer { width: 100%; height: min(70vh, 540px); background: radial-gradient(circle at 50% 38%, #fff, var(--lilac) 75%); border-radius: var(--r-block); --poster-color: transparent; }

/* ---------------- prose, footer, admin ---------------- */
.prose h2 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose p, .prose li { color: #2f2766; max-width: 68ch; }
.foot { margin-top: 30px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 28px 18px 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--ink-2); font-weight: 500; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1.5px solid var(--lilac); vertical-align: top; }
.tbl th { color: var(--ink-2); font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stats span { background: var(--lilac); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.filters { margin-bottom: 10px; max-width: 260px; }
.admin .pair { grid-template-columns: 1fr 1fr; }
.admin .pair img { aspect-ratio: auto; max-height: 360px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
