:root {
  --plum: #3b1d4a;
  --berry: #8e2f6b;
  --frost: #e8f6f3;
  --mint: #2fa58f;
  --gold: #f4b942;
  --ink: #24202a;
  --paper: #fbfdfc;
  --line: #d5e6e2;
  --white: #ffffff;
}

/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: Poppins, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--berry);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* =========================
   CONTAINER
========================= */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--frost);
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
  color: var(--plum);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--gold);
  color: var(--plum);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  padding: 11px 22px;
  background: transparent;
  border: 2px solid var(--plum);
  color: var(--plum);
}

.center {
  margin-top: 32px;
  text-align: center;
}

/* =========================
   HEADER
========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--plum);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a:not(.btn) {
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:not(.btn):hover {
  color: var(--gold);
}

nav .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 48px 0 64px;
  background: linear-gradient(160deg, var(--frost), var(--white));
}

.hero h1 {
  margin-bottom: 36px;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: 40px;
}

.hero ul {
  margin: 14px 0 22px;
  list-style: none;
}

.hero li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 26px;
}

.hero li::before {
  position: absolute;
  left: 0;
  color: var(--mint);
  content: "✓";
  font-weight: 700;
}

.hero .btn + .btn {
  margin-left: 8px;
}

/* =========================
   GRIDS
========================= */

.grid {
  display: grid;
  gap: 22px;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

/*
   Five-card sections:
   3 cards on first row
   2 cards centered on second row
*/
.g3 {
  grid-template-columns: repeat(6, 1fr);
}

.g3 .card {
  grid-column: span 2;
}

.g3 .card:nth-child(4) {
  grid-column: 2 / span 2;
}

.g3 .card:nth-child(5) {
  grid-column: 4 / span 2;
}

/*
   Benefits uses normal 3-column layout
*/
#benefits .g3 {
  grid-template-columns: repeat(3, 1fr);
}

#benefits .g3 .card {
  grid-column: auto;
}

/*
   Four-column layout
*/
.g4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/*
   Center remaining cards when a
   seven-card section uses four columns
*/
.g4 .card:nth-child(5) {
  grid-column: 1;
  transform: translateX(50%);
}

.g4 .card:nth-child(6) {
  grid-column: 2;
  transform: translateX(50%);
}

.g4 .card:nth-child(7) {
  grid-column: 3;
  transform: translateX(50%);
}

/* =========================
   CARDS
========================= */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.card p {
  font-size: 0.95rem;
}

.card img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
}

.card .icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
}

.card.week {
  border-top: 5px solid var(--berry);
}

.card.week .when {
  margin-bottom: 4px;
  color: var(--berry);
  font-size: 0.85rem;
  font-weight: 700;
}

.card.note {
  background: var(--frost);
  border-style: dashed;
}

/* =========================
   BADGES
========================= */

.badges .card {
  align-items: center;
  text-align: center;
}

.badges img {
  width: 120px;
  border-radius: 0;
}

/* =========================
   REVIEWS
========================= */

#reviews .card {
  align-items: center;
  text-align: center;
}

#reviews .card img {
  margin-right: auto;
  margin-left: auto;
}

#reviews .stars {
  margin-bottom: 14px;
  text-align: center;
}

#reviews .who {
  text-align: center;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.who {
  margin-top: auto;
  padding-top: 14px;
  color: var(--plum);
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================
   SPLIT SECTIONS
========================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.split ul {
  margin: 14px 0 14px 20px;
}

/* =========================
   PRICING
========================= */

.db-pricing-section {
  padding: 70px 20px;
  background: linear-gradient(
    180deg,
    #f1f5f9 0%,
    #e2e8f0 100%
  );
}

.db-pricing-section .wrap {
  max-width: 1200px;
}

.db-pricing-title {
  margin: 0 0 10px;
  font-size: 36px;
  text-align: center;
}

.db-pricing-subtitle {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #64748b;
  font-size: 17px;
  text-align: center;
}

.db-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 25px;
}

.db-price-card {
  position: relative;
  padding: 30px 20px;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.db-price-featured {
  z-index: 2;
  border-color: #2563eb;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.db-price-card h3 {
  margin: 0 0 5px;
  color: #1e293b;
  font-size: 22px;
}

.db-price-subtitle {
  margin-bottom: 15px;
  color: #64748b;
  font-size: 14px;
}

.db-price-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 180px;
  margin: 15px auto;
  object-fit: contain;
}

.db-price-box {
  margin: 15px 0;
}

.db-price-amount {
  color: #1e293b;
  font-size: 38px;
  font-weight: 800;
}

.db-price-per {
  color: #64748b;
  font-size: 14px;
}

.db-price-savings {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: #dcfce7;
  border-radius: 12px;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
}

.db-price-total {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
}

.db-price-button {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #dc3545;
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.db-price-button:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.db-price-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  padding: 5px 20px;
  background: #ef4444;
  border-radius: 20px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* =========================
   BONUS
========================= */

.bonus-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: #16a34a;
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bonus-btn:hover {
  background: #0f766e;
  color: var(--white);
}

/* =========================
   PROS & CONS
========================= */

.pros {
  border-top: 5px solid var(--mint);
}

.cons {
  border-top: 5px solid var(--berry);
}

.pros li,
.cons li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.pros ul,
.cons ul {
  margin-left: 18px;
}

#proscons .card {
  align-items: flex-start;
  text-align: left;
}

/* =========================
   FAQ
========================= */

details {
  margin-bottom: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

summary {
  color: var(--plum);
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

/* =========================
   DISCLAIMER
========================= */

.disclaimer {
  padding: 32px 0;
  color: #555;
  font-size: 0.8rem;
}

.disclaimer p + p {
  margin-top: 10px;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 24px 0;
  background: var(--plum);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  margin: 0 10px;
  color: var(--white);
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #555;
  color: var(--white);
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .db-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .db-price-featured {
    transform: none;
  }

  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .g3 .card,
  .g3 .card:nth-child(4),
  .g3 .card:nth-child(5),
  .g4 .card,
  .g4 .card:nth-child(5),
  .g4 .card:nth-child(6),
  .g4 .card:nth-child(7) {
    grid-column: auto;
    transform: none;
  }

  #benefits .g3 {
    grid-template-columns: repeat(2, 1fr);
  }

  #benefits .g3 .card {
    grid-column: auto;
  }

  .card {
    padding: 22px;
  }

  .card img {
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  section {
    padding: 44px 0;
  }

  .wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .grid,
  .g2,
  .g3,
  .g4,
  #benefits .g3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .g3 .card,
  .g3 .card:nth-child(4),
  .g3 .card:nth-child(5),
  .g4 .card,
  .g4 .card:nth-child(5),
  .g4 .card:nth-child(6),
  .g4 .card:nth-child(7) {
    grid-column: auto;
    transform: none;
  }

  .card {
    width: 100%;
    padding: 20px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 15px;
    line-height: 1.6;
  }

  .card img {
    max-width: 100%;
  }

  /* Mobile header */

  header .wrap {
    min-height: 60px;
    flex-wrap: nowrap;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  nav a:not(.btn) {
    display: none;
  }

  nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 14px;
    white-space: nowrap;
  }

  /* Hero */

  .hero {
    padding: 40px 0 50px;
  }

  .hero h1 {
    margin-bottom: 28px;
  }

  .hero .btn {
    margin-bottom: 10px;
  }

  .hero .btn + .btn {
    margin-left: 0;
  }

  /* Pricing */

  .db-pricing-section {
    padding: 50px 15px;
  }

  .db-pricing-title {
    font-size: 28px;
  }

  .db-pricing-subtitle {
    margin-bottom: 40px;
    font-size: 15px;
  }

  .db-pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .db-price-card {
    padding: 28px 18px;
  }

  .db-price-featured {
    transform: none;
  }

  .db-price-card img {
    max-width: 200px;
    height: 170px;
  }

  .db-price-amount {
    font-size: 34px;
  }

  .db-price-badge {
    padding: 5px 14px;
    font-size: 11px;
  }

  /* Disclaimer */

  .disclaimer {
    margin-right: 10px;
    margin-left: 10px;
  }

  .disclaimer p {
    margin-right: 10px;
    margin-left: 10px;
  }

  /* Back to top */

  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    font-size: 21px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}