:root {
  --bg: #fff8f1;
  --ink: #3b3340;
  --muted: #6f6677;
  --card: #ffffff;
  --peach: #ffd6c2;
  --mint: #cdeedd;
  --butter: #ffe9a8;
  --rose: #f6c6c6;
  --sky: #cfe3ff;
  --lilac: #e4d7ff;
  --shadow: 0 12px 30px rgba(80, 60, 90, 0.10);
  --radius: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
h1, h2 { font-family: "Fredoka", "Nunito", sans-serif; letter-spacing: 0.3px; }

.blob {
  position: fixed; border-radius: 50%; filter: blur(60px); opacity: .7; z-index: 0; pointer-events: none;
}
.blob-a { width: 420px; height: 420px; background: var(--peach); top: -140px; left: -120px; }
.blob-b { width: 380px; height: 380px; background: var(--mint); bottom: -140px; right: -100px; }
.blob-c { width: 300px; height: 300px; background: var(--lilac); top: 40%; right: -120px; }

.page { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 56px 16px 48px; }

.hero { text-align: center; margin-bottom: 44px; }
.hero-icons { position: relative; height: 54px; margin-bottom: 4px; }
.float { position: absolute; font-size: 30px; animation: bob 3.6s ease-in-out infinite; }
.f1 { left: 18%; top: 4px; animation-delay: 0s; }
.f2 { left: 38%; top: 18px; animation-delay: .6s; }
.f3 { left: 58%; top: 0; animation-delay: 1.2s; }
.f4 { left: 78%; top: 16px; animation-delay: 1.8s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }

.kicker { margin: 0; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
h1 {
  margin: 6px 0 14px; font-size: clamp(42px, 8vw, 72px); font-weight: 700; line-height: 1.05;
  background: linear-gradient(90deg, #f0876f, #c986d9 55%, #6fb8e8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro { max-width: 560px; margin: 0 auto; font-size: 18px; line-height: 1.55; color: var(--muted); }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .options { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--card); border: 0; border-radius: var(--radius); padding: 28px 26px 26px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; cursor: pointer;
  font: inherit; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
}
.card-new::before { background: var(--peach); }
.card-preloved::before { background: var(--mint); }
.card-gift::before { background: var(--butter); }
.card:hover, .card:focus-visible { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 18px 40px rgba(80, 60, 90, 0.16); outline: none; }
.card:focus-visible { box-shadow: 0 0 0 4px var(--sky), var(--shadow); }
.emoji {
  font-size: 40px; line-height: 1; width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 22px; margin: 6px 0 16px;
}
.card-new .emoji { background: var(--peach); }
.card-preloved .emoji { background: var(--mint); }
.card-gift .emoji { background: var(--butter); }
.card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; }
.card p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; flex: 1; }
.cta { font-weight: 700; color: var(--ink); background: #f4eef8; padding: 10px 16px; border-radius: 999px; }

.foot { text-align: center; margin-top: 48px; color: var(--muted); font-weight: 600; }

/* Dialog */
.dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(60,40,70,.3); }
.dialog::backdrop { background: rgba(60, 45, 70, 0.45); backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: 30px 28px 24px; margin: 0; }
.dialog h2 { margin: 0 0 6px; font-size: 28px; padding-right: 40px; }
.dialog-sub { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.close { position: absolute; top: 12px; right: 14px; border: 0; background: #f4eef8; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.qr-wrap { display: grid; place-items: center; background: #fff; border: 3px dashed var(--butter); border-radius: 20px; padding: 14px; margin-bottom: 18px; }
.qr svg { width: 220px; height: 220px; display: block; }
.qr-note { margin: 12px 0; color: var(--muted); font-weight: 600; }
.hidden { display: none !important; }
.details { margin: 0; display: grid; gap: 8px; }
.details div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; }
.details dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.details dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.details dd .msg-input { flex: 1 1 100%; }
.msg-input { width: 100%; min-width: 0; font: inherit; font-weight: 700; color: var(--ink); border: 2px solid var(--lilac); border-radius: 12px; padding: 7px 10px; background: #fcfaff; }
.msg-input:focus { outline: none; border-color: #c986d9; box-shadow: 0 0 0 3px var(--lilac); }
.copy { border: 0; background: var(--butter); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tiny { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .float { animation: none; } .card { transition: none; } }

@media (max-width: 480px) {
  .dialog-inner { padding: 22px 18px 20px; }
  .dialog h2 { font-size: 24px; }
  .dialog-sub { font-size: 15px; margin-bottom: 14px; }
  .qr-wrap { padding: 10px; margin-bottom: 14px; }
  .qr svg { width: 190px; height: 190px; }
  .details { gap: 12px; }
  .details div { grid-template-columns: 1fr; gap: 3px; }
  .details dt { font-size: 12px; }
}
