/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #FFFFFF;
  --ink: #1D1D1F;
  --ink-soft: #515154;
  --muted: #86868B;
  --line: rgba(0,0,0,0.08);
  --accent: #34C759;
  --accent-dark: #248A3D;
  --accent-light: #5DD17A;
}

/* ─── BASE ─── */
html, body { min-height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ─── BACKGROUND GRADIENT (default – index values) ─── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(52, 199, 89, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(0, 122, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(175, 82, 222, 0.08), transparent 60%),
    #FFFFFF;
}

/* ─── NAV ─── */
nav {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.nav--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover { color: var(--ink); text-decoration: none; }

.logo-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(36, 138, 61, 0.3);
}

.logo-mini svg { width: 100%; height: 100%; display: block; }

.nav-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover { color: var(--ink); text-decoration: none; }

/* ─── PAGE EYEBROW ─── */
.page-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, #34C759 0%, #007AFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(52, 199, 89, 0.1);
  color: var(--accent-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 var(--accent);
}

/* ─── CONSENT CHECKBOX ─── */
.consent-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  margin: 6px 0 4px 0 !important;
  cursor: pointer !important;
  flex: 1 0 100% !important;
  border-radius: 14px !important;
  -webkit-tap-highlight-color: transparent !important;
}

.consent-row input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 1.5px solid rgba(0,0,0,0.15) !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: white !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.consent-row input[type="checkbox"]:hover {
  border-color: rgba(0, 0, 0, 0.3) !important;
}

.consent-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #5DD17A 0%, #34C759 100%) !important;
  border-color: #34C759 !important;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3) !important;
}

.consent-row input[type="checkbox"]:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 6px !important;
  top: 2px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15) !important;
}

.consent-text {
  font-size: 13px !important;
  color: #515154 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  user-select: none !important;
}

.consent-text a {
  color: #1D1D1F !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
  padding-bottom: 1px !important;
  transition: all 0.2s ease !important;
}

.consent-text a:hover {
  color: #248A3D !important;
  border-bottom-color: #34C759 !important;
}

/* ─── FOOTER ─── */
footer {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tagline { color: var(--muted); font-size: 13px; }

.social-icons { display: flex; gap: 10px; align-items: center; }

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-icon svg { width: 17px; height: 17px; transition: transform 0.3s; }

.social-icon:hover {
  background: linear-gradient(135deg, #5DD17A, #34C759);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(52, 199, 89, 0.18),
    0 8px 16px rgba(52, 199, 89, 0.3);
}

.social-icon:hover svg { transform: scale(1.1); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover { color: var(--accent-dark); }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes checkPop {
  0% { transform: rotate(45deg) scale(0); opacity: 0; }
  100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 20px; }
  footer {
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-left { flex-direction: column; gap: 16px; }
}
