:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --blue: #2563EB;
  --blue-soft: #e8efff;
  --border: #e5e7eb;
  --radius: 14px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap,
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  backdrop-filter: blur(8px);
  background: rgba(244, 246, 251, 0.98);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.header-inner {
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  flex-shrink: 0;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-text {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a.active { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white !important;
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.button-small { padding: 10px 16px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563EB;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.button.ghost {
  background: var(--blue-soft);
  color: var(--blue) !important;
}
.button.outline {
  background: transparent;
  color: var(--blue) !important;
  border: 1px solid var(--border);
}


.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  padding: 80px 0 40px;
  align-items: center;
}
.eyebrow { color: var(--blue); font-weight: 600; margin: 0 0 10px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.note { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

.hero-visual {
  background: linear-gradient(180deg, #edf2ff, #f9fbff);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(20, 30, 70, 0.08);
}
.phone {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 16px;
  max-width: 320px;
  margin: 0 auto;
}
.phone-head { width: 64px; height: 6px; border-radius: 999px; background: #e5e7eb; margin: 0 auto 16px; }
.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 8px 0;
  width: fit-content;
  max-width: 88%;
  font-size: 0.95rem;
}
.from-bot { background: #eef2ff; }
.from-user { background: #f3f4f6; margin-left: auto; }

section { padding: 34px 0; }
.features-short h2,
.trust h2,
.cta h2,
.page h1 { margin-top: 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  margin-bottom: 12px;
}
.trust ul { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; list-style: none; }
.trust li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
.cta {
  text-align: center;
  background: #edf3ff;
  border-radius: 18px;
  padding: 44px 22px;
  margin: 24px auto 54px;
}

.page { padding: 44px 0 70px; }
.mock-screen {
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pricing-header {
  margin-bottom: 18px;
  max-width: 760px;
}

.pricing-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.pricing-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.pricing-toggle {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  background: #f2f5ff;
  border: 1px solid #d9e4ff;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 18px;
}

.billing-toggle .toggle-option {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.billing-toggle .toggle-option.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: 16px;
}

.pricing-badge-slot {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.pricing-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.pricing-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-value {
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-price-unit {
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #6b7280;
}

.pricing-subtitle {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.pricing-description {
  margin: 0 0 16px;
  color: #6b7280;
  line-height: 1.4;
  height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-features li {
  position: relative;
  padding-left: 28px;
}

.plan-features li + li {
  margin-top: 0;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e7f8ee;
  color: #15803d;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-action {
  margin-top: auto;
  padding-top: 18px;
}

.pricing-action .btn {
  width: 100%;
}

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

.plan-badge {
  margin: 0;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.pricing-card.is-featured {
  border: 2px solid #3b82f6;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
}

.pricing-card.is-featured:hover {
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.2);
}

.pricing-card.is-featured .pricing-button {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.pricing-card.is-featured .pricing-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.pricing-trust-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pricing-referral-block {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.pricing-referral-block h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.pricing-referral-block p {
  margin: 0;
  color: var(--muted);
}

.pricing-referral-block p + p {
  margin-top: 6px;
}

.card-lite {
  background: #fbfcff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

.faq-block {
  margin-top: 26px;
}

.faq-block h2 {
  margin-bottom: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.pricing-final-cta {
  margin-top: 26px;
  text-align: center;
  background: #edf3ff;
  border-radius: 18px;
  padding: 34px 22px;
}

.pricing-final-cta h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; color: var(--muted); }
input, textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 14px; }

.footer-inner {
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.site-footer nav a {
  margin-right: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-footer .logo-footer,
.site-footer .footer-copy {
  flex-shrink: 0;
  white-space: nowrap;
}

#legal-info-footer {
  flex: 1 1 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.45;
}

#legal-info-footer p {
  margin: 0;
  white-space: normal;
}
.logo-footer img {
  height: 28px;
}

.logo-footer .logo-text {
  color: #9ca3af;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo img {
    height: 32px;
  }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cards-grid,
  .cards-grid-2,
  .faq-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
    overflow-x: hidden;
  }
  .main-nav {
    width: 100%;
    gap: 10px 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
  }

  .main-nav a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
  }

  .btn-primary {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .site-footer .logo-footer,
  .site-footer .footer-copy {
    white-space: normal;
  }

  .site-footer .logo-footer {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .site-footer .logo-footer .logo-text {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-subtitle {
    min-height: 0;
  }

  .pricing-description {
    height: auto;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .btn-primary {
    width: 100%;
    margin-left: 0;
  }

  .main-nav {
    order: 3;
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 28px;
  }

  .logo-text {
    font-size: 18px;
  }
}
