:root {
  --font: Inter, Manrope, Gilroy, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f7faff;
  --surface: #ffffff;
  --ink: #0f2342;
  --muted: #526b91;
  --line: #e3eaf5;
  --blue: #1a73e8;
  --blue-soft: #eaf3ff;
  --green: #35b86b;
  --green-dark: #15854a;
  --shadow: 0 18px 50px rgba(15, 35, 66, 0.09);
  --soft-shadow: 0 10px 26px rgba(15, 35, 66, 0.06);
  --radius: 18px;
  --container: 1180px;
}

@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/Gilroy-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/fonts/Gilroy-Bold.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body,
button,
input,
select {
  font: 500 16px/1.5 var(--font);
}

button,
input,
select {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 7vw, 5.05rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
}

h3 {
  font-size: 1.15rem;
  font-weight: 900;
}

p {
  color: var(--muted);
}

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

.section-pad {
  padding: 58px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(227, 234, 245, 0.95);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), #65a7ff);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.26);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 3;
}

.main-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.main-nav a {
  display: block;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  padding: 11px 12px;
}

.main-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.site-header.is-menu-open .main-nav {
  display: grid;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
}

.menu-toggle svg,
.trust-item svg,
.widget-topline svg,
.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  padding: 14px 20px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(53, 184, 107, 0.26);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.btn-small {
  min-height: 42px;
  font-size: 0.9rem;
  padding: 11px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 78%),
    var(--page);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(26, 115, 232, 0.1), transparent 36%),
    linear-gradient(270deg, rgba(53, 184, 107, 0.09), transparent 38%);
}

.hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 470px;
}

.hero-widget,
.calculator-card,
.article-card-large,
.glossary-card,
.offer-card,
.team-card,
.guide-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.hero-widget {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.widget-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 900;
}

.hero-widget label,
.calculator-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.range-field {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.range-field strong {
  color: var(--ink);
  font-size: 1.25rem;
}

input[type="range"] {
  --range-progress: 50%;
  width: 100%;
  height: 28px;
  background: transparent;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) var(--range-progress), #dbe6f6 var(--range-progress), #dbe6f6 100%);
}

input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.35);
  appearance: none;
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dbe6f6;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
}

select,
input[type="number"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  padding: 12px 14px;
}

select:focus,
input[type="number"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.segmented-field,
.quiz-step {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.segmented-field legend,
.quiz-step legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.segmented-field > div,
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-field label,
.quiz-options label {
  flex: 1 1 auto;
}

.segmented-field input,
.quiz-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-field span,
.quiz-options span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
  padding: 10px 12px;
  transition: border 180ms ease, background 180ms ease, color 180ms ease;
}

.segmented-field input:checked + span,
.quiz-options input:checked + span {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.fine-print {
  color: #6f7f99;
  font-size: 0.86rem;
  line-height: 1.55;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.chip-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  padding: 10px 14px;
}

.trust-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 0;
}

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

.trust-item {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
  padding: 12px 14px;
}

.trust-item svg {
  color: var(--blue);
  flex: 0 0 auto;
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 12px;
}

.section-heading.wide {
  max-width: 770px;
  margin-bottom: 26px;
}

.section-heading.centered {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.offer-grid {
  display: grid;
  gap: 18px;
}

.offer-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.offer-card:hover,
.guide-card:hover,
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gradient-line {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #7db4ff, var(--green));
}

.offer-card p,
.guide-card p,
.team-card p {
  line-height: 1.65;
}

.offer-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.offer-card dl div {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.offer-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.offer-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.card-actions {
  display: grid;
  gap: 12px;
  align-self: end;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.quiz-panel {
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, #eaf3ff 0%, #f8fbff 48%, #eafaf1 100%);
  box-shadow: var(--soft-shadow);
  padding: clamp(22px, 5vw, 46px);
}

.mini-quiz {
  display: grid;
  gap: 22px;
}

.quiz-step {
  border: 1px solid rgba(227, 234, 245, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}

.quiz-step legend {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.quiz-step legend span {
  display: inline-flex;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 5px 8px;
}

.result-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(53, 184, 107, 0.28);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

.result-card[hidden] {
  display: none;
}

.guide-band,
.articles-band,
.faq-band {
  background: #ffffff;
}

.guide-grid,
.faq-layout,
.calculator-section {
  display: grid;
  gap: 24px;
}

.article-card-large,
.glossary-card,
.calculator-card {
  padding: clamp(22px, 4vw, 34px);
}

.article-card-large {
  display: grid;
  gap: 18px;
}

.article-card-large h3 {
  margin-top: 8px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding-left: 20px;
  color: var(--ink);
}

.check-list li::marker {
  color: var(--blue);
}

.glossary-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.glossary-card div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.glossary-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.glossary-card a {
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
  padding-top: 13px;
}

.calculator-card {
  display: grid;
  gap: 16px;
}

.payment-result {
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  padding: 20px;
}

.payment-result span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.payment-result strong {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links a {
  border-radius: 999px;
  background: #f2f6fc;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  padding: 9px 12px;
}

.team-grid,
.article-grid,
.state-grid,
.info-grid {
  display: grid;
  gap: 16px;
}

.team-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #f2fff7);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 950;
}

.team-card strong {
  color: var(--blue);
  font-size: 0.92rem;
}

.guide-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-card > span {
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 6px 10px;
}

.state-panel {
  background: var(--page);
}

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

.state-grid a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  padding: 13px 12px;
  transition: border 180ms ease, transform 180ms ease;
}

.state-grid a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 18px 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
}

.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
}

.page-hero-inner {
  display: grid;
  gap: 16px;
  max-width: 850px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.article-page {
  background: #ffffff;
}

.article-layout {
  display: grid;
  gap: 24px;
  max-width: 920px;
}

.article-header {
  display: grid;
  gap: 14px;
}

.article-body {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: clamp(22px, 4vw, 36px);
}

.article-body section {
  display: grid;
  gap: 10px;
}

.article-disclaimer {
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--ink);
  padding: 16px;
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #071a33;
  color: #ffffff;
  padding: 42px 0 86px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer .brand,
.site-footer h2,
.site-footer a {
  color: #ffffff;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.footer-disclaimer {
  color: #b8c9e4;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
}

.footer-disclaimer {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  line-height: 1.7;
  padding-top: 20px;
}

.mobile-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 40;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(120%);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.is-cta-visible .mobile-sticky-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .hero-actions,
  .card-actions {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
  }

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

  .offer-grid,
  .article-grid,
  .team-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .payment-result,
  .calculator-card .fine-print,
  .calculator-card .inline-links {
    grid-column: 1 / -1;
  }

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

@media (min-width: 920px) {
  .section-pad {
    padding: 78px 0;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-nav {
    display: flex;
    grid-column: auto;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
  }

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

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

  .guide-grid,
  .calculator-section,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .mobile-sticky-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    font-size: 0.95rem;
  }

  .header-actions .btn-small {
    display: none;
  }

  .section-pad {
    padding: 46px 0;
  }

  .offer-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-height: 760px) and (max-width: 919px) {
  .mobile-sticky-cta {
    display: none;
  }
}
