:root {
  --plum-950: #1d0a2b;
  --plum-900: #2a0f3d;
  --plum-800: #3b1656;
  --plum-700: #4a1b6b;
  --plum-600: #5e2587;
  --plum-500: #7a3fa5;
  --plum-200: #dccbea;
  --plum-100: #efe6f5;
  --plum-50: #f7f1fa;
  --gold: #c29a45;
  --gold-600: #a88033;
  --gold-soft: #eedfb8;
  --cream: #fbf6ee;
  --cream-2: #f4ecdf;
  --paper: #ffffff;
  --ink: #1c1320;
  --ink-2: #4a4150;
  --ink-3: #7b7282;
  --line: #e7dfe9;
  --leaf: #4e9a1e;
  --leaf-soft: #e4f1da;
  --danger: #c0392b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(42, 15, 61, .06), 0 2px 8px rgba(42, 15, 61, .05);
  --shadow: 0 2px 4px rgba(42, 15, 61, .05), 0 12px 32px rgba(42, 15, 61, .10);
  --shadow-lg: 0 24px 64px rgba(29, 10, 43, .22);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "opsz" 96; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--plum-700); color: #fff; box-shadow: 0 8px 24px rgba(74, 27, 107, .28); }
.btn-primary:hover { background: var(--plum-600); }
.btn-gold { background: var(--gold); color: var(--plum-950); box-shadow: 0 8px 24px rgba(194, 154, 69, .35); }
.btn-gold:hover { background: #cfa851; }
.btn-ghost { border: 1.5px solid currentColor; color: var(--plum-700); }
.btn-ghost:hover { background: var(--plum-700); color: #fff; border-color: var(--plum-700); }
.btn-light { background: #fff; color: var(--plum-800); }
.btn-light:hover { background: var(--plum-50); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--plum-100); color: var(--plum-700);
}
.chip-gold { background: var(--gold-soft); color: #6d5118; }
.chip-leaf { background: var(--leaf-soft); color: #2f6310; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input {
  height: 50px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--plum-500); box-shadow: 0 0 0 4px var(--plum-100); }
.input.invalid { border-color: var(--danger); }

/* Modal */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(29, 10, 43, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
  position: relative;
}
.overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--plum-50); color: var(--plum-800); z-index: 2;
}
.modal-close:hover { background: var(--plum-100); }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: var(--plum-950); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast .icon { color: var(--gold); }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.demo-bar {
  background: var(--plum-950); color: var(--plum-200); font-size: 13px; text-align: center;
  padding: 8px 40px; position: relative; line-height: 1.4;
}
.demo-bar b { color: var(--gold-soft); }
.demo-bar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--plum-200); padding: 4px 8px; }

.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--plum-100); border-top-color: var(--plum-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
