/* Advertisement sales page — wide premium layout */
.adv-page {
  --adv-max: 1180px;
  --adv-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 42%, #2563eb 100%);
  --adv-glass: rgba(255, 255, 255, 0.92);
  --adv-muted: var(--text-muted, #64748b);
  --adv-border: rgba(148, 163, 184, 0.22);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow-x: hidden;
}

.adv-wrap {
  width: 100%;
  max-width: var(--adv-max);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

/* Hero */
.adv-hero {
  background: var(--adv-grad);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}
.adv-hero::before,
.adv-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.adv-hero::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.adv-hero::after {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
}
.adv-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.adv-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.adv-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 18ch;
  margin-inline: auto;
}
.adv-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto 28px;
  opacity: 0.95;
}
.adv-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.adv-hero__cta .btn {
  min-height: 48px;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 15px;
}
.adv-hero__cta .btn-primary {
  background: #fff;
  color: #4f46e5;
  border: none;
  font-weight: 700;
}
.adv-hero__cta .btn-ghost-outline {
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

/* Stats overlap */
.adv-stats-row {
  margin-top: -48px;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.adv-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.adv-stat {
  background: var(--card-bg, var(--adv-glass));
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--adv-border);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
  min-width: 0;
}
.adv-stat__icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 8px;
}
.adv-stat strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.adv-stat span {
  font-size: 11px;
  color: var(--adv-muted);
  line-height: 1.4;
  display: block;
}

/* Sections */
.adv-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.adv-section--alt {
  background: linear-gradient(180deg, rgba(99,102,241,.04) 0%, transparent 100%);
}
.adv-section__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 640px;
  margin-inline: auto;
}
.adv-section__head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
}
.adv-section__head p {
  margin: 0;
  color: var(--adv-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Promote grid */
.adv-promote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.adv-promote-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--adv-border);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.adv-promote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}
.adv-promote-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.adv-promote-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.35;
}
.adv-promote-card span {
  font-size: 12px;
  color: var(--adv-muted);
  line-height: 1.45;
}

/* Pricing */
.adv-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.adv-plan {
  background: var(--card-bg, #fff);
  border-radius: 20px;
  padding: 28px 22px;
  border: 1px solid var(--adv-border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.adv-plan.is-featured {
  border-color: #7c3aed;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.18);
}
.adv-plan__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--adv-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.adv-plan h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.35;
}
.adv-plan__price {
  font-size: 2rem;
  font-weight: 800;
  background: var(--adv-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.adv-plan__meta {
  font-size: 13px;
  color: var(--adv-muted);
  margin: 4px 0 14px;
}
.adv-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  font-size: 13px;
}
.adv-plan li {
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.45;
}
.adv-plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 700;
}
.adv-plan .btn {
  width: 100%;
  margin-top: auto;
}

/* Placements */
.adv-placements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.adv-placement {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--adv-border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.adv-placement__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.adv-placement strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.adv-placement span {
  font-size: 12px;
  color: var(--adv-muted);
  line-height: 1.45;
}

/* Why + trust */
.adv-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.adv-why-card {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--adv-border);
}
.adv-why-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.adv-why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--adv-muted);
  line-height: 1.55;
}
.adv-trust {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254,226,226,.35), rgba(254,243,199,.25));
  border: 1px solid rgba(248, 113, 113, 0.25);
  font-size: 14px;
  line-height: 1.6;
  color: #9a3412;
}
[data-theme="dark"] .adv-trust {
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.2);
}

/* FAQ */
.adv-faq {
  max-width: 720px;
  margin: 0 auto;
}
.adv-faq details {
  background: var(--card-bg, #fff);
  border: 1px solid var(--adv-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.adv-faq summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.adv-faq summary::-webkit-details-marker {
  display: none;
}
.adv-faq details[open] summary {
  border-bottom: 1px solid var(--adv-border);
}
.adv-faq__body {
  padding: 14px 18px 18px;
  font-size: 14px;
  color: var(--adv-muted);
  line-height: 1.6;
}

/* Form */
.adv-form-shell {
  max-width: 860px;
  margin: 0 auto;
}
.adv-form-card {
  background: var(--card-bg, #fff);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 24px 64px rgba(79, 70, 229, 0.1);
}
.adv-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.adv-form-grid .adv-field--full {
  grid-column: 1 / -1;
}
.adv-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.adv-field .adv-help {
  font-size: 12px;
  color: var(--adv-muted);
  margin-top: 4px;
  font-weight: 400;
}
.adv-field input,
.adv-field select,
.adv-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--adv-border);
  background: var(--input-bg, #f8fafc);
  font-size: 16px;
  line-height: 1.4;
}
.adv-field textarea {
  min-height: 120px;
  resize: vertical;
}
.adv-field input[type="file"] {
  min-height: auto;
  padding: 10px;
  font-size: 14px;
}
.adv-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.adv-checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
}
.adv-checks input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
  flex-shrink: 0;
}
.adv-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.adv-policy input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}
.adv-estimate {
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.adv-estimate__label {
  font-size: 14px;
  font-weight: 600;
}
.adv-estimate__value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #4f46e5;
}
.adv-estimate__hint {
  width: 100%;
  font-size: 12px;
  color: var(--adv-muted);
  margin: 0;
}

/* SEO prose */
.adv-prose__inner {
  max-width: 760px;
  margin: 0 auto;
}
.adv-prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 14px;
}
.adv-prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
}
.adv-prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--adv-muted);
  margin: 0 0 14px;
}
.adv-prose__note {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid #6366f1;
}
.adv-order-num {
  font-size: 1.1rem;
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 10px;
}
.adv-order-num strong {
  font-family: ui-monospace, monospace;
  color: #4f46e5;
}

/* Captcha */
.adv-captcha {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.04);
}
.adv-captcha__label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.adv-captcha__box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    -12deg,
    rgba(99, 102, 241, 0.04),
    rgba(99, 102, 241, 0.04) 4px,
    rgba(255, 255, 255, 0.5) 4px,
    rgba(255, 255, 255, 0.5) 8px
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.adv-captcha__prompt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--adv-muted);
}
.adv-captcha__equation {
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #312e81;
}
.adv-captcha__digit {
  display: inline-block;
  transform: rotate(var(--rot, 0deg));
  padding: 2px 4px;
}
.adv-captcha__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.adv-captcha__prompt {
  font-size: 15px;
  flex: 1;
  min-width: 140px;
}
.adv-captcha__input {
  width: 100px !important;
  min-height: 46px !important;
  font-size: 18px !important;
  font-weight: 700;
  text-align: center;
}
.adv-captcha__refresh {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--adv-border);
  background: var(--card-bg, #fff);
  cursor: pointer;
  font-size: 18px;
}
.adv-captcha__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--adv-muted);
}

/* Alerts */
.adv-alert {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  max-width: var(--adv-max);
  margin-inline: auto;
}
.adv-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.adv-alert--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.adv-success {
  text-align: center;
  padding: 48px 24px;
}
.adv-success__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.adv-submit-row .btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  .adv-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .adv-promote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-pricing {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-placements {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-why-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .adv-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .adv-stat {
    padding: 14px 10px;
  }
  .adv-stats-row {
    margin-top: -32px;
  }
  .adv-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .adv-hero__cta .btn {
    width: 100%;
  }
  .adv-promote-grid,
  .adv-pricing,
  .adv-placements,
  .adv-form-grid,
  .adv-checks {
    grid-template-columns: 1fr;
  }
  .adv-captcha__row {
    flex-direction: column;
    align-items: stretch;
  }
  .adv-captcha__input {
    width: 100% !important;
  }
  .adv-estimate {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-theme="dark"] .adv-stat,
[data-theme="dark"] .adv-plan,
[data-theme="dark"] .adv-promote-card,
[data-theme="dark"] .adv-placement,
[data-theme="dark"] .adv-why-card,
[data-theme="dark"] .adv-form-card,
[data-theme="dark"] .adv-faq details {
  border-color: rgba(148, 163, 184, 0.12);
}
[data-theme="dark"] .adv-estimate {
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(124,58,237,.08));
}
[data-theme="dark"] .adv-field input,
[data-theme="dark"] .adv-field select,
[data-theme="dark"] .adv-field textarea {
  background: rgba(15, 23, 42, 0.5);
}
