:root {
  --n: rgb(215, 25, 32);        /* Primary Red (brand) */
  --n-dk: rgb(165, 15, 21);     /* Red Hover */
  --n-tint: rgb(251, 231, 232); /* Light Red */
  --text: rgb(156, 163, 175);
  --txtd: rgb(15, 19, 29);
  --muted: rgb(75, 85, 99);
  --border: rgb(229, 231, 235);
  --white: rgb(255, 255, 255);
  --r-md: 10px;
  --sh-lg: 0 8px 24px rgba(0, 0, 0, .10);
  --fh: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

.hero {
  background: var(--white);
  padding: 50px 0 64px;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle, rgba(215, 25, 32, .08) 1px, transparent 1px), linear-gradient(135deg, #ffffff 0%, var(--n-tint) 55%, #ffffff 100%);
  background-size: 28px 28px, 100% 100%;
}

@media (max-width: 768px) {
  .hero {
    padding: 56px 0 48px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
}

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

  .hero-grid > div:nth-child(2) {
    order: -1;
  }
}

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.13;
  color: var(--txtd);
  letter-spacing: -.025em;
  margin: 0 0 20px;
}

@media (max-width: 1024px) {
  .hero-h1 {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hero-h1 {
    font-size: 34px;
  }
}

.hero-accent {
  color: var(--n);
  text-decoration: underline;
  text-decoration-color: var(--n);
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
}

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--n);
  color: var(--white);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 2px solid var(--n);
  text-decoration: none;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}

.btn-g:hover {
  background: var(--n-dk);
  border-color: var(--n-dk);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 480px) {
  .btn-g {
    width: 100%;
    justify-content: center;
  }
}

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--n);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 2px solid var(--n);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
}

.btn-o:hover {
  background: var(--n);
  border-color: var(--n);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 480px) {
  .btn-o {
    width: 100%;
    justify-content: center;
  }
}

.hero-vis {
  position: relative;
  line-height: 0;
}

@media (max-width: 768px) {
  .hero-vis {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-vis {
    max-width: 300px;
  }
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 280;
  object-fit: contain;
  display: block;
  border-radius: 26px;
  box-shadow: var(--sh-lg);
}

/* Twisted ribbon + confetti accent behind the hero image */
.hero-brush {
  position: absolute;
  inset: -10%;
  z-index: 5;
  pointer-events: none;
}

.rb {
  position: absolute;
  height: 14px;
  border-radius: 100px;
  background: repeating-linear-gradient(45deg, var(--n) 0 8px, var(--n-dk) 8px 16px);
  box-shadow: 0 6px 14px rgba(165, 15, 21, .3);
}

.rb-1 {
  top: 6%;
  left: -8%;
  width: 58%;
  transform: rotate(-12deg);
}

.rb-2 {
  bottom: 10%;
  right: -10%;
  width: 48%;
  transform: rotate(9deg);
}

.cf {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--n);
}

.cf-circle {
  border-radius: 50%;
}

.cf-square {
  border-radius: 2px;
  transform: rotate(45deg);
}

.cf-1 {
  top: 4%;
  right: 6%;
  background: var(--n-dk);
}

.cf-2 {
  top: 30%;
  left: 2%;
  width: 7px;
  height: 7px;
}

.cf-3 {
  bottom: 30%;
  right: -2%;
  background: var(--n-dk);
  width: 8px;
  height: 8px;
}

.cf-4 {
  bottom: 4%;
  left: 20%;
  width: 6px;
  height: 6px;
}

@media (max-width: 480px) {
  .rb {
    height: 10px;
  }

  .cf {
    display: none;
  }
}

.fc {
  position: absolute;
  z-index: 6;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .13);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

@media (max-width: 768px) {
  .fc {
    padding: 8px 10px;
    min-width: 116px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .fc {
    padding: 7px 10px;
    gap: 6px;
    min-width: auto;
  }
}

.fc-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fc-emoji {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .fc-emoji {
    font-size: 14px;
  }
}

.fc-label {
  font-family: var(--fb);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .fc-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .fc-label {
    display: none;
  }
}

.fc-val {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .fc-val {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .fc-val {
    font-size: 11px;
  }
}

.fc-2 {
  top: 20px;
  right: 16px;
}

.fc-3 {
  bottom: 20px;
  left: 16px;
}

/* ── Rates tables: cards on mobile, table on md+ ───────────────────────── */
.rates-table {
  border-collapse: collapse;
}

.rates-table th,
.rates-table td {
  text-align: left;
}

@media (max-width: 767px) {
  /* Turn the wrapper's horizontal scroll off so cards stack naturally. */
  .rates-panel .overflow-x-auto {
    overflow: visible;
    padding: 0;
  }

  .rates-table {
    display: block;
    width: 100%;
  }

  .rates-table thead {
    display: none;
  }

  .rates-table tbody {
    display: block;
    width: 100%;
  }

  .rates-table tr {
    display: block;
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .rates-table tr:last-child {
    border-bottom: 0;
  }

  .rates-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 4px 0;
    border: 0;
    font-size: 13px;
  }

  .rates-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .rates-table td[data-label="You Pay"]::before {
    color: var(--n);
  }

  .rates-table td[data-label="Plan"] {
    padding-top: 6px;
    font-size: 14px;
  }

  .rates-table td[data-label="Plan"]::before {
    display: none;
  }

  .rates-table td[data-label="You Pay"] {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 15px;
  }
}
