/* Hallmark · genre: playful · macrostructure: Component Playground (hero) → Catalogue · theme: custom (Soft Sun) · enrichment: E5 hand-built SVG · nav: N1b · footer: Ft5 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-sun); color: var(--color-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: 50; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-md); }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--color-rule); }
.nav__inner { display: flex; align-items: center; gap: var(--space-lg); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; white-space: nowrap; }
.brand__sun { width: 34px; height: 34px; flex: none; }
.brand small { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 2px; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: var(--text-sm); white-space: nowrap; padding-block: var(--space-xs); background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 0 2px no-repeat; transition: background-size var(--dur-med) var(--ease-out); }
.nav__links a:hover { background-size: 100% 2px; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .nav .btn { min-height: 42px; padding: 0 var(--space-md); }
}

/* ── buttons (8 states) ─────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--color-ink); --btn-fg: var(--color-paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg);
  border: 2px solid var(--btn-bg); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: var(--text-sm); letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.btn:hover, .btn.is-hover { background: var(--color-ink-soft); box-shadow: 0 10px 22px -12px oklch(35% 0.08 40 / 0.6); transform: translateY(-1px); }
.btn:focus-visible, .btn.is-focus { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:active, .btn.is-active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[data-state="loading"] { color: transparent; pointer-events: none; }
.btn[data-state="loading"]::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
.btn[data-state="error"] { --btn-bg: var(--color-danger); }
.btn[data-state="success"] { --btn-bg: var(--color-success); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-ink); border-color: var(--color-rule); }
.btn--ghost:hover { background: var(--color-paper-2); box-shadow: none; }
.btn--sun { --btn-bg: var(--color-sun); --btn-fg: var(--color-ink); }
.btn--sun:hover { background: oklch(84% 0.14 82); }
.btn--lg { min-height: 58px; padding: 0 var(--space-xl); font-size: var(--text-base); }
.btn--block { width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--color-accent-ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--color-accent); }

/* ── hero (playground) ───────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(var(--space-xl), 5vw, var(--space-3xl)) var(--space-4xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(var(--space-xl), 5vw, var(--space-4xl)); align-items: center; }
.hero h1 { font-size: var(--text-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 .swash { position: relative; display: inline-block; color: var(--color-accent-ink); }
.hero h1 .swash svg { position: absolute; left: -2%; right: -2%; bottom: -0.16em; width: 104%; height: 0.28em; overflow: visible; }
.hero__lede { margin-top: var(--space-lg); font-size: var(--text-lg); color: var(--color-muted); max-width: 34ch; }
.try { margin-top: var(--space-xl); max-width: 30rem; }
.try label { display: block; font-family: var(--font-script); font-size: 1.7rem; font-weight: 600; color: var(--color-accent-ink); line-height: 1; margin-bottom: var(--space-xs); }
.try__row { display: flex; gap: var(--space-xs); padding: 6px; background: var(--color-card); border: 2px solid var(--color-rule); border-radius: var(--radius-pill); transition: border-color var(--dur-fast) var(--ease-out); }
.try__row:focus-within { border-color: var(--color-accent); }
.try input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--space-md); font-size: var(--text-lg); font-weight: 700; }
.try input:focus { outline: none; }
.try input::placeholder { color: var(--color-neutral); font-weight: 600; }
.try__hint { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.stage { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.stage__sun { position: absolute; inset: -6% -10% auto auto; width: 82%; aspect-ratio: 1; z-index: 0; }
.stage__sun .rays { transform-origin: 50% 50%; animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.stage__rig { position: absolute; inset: 0; display: grid; place-items: center; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 600ms var(--ease-out); transform-style: preserve-3d; z-index: 1; }
.stage__card {
  position: absolute; width: 56%; aspect-ratio: 1500 / 2100; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-invite); background: var(--color-card);
  transform: translate(0, 8%) rotate(0deg) scale(0.92); opacity: 0;
  transition: transform 1100ms var(--ease-out), opacity 500ms var(--ease-out);
}
.stage__card svg { width: 100%; height: 100%; }
.stage__card--front { z-index: 3; }
.stage__card--left { z-index: 1; }
.stage__card--right { z-index: 2; }
.stage.is-dealt .stage__card { opacity: 1; }
.stage.is-dealt .stage__card--left { transform: translate(-40%, 7%) rotate(-11deg); transition-delay: 120ms; }
.stage.is-dealt .stage__card--right { transform: translate(40%, 9%) rotate(10deg); transition-delay: 240ms; }
.stage.is-dealt .stage__card--front { transform: translate(0, -2%) rotate(-1.5deg); transition-delay: 380ms; }
.stage.is-dealt:hover .stage__card--left { transform: translate(-46%, 5%) rotate(-14deg); transition-delay: 0ms; }
.stage.is-dealt:hover .stage__card--right { transform: translate(46%, 7%) rotate(13deg); transition-delay: 0ms; }
.stage.is-dealt:hover .stage__card--front { transform: translate(0, -4%) rotate(0deg) scale(1.02); transition-delay: 0ms; }

.floaties { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.floaty { position: absolute; animation: drift 7s var(--ease-in-out) infinite alternate; opacity: 0.9; }
.f1 { width: 34px; left: 4%; top: 18%; animation-delay: -1s; }
.f2 { width: 30px; right: 2%; top: 30%; animation-delay: -3s; }
.f3 { width: 18px; left: 14%; bottom: 14%; animation-delay: -2s; }
.f4 { width: 22px; right: 12%; bottom: 8%; animation-delay: -4s; }
.f5 { width: 12px; left: 30%; top: 4%; animation-delay: -5s; }
.f6 { width: 16px; right: 28%; top: 0%; animation-delay: -6s; }
@keyframes drift { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(6px, -18px) rotate(8deg); } }

.hero h1 { animation: rise 900ms var(--ease-out) both; }
.hero__lede, .try { animation: rise 900ms var(--ease-out) both; animation-delay: 160ms; }
.hero h1 .swash path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 900ms var(--ease-out) 700ms forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── design wall ─────────────────────────────────────────────────── */
.wall { padding-block: var(--space-xl) var(--space-4xl); overflow: hidden; }
.wall__title { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto var(--space-2xl); font-size: var(--text-2xl); text-align: center; text-wrap: balance; }
.wall__title span { color: var(--color-accent-ink); }
.wall__row { display: flex; width: max-content; gap: clamp(16px, 2.4vw, 32px); padding-block: var(--space-md); animation: slide 90s linear infinite; }
.wall__row--rev { animation-direction: reverse; animation-duration: 110s; }
.wall:hover .wall__row { animation-play-state: paused; }
.wall__item { display: block; width: clamp(130px, 15vw, 196px); aspect-ratio: 1500 / 2100; border-radius: 5px; overflow: hidden; background: var(--color-card); box-shadow: var(--shadow-card); transform: rotate(var(--t, 0deg)); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); flex: none; }
.wall__item svg { width: 100%; height: 100%; }
.wall__item:hover { transform: rotate(0deg) translateY(-8px) scale(1.05); box-shadow: var(--shadow-lift); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── scalloped edges ─────────────────────────────────────────────── */
.journey { position: relative; border-block: 0; }
.journey::before, .journey::after, .footer::before { content: ""; position: absolute; left: 0; right: 0; height: 18px; background-size: 36px 18px; background-repeat: repeat-x; pointer-events: none; }
.journey::before { top: -18px; background-image: radial-gradient(circle at 18px 18px, var(--color-paper-2) 17.5px, transparent 18px); }
.journey::after { bottom: -18px; background-image: radial-gradient(circle at 18px 0, var(--color-paper-2) 17.5px, transparent 18px); }
.footer { position: relative; }
.footer::before { top: -18px; background-image: radial-gradient(circle at 18px 18px, var(--color-ink) 17.5px, transparent 18px); }

.swatches { position: absolute; z-index: 5; bottom: -2%; right: 4%; display: flex; gap: var(--space-xs); padding: 8px; background: var(--color-card); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--color-card); padding: 0; cursor: pointer;
  background: conic-gradient(var(--s1) 0 50%, var(--s2) 0 100%);
  box-shadow: 0 0 0 1.5px var(--color-rule);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--color-ink); }
.swatch:focus-visible { outline-offset: 4px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 520px; width: 100%; margin-inline: auto; aspect-ratio: 1 / 0.92; }
  .hero { padding-bottom: var(--space-2xl); }
}

/* ── journey ─────────────────────────────────────────────────────── */
.journey { padding-block: var(--space-3xl); background: var(--color-paper-2); border-block: var(--rule); }
.journey h2 { font-size: var(--text-3xl); max-width: 18ch; }
.journey__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: end; }
.journey__intro p { color: var(--color-muted); max-width: 44ch; }
.stops { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-sm); list-style: none; padding: 0; margin: var(--space-2xl) 0 0; }
.stops::before { content: ""; position: absolute; left: 6%; right: 6%; top: 38px; border-top: 3px dotted var(--color-sun-ray); }
.stop a { position: relative; display: grid; justify-items: center; gap: var(--space-sm); text-align: center; text-decoration: none; padding: var(--space-xs); border-radius: var(--radius-md); }
.stop__dot { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); border: 3px solid var(--color-paper-2); box-shadow: 0 0 0 2px var(--color-rule); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.stop__dot svg { width: 40px; height: 40px; }
.stop a:hover .stop__dot { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--color-accent); }
.stop__label { font-weight: 800; font-size: var(--text-sm); line-height: 1.25; }
.stop__count { font-size: var(--text-xs); color: var(--color-muted); font-weight: 700; }
@media (max-width: 760px) {
  .journey__intro { grid-template-columns: minmax(0, 1fr); }
  .stops { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .stops::before { display: none; }
}

/* ── shop ────────────────────────────────────────────────────────── */
.shop { padding-block: var(--space-4xl) var(--space-3xl); scroll-margin-top: 60px; }
.shop__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.shop__head h2 { font-size: var(--text-3xl); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-rule); background: var(--color-card);
  font-weight: 800; font-size: var(--text-sm); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-neutral); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--space-lg), 3vw, var(--space-2xl)) clamp(var(--space-md), 2.5vw, var(--space-xl)); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: block; text-decoration: none; border-radius: var(--radius-md); }
.card__tile { position: relative; aspect-ratio: 1 / 1.1; border-radius: var(--radius-md); background: var(--tile, var(--color-paper-3)); display: grid; place-items: center; overflow: hidden; }
.card__invite { width: 64%; aspect-ratio: 1500 / 2100; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-invite); transform: rotate(var(--tilt, -2deg)); transition: transform var(--dur-slow) var(--ease-out); background: var(--color-card); }
.card.is-tilting .card__invite { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.04); transition-duration: 160ms; }
.card__badge--new { background: var(--color-ink); color: var(--color-paper); }
.card__invite svg { width: 100%; height: 100%; }
.card:hover .card__invite { transform: rotate(0deg) translateY(-6px) scale(1.03); }
.card__badge { position: absolute; top: var(--space-sm); left: var(--space-sm); padding: 3px var(--space-sm); border-radius: var(--radius-pill); background: var(--color-card); font-size: var(--text-xs); font-weight: 800; }
.card__meta { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: baseline; padding: var(--space-md) var(--space-2xs) 0; }
.card__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; font-variation-settings: "SOFT" 100; line-height: 1.15; }
.card__occ { font-size: var(--text-sm); color: var(--color-muted); font-weight: 700; }
.card__price { font-weight: 800; white-space: nowrap; }
.card:focus-visible { outline-offset: 6px; }
.empty { padding: var(--space-2xl); text-align: center; color: var(--color-muted); border: 2px dashed var(--color-rule); border-radius: var(--radius-md); }

/* ── how it works ────────────────────────────────────────────────── */
.how { padding-block: var(--space-3xl) var(--space-4xl); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(var(--space-xl), 5vw, var(--space-4xl)); }
.how h2 { font-size: var(--text-3xl); margin-bottom: var(--space-xl); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-xl); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-md); }
.steps li::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-sun); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; font-variation-settings: "SOFT" 100; }
.steps h3 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.steps p { color: var(--color-muted); max-width: 46ch; }
.gets { background: var(--color-card); border-radius: var(--radius-lg); padding: clamp(var(--space-lg), 4vw, var(--space-2xl)); box-shadow: var(--shadow-card); align-self: start; }
.gets h3 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.gets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.gets li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); }
.gets li svg { width: 24px; height: 24px; margin-top: 2px; }
.gets strong { display: block; }
.gets span { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 860px) { .how__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── note from the maker ─────────────────────────────────────────── */
.note { padding-block: var(--space-2xl) var(--space-4xl); }
.note__card { max-width: 40rem; margin-inline: auto; text-align: center; }
.note__card p { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.35; font-variation-settings: "SOFT" 100, "opsz" 40; font-weight: 400; }
.note__sig { margin-top: var(--space-lg); font-family: var(--font-script); font-size: 2.2rem; color: var(--color-accent-ink); }

/* ── faq ─────────────────────────────────────────────────────────── */
.faq { padding-block: var(--space-3xl) var(--space-4xl); border-top: var(--rule); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-2xl); }
.faq h2 { font-size: var(--text-3xl); }
.faq__intro p { margin-top: var(--space-md); color: var(--color-muted); }
.qa { border-bottom: var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) 0; font-weight: 800; font-size: var(--text-lg); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--color-accent-ink); transition: transform var(--dur-med) var(--ease-out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: var(--space-lg); color: var(--color-muted); max-width: var(--measure); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── footer ──────────────────────────────────────────────────────── */
.footer { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-4xl) var(--space-xl); }
.footer__big { font-family: var(--font-display); font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variation-settings: "SOFT" 100; max-width: 15ch; }
.footer__big span { color: var(--color-sun); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid oklch(45% 0.03 40); font-size: var(--text-sm); }
.footer__row nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.footer a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer small { color: oklch(78% 0.02 70); }

/* ── product / editor page ───────────────────────────────────────── */
.crumbs { padding-block: var(--space-lg) 0; font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--color-ink); }
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(var(--space-xl), 4vw, var(--space-3xl)); padding-block: var(--space-xl) var(--space-4xl); align-items: start; }
.preview { position: sticky; top: 84px; background: var(--tile, var(--color-paper-3)); border-radius: var(--radius-lg); padding: clamp(var(--space-lg), 5vw, var(--space-3xl)); display: grid; place-items: center; }
.preview__invite { width: min(100%, 470px); aspect-ratio: 1500 / 2100; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-invite); background: var(--color-card); }
.preview__invite svg { width: 100%; height: 100%; }
.preview__note { margin-top: var(--space-md); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); text-align: center; }
.panel h1 { font-size: var(--text-3xl); }
.panel__occ { display: inline-block; margin-bottom: var(--space-sm); font-weight: 800; font-size: var(--text-sm); color: var(--color-accent-ink); }
.panel__blurb { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-lg); }
.panel__price { margin-top: var(--space-md); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; }
.panel__section { margin-top: var(--space-xl); }
.panel__label { font-weight: 800; font-size: var(--text-sm); margin-bottom: var(--space-sm); display: flex; justify-content: space-between; gap: var(--space-sm); }
.panel__label span { color: var(--color-muted); font-weight: 700; }
.palettes { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.palette-btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md) 0 6px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-rule); background: var(--color-card); font-weight: 800; font-size: var(--text-sm); cursor: pointer; white-space: nowrap; }
.palette-btn:hover { border-color: var(--color-neutral); }
.palette-btn[aria-pressed="true"] { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.palette-btn i { display: flex; }
.palette-btn i b { width: 16px; height: 30px; display: block; }
.palette-btn i b:first-child { border-radius: 15px 0 0 15px; }
.palette-btn i b:last-child { border-radius: 0 15px 15px 0; }

.fields { display: grid; gap: var(--space-md); }
.field label { display: flex; justify-content: space-between; gap: var(--space-sm); font-weight: 800; font-size: var(--text-sm); margin-bottom: 6px; }
.field label small { color: var(--color-neutral); font-weight: 700; font-variant-numeric: tabular-nums; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--color-rule); border-radius: var(--radius-sm);
  background: var(--color-card); padding: 12px 14px; font-weight: 600; font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--color-neutral); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px oklch(64% 0.15 40 / 0.2); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.field__help { margin-top: 4px; font-size: var(--text-xs); color: var(--color-muted); }
.buy { margin-top: var(--space-xl); display: grid; gap: var(--space-sm); }
.buy__msg { font-size: var(--text-sm); color: var(--color-danger); font-weight: 700; min-height: 1.4em; }
.perks { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.perks li { display: flex; gap: var(--space-xs); align-items: center; }
.perks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-sun); box-shadow: 0 0 0 3px oklch(87% 0.13 85 / 0.35); flex: none; }
.more { padding-block: var(--space-3xl) var(--space-4xl); border-top: var(--rule); }
.more h2 { font-size: var(--text-2xl); margin-bottom: var(--space-xl); }
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .preview { position: relative; top: 0; }
}

/* ── download page ───────────────────────────────────────────────── */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.dl { display: grid; gap: 2px; text-align: left; padding: var(--space-md); border-radius: var(--radius-md); border: 1.5px solid var(--color-rule); background: var(--color-card); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.dl:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.dl:active { transform: translateY(0); }
.dl strong { font-size: var(--text-base); }
.dl span { font-size: var(--text-xs); color: var(--color-muted); font-weight: 700; }
.dl[data-state="loading"] { opacity: 0.6; pointer-events: none; }
.dl[data-state="loading"] strong::after { content: " · preparing…"; color: var(--color-muted); }
@media (max-width: 420px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.banner { margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); background: var(--color-butter); font-weight: 700; font-size: var(--text-sm); }
.banner code { font-size: var(--text-xs); word-break: break-all; }
.state { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-4xl); }
.state h1 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
.state p { color: var(--color-muted); max-width: 42ch; margin-inline: auto; }
.status { font-size: var(--text-sm); font-weight: 700; min-height: 1.4em; }
.status[data-tone="ok"] { color: var(--color-success); }
.status[data-tone="bad"] { color: var(--color-danger); }

/* ── ribbon, kicker & trust line ─────────────────────────────────── */
.ribbon { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs) var(--space-lg); padding: var(--space-xs) var(--gutter); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.04em; }
.ribbon span { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.ribbon span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-sun); }
@media (max-width: 520px) { .ribbon span:nth-child(3) { display: none; } }
.kicker { margin-bottom: var(--space-md); font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-ink); }
.trust { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.trust li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--color-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23387a50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.trust b { color: var(--color-ink); font-weight: 800; }
.panel__price span { display: block; margin-top: 2px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; color: var(--color-success); }

/* ── occasion landing pages ──────────────────────────────────────── */
.ohero { padding-block: var(--space-md) var(--space-2xl); background: radial-gradient(ellipse 60% 90% at 90% 0%, var(--color-butter), transparent 70%); }
.ohero .crumbs { padding-top: 0; margin-bottom: var(--space-lg); }
.ohero h1 { font-size: var(--text-display); letter-spacing: -0.035em; max-width: 14ch; }
.ohero__intro { margin-top: var(--space-lg); font-size: var(--text-lg); color: var(--color-muted); max-width: 52ch; }
.ohero__count { margin-top: var(--space-md); font-weight: 800; color: var(--color-accent-ink); }
.ohero + .shop { padding-top: var(--space-lg); }
.tips { margin-top: var(--space-4xl); padding-block: var(--space-3xl); background: var(--color-paper-2); border-block: var(--rule); }
.tips h2, .others h2 { font-size: var(--text-2xl); margin-bottom: var(--space-xl); }
.tips__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.tip h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.tip p { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 760px) { .tips__grid { grid-template-columns: minmax(0, 1fr); } }
.others { padding-block: var(--space-3xl) var(--space-4xl); }
.others .chip { display: inline-flex; align-items: center; text-decoration: none; }
.footer__occasions { margin-top: var(--space-lg); padding-top: 0; border-top: 0; align-items: end; }
.footer__occasions nav { gap: var(--space-xs) var(--space-lg); }
.footer__occasions nav a { font-weight: 600; color: oklch(85% 0.02 70); }

/* ── Etsy code page ──────────────────────────────────────────────── */
.redeem { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(var(--space-xl), 5vw, var(--space-4xl)); align-items: center; padding-block: var(--space-3xl) var(--space-4xl); }
.redeem__art { aspect-ratio: 1500 / 2100; width: min(100%, 380px); justify-self: center; border-radius: 6px; overflow: hidden; background: var(--color-paper-3); box-shadow: var(--shadow-invite); transform: rotate(-2deg); }
.redeem__art svg { width: 100%; height: 100%; }
.redeem__card { display: grid; gap: var(--space-md); max-width: 30rem; }
.redeem__card h1 { font-size: var(--text-3xl); }
.redeem__card #code { font-size: var(--text-xl); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 760px) { .redeem { grid-template-columns: minmax(0, 1fr); } .redeem__art { width: min(60%, 260px); } }

/* ── reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; }
  .reveal { transform: none; }
  .stage__sun .rays, .floaty, .wall__row { animation: none; }
  .hero h1, .hero__lede, .try { animation: none; }
  .hero h1 .swash path { animation: none; stroke-dashoffset: 0; }
  .stage__card { transition-duration: 1ms; }
  .wall__row { flex-wrap: nowrap; }
  .card:hover .card__invite { transform: rotate(var(--tilt, -2deg)); }
}
