/* ============================================================
   Ditch Ads — site styles
   Swap the entire look by editing the custom properties below.
   ============================================================ */
:root {
  --color-primary: #1A9E5C;   /* ditch-ads green */
  --color-secondary: #0F2E22; /* deep forest */
  --color-accent: #22AD63;    /* CTA highlight */
  --color-bg: #F2FAF5;        /* page background */
  --color-bg-alt: #FFFFFF;    /* card / section background */
  --color-text: #14241C;      /* primary text */
  --color-text-muted: #576E62;/* secondary text */
  --color-border: #D6EBDD;    /* borders */

  --font-heading: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;

  --shadow-sm: 0 1px 3px rgba(15, 46, 34, 0.08);
  --shadow-md: 0 8px 28px rgba(26, 158, 92, 0.16);
  --maxw: 1100px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.muted { color: var(--color-text-muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-accent); text-decoration: none; }
.btn-sm { font-size: .92rem; padding: 9px 18px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-secondary); }
.nav-brand img { width: 34px; height: 34px; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-text); font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-secondary); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 20px; border-top: 1px solid var(--color-border); }
  .nav-links a.nav-cta { color: var(--color-primary); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(34, 173, 99, 0.18), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(15, 46, 34, 0.08), transparent 60%);
  text-align: center;
}
.hero img.hero-logo { width: 112px; height: 112px; margin: 0 auto 24px; filter: drop-shadow(0 10px 24px rgba(26,158,92,.28)); }
.hero p.tagline { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--color-text-muted); max-width: 660px; margin: 0 auto 1.5rem; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero .note { margin-top: 16px; font-size: .9rem; color: var(--color-text-muted); }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff; font-size: 1.4rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--color-text-muted); font-size: .96rem; }

/* ---------- generic content pages ---------- */
.page-head { padding: 56px 0 8px; text-align: center; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-alt); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-text);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .25s ease; color: var(--color-accent); flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px; }
.faq-a p { padding-bottom: 20px; margin: 0; color: var(--color-text-muted); }
.faq-item.open .faq-a { max-height: 440px; }

/* ---------- contact form ---------- */
.form { max-width: 560px; margin: 0 auto; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--color-text);
  border: 1.5px solid var(--color-border); border-radius: 10px; background: var(--color-bg);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--color-accent); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- toggles (uninstall) ---------- */
.toggle-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.toggle-btn {
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt); color: var(--color-text-muted); cursor: pointer; transition: .15s;
}
.toggle-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.steps { counter-reset: step; max-width: 640px; margin: 0 auto; }
.steps li { margin-bottom: 14px; }
.hidden { display: none; }

/* ---------- overlay (contact success) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 46, 34, 0.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.overlay.open { display: flex; }
.overlay-box { background: #fff; border-radius: var(--radius); padding: 36px; max-width: 420px; text-align: center; box-shadow: var(--shadow-md); }
.overlay-box .check { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-secondary); color: #bfe6cf; padding: 48px 0 32px; margin-top: 40px; }
.site-footer .footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #fff; }
.site-footer .footer-brand img { width: 30px; height: 30px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-links a { color: #bfe6cf; font-size: .92rem; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .copyright { margin: 28px 0 0; font-size: .85rem; color: #8fc4a4; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
