:root {
  color-scheme: light;
  --mulberry: #5b2747;
  --mulberry-action: #7b3f64;
  --mulberry-soft: #f1e6ed;
  --blush: #f8edea;
  --cream: #fffaf7;
  --ink: #261d23;
  --secondary: #6f6269;
  --line: #e9dcdf;
  --keep: #2e7655;
  --return: #ba654f;
  --shadow: 0 20px 50px rgba(66, 28, 51, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 63, 100, 0.13), transparent 34rem),
    linear-gradient(180deg, #fffaf7 0%, #f9efec 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
.page-shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 4px 28px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: #fff; background: var(--mulberry); font-size: 20px; font-weight: 750; box-shadow: 0 8px 20px rgba(91, 39, 71, 0.22); }
.brand p { margin: 0; }
.brand-name { color: var(--mulberry); font-size: 17px; font-weight: 750; }
.brand-line { margin-top: 3px !important; color: var(--secondary); font-size: 13px; }

.decision-card, .state-card { border: 1px solid rgba(91, 39, 71, 0.08); border-radius: 28px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.decision-card { padding: clamp(22px, 6vw, 36px); }
.state-card { padding: 56px 28px; text-align: center; }
.state-card h1 { margin: 20px 0 10px; color: var(--mulberry); font-size: 26px; }
.state-card p { max-width: 410px; margin: 0 auto; color: var(--secondary); line-height: 1.55; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.private-pill { padding: 7px 11px; border-radius: 999px; color: var(--mulberry); background: var(--mulberry-soft); font-size: 12px; font-weight: 700; }
#closing-time { color: var(--secondary); font-size: 13px; }
#question { margin: 22px 0 24px; color: var(--mulberry); font-size: clamp(28px, 8vw, 40px); line-height: 1.08; letter-spacing: -0.025em; }
.item-summary { margin-bottom: 18px; }
.hero-photo { width: 100%; max-height: 420px; aspect-ratio: 4 / 5; border-radius: 22px; object-fit: cover; background: var(--blush); }
.item-name { margin: 16px 0 0; font-size: 21px; font-weight: 720; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--secondary); font-size: 14px; }
.item-note { margin: 12px 0 0; color: var(--secondary); line-height: 1.5; }

.option-list { display: grid; gap: 12px; margin-top: 20px; }
.vote-option { display: flex; width: 100%; min-height: 62px; align-items: center; gap: 14px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: transform 120ms ease, border-color 120ms ease, background 120ms ease; }
.vote-option:hover { transform: translateY(-1px); border-color: #c9a9ba; }
.vote-option[aria-checked="true"] { border-color: var(--mulberry-action); background: var(--mulberry-soft); }
.option-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--blush); font-size: 19px; }
.option-copy { flex: 1; font-weight: 700; }
.option-check { color: var(--mulberry); font-size: 20px; opacity: 0; }
.vote-option[aria-checked="true"] .option-check { opacity: 1; }
.compare-option { min-height: 104px; align-items: flex-start; padding: 12px; }
.option-photo { width: 82px; height: 98px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: var(--blush); }
.option-details { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 6px; padding: 4px 0; }
.option-item-name { font-weight: 750; }
.option-meta { color: var(--secondary); font-size: 13px; }
.option-note { color: var(--secondary); font-size: 13px; line-height: 1.4; }
.compare-option .option-check { align-self: center; }

.reasons { margin: 28px 0 24px; padding: 0; border: 0; }
.reasons legend { margin-bottom: 12px; font-size: 16px; font-weight: 720; }
.reasons legend span { color: var(--secondary); font-size: 13px; font-weight: 500; }
.reason-list { display: flex; flex-wrap: wrap; gap: 9px; }
.reason-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--secondary); background: #fff; cursor: pointer; }
.reason-chip[aria-pressed="true"] { border-color: var(--mulberry-action); color: var(--mulberry); background: var(--mulberry-soft); }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 17px; color: #fff; background: var(--mulberry-action); font-weight: 750; cursor: pointer; box-shadow: 0 12px 24px rgba(91, 39, 71, 0.2); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.privacy-note { margin: 16px 8px 0; color: var(--secondary); font-size: 12px; line-height: 1.45; text-align: center; }
.spinner { display: inline-block; width: 42px; height: 42px; border: 4px solid var(--mulberry-soft); border-top-color: var(--mulberry); border-radius: 50%; animation: spin 800ms linear infinite; }
.success-mark, .error-mark { display: grid; width: 70px; height: 70px; margin: 0 auto; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 750; }
.success-mark { color: var(--keep); background: #e5f2eb; }
.error-mark { color: var(--return); background: #fae9e4; }
.secondary-link { display: inline-block; margin-top: 24px; color: var(--mulberry); font-weight: 700; text-decoration: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .page-shell { width: min(100% - 20px, 620px); } .decision-card { border-radius: 24px; } .brand { margin-left: 6px; } .option-photo { width: 72px; height: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.01ms !important; } }
