@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #111827;
  --muted: #5b6678;
  --line: #e2e8f0;
  --page: #f4f7fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* TOP BAR AND BACK TO LOGIN */

.topbar {
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
}

.back-login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  transition: .25s ease;
}

.back-login-button:hover {
  color: #fff;
  background: linear-gradient(120deg, #2563eb, #7c3aed, #db2777);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(79, 70, 229, .24);
}

/* PAGE AND HERO */

.page-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(125deg, #091b3c, #123f78 48%, #087e8b);
  box-shadow: 0 18px 45px rgba(17, 55, 99, .16);
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  right: -85px;
  top: -150px;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, .035),
    0 0 0 75px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: #078b8d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero .eyebrow {
  color: #72f0e5;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 840px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #f2f7ff;
}

.hero-note {
  max-width: 850px;
  margin: 12px 0 0;
  color: #d6e6f8;
  font-size: .98rem;
}

/* SECTION HEADINGS */

.section-block {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 3px;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

/* PLAN CARDS */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .11);
}

.quick-card:hover {
  border-color: #60a5fa;
}

.boost-card {
  border: 2px solid #8b5cf6;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .10);
}

.boost-card:hover {
  border-color: #ec4899;
  box-shadow: 0 20px 42px rgba(124, 58, 237, .17);
}

.growth-card:hover {
  border-color: #10b981;
}

.featured-card {
  padding-top: 34px;
}

.popular-ribbon {
  position: absolute;
  top: -1px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 0 0 10px 10px;
  color: #fff;
  background: linear-gradient(100deg, #7c3aed, #db2777);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.plan-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.plan-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  font-size: 1.1rem;
}

.boost-card .plan-icon {
  background: #f5f3ff;
}

.growth-card .plan-icon {
  background: #ecfdf5;
}

.plan-type {
  color: #758195;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.plan-card h3 {
  margin: 0 0 6px;
  font-size: 1.38rem;
  letter-spacing: -.025em;
}

/* PRICES AND PLAN DETAILS */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.price span {
  font-size: 2.15rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.06em;
}

.quick-card .price span {
  color: #2563eb;
}

.boost-card .price span {
  color: #9333ea;
}

.growth-card .price span {
  color: #059669;
}

.price small {
  color: #667085;
  font-size: .88rem;
  font-weight: 600;
}

.billing-note {
  margin: 3px 0 0;
  color: #059669;
  font-size: .82rem;
  font-weight: 700;
}

.delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 15px;
  color: #526174;
  font-size: .83rem;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px #d1fae5;
}

.plan-description {
  min-height: 72px;
  margin: 0 0 13px;
  color: #5c6678;
  font-size: .91rem;
}

.plan-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.plan-card li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
  color: #354052;
  font-size: .87rem;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0d9488;
  font-weight: 900;
}

.plan-card code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f1f5f9;
  font-size: .82em;
}

/* COLORFUL PLAN BUTTONS */

.plan-button,
.addon-button,
.bottom-button,
.modal-login-button {
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.plan-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: .91rem;
}

.plan-button span,
.bottom-button span,
.modal-login-button span {
  font-size: 1.15rem;
  transition: transform .2s ease;
}

.plan-button:hover,
.addon-button:hover,
.bottom-button:hover,
.modal-login-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.15);
}

.plan-button:hover span,
.bottom-button:hover span,
.modal-login-button:hover span {
  transform: translateX(4px);
}

.quick-button {
  background: linear-gradient(110deg, #2563eb, #06b6d4);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.quick-button:hover {
  box-shadow: 0 12px 25px rgba(37, 99, 235, .32);
}

.boost-button {
  background: linear-gradient(110deg, #7c3aed, #db2777);
  box-shadow: 0 8px 18px rgba(147, 51, 234, .22);
}

.boost-button:hover {
  box-shadow: 0 12px 25px rgba(147, 51, 234, .32);
}

.growth-button {
  background: linear-gradient(110deg, #059669, #14b8a6);
  box-shadow: 0 8px 18px rgba(5, 150, 105, .2);
}

.growth-button:hover {
  box-shadow: 0 12px 25px rgba(5, 150, 105, .3);
}

/* ADD-ONS TABLE */

.addons-section {
  margin-top: 46px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dce3ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.addons-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.addons-table th {
  padding: 15px 18px;
  color: #fff;
  background: #0b1224;
  text-align: left;
  font-size: .88rem;
}

.addons-table td {
  padding: 15px 18px;
  border-top: 1px solid #e5eaf1;
  color: #465164;
  font-size: .91rem;
}

.addons-table tbody tr {
  transition: background .2s ease;
}

.addons-table tbody tr:hover {
  background: #f8fafc;
}

.addons-table td:first-child {
  color: #172033;
}

.addon-price {
  font-weight: 800;
  white-space: nowrap;
}

.addon-button {
  min-width: 92px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: .82rem;
}

.addon-blue {
  background: linear-gradient(110deg, #2563eb, #06b6d4);
}

.addon-purple {
  background: linear-gradient(110deg, #7c3aed, #c026d3);
}

.addon-orange {
  background: linear-gradient(110deg, #ea580c, #ec4899);
}

/* BOTTOM CALL TO ACTION */

.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 28px 32px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(110deg, #111827, #263b69 65%, #087e8b);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.bottom-cta .eyebrow {
  color: #6ee7d8;
}

.bottom-cta h2 {
  max-width: 650px;
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
}

.bottom-cta p:not(.eyebrow) {
  margin: 7px 0 0;
  color: #d8e2f0;
}

.bottom-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 23px;
  border-radius: 12px;
  background: linear-gradient(110deg, #f97316, #db2777);
  box-shadow: 0 8px 20px rgba(219, 39, 119, .2);
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 2px 0;
  color: #7b8798;
  font-size: .78rem;
}

/* LOGIN POPUP */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 15, 33, .68);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: relative;
  width: min(100%, 430px);
  padding: 34px 30px 28px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}

.is-open .login-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  color: #5b6678;
  background: #f1f5f9;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.modal-close:hover {
  color: #fff;
  background: #ef4444;
  transform: rotate(90deg);
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 17px;
  border-radius: 19px;
  background: linear-gradient(135deg, #dbeafe, #f3e8ff);
  font-size: 1.7rem;
}

.modal-eyebrow {
  margin-bottom: 5px;
}

.login-modal h2 {
  margin: 0;
  font-size: 1.65rem;
}

.login-modal > p:not(.eyebrow) {
  margin: 11px 0 22px;
  color: #647084;
  font-size: .95rem;
}

.modal-login-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(110deg, #2563eb, #7c3aed, #db2777);
  box-shadow: 0 8px 20px rgba(99, 102, 241, .24);
}

.modal-cancel-button {
  margin-top: 12px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #647084;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-cancel-button:hover {
  color: #111827;
  text-decoration: underline;
}

/* TABLET */

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

  .growth-card {
    grid-column: 1 / -1;
  }

  .growth-card .plan-description {
    min-height: 0;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .topbar {
    min-height: 62px;
    padding: 10px 18px;
  }

  .page-wrap {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .hero {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .section-block {
    margin-top: 32px;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 9px;
  }

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

  .growth-card {
    grid-column: auto;
  }

  .plan-card {
    padding: 24px 21px 21px;
  }

  .featured-card {
    padding-top: 38px;
  }

  .plan-description {
    min-height: 0;
  }

  .bottom-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 25px 22px;
  }

  .bottom-button {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 3px;
  }

  .login-modal {
    padding: 32px 22px 24px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}