/* ============================================================
   date-invite · design system
   Editorial cinema-noir aesthetic con 5 temi switchabili
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----------------------------------------------------------
   Reset essenziale
   ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----------------------------------------------------------
   Design tokens (default = midnight theme)
   ---------------------------------------------------------- */
:root,
[data-theme="midnight"] {
  --bg-deep:      #08080d;
  --bg-soft:      #12121b;
  --bg-elevated:  #1a1a26;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-2:    rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.12);
  --border-soft:  rgba(255, 255, 255, 0.06);
  --ink-1:        #faf7f0;
  --ink-2:        #c8c5b9;
  --ink-3:        #7a7869;
  --accent:       #ff2e88;            /* magenta neon */
  --accent-2:     #00f0ff;            /* ciano neon */
  --warm:         #ffd76b;            /* giallo caldo */
  --success:      #6bff9e;
  --danger:       #ff5b5b;
  --glow:         0 0 40px rgba(255, 46, 136, 0.4);
  --glow-2:       0 0 30px rgba(0, 240, 255, 0.35);
  --grain-opacity: 0.06;
  --bg-image: radial-gradient(ellipse at top, rgba(255, 46, 136, 0.08), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(0, 240, 255, 0.06), transparent 60%);
}

[data-theme="rose"] {
  --bg-deep:      #1a0a14;
  --bg-soft:      #25101d;
  --bg-elevated:  #311525;
  --surface:      rgba(255, 220, 230, 0.05);
  --surface-2:    rgba(255, 220, 230, 0.08);
  --border:       rgba(255, 200, 215, 0.15);
  --border-soft:  rgba(255, 200, 215, 0.08);
  --ink-1:        #fff0e8;
  --ink-2:        #d9b8c2;
  --ink-3:        #8a6975;
  --accent:       #ff85a8;
  --accent-2:     #e8b86b;
  --warm:         #f5d29a;
  --success:      #a8e88f;
  --danger:       #ff7575;
  --glow:         0 0 40px rgba(255, 133, 168, 0.45);
  --glow-2:       0 0 30px rgba(232, 184, 107, 0.35);
  --bg-image: radial-gradient(ellipse at top, rgba(255, 133, 168, 0.12), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(232, 184, 107, 0.08), transparent 60%);
}

[data-theme="noir"] {
  --bg-deep:      #050505;
  --bg-soft:      #0d0a0a;
  --bg-elevated:  #161212;
  --surface:      rgba(255, 240, 230, 0.03);
  --surface-2:    rgba(255, 240, 230, 0.06);
  --border:       rgba(255, 240, 230, 0.10);
  --border-soft:  rgba(255, 240, 230, 0.05);
  --ink-1:        #f5ede0;
  --ink-2:        #b8a995;
  --ink-3:        #6e6253;
  --accent:       #d62828;
  --accent-2:     #f5b841;
  --warm:         #f5b841;
  --success:      #8fbf73;
  --danger:       #d62828;
  --glow:         0 0 40px rgba(214, 40, 40, 0.4);
  --glow-2:       0 0 30px rgba(245, 184, 65, 0.3);
  --bg-image: radial-gradient(ellipse at top left, rgba(214, 40, 40, 0.06), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(245, 184, 65, 0.04), transparent 60%);
}

[data-theme="vintage"] {
  --bg-deep:      #1a1410;
  --bg-soft:      #261d16;
  --bg-elevated:  #32261d;
  --surface:      rgba(245, 220, 180, 0.04);
  --surface-2:    rgba(245, 220, 180, 0.07);
  --border:       rgba(245, 220, 180, 0.13);
  --border-soft:  rgba(245, 220, 180, 0.06);
  --ink-1:        #f5e8d0;
  --ink-2:        #c9b58c;
  --ink-3:        #7a6a4f;
  --accent:       #e8945a;
  --accent-2:     #b5854a;
  --warm:         #f0c674;
  --success:      #a8c47f;
  --danger:       #c75a4a;
  --glow:         0 0 35px rgba(232, 148, 90, 0.35);
  --glow-2:       0 0 25px rgba(181, 133, 74, 0.3);
  --bg-image: radial-gradient(ellipse at top, rgba(232, 148, 90, 0.08), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(181, 133, 74, 0.05), transparent 60%);
}

[data-theme="sunset"] {
  --bg-deep:      #0f0820;
  --bg-soft:      #1a0e35;
  --bg-elevated:  #261648;
  --surface:      rgba(255, 200, 150, 0.04);
  --surface-2:    rgba(255, 200, 150, 0.07);
  --border:       rgba(255, 200, 150, 0.15);
  --border-soft:  rgba(255, 200, 150, 0.06);
  --ink-1:        #fff3e8;
  --ink-2:        #d6b89a;
  --ink-3:        #8a7060;
  --accent:       #ff6b35;
  --accent-2:     #ffd23f;
  --warm:         #ffd23f;
  --success:      #95e08e;
  --danger:       #ff4757;
  --glow:         0 0 45px rgba(255, 107, 53, 0.5);
  --glow-2:       0 0 35px rgba(255, 210, 63, 0.35);
  --bg-image: radial-gradient(ellipse at top, rgba(255, 107, 53, 0.15), transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(140, 70, 180, 0.18), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(255, 210, 63, 0.08), transparent 60%);
}

/* ----------------------------------------------------------
   Typography & base
   ---------------------------------------------------------- */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-1);
  background: var(--bg-deep);
  background-image: var(--bg-image);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.serif    { font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.serif-it { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono     { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'ss01'; }

h1, h2, h3, h4 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 500;
}

.accent-text { color: var(--accent); }
.accent-2-text { color: var(--accent-2); }
.muted { color: var(--ink-3); }

/* ----------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }

main { position: relative; z-index: 2; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}

section { padding: 80px 0; position: relative; }

/* ----------------------------------------------------------
   Nav
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: linear-gradient(180deg, rgba(8,8,13,0.7), rgba(8,8,13,0.3));
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color .2s;
}
.nav-link:hover { color: var(--ink-1); }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0d;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--accent), 0 6px 30px rgba(0,0,0,0.4);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink-1);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--ink-2);
}
.btn-outline {
  background: transparent;
  border-color: var(--ink-2);
  color: var(--ink-1);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink-1);
}
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}
.btn-icon:hover { background: var(--surface-2); transform: scale(1.08); }

/* ----------------------------------------------------------
   Glassmorphism card
   ---------------------------------------------------------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ----------------------------------------------------------
   Form controls
   ---------------------------------------------------------- */
.field { margin-bottom: 24px; }
.field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: block;
}
.input,
.textarea {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink-1);
  font-size: 1rem;
  transition: all .2s;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(255, 46, 136, 0.1);
}
.textarea { resize: vertical; min-height: 100px; font-family: 'Manrope', sans-serif; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

/* Pill selector */
.pill-group {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.pill {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.pill:hover { background: var(--surface-2); color: var(--ink-1); border-color: var(--ink-3); }
.pill.selected {
  background: var(--accent);
  color: #0a0a0d;
  border-color: var(--accent);
  font-weight: 500;
  box-shadow: var(--glow);
}
.pill-add {
  padding: 10px 14px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--ink-3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-family: 'JetBrains Mono', monospace;
}
.pill-add:hover { border-color: var(--accent); color: var(--accent); }

/* ----------------------------------------------------------
   YES / NO buttons (special)
   ---------------------------------------------------------- */
.yes-no-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 48px 0;
  position: relative;
  min-height: 100px;
  flex-wrap: wrap;
}
.btn-yes {
  padding: 22px 56px;
  background: var(--accent);
  color: #0a0a0d;
  border-radius: 999px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  box-shadow: var(--glow);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  border: none;
  cursor: pointer;
  font-style: italic;
}
.btn-yes:hover {
  box-shadow: 0 0 80px var(--accent), 0 12px 40px rgba(0,0,0,0.4);
}
.btn-no {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-3);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all .2s;
  position: relative;
}
.btn-no.runaway { transition: transform .15s ease-out; }

/* ----------------------------------------------------------
   Excitement slider
   ---------------------------------------------------------- */
.hype-wrap { padding: 24px 0; }
.hype-display {
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  margin-bottom: 16px;
  height: 80px;
  transition: transform .2s;
}
.hype-label {
  text-align: center;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-1);
  margin-bottom: 24px;
  min-height: 1.4em;
}
.hype-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  outline: none;
  border: 1px solid var(--border);
}
.hype-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  cursor: grab;
  border: 3px solid var(--bg-deep);
  transition: transform .1s;
}
.hype-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
.hype-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  cursor: grab;
  border: 3px solid var(--bg-deep);
}

/* ----------------------------------------------------------
   Theme picker
   ---------------------------------------------------------- */
.theme-picker { display: flex; gap: 14px; flex-wrap: wrap; }
.theme-chip {
  width: 64px; height: 64px;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all .2s;
}
.theme-chip[data-preview="midnight"]  { background: linear-gradient(135deg, #08080d, #ff2e88 70%, #00f0ff); }
.theme-chip[data-preview="rose"]      { background: linear-gradient(135deg, #1a0a14, #ff85a8 60%, #e8b86b); }
.theme-chip[data-preview="noir"]      { background: linear-gradient(135deg, #050505, #d62828 70%, #f5b841); }
.theme-chip[data-preview="vintage"]   { background: linear-gradient(135deg, #1a1410, #e8945a 60%, #f0c674); }
.theme-chip[data-preview="sunset"]    { background: linear-gradient(135deg, #0f0820, #ff6b35 50%, #ffd23f); }
.theme-chip:hover { transform: scale(1.06); border-color: var(--ink-2); }
.theme-chip.active {
  border-color: var(--ink-1);
  box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--accent);
}

/* ----------------------------------------------------------
   Wizard steps
   ---------------------------------------------------------- */
.wizard-progress {
  display: flex; gap: 8px;
  margin-bottom: 40px;
}
.wizard-progress-step {
  flex: 1;
  height: 3px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.wizard-progress-step.done::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  box-shadow: var(--glow);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeUp .5s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Date / time picker (custom)
   ---------------------------------------------------------- */
.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}
.date-cell {
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.date-cell:hover { background: var(--surface-2); }
.date-cell.selected {
  background: var(--accent);
  color: #0a0a0d;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.date-cell-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.date-cell-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
  margin: 4px 0;
}
.date-cell-mon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.slot-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.slot {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .15s;
}
.slot.selected { background: var(--accent-2); color: #0a0a0d; border-color: var(--accent-2); }

/* ----------------------------------------------------------
   Toast
   ---------------------------------------------------------- */
.toast-wrap {
  position: fixed; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  font-size: 0.92rem;
  backdrop-filter: blur(20px);
  pointer-events: auto;
  animation: slideIn .35s cubic-bezier(.34,1.56,.64,1);
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent-2); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(120%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----------------------------------------------------------
   Stats / metrics
   ---------------------------------------------------------- */
.stat {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.stat-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink-1);
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 48px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.text-center { text-align: center; }
.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 32px 0;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.badge.live { color: var(--accent); border-color: var(--accent); }
.badge.live::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 1.4s infinite;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ----------------------------------------------------------
   Decorative
   ---------------------------------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  margin: 60px 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--ink-2);
}
.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee-inner span { padding: 0 30px; }
.marquee-inner span::after { content: '✦'; color: var(--accent); margin-left: 60px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .nav-links .nav-link:not(.btn) { display: none; }
  .btn-yes { font-size: 1.5rem; padding: 18px 40px; }
  section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; }
}

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

/* ----------------------------------------------------------
   GIF picker
   ---------------------------------------------------------- */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
}
.gif-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.gif-thumb:hover { transform: scale(1.04); border-color: var(--border); }
.gif-thumb.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 46, 136, 0.18), var(--glow);
}
.gif-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px) {
  .gif-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

