:root {
  --deep: #382957;
  --deep-2: #251a3a;
  --accent: #9e6edb;
  --accent-2: #b891ea;
  --lilac: #d1b8f5;
  --surface: #e8e0fa;
  --sand: #f0e8fc;
  --ivory: #faf5ff;
  --paper: #fffbff;
  --white: rgba(255, 255, 255, 0.94);
  --muted: rgba(56, 41, 87, 0.68);
  --line: rgba(56, 41, 87, 0.10);
  --line-strong: rgba(158, 110, 219, 0.28);
  --coral: #f25966;
  --success: #2f8068;
  --shadow-soft: 0 14px 34px rgba(69, 48, 97, 0.10);
  --shadow-strong: 0 24px 64px rgba(61, 38, 91, 0.18);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(56, 41, 87, 0.96) 0%, rgba(158, 110, 219, 0.84) 38%, rgba(250, 245, 255, 0) 39%),
    linear-gradient(180deg, var(--ivory) 0%, var(--sand) 46%, var(--paper) 100%);
  color: var(--deep);
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(158, 110, 219, 0.28);
  outline-offset: 3px;
}

.page-shell {
  isolation: isolate;
  min-height: 100vh;
  position: relative;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 18px clamp(18px, 4vw, 56px);
}

.brand {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: 850;
  gap: 11px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 54px;
  object-fit: contain;
  width: 150px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.text-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  margin: 0 auto;
  max-width: 1220px;
  padding: 34px clamp(18px, 4vw, 56px) 24px;
}

.hero > div:first-child {
  color: #fff;
  padding-top: 24px;
}

.eyebrow {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 7px;
  opacity: 0.78;
  width: 7px;
}

h1 {
  font-size: clamp(38px, 5.3vw, 66px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 760px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 680px;
}

.trust-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 740px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(37, 26, 58, 0.16);
  padding: 15px;
}

.trust-item strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 5px;
}

.summary-panel {
  align-self: stretch;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: 26px;
}

.summary-panel h2 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.summary-row {
  align-items: center;
  background: rgba(240, 232, 252, 0.74);
  border: 1px solid rgba(158, 110, 219, 0.13);
  border-radius: 18px;
  display: flex;
  gap: 13px;
  padding: 12px;
}

.summary-icon {
  align-items: center;
  background: var(--deep);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 18px clamp(18px, 4vw, 56px) 58px;
}

.billing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 382px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.plan-card::before {
  background: linear-gradient(90deg, rgba(158, 110, 219, 0.18), rgba(209, 184, 245, 0));
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.plan-card.is-selected {
  border-color: var(--line-strong);
  box-shadow: 0 22px 54px rgba(80, 48, 119, 0.20);
  transform: translateY(-2px);
}

.badge {
  align-self: flex-start;
  background: rgba(158, 110, 219, 0.13);
  border: 1px solid rgba(158, 110, 219, 0.16);
  border-radius: 999px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.plan-card h3 {
  font-size: 23px;
  letter-spacing: 0;
  margin: 16px 0 0;
}

.price {
  color: var(--deep);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 10px 0 8px;
}

.price span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.feature-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.feature-list li {
  align-items: flex-start;
  color: var(--deep);
  display: flex;
  font-size: 14px;
  gap: 9px;
  line-height: 1.38;
}

.check {
  align-items: center;
  background: rgba(158, 110, 219, 0.12);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 19px;
  justify-content: center;
  line-height: 1;
  width: 19px;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(92, 55, 137, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.button:hover {
  background: #8c5ed0;
  box-shadow: 0 16px 30px rgba(92, 55, 137, 0.24);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--deep);
}

.plan-card .button {
  margin-top: auto;
}

.checkout-band {
  align-items: center;
  background: linear-gradient(135deg, var(--deep), #4f3973);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  color: #fff;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr minmax(160px, 210px) minmax(210px, auto);
  margin: 28px 0;
  padding: 18px;
}

.checkout-band strong {
  display: block;
  font-size: 17px;
}

.checkout-band span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.promo-input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

.promo-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.notice {
  border-radius: 18px;
  display: none;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 18px;
  padding: 15px 17px;
}

.notice.is-visible {
  display: block;
}

.notice.info {
  background: rgba(232, 224, 250, 0.82);
  color: var(--deep);
}

.notice.error {
  background: rgba(242, 89, 102, 0.12);
  color: #aa2634;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 22px auto 0;
  max-width: 1220px;
  padding: 24px clamp(18px, 4vw, 56px);
}

.success-card,
.contact-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  margin: 58px auto;
  max-width: 720px;
  padding: 30px;
}

.success-card .eyebrow,
.contact-card .eyebrow {
  color: var(--accent);
}

.success-card h1,
.contact-card h1 {
  color: var(--deep);
  font-size: clamp(34px, 5vw, 48px);
}

.success-card .hero-copy,
.contact-card .hero-copy {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero,
  .billing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(150deg, rgba(56, 41, 87, 0.98) 0%, rgba(158, 110, 219, 0.86) 33%, rgba(250, 245, 255, 0) 34%),
      linear-gradient(180deg, var(--ivory) 0%, var(--sand) 48%, var(--paper) 100%);
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .hero,
  .billing-grid,
  .trust-strip,
  .checkout-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 16px;
  }

  .hero > div:first-child {
    padding-top: 8px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .summary-panel {
    min-height: 0;
  }
}
