* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  color: #10203b;
  background:
    radial-gradient(circle at 16% 10%, rgba(91, 151, 255, 0.24), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(118, 207, 255, 0.2), transparent 32%),
    radial-gradient(circle at 48% 78%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(140deg, #f8fbff 0%, #eaf4ff 52%, #f6fbff 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 102, 217, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 102, 217, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.pricing-page {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.pricing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 82px;
}

.brand-link,
.nav-link,
.plan-cta {
  color: inherit;
  text-decoration: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10203b;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 22px;
  height: 22px;
}

.nav-link {
  padding: 9px 14px;
  border: 1px solid rgba(91, 151, 255, 0.22);
  border-radius: 999px;
  background: rgba(250, 253, 255, 0.58);
  color: #214a91;
  font-size: 13px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(36, 102, 217, 0.34);
  color: #0f1a2d;
  background: rgba(232, 244, 255, 0.82);
}

.pricing-hero {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow,
.plan-topline {
  margin: 0 0 14px;
  color: #3287e6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-hero h1 {
  margin: 0;
  color: #10203b;
  font-family: 'Iowan Old Style', 'Palatino Linotype', serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #60728b;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(91, 151, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 248, 255, 0.58)),
    rgba(250, 253, 255, 0.58);
  box-shadow: 0 24px 76px rgba(63, 116, 196, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px) saturate(1.24);
}

.plan-card.featured {
  border-color: rgba(36, 102, 217, 0.3);
  background:
    radial-gradient(circle at top right, rgba(91, 151, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(231, 242, 255, 0.66));
  transform: translateY(-14px);
}

.plan-card h2 {
  margin: 0;
  color: #10203b;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.price {
  margin-top: 18px;
  color: #1e57b7;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price span {
  display: block;
  margin-bottom: 6px;
  color: #60728b;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-copy {
  margin: 18px 0 0;
  color: #60728b;
  font-size: 15px;
  line-height: 1.55;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: #22324d;
  font-size: 14px;
  line-height: 1.35;
}

.feature-list strong {
  color: #10203b;
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3287e6;
  box-shadow: 0 0 14px rgba(91, 151, 255, 0.42);
}

.featured .feature-list li::before {
  background: #2466d9;
  box-shadow: 0 0 14px rgba(36, 102, 217, 0.44);
}

.plan-cta,
.waitlist-form button {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid rgba(36, 102, 217, 0.28);
  border-radius: 999px;
  background: rgba(226, 240, 255, 0.78);
  color: #1e57b7;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-cta.secondary {
  border-color: rgba(91, 151, 255, 0.22);
  background: rgba(237, 247, 255, 0.72);
  color: #214a91;
}

.plan-cta:hover,
.plan-cta:focus-visible,
.waitlist-form button:hover,
.waitlist-form button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(36, 102, 217, 0.42);
  background: rgba(210, 232, 255, 0.86);
}

.waitlist-form {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.waitlist-form label {
  display: grid;
  gap: 7px;
}

.waitlist-form label span {
  color: #60728b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(91, 151, 255, 0.2);
  border-radius: 14px;
  background: rgba(250, 253, 255, 0.68);
  color: #10203b;
  padding: 0 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.waitlist-form input:focus {
  border-color: rgba(36, 102, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(36, 102, 217, 0.12);
}

.waitlist-form input::placeholder {
  color: #8193aa;
}

.form-note {
  min-height: 18px;
  margin: 0;
  color: #60728b;
  font-size: 13px;
  line-height: 1.35;
}

.form-note.success {
  color: #116f88;
}

.form-note.error {
  color: #b44355;
}

.memory-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(91, 151, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(91, 151, 255, 0.16), transparent 34%),
    rgba(250, 253, 255, 0.58);
  box-shadow: 0 18px 48px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
}

.memory-panel h2 {
  margin: 0;
  color: #10203b;
  font-family: 'Iowan Old Style', 'Palatino Linotype', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.memory-panel p:last-child {
  margin: 0;
  color: #60728b;
  font-size: 16px;
  line-height: 1.65;
}

.pricing-footnote {
  margin: 28px auto 0;
  text-align: center;
  color: #60728b;
  font-size: 14px;
}

@media (max-width: 900px) {
  .pricing-nav {
    margin-bottom: 54px;
  }

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

  .memory-panel {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .plan-card.featured {
    min-height: auto;
    transform: none;
  }
}

@media (max-width: 560px) {
  .pricing-page {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  .pricing-nav {
    align-items: flex-start;
  }

  .brand-link span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pricing-hero h1 {
    font-size: 48px;
  }

  .plan-card {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
