:root {
  /* Figma token placeholders: keep synced with exported styles */
  --primary-color: #2f6cf6;
  --primary-color-hover: #2458cc;
  --accent-color: #ff6ea8;
  --text-color: #111827;
  --text-muted: #6b7280;
  --bg-color: #f5f7fb;
  --surface-color: #ffffff;
  --border-color: #e5e7eb;
  --success-bg: #e7f8ef;
  --warning-bg: #fff7e6;

  --font-main: "Inter", "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);

  /* Pinned footer height offset (used to prevent content overlap). */
  --footer-height: 95px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; }

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--lg { padding: 14px 22px; }

.btn--primary { background: var(--primary-color); color: #fff; }
.btn--primary:hover { background: var(--primary-color-hover); }

.btn--secondary { background: #eef2ff; color: #1f2937; }
.btn--secondary:hover { background: #e0e7ff; }

.chip {
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 14px;
}

.chip--active { background: #e0e7ff; border-color: #c7d2fe; }
.chip--soft { background: #f9fafb; }

.text-link {
  background: transparent;
  border: 0;
  color: var(--primary-color);
  cursor: pointer;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 480px) {
  .btn {
    min-height: 44px;
  }

  .btn--lg {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}
