/* ═══════════════════════════════════════════════════════
   CookieSmog — custom styles
   Tailwind utility classes are handled by the CDN script.
   Only non-utility, hand-crafted rules live here.
   ═══════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────── */
body { background: #0e0e12; }

/* ── Floating cookie particles ──────────────────────── */
.particle {
  position: fixed;
  bottom: -80px;
  pointer-events: none;
  user-select: none;
  animation: drift var(--dur, 20s) linear infinite var(--delay, 0s);
  will-change: transform, opacity;
}

/* ── Smog glow card ─────────────────────────────────── */
.smog-glow {
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .22),
    0 0 80px  rgba(245, 158, 11, .14),
    0 0 200px rgba(245, 158, 11, .08);
}

/* ── Brand gradient text ────────────────────────────── */
.brand-text {
  background: linear-gradient(130deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Score ring animation ───────────────────────────── */
#scoreRing {
  transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1);
}

/* ── Result card fade-rise ──────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card {
  animation: rise 0.45s ease both;
}

/* ── Scan disclaimer scroll target ──────────────────── */
@keyframes disclaimerHighlight {
  0%   { border-color: #2a2a38; }
  8%   { border-color: rgb(245 158 11 / 0.8); }
  60%  { border-color: rgb(245 158 11 / 0.8); }
  100% { border-color: #2a2a38; }
}
#scanDisclaimer {
  scroll-margin-top: 80px;
}
#scanDisclaimer:target {
  animation: rise 0.45s ease both, disclaimerHighlight 5s ease forwards;
} 

/* ── Scrollable table wrapper ───────────────────────── */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}

/* ── Accordion ──────────────────────────────────────── */
.acc-content          { display: none; }
.acc-content.open     { display: block; }
.acc-arrow            { transition: transform .25s; }
.acc-arrow.open       { transform: rotate(180deg); }

/* ── Checkbox styling ────────────────────────────────── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid #343448;
  border-radius: 0.25rem;
  background-color: #1c1c28;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

input[type="checkbox"]:checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 0.25rem;
  height: 0.5rem;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

input[type="checkbox"]:hover:not(:checked) {
  border-color: #454458;
}
/* ── Sticky CTA bar ──────────────────────────────────── */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta-bar.visible {
  transform: translateY(0);
}
/* ── CTA pulse dot ──────────────────────────────────── */
.cta-dot {
  animation: ctaPulse 2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
}


/* ── Accessibility ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .particle { display: none; }
}

/* ── Privacy policy page ────────────────────────────── */
.policy-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #232330;
}
.policy-section h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.policy-section p  { color: #9ca3af; font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.9rem; }
.policy-section ul { color: #9ca3af; font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.9rem; padding-left: 1.25rem; list-style: disc; }
.policy-section li { margin-bottom: 0.3rem; }
.policy-section a  { color: #f59e0b; text-decoration: underline; }
.policy-section a:hover { color: #fcd34d; }
.policy-section strong { color: #e5e7eb; }
