:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #081121;
  color: #eef4ff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #081121;
}

.site-header,
main {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f7fd;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #4ba4f5;
  color: #7abfff;
  font-size: 0.78rem;
  font-weight: 900;
}

.header-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid #4ba4f5;
  border-radius: 6px;
  padding: 0 18px;
  background: #1875c2;
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

.header-link { min-height: 40px; background: transparent; color: #dce8f8; }
.button:hover, .header-link:hover { background: #2387dc; }
.header-link:hover { color: #fff; }

.pricing-intro {
  max-width: 770px;
  padding: 80px 0 38px;
}

.eyebrow,
.plan-label {
  color: #6eb8ff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.pricing-intro p { max-width: 620px; color: #bdcae2; font-size: 1.08rem; line-height: 1.65; }

.diagnostic-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 12px 0 38px;
  padding: 22px 24px;
  border: 1px solid #315e8d;
  border-radius: 8px;
  background: #10223a;
}

.diagnostic-banner strong { font-size: 1.1rem; }
.diagnostic-banner p { margin: 6px 0 0; color: #b9cae2; line-height: 1.5; }
.button-secondary { border-color: #5c7496; background: #1a2c47; white-space: nowrap; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 28px;
  border: 1px solid #2c405c;
  border-radius: 8px;
  background: #101d32;
}

.plan-card.is-recommended {
  border-color: #4ba4f5;
  box-shadow: 0 0 0 1px #4ba4f5;
}

.plan-card h2 { margin: 16px 0 10px; font-size: 1.6rem; }
.plan-card > p:not(.price) { color: #c5d2e5; line-height: 1.58; }
.price { margin: 0 0 18px; color: #fff; font-size: 2.25rem; font-weight: 850; }
.price span { color: #9ab0cd; font-size: 0.92rem; font-weight: 700; }

.plan-card ul { display: grid; gap: 10px; margin: 12px 0 28px; padding-left: 19px; color: #d9e5f5; line-height: 1.45; }
.plan-card .button { margin-top: auto; }

.plan-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
}

.plan-chat-panel {
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #315e8d;
  border-radius: 8px;
  background: #101d32;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.plan-chat-widget:not(.is-open) .plan-chat-panel { display: none; }

.plan-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #2c405c;
}

.plan-chat-header h3 { margin: 0; font-size: 1rem; }
.plan-chat-header span { display: block; margin-top: 4px; color: #a9bfdb; font-size: 0.82rem; line-height: 1.4; }

.plan-chat-close,
.plan-chat-launcher {
  border: 1px solid #4ba4f5;
  border-radius: 50%;
  background: #10223a;
  color: #eaf4ff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.plan-chat-close { width: 30px; height: 30px; flex: 0 0 auto; }
.plan-chat-launcher { width: 52px; height: 52px; margin-top: 10px; margin-left: auto; font-size: 1.2rem; }

.plan-chat-messages { padding: 16px; color: #d6e3f3; font-size: 0.9rem; line-height: 1.55; }
.plan-chat-messages p { margin: 0; }
.plan-chat-options { padding: 0 16px 16px; }
.plan-chat-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid #c79024;
  border-radius: 6px;
  background: #1a2c47;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.badge-default,
.recommendation-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid #c79024;
  border-radius: 999px;
  padding: 5px 8px;
  color: #f4c45e;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.recommendation-badge { right: auto; left: 18px; border-color: #4ba4f5; color: #8ec9ff; }
.plan-card.is-recommended .plan-label { margin-top: 28px; }

@media (max-width: 840px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
}

@media (max-width: 560px) {
  .site-header, main { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  .pricing-intro { padding-top: 48px; }
  .diagnostic-banner { align-items: flex-start; flex-direction: column; }
  .diagnostic-banner .button { width: 100%; }
  .plan-chat-widget { right: 14px; bottom: 14px; }
}
