:root {
  --bg: #f6f9fc;
  --bg-soft: #eef4fb;
  --card: #ffffff;
  --text: #0f2740;
  --muted: #4b6074;
  --primary: #0d63d8;
  --primary-strong: #0a4ea8;
  --line: #d9e4f2;
  --error: #c4362f;
  --success: #0f8652;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(8, 51, 107, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbfe 0%, #ffffff 320px);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 8px;
  z-index: 10000;
}

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

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

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(18, 64, 120, 0.08);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-image: url('/logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 auto;
}

.nav {
  display: none;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid #9cc4fb;
  outline-offset: 2px;
}

.btn-primary {
  padding: 14px 22px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(13, 99, 216, 0.2);
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.btn-small {
  padding: 10px 15px;
  font-size: 0.92rem;
}

.btn-ghost {
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.btn-ghost:hover {
  background: #f4f8fd;
}

.btn-light {
  padding: 14px 24px;
  background: #fff;
  color: var(--text);
}

.hero {
  padding: 36px 0 52px;
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f2ff;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points li {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0f6ff;
  color: #274b75;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.form-heading {
  margin: 0;
  font-size: 1.35rem;
}

.form-subtitle {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #36506a;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: #70a9f5;
  box-shadow: 0 0 0 4px #e8f2ff;
}

.input-error {
  border-color: var(--error);
}

.error-text {
  margin: 6px 0 0;
  display: none;
  color: var(--error);
  font-size: 0.84rem;
  font-weight: 600;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.success-state {
  text-align: center;
  padding: 12px 6px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: #dff5ea;
  font-size: 1.6rem;
  font-weight: 800;
}

.success-state h3 {
  margin: 0;
}

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

.match-state {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.results-section {
  padding-top: 10px;
  padding-bottom: 28px;
}

.match-title {
  margin: 0;
  font-size: 1.02rem;
}

.match-subtitle {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.results-controls label {
  margin: 0;
  font-size: 0.84rem;
}

.results-controls select {
  min-height: 38px;
  width: auto;
  min-width: 180px;
  padding: 6px 10px;
}

.review-highlights {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.review-overview {
  margin-bottom: 14px;
}

.snapshot-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.snapshot-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f9ff;
  padding: 10px;
}

.snapshot-label {
  margin: 0;
  color: #516a84;
  font-size: 0.8rem;
}

.snapshot-value {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.review-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f9fcff;
}

.review-block h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.review-block ul {
  margin: 0;
  padding-left: 18px;
}

.review-block li {
  margin: 6px 0;
  color: #2f4862;
  font-size: 0.82rem;
}

.tiny-note {
  color: #5f7690;
  font-size: 0.76rem;
}

.tiny-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.tiny-note a:hover,
.tiny-note a:focus-visible {
  text-decoration: underline;
}

.match-list {
  display: grid;
  gap: 10px;
}

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

.match-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.match-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.review-snippets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #324a63;
  font-size: 0.84rem;
}

.review-snippets li {
  margin: 4px 0;
}

.ai-summary {
  border: 1px solid #dbe9fb;
  border-radius: 10px;
  background: #f7fbff;
  padding: 8px 10px;
  margin-top: 8px;
}

.ai-summary-title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #4e6782;
  text-transform: uppercase;
}

.ai-summary p {
  margin: 4px 0;
  color: #36506b;
  font-size: 0.83rem;
}

.map-embed {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
}

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

.mini-link {
  color: var(--primary);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 900px) {
  .snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .review-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

section {
  padding: 58px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.trust-strip {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  gap: 14px;
}

.trust-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.trust-grid h2 {
  margin: 0;
  font-size: 1.03rem;
}

.trust-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.cards-3,
.cards-4 {
  display: grid;
  gap: 14px;
}

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

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

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

.step-card {
  text-align: center;
}

.step {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: var(--primary);
}

.link-arrow {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

.link-arrow::after {
  content: "\2192";
  margin-left: 6px;
}

.faq-wrap {
  max-width: 850px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: #f6fafe;
}

.faq-answer {
  padding: 0 16px 16px;
}

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

.cta-wrap {
  padding-top: 18px;
}

.final-cta {
  padding: 34px 22px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0e3a78 0%, #0d63d8 100%);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.final-cta p {
  margin: 8px 0 20px;
  color: #e1edff;
}

footer {
  padding: 46px 0 94px;
  background: #f3f7fc;
  border-top: 1px solid var(--line);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-summary {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.footer-disclaimer {
  margin: 18px auto 0;
  max-width: 700px;
  color: #63788f;
  font-size: 0.83rem;
}

.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 99, 216, 0.32);
  z-index: 45;
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 30px;
    align-items: start;
  }

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

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

  .mobile-cta {
    display: none;
  }

  footer {
    padding-bottom: 56px;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 72px 0;
  }

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

  .form-card {
    padding: 24px;
  }
}
