/* ==========================================================================
   AdGuard — Sales page styles
   Design system: dark-tech / editorial hybrid, single green accent,
   self-hosted variable fonts (Space Grotesk display / Manrope body).
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-variable.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #5fb857;
  --green-dark: #2c9a4c;
  --green-light: #7ed957;
  --ink: #08210F;
  --surface: #ffffff;
  --surface-alt: #f2f7f2;
  --surface-raised: #ffffff;
  --text: #17231a;
  --text-muted: #52604f;
  --border: #dde8dc;
  --shadow: 0 14px 34px rgba(14, 31, 20, 0.08);
  --shadow-sm: 0 6px 16px rgba(14, 31, 20, 0.06);
  --radius: 16px;
  --max-width: 1180px;
  --font-display: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #10201a;
    --surface-alt: #0c1a15;
    --surface-raised: #142a21;
    --text: #eaf3ea;
    --text-muted: #a3b6a3;
    --border: #23392d;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.1rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.15rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 16px; color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

/* Buttons — single pill shape system across the page */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-dark); color: #fff; box-shadow: 0 10px 22px rgba(44, 154, 76, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(44, 154, 76, 0.4); }
.btn-outline { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: rgba(44, 154, 76, 0.08); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-only { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero — asymmetric split, max 4 text elements */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--green) 10%, transparent) 0%, transparent 55%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.shield-card {
  position: relative;
  background:
    radial-gradient(circle at 22% 20%, rgba(126, 217, 87, 0.16), transparent 42%),
    linear-gradient(165deg, #12321d, #0a1f13);
  border: 1px solid rgba(126, 217, 87, 0.18);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow);
  background-color: #0e2317;
  background-image:
    radial-gradient(circle at 22% 20%, rgba(126, 217, 87, 0.16), transparent 42%),
    radial-gradient(rgba(126, 217, 87, 0.16) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.floating-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-raised);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.floating-tag .icon { color: var(--green-dark); }
.tag-vpn { top: 6px; left: -28px; }
.tag-dns { bottom: 64px; right: -36px; }
.tag-ads { bottom: 6px; left: 4px; }

/* Trust + stats band */
.trust-band { background: var(--ink); padding: 40px 0; }
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 500; }
.trust-item .icon { color: var(--green-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--green-light); font-weight: 700; }
.stat span { color: rgba(255,255,255,0.68); font-size: 0.88rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-sub { font-size: 1.02rem; margin: 0 auto; }
.affiliate-disclosure { font-size: 0.82rem; font-style: italic; opacity: 0.75; margin-top: 10px; }

/* Products — asymmetric bento (3 items -> 3 cells, no equal-card row) */
.products-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card.product-lg { grid-row: 1 / 3; padding: 40px; justify-content: center; }
.product-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green) 16%, var(--surface-alt));
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-icon-badge .icon { width: 26px; height: 26px; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { font-size: 0.95rem; margin-bottom: 20px; }
.product-buy-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}
.product-buy-link:hover { text-decoration: underline; }
.feature-list, .check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.feature-list li, .check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.93rem;
}
.feature-list li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-color: var(--green-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Segments */
.segment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.segment-card {
  background: var(--surface-raised);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.segment-card .product-icon-badge { background: var(--ink); color: var(--green-light); }

/* Pricing — each product keeps its own real pricing on its official site */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.price-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.highlighted { border: 2px solid var(--green-dark); box-shadow: var(--shadow); }
.ribbon {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--green-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}
.price-desc { font-size: 0.9rem; margin-bottom: 20px; }
.price-plan-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-plan-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.86rem;
}
.price-plan-list li.best { background: var(--green-tint, rgba(126, 217, 87, 0.14)); }
.price-plan-list li span { color: var(--text-muted); }
.price-plan-list li strong { font-family: var(--font-display); font-size: 1rem; color: var(--text); white-space: nowrap; }
.price-plan-list li strong em { font-style: normal; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-left: 2px; }
.price-plan-list li del { font-size: 0.76rem; color: var(--text-muted); margin-left: 6px; }
.badge-inline { display: inline-block; margin-left: 6px; font-size: 0.68rem; font-weight: 700; color: var(--green-dark); }
.pricing-note { text-align: center; margin: 32px auto 0; font-size: 0.92rem; }
.pricing-note a { color: var(--green-dark); font-weight: 600; }

/* Testimonials — one featured row + two supporting (not 3 equal cards) */
.testimonial-feature { margin-bottom: 24px; }
.testimonial-grid-support { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial.featured { padding: 40px; }
.testimonial.featured p { font-size: 1.25rem; max-width: 56ch; }
.testimonial p { color: var(--text); font-style: normal; max-width: none; }
.testimonial footer { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.testimonial footer .role { font-weight: 400; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--green-dark); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; max-width: none; }

/* CTA banner */
.cta-banner {
  background: var(--ink);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { margin-left: auto; margin-right: auto; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .hero-cta { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.logo-light { color: #fff; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.68); text-decoration: none; margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,0.68); text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav, .header-only { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { gap: 20px; }
  .products-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
  .product-card.product-lg { grid-row: auto; }
  .segment-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .price-card.highlighted { transform: none; }
  .testimonial-grid-support { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tag-vpn, .tag-dns, .tag-ads { position: static; margin-top: 10px; display: inline-flex; }
  .shield-card { display: flex; flex-direction: column; align-items: center; }
  .section { padding: 72px 0; }
}
