:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f213a;
  --muted: #526682;
  --line: #d7e1ef;
  --line-strong: #c3d2e8;
  --primary: #1a56e8;
  --primary-strong: #143fb0;
  --primary-soft: #e7efff;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(15, 33, 58, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 33, 58, 0.06);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 440px at 12% -8%, rgba(26, 86, 232, 0.15), transparent 70%),
    radial-gradient(760px 360px at 95% 8%, rgba(26, 86, 232, 0.08), transparent 72%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  line-height: 1.62;
  letter-spacing: 0.01em;
}

a { color: inherit; }
img { max-width: 100%; }

.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;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 252, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 26px rgba(15, 33, 58, 0.1);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: #0c0b34;
  white-space: nowrap;
}

.logo-mark {
  display: block;
  height: clamp(34px, 5vw, 46px);
  width: auto;
}

.logo-text {
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #2a3f5f;
  font-weight: 650;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-nav a:hover { color: #0d2f7f; }

.lang-picker {
  position: relative;
}

.lang-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.lang-select-trigger {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 0.66rem 0.82rem;
  font: inherit;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 60px;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.lang-select-trigger:hover {
  border-color: #a9bfdc;
  background: var(--surface-soft);
}

.lang-picker.is-open .lang-select-trigger {
  border-color: #9ab7ea;
  box-shadow: 0 12px 24px rgba(15, 33, 58, 0.12);
}

.lang-select-value {
  min-width: 2.2ch;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-select-caret {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #637897;
  border-bottom: 2px solid #637897;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.lang-picker.is-open .lang-select-caret {
  transform: rotate(225deg) translateY(-1px);
}

.lang-select-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 174px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.12rem;
  z-index: 40;
}

.lang-select-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: center;
  gap: 0.65rem;
  font: inherit;
  color: #2a3f5f;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--primary-soft);
  color: #0d2f7f;
}

.lang-option-check {
  color: var(--primary);
  font-size: 0.92rem;
  line-height: 1;
  opacity: 0;
}

.lang-option.is-selected {
  background: rgba(26, 86, 232, 0.08);
  color: var(--text);
}

.lang-option.is-selected .lang-option-check {
  opacity: 1;
}

.btn {
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0.66rem 1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(26, 86, 232, 0.3);
}

.btn-primary:hover { background: linear-gradient(180deg, #2a67ff 0%, #1647bc 100%); }
.btn-secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: #16345f;
}

.btn-secondary:hover {
  border-color: #a9bfdc;
  background: var(--surface-soft);
}

:focus-visible {
  outline: 3px solid #89a9ff;
  outline-offset: 2px;
}

main section { padding: 4.8rem 0; }

.hero {
  padding-top: 5.3rem;
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  line-height: 1.06;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: #0c1d38;
  max-width: 15.5ch;
}

.hero p.lead {
  color: var(--muted);
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.55rem;
}

.microcopy {
  margin-top: 1rem;
  color: #3e5676;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-mock {
  background: linear-gradient(145deg, #1044b9 0%, #1e63f4 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 24px 42px rgba(16, 68, 185, 0.25);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-mock::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  top: -110px;
  right: -90px;
  pointer-events: none;
}

.mock-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  position: relative;
}

.mock-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #2b3f60;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stars {
  font-size: 1.2rem;
  color: #f1a317;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid #bfd2ed;
  color: #21406c;
  background: #eef4ff;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chart-placeholder {
  margin-top: 0.85rem;
  height: 78px;
  border-radius: 10px;
  border: 1px dashed #a9c1e1;
  background:
    linear-gradient(180deg, rgba(26, 86, 232, 0.18), rgba(26, 86, 232, 0.03)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: #0c1f3e;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 1.7rem;
  max-width: 90ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 1.4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.18rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #b7c9e3;
  box-shadow: 0 16px 30px rgba(15, 33, 58, 0.09);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.07rem;
  color: #122947;
}

ul.clean {
  margin: 0;
  padding-left: 1.1rem;
  color: #304563;
}

ul.clean li { margin: 0.45rem 0; }

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid #b8cbeb;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  border: 1px solid #c5d4eb;
  background: #edf4ff;
  color: #18438e;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.dashboard-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dashboard-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  color: #314866;
  background: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-tabs button.active {
  background: var(--primary-soft);
  color: #173f88;
  border-color: #b4c8e8;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.metric {
  border-radius: 12px;
  border: 1px solid #d5dfed;
  background: #fff;
  padding: 0.62rem;
}

.metric strong { display: block; font-size: 0.92rem; color: #102743; }
.metric span { color: var(--muted); font-size: 0.82rem; }

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

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.plan-card > h3 {
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.2;
  color: #122947;
}

.plan-card > p {
  margin: 0;
}

.plan-card > p:not(.plan-price) {
  min-height: 4.25rem;
  color: #1d3558;
}

.plan-price {
  margin: 0 0 0.2rem;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #102743;
}

.pricing-cta {
  margin-top: auto;
}

.plan-card.popular {
  border: 2px solid #7fa2e7;
  box-shadow: 0 15px 32px rgba(26, 86, 232, 0.17);
}

.plan-card.is-selected {
  border-color: #2d65e0;
  box-shadow: 0 18px 36px rgba(26, 86, 232, 0.22);
  transform: translateY(-3px);
}

.plan-card.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(45, 101, 224, 0.16);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .pricing-cta:hover {
    border-color: transparent;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(26, 86, 232, 0.3);
  }
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 12px;
  background: #1140a8;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body.plan-flow-open {
  overflow: hidden;
}

.plan-intake-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(10, 21, 43, 0.28);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.plan-intake-shell.is-open {
  display: flex;
  animation: planBackdropIn 0.28s ease;
}

@keyframes planBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes planModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-intake {
  position: relative;
  overflow: hidden;
  width: min(1040px, calc(100vw - 2.5rem));
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 28px;
  background:
    radial-gradient(460px 180px at 12% 12%, rgba(255, 255, 255, 0.18), transparent 72%),
    linear-gradient(145deg, #1958e0 0%, #1445b8 46%, #0f348d 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 50px rgba(15, 58, 160, 0.24);
  animation: planModalIn 0.4s ease;
}

.plan-intake-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.plan-intake::before,
.plan-intake::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.plan-intake::before {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.plan-intake::after {
  left: -80px;
  bottom: -110px;
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  clip-path: polygon(0 50%, 100% 0, 85% 100%);
}

.plan-intake-visual,
.lead-form-card {
  position: relative;
  z-index: 1;
}

.plan-intake-visual {
  padding: 3rem 1.2rem 1.15rem;
  color: #f6fbff;
}

.plan-intake-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.plan-intake-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.plan-intake h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.02;
  max-width: 12ch;
}

.plan-intake-copy {
  margin: 0.9rem 0 0;
  color: rgba(243, 248, 255, 0.88);
  max-width: 44ch;
}

.plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0 1.1rem;
}

.plan-summary-card {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.plan-summary-card span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 248, 255, 0.76);
}

.plan-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1rem;
}

.plan-intake-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.plan-intake-list li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(246, 251, 255, 0.94);
}

.plan-intake-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.plan-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.plan-switch-link:hover {
  color: rgba(255, 255, 255, 0.84);
}

.lead-form-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 1.15rem;
  box-shadow: 0 20px 36px rgba(10, 32, 78, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.form-card-kicker {
  margin: 0;
  color: #2f5dab;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form-card .form-card-title {
  margin: 0.3rem 0 0.95rem;
  color: #173459;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

.form-banner {
  margin-bottom: 1rem;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.form-banner.error {
  background: #fff4f3;
  border: 1px solid #f0c4bf;
  color: #8a2c1f;
}

.form-banner.success {
  background: #ecf9f0;
  border: 1px solid #bfe6ca;
  color: #1b6a37;
}

.lead-form-card.is-complete .form-banner.success {
  margin-top: clamp(2rem, 5vh, 3.8rem);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field span {
  color: #16345f;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d2dff1;
  border-radius: 16px;
  padding: 0.88rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: #79a1ee;
  box-shadow: 0 0 0 4px rgba(26, 86, 232, 0.12);
}

.lead-form-note {
  margin: 0.85rem 0 0.8rem;
  color: #4c607b;
  font-size: 0.92rem;
}

.lead-form-submit {
  width: 100%;
  min-height: 3.2rem;
  margin-top: auto;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: clip;
  box-shadow: var(--shadow-soft);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: #163153;
  padding: 1rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-a {
  padding: 0 1rem 1rem;
  color: #355071;
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 220px at 50% -20%, rgba(255, 255, 255, 0.22), transparent 75%),
    linear-gradient(145deg, #174fcf 0%, #0f3aa0 100%);
  color: #f7fbff;
  border: 1px solid rgba(18, 61, 158, 0.42);
  border-radius: 24px;
  padding: 2.6rem 1rem;
  box-shadow: 0 20px 40px rgba(15, 58, 160, 0.28);
}

.final-cta h2 { color: #f7fbff; }
.final-cta p { color: rgba(239, 247, 255, 0.92); }
.final-cta .btn-primary {
  background: #fff;
  color: #1340a6;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.final-cta .btn-primary:hover { background: #eef4ff; color: #0f358d; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 3.6rem;
  padding: 1.5rem 0 2.4rem;
  color: #486180;
  font-size: 0.93rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #18458f; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background:
    radial-gradient(780px 360px at 10% -6%, rgba(26, 86, 232, 0.12), transparent 72%),
    radial-gradient(620px 320px at 92% 8%, rgba(16, 52, 141, 0.09), transparent 70%),
    linear-gradient(180deg, #fbfcff 0%, #f4f8ff 100%);
}

.legal-shell {
  padding: 1.6rem 0 4.4rem;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0.6rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 28px;
  background:
    radial-gradient(420px 160px at 15% 10%, rgba(255, 255, 255, 0.16), transparent 72%),
    linear-gradient(145deg, #194cc8 0%, #123a99 48%, #0d2a6e 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 52px rgba(15, 58, 160, 0.18);
  color: #f7fbff;
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.legal-hero::before {
  top: -90px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.legal-hero::after {
  left: -70px;
  bottom: -80px;
  width: 300px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  clip-path: polygon(0 50%, 100% 0, 84% 100%);
}

.legal-hero > * {
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(236, 244, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-hero-lead {
  max-width: 66ch;
  margin: 1rem 0 0;
  color: rgba(243, 248, 255, 0.92);
  font-size: 1.02rem;
}

.legal-hero-meta {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(247, 251, 255, 0.92);
  font-size: 0.9rem;
}

.legal-hero-meta a,
.legal-hero-note a {
  color: #fff;
}

.legal-hero-note {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: rgba(239, 247, 255, 0.84);
}

.legal-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.legal-summary-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.legal-summary-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.legal-summary-card {
  padding: 1.2rem 1.2rem 1.15rem;
}

.legal-summary-label {
  display: block;
  color: #49678f;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #102743;
  font-size: 1.05rem;
}

.legal-summary-card p {
  margin: 0.7rem 0 0;
  color: #36506f;
}

.legal-alert {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid #d9e5f7;
  box-shadow: var(--shadow-soft);
}

.legal-alert strong {
  display: block;
  color: #102743;
  font-size: 1rem;
}

.legal-alert p {
  margin: 0.55rem 0 0;
}

.legal-alert-warning {
  background: linear-gradient(180deg, #fff8e8 0%, #fffdf7 100%);
  border-color: #ecd6a2;
  color: #5e4915;
}

.legal-content {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.legal-card {
  padding: clamp(1.2rem, 3.2vw, 1.65rem);
}

.legal-card h2 {
  margin: 0 0 0.8rem;
  color: #102743;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  letter-spacing: -0.02em;
}

.legal-card p {
  margin: 0.78rem 0 0;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: #203854;
}

.legal-list li + li {
  margin-top: 0.52rem;
}

.legal-list-compact {
  margin-top: 0.7rem;
}

.legal-list-compact li + li {
  margin-top: 0.3rem;
}

.legal-note {
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f4f8ff;
  border: 1px solid #d7e3f6;
  color: #27466c;
}

.legal-table-wrap {
  margin-top: 0.95rem;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #dde6f3;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f5f8fd;
  color: #203854;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.legal-contact-item {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dbe5f4;
}

.legal-contact-item span {
  display: block;
  color: #5b7391;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.legal-contact-item strong {
  display: block;
  margin-top: 0.35rem;
  color: #102743;
  font-size: 1rem;
}

.legal-contact-item a {
  color: #163fa4;
}

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.06fr 0.94fr; }
  .hero-mock { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-intake { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); }
  .lead-form-card { padding: 1.25rem; }
  .legal-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1020px) {
  .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-row { align-items: flex-start; padding: 0.75rem 0; }
  .header-right { gap: 0.55rem; }
  .lang-select-menu {
    left: auto;
    right: 0;
    transform: none;
  }
  .hero h1 { max-width: 100%; }
  .final-cta { text-align: left; }
  .final-cta .btn-primary { margin-top: 0.4rem; }
  .plan-intake-shell {
    align-items: flex-start;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      0.85rem
      calc(0.85rem + env(safe-area-inset-bottom));
  }
  .plan-intake { width: min(100%, calc(100vw - 1.7rem)); }
  .plan-intake-close { top: 0.85rem; right: 0.85rem; }
  .plan-summary-grid { grid-template-columns: 1fr; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .legal-shell { padding-top: 1rem; }
  .legal-hero h1 { max-width: 100%; }
  .legal-hero-meta { flex-direction: column; align-items: flex-start; }
  .legal-actions { width: 100%; }
  .legal-actions .btn { width: 100%; }
}
