:root {
  --bg: #f4f7fd;
  --bg-soft: #eaf0fb;
  --surface: #ffffff;
  --border: #d9e3f5;
  --text: #13233a;
  --muted: #556782;
  --primary: #0e56bc;
  --primary-strong: #0a4393;
  --primary-soft: #dfeaff;
  --success: #0c7a43;
  --danger: #bd1f1f;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(15, 41, 88, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, #e8efff 0, transparent 36%),
    radial-gradient(circle at 92% 5%, #e1f6ff 0, transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.5;
}

a {
  color: var(--primary-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #93b8ff;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(208, 221, 245, 0.75);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin: -56px 0 -56px -10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 10px;
}

.main-nav a:hover {
  background: #eef4ff;
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.hero {
  padding: 54px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--primary-strong);
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 2.2vw + 1.25rem, 3rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 1.2vw + 1rem, 2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.lead.small {
  max-width: 760px;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 38px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(221, 231, 248, 0.85);
  border-bottom: 1px solid rgba(221, 231, 248, 0.85);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 41, 88, 0.06);
}

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

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

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

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.price-card.featured {
  border-color: #97b7ef;
  box-shadow: inset 0 0 0 1px #d2e1fb;
}

.price {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
}

.price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(207, 220, 243, 0.9);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-inner nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--text);
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
}

.auth-card {
  width: min(480px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 0;
  line-height: 0;
}

.auth-brand__logo {
  width: 192px;
  height: 192px;
  object-fit: contain;
  border-radius: 8px;
  margin: -42px 0 -34px;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.form-row label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.form-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d8f2;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  color: #5d6f8c;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
  background: #eef4ff;
}

.password-toggle__icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle__slash {
  opacity: 0;
}

.password-toggle.is-visible .password-toggle__slash {
  opacity: 1;
}

.form-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.auth-link {
  font-size: 0.95rem;
}

.auth-result {
  margin: 12px 0 0;
  min-height: 22px;
  color: var(--danger);
  font-weight: 600;
}

.auth-result.is-success {
  color: var(--success);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .header-inner {
    min-height: 58px;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    padding: 6px 0;
  }

  .brand-logo-img {
    width: 116px;
    height: 116px;
    margin: -28px 0 -28px -6px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 4px 0 10px;
    gap: 6px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 24px 0 18px;
  }

  h1 {
    font-size: clamp(1.6rem, 6.4vw, 2.05rem);
    line-height: 1.2;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-cta {
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-visual {
    padding: 8px;
  }

  .section {
    padding: 30px 0;
  }
}

@media (max-width: 420px) {
  .brand-logo-img {
    width: 100px;
    height: 100px;
    margin: -22px 0 -22px -4px;
  }

  .menu-toggle {
    padding: 7px 10px;
  }

  .btn {
    min-height: 42px;
    padding: 9px 12px;
  }
}
