﻿* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f7fb;
  color: #16233a;
}

main { flex: 1; }
.container { width: min(1160px, 94%); margin: 0 auto; }

.topbar { background: #ffffff; border-bottom: 1px solid #d8dee7; }
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 30px; }
.logo span { font-weight: 500; color: #4b5563; font-size: 14px; margin-left: 6px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.env { font-size: 13px; color: #4b5563; background: #eef2f7; border: 1px solid #d8dee7; padding: 6px 10px; border-radius: 8px; }
.login-link {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.landing { padding: 34px 0 18px; }
.landing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; color: #2563eb; font-weight: 700; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.muted { color: #52607a; line-height: 1.65; margin: 0 0 12px; }
.muted.big { font-size: 17px; }

.cta-row { display: flex; gap: 12px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.note { font-size: 13px; color: #52607a; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 540px; }
.stats div { background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; padding: 10px; }
.stats b { display: block; font-size: 18px; margin-bottom: 3px; }
.stats span { font-size: 12px; color: #6b7280; }

.hero-card { background: #fff; border: 1px solid #dbe2ec; border-radius: 10px; padding: 12px; }
.illustration { width: 100%; height: auto; display: block; }

.features { padding: 8px 0 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { background: #fff; border: 1px solid #dbe2ec; border-radius: 10px; padding: 14px; }
.feature-card h3 { margin: 0 0 6px; font-size: 18px; }
.feature-card p { margin: 0; color: #52607a; line-height: 1.6; font-size: 14px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.modal-card {
  position: relative;
  width: min(560px, 94%);
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
  width: auto;
  margin: 0;
  padding: 0;
}

h2 { margin: 0 0 10px; font-size: 32px; }
label { display: block; margin: 10px 0 6px; font-size: 14px; font-weight: 600; }
input { width: 100%; border: 1px solid #cfd7e3; border-radius: 8px; padding: 10px 11px; font-size: 14px; }
input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12); }
button { width: 100%; margin-top: 12px; border: 0; border-radius: 8px; padding: 10px; font-weight: 700; font-size: 14px; background: #2563eb; color: #fff; cursor: pointer; }
button:hover { background: #1d4ed8; }

.step-indicator { display: flex; gap: 8px; margin: 10px 0; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #c3cfde; color: #6b7280; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.dot.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.error { min-height: 16px; margin-top: 4px; font-size: 12px; color: #dc2626; }
.status { display: none; margin-top: 9px; padding: 8px 9px; border-radius: 8px; font-size: 13px; }
.status.ok { display: block; color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; }
.status.bad { display: block; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.hidden { display: none; }

.footer { border-top: 1px solid #d8dee7; background: #fff; margin-top: 10px; }
.footer-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #4b5563; }

@media (max-width: 980px) {
  .landing-grid,
  .feature-grid,
  .stats { grid-template-columns: 1fr; }
  .topbar-inner,
  .footer-inner { flex-direction: column; justify-content: center; gap: 6px; padding: 8px 0; }
  h2 { font-size: 28px; }
}

.footer-links a { color: #2563eb; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.legal-wrap { padding: 24px 0; }
.legal-card { width: min(980px, 94%); margin: 0 auto; background: #fff; border: 1px solid #d8dee7; border-radius: 10px; padding: 22px; }
.legal-card h1 { margin: 0 0 8px; }
.legal-card h3 { margin: 18px 0 8px; font-size: 22px; }
.legal-card ul { margin: 0; padding-left: 20px; color: #374151; line-height: 1.7; }
