:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --bg-panel: #f8fafc;
  --ink: #0b1220;
  --ink-soft: #1f2a3d;
  --muted: #5b6577;
  --line: #e5e8ee;
  --accent: #1f5cff;
  --accent-soft: #e9efff;
  --success-soft: #ecfdf3;
  --warning-soft: #fff7ed;
  --shadow: 0 22px 50px rgba(11, 18, 32, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(31, 92, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button,
input {
  font: inherit;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0; color: var(--ink-soft); }

.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 232, 238, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink) 0%, #23314a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name { font-size: 15px; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  border-color: var(--ink);
  background: var(--bg-panel);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  padding: 92px 0 78px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  max-width: 760px;
}

.hero-copy .lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid #dbe5ff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-panel-list {
  margin: 20px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.hero-panel-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-strip {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.cta-row {
  margin-top: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover { background: #1847d7; }

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.dark:hover { background: #060b14; }

.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost:hover {
  border-color: var(--ink);
  background: var(--bg-panel);
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-muted { background: var(--bg-muted); }

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head-wide {
  max-width: 760px;
}

.section-head h2,
.audience-grid h2,
.cta-band h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.section-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.billing-note,
.status-banner {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.billing-note {
  background: #eef4ff;
  border: 1px solid #d5e2ff;
  color: #26437f;
}

.status-banner {
  background: var(--warning-soft);
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.04);
}

.plan-card.featured {
  border-color: #cdd9ff;
  box-shadow: 0 18px 40px rgba(31, 92, 255, 0.12);
}

.plan-card-loading {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.plan-loading,
.comparison-loading {
  color: var(--muted);
  font-size: 15px;
}

.plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.plan-price-group {
  flex-shrink: 0;
  text-align: right;
}

.plan-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-head h3 {
  font-size: 24px;
}

.plan-price {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.plan-price-subcopy {
  margin: 6px 0 0;
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.plan-offer {
  display: inline-flex;
  margin-top: 14px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.plan-description {
  margin-top: 14px;
  color: var(--muted);
}

.plan-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.plan-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.plan-highlights {
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.plan-highlights li {
  padding-left: 2px;
}

.plan-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-support-line {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.capability {
  background: #fff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}

.capability h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.capability p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.comparison-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.comparison-table thead th {
  background: var(--bg-panel);
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--ink);
  font-weight: 600;
}

.comparison-table td {
  color: var(--muted);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.audience-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.audience-list strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.audience-list span {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.faq-item h3 {
  font-size: 17px;
  line-height: 1.35;
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
}

.cta-band {
  padding: 88px 0;
  text-align: center;
}

.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-band p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.cta-band .cta-row { justify-content: center; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.58);
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(11, 18, 32, 0.24);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-eyebrow {
  margin-bottom: 8px;
}

.modal-copy {
  margin-top: 14px;
  color: var(--muted);
}

.modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.checkout-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #b6c7ff;
  box-shadow: 0 0 0 4px rgba(31, 92, 255, 0.1);
}

.checkout-payment-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.checkout-payment-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.checkout-payment-element {
  min-height: 54px;
}

.form-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 960px) {
  .hero-grid,
  .plans-grid,
  .faq-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .audience-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 72px;
  }

  .hero-panel,
  .plan-card,
  .faq-item,
  .modal-card {
    padding: 22px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
  }
}
