:root {
  color-scheme: light;
  --cm-text: #1e2a21;
  --cm-muted: #4a584c;
  --cm-bg: #f6f9f7;
  --cm-surface: #ffffff;
  --cm-border: #dbe7da;
  --cm-accent: #2f5c3d;
  --cm-accent-soft: #5a8f6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--cm-bg);
  color: var(--cm-text);
  line-height: 1.6;
}

a.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--cm-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}

a.skip-link:focus {
  top: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--cm-accent);
  color: #fff;
  box-shadow: 0 18px 35px rgba(47, 92, 61, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn.secondary {
  background: var(--cm-surface);
  color: var(--cm-text);
  border: 1px solid var(--cm-border);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--cm-accent);
  border: 1px solid var(--cm-border);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(47, 92, 61, 0.4);
  outline-offset: 2px;
}

h1,
h2,
a {
  color: var(--cm-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--cm-border);
  background: var(--cm-surface);
  padding: 2rem 1.5rem 3rem;
  margin-top: 4rem;
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer .footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.site-footer small {
  color: var(--cm-muted);
}

.ad-slot {
  min-height: 120px;
  width: 100%;
  border: 1px dashed var(--cm-border);
  border-radius: 1rem;
  background: repeating-linear-gradient(
    45deg,
    #f8fcf8,
    #f8fcf8 10px,
    #eff7ef 10px,
    #eff7ef 20px
  );
  display: grid;
  place-items: center;
  color: var(--cm-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.ad-slot span {
  display: block;
}

.consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(47, 92, 61, 0.15);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.consent-banner button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-banner .primary {
  background: var(--cm-accent);
  color: #fff;
}

.consent-banner .ghost {
  background: transparent;
  color: var(--cm-accent);
  border: 1px solid var(--cm-border);
}

.privacy-toggle {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: var(--cm-surface);
  border-radius: 999px;
  border: 1px solid var(--cm-border);
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cm-accent);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(47, 92, 61, 0.12);
}

@media (max-width: 600px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-banner {
    left: 0.5rem;
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .app-card:hover {
    transform: none !important;
  }
}

.policy-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.policy-page h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.policy-page h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.policy-page p,
.policy-page li {
  color: var(--cm-text);
}

.policy-page ul {
  padding-left: 1.5rem;
}
