/* KidCareTracker site styles */
:root {
  --bg: #0b0d12;
  --panel: #0f1219;
  --elev: #121623;
  --text: #e6e8ee;
  --muted: #a9afbd;
  --brand: #4f46e5;
  --brand-2: #22c55e;
  --border: #1e2433;
  --accent: #7c3aed;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #0b0d12 0%, #151820 25%, #1a1d2a 50%, #151820 75%, #0b0d12 100%),
              linear-gradient(135deg, rgba(79,70,229,.08) 0%, transparent 50%, rgba(124,58,237,.06) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  padding-top: 64px;
}

/* When cookie choice not made yet, blur interactive content behind consent banner */
body.cookie-blocked {
  overflow: hidden;
}

body.cookie-blocked .blur-target {
  filter: blur(4px);
  pointer-events: none;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 30%), var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; backdrop-filter: saturate(180%) blur(10px); background: rgba(11,13,18, .85); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .1px; }
.brand-name { font-size: 16px; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(34,197,94,.12)); border: 1px solid var(--border); overflow: hidden; }
.logo img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; display: block; }
img[alt="KidCareTracker"] { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; }
.links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--text); }
.contact-link { color: var(--brand) !important; font-weight: 600 !important; }
.lang-switcher { display: flex; gap: 4px; margin-left: 8px; }
.lang-btn { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .2s ease; }
.lang-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lang-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
@media (max-width: 600px) {
  body { padding-top: 80px; }
  .nav { flex-direction: column; height: auto; padding: 12px 0; min-height: 64px; }
  .links { gap: 12px; margin-top: 8px; }
  .lang-switcher { margin-left: 0; }
}

.h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.5px; }
.h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 18px; }

.tagline { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background: rgba(79,70,229,.12); color:#c7c9ff; font-weight:600; width:max-content; border: 1px solid rgba(79,70,229,.25); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display:inline-flex; align-items:center; justify-content:center; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); cursor: pointer; transition: transform .06s ease, background .2s ease, color .2s ease; }
.button.primary { background: linear-gradient(135deg, var(--brand), var(--accent)); color: white; border-color: transparent; box-shadow: var(--shadow); }
.button.primary:hover { transform: translateY(-1px); }
.button.ghost { background: rgba(255,255,255,.02); color: var(--text); }
.button.ghost:hover { background: rgba(255,255,255,.05); }

.store-badges { display:flex; gap: 12px; flex-wrap: wrap; }
.store-badge { padding:10px 14px; border-radius: 10px; border: 1px dashed var(--border); color: var(--muted); text-decoration: none; font-weight: 600; background: rgba(255,255,255,.02); }
.store-badge.disabled { pointer-events: none; opacity: .7; }

.media-card { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border: 1px solid var(--border); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); max-width: 320px; }
.media-placeholder { display:grid; place-items:center; aspect-ratio: 1 / 1; border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.06) 100%); color: var(--muted); text-align: center; padding: 0; overflow: hidden; }
.placeholder-logo { width: 82%; max-width: 280px; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.38)); border-radius: 32px; }
.placeholder-text { font-weight: 600; }

.features { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.card-icon { font-size: 22px; }
.card-title { margin: 6px 0 4px; font-size: 18px; }
.card-body { color: var(--muted); margin: 0; }

.gallery .lead { max-width: 560px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery-grid img { width: 100%; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.35); background: rgba(15,18,27,.7); transition: transform .2s ease; }
.gallery-grid img:hover { transform: translateY(-2px); }


.waitlist { display:flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"] { flex: 1 1 260px; min-width: 220px; padding: 12px 14px; border-radius: 12px; background: var(--elev); border: 1px solid var(--border); color: var(--text); }

.about.card { padding: 18px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--border); background: var(--panel); }
.footer-grid { display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); margin-left: 16px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

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

/* Content pages */
.prose { max-width: 800px; margin: 0 auto; padding-top: 8px; }
.prose h1 { font-size: 32px; margin: 0; }
.prose h2 { font-size: 22px; margin: 26px 0 8px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; color: var(--text); font-weight: 600; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--brand); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 12px 0; padding-left: 20px; }
.prose ul li { margin: 6px 0; }
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.faq-item { margin: 20px 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item p { margin: 8px 0; }
.faq-item p:first-child { margin-top: 0; }
.faq-item strong { color: var(--text); }

/* Cookie consent banner – now a full-screen, mobile-friendly overlay */
.cookie-consent-banner {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-consent-banner--visible {
  display: flex;
}

.cookie-consent-banner__panel {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.cookie-consent-banner__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cookie-consent-banner__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent-banner__text a {
  color: var(--brand);
  text-decoration: none;
}

.cookie-consent-banner__text a:hover {
  text-decoration: underline;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.cookie-consent-banner .cookie-consent-reject,
.cookie-consent-banner .cookie-consent-accept {
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.cookie-consent-banner .cookie-consent-accept {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  transition: transform 0.06s ease, opacity 0.2s;
}

.cookie-consent-banner .cookie-consent-accept:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.cookie-consent-banner .cookie-consent-reject {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.cookie-consent-banner .cookie-consent-reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

@media (min-width: 640px) {
  .cookie-consent-banner__panel {
    padding: 22px 22px 18px;
  }

  .cookie-consent-banner__actions {
    flex-direction: row;
  }

  .cookie-consent-banner .cookie-consent-reject,
  .cookie-consent-banner .cookie-consent-accept {
    flex: 1;
  }
}

