:root {
  --blur: 8px;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --primary: #15803d;
  --primary-hover: #166534;
  --on-primary: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); color: var(--text); overflow: hidden; background: #f5f0ec; }

.bg {
  position: fixed; inset: 0;
  background-color: #f5f0ec;
  background-image: url("bg-desktop.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(var(--blur));
  transform: scale(1.06);
}
@media (max-width: 768px) {
  .bg { background-image: url("bg-mobile.jpg"); }
}
.overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, .10); }

.backdrop {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.modal {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 100%; overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  animation: modal-in .24s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal h2 { margin: 0 0 8px; font-size: 1.375rem; line-height: 1.25; }
.modal p  { margin: 0 0 16px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 12px 20px;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }

:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.badge { display: inline-block; margin-bottom: 12px; padding: 4px 10px;
         font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
         color: #166534; background: #dcfce7; border-radius: 999px; }
.pros { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.pros li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.45; }
.pros li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 50%;
}

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