/* AdLib Pro — site styles */
:root {
  --navy: #0a2540;
  --navy-soft: #1e3a5f;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --sky: #e8f1ff;
  --text: #1a1a2e;
  --muted: #5c6370;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--navy-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.05fr;
    padding: 4.5rem 1.25rem 5rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 32em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.hero-visual img {
  width: 100%;
  vertical-align: middle;
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #f1f5f9;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gallery-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Download CTA */
.download-box {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.download-box p {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  opacity: 0.92;
  font-size: 1rem;
}

.download-box .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.download-box .btn-primary:hover {
  background: var(--sky);
}

.download-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-qr-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  margin-bottom: 0.95rem;
}

.contact-qr-wrap img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

details.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--blue);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  margin-left: auto;
  text-align: right;
}

.footer-meta p {
  margin: 0 0 0.35rem;
}

.footer-meta p:last-child {
  margin-bottom: 0;
}

.footer-meta a {
  font-weight: 600;
}

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

  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}

/* Legal / policy pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.legal-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  color: var(--text);
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  word-break: break-word;
}

.legal-note {
  padding: 1rem 1.15rem;
  background: var(--sky);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--navy-soft);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand img {
  filter: brightness(0) invert(1);
}

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

  .btn:hover {
    transform: none;
  }
}
