/* ============================================================
   AdOff — Global Styles
   Dark mode, responsive, Cloudflare Pages static
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:    #7c5cfc;
  --primary-light: #9d82fd;
  --bg:         #0a0a1a;
  --card:       #12122a;
  --card-hover: #1a1a36;
  --success:    #4ade80;
  --error:      #f43f5e;
  --text:       #e2e2f0;
  --text-muted: #8888aa;
  --border:     rgba(124, 92, 252, 0.18);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 32px rgba(124, 92, 252, 0.12);
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

/* ---------- Utility ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--popular {
  background: var(--primary);
  color: #fff;
}

.badge--save {
  background: var(--success);
  color: #0a0a1a;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 32px rgba(124, 92, 252, 0.4);
}

.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(124, 92, 252, 0.55);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary);
}

.btn--outline:hover {
  background: rgba(124, 92, 252, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 38px;
  font-size: 1.12rem;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover { color: #fff; }

/* ---------- HERO ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(124, 92, 252, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.45);
}

.hero__title {
  color: #fff;
  margin-bottom: 10px;
}

.hero__tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- PROBLEM ---------- */
.problem {
  background: linear-gradient(135deg, rgba(124,92,252,0.06) 0%, transparent 60%);
}

.problem__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem__lead {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.problem__lead strong {
  color: var(--error);
}

/* ---------- FEATURES ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 252, 0.45);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.feature-card__title {
  color: #fff;
  margin-bottom: 10px;
}

.feature-card__desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.feature-card__pro {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  background: rgba(18, 18, 42, 0.6);
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5e3fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(124,92,252,0.4);
}

.step__title {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step__desc {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- PRICING ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.price-card--popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(124,92,252,0.2);
  transform: scale(1.03);
}

.price-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(124,92,252,0.5);
  box-shadow: var(--shadow);
}

.price-card--popular:hover {
  transform: translateY(-4px) scale(1.04);
}

.price-card__badges {
  min-height: 24px;
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.price-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.price-card__amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.price-card__period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.price-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.price-card__features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature mancante nel piano Free — barrata */
.price-card__features li.feature-missing {
  color: #3a3a5a;
  text-decoration: line-through;
}
.price-card__features li.feature-missing::before {
  content: "✗";
  color: #3a3a5a;
}

.price-card__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  min-height: 44px;
  font-size: 0.88rem;
  line-height: 1.3;
}

/* ---------- TRUST & SECURITY ---------- */
.trust {
  background: linear-gradient(180deg, rgba(10,10,26,0) 0%, rgba(18,18,42,0.5) 30%, rgba(18,18,42,0.5) 70%, rgba(10,10,26,0) 100%);
  padding-top: 80px;
  padding-bottom: 40px;
}

/* 3 pillar cards */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .trust__grid { grid-template-columns: 1fr; }
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.trust-card--secure::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.trust-card--private::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.trust-card--guarantee::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.trust-card--secure:hover { border-color: rgba(74,222,128,0.4); }
.trust-card--private:hover { border-color: rgba(96,165,250,0.4); }
.trust-card--guarantee:hover { border-color: rgba(251,191,36,0.4); }

/* Icon circle */
.trust-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.trust-card--secure .trust-card__icon {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
}

.trust-card--private .trust-card__icon {
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
}

.trust-card--guarantee .trust-card__icon {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
}

.trust-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.trust-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Trust badges — pill style */
.trust__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: #b0b0c8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}

.trust-badge:hover {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.06);
}

.trust-badge svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Guarantee seal */
.trust__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(74,222,128,0.06), rgba(251,191,36,0.06));
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 14px;
}

.trust__seal-icon {
  flex-shrink: 0;
}

.trust__seal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust__seal-text strong {
  color: #4ade80;
}

/* Bottom note */
.trust__note {
  text-align: center;
  font-size: 0.78rem;
  color: #3a3a5a;
  margin-top: 20px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison {
  background: rgba(18,18,42,0.6);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 540px;
}

thead th {
  padding: 18px 20px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

thead th:first-child { color: #fff; }

thead th.col-adoff {
  color: var(--primary-light);
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--card-hover); }

tbody td {
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}

.check { color: var(--success); font-size: 1.1rem; font-weight: 700; }
.cross { color: var(--error); font-size: 1.1rem; }
.partial { color: #f59e0b; font-size: 0.82rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 720px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(124,92,252,0.4);
}

.faq-item.open {
  border-color: rgba(124,92,252,0.55);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 12px;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary-light);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.22s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- CTA FINALE ---------- */
.cta-final {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-final p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: #08081a;
  border-top: 1px solid var(--border);
  padding: 60px 24px 28px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.footer__brand-name span { color: var(--primary); }

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer__links {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li::before { display: none !important; }

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  display: block;
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(136,136,170,0.6);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.footer__bottom-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__bottom-links li::before { display: none !important; }

.footer__bottom-links a {
  font-size: 0.8rem;
  color: rgba(136,136,170,0.6);
  transition: color 0.2s;
}

.footer__bottom-links a:hover { color: var(--text-muted); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hero { padding: 70px 0 56px; }

  .nav__links { display: none; }

  .pricing__grid { grid-template-columns: 1fr; }

  .price-card--popular { transform: none; }
  .price-card--popular:hover { transform: translateY(-4px); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer__brand-desc { max-width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* --- COMPARISON TABLE: stacked cards su mobile --- */
  .table-wrap {
    overflow-x: visible;
    border: none;
    background: none;
  }

  table {
    min-width: 0;
    background: none;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  thead { display: none; }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    overflow: hidden;
    transition: background var(--transition);
  }

  tbody tr:hover { background: var(--card-hover); }
  tbody tr:last-child { border-bottom: 1px solid var(--border); }

  /* Feature name — full width header della card */
  tbody td:first-child {
    grid-column: 1 / -1;
    background: rgba(124, 92, 252, 0.1);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
  }

  /* Competitor cells — griglia 2x2 con label */
  tbody td:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: none;
  }

  tbody td:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* Highlight colonna AdOff */
  tbody td:nth-child(2) {
    background: rgba(124, 92, 252, 0.08);
  }

  tbody td:nth-child(2)::before {
    color: var(--primary-light);
  }

  /* Bordi interni griglia 2x2 */
  tbody td:nth-child(2),
  tbody td:nth-child(4) {
    border-right: 1px solid rgba(255,255,255,0.04);
  }

  tbody td:nth-child(2),
  tbody td:nth-child(3) {
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
}

@media (max-width: 480px) {
  .hero__cta-group { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
}
