:root {
  --ink: #111827;
  --ink-soft: #263243;
  --muted: #667085;
  --line: #e4eaf1;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --soft-blue: #edf6fb;
  --primary: #1457d9;
  --primary-dark: #0f46b8;
  --teal: #0f8f8c;
  --teal-dark: #0b6f70;
  --amber: #c9852b;
  --shadow: 0 18px 52px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.92), rgba(255, 255, 255, 0) 420px),
    repeating-linear-gradient(90deg, rgba(20, 87, 217, 0.025) 0 1px, transparent 1px 96px);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(228, 234, 241, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.brand {
  width: 158px;
}

.menu-toggle {
  justify-self: end;
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.site-nav,
.header-actions {
  display: none;
}

.site-nav.is-open,
.header-actions.is-open {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.site-nav.is-open {
  padding-top: 6px;
}

.header-actions.is-open {
  padding-bottom: 18px;
}

[data-language-toggle] {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 8px 34px 8px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  padding: 10px 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: #cbd8e6;
  background: var(--paper);
  color: var(--primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
  background: #f2f7ff;
  color: var(--primary-dark);
}

.button-secondary-dark {
  border-color: #cdd8e7;
  background: var(--paper);
  color: var(--primary-dark);
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.button-full {
  width: 100%;
}

.whatsapp-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(15, 143, 140, 0.28);
  border-radius: 999px;
  color: var(--teal);
}

.whatsapp-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero {
  padding-block: 28px 22px;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
}

.hero-copy,
.hero-visual,
.market-shell {
  animation: rise-in 520ms ease both;
}

.hero-visual {
  animation-delay: 90ms;
}

.market-shell {
  animation-delay: 160ms;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 0;
  max-width: 680px;
  min-height: auto;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: min(100%, 660px);
  margin-bottom: 18px;
  color: var(--ink);
  font-family: Archivo, Manrope, system-ui, sans-serif;
  font-size: 3rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:first-child {
  color: var(--ink);
}

h1 span:last-child {
  color: var(--teal);
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: Archivo, Manrope, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Archivo, Manrope, system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.hero-badges li {
  position: relative;
  padding-left: 22px;
}

.hero-badges li::before {
  position: absolute;
  top: 0.37em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  content: "";
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  margin: 0;
  background: var(--soft-blue);
  pointer-events: none;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0.42) 68%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(246, 249, 252, 0.2));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.market-card {
  padding-block: 18px 42px;
}

.market-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  box-shadow: var(--shadow);
}

.market-heading {
  display: grid;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.market-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.55rem;
}

.updated,
.panel-note,
.source-line,
.fine-print,
.section-heading p,
.value-item p,
.service-card p,
.process-list p,
.quote-card p,
.next-card p,
.contact-grid p,
.site-footer p {
  color: var(--muted);
}

.updated {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.market-grid {
  display: grid;
  gap: 16px;
}

.rate-panel,
.packages-panel,
.comparison-card,
.service-card,
.calculator-card,
.quote-card,
.next-card,
.faq-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.rate-panel,
.packages-panel,
.comparison-card {
  padding: 20px;
}

.rate-list {
  display: grid;
  gap: 0;
  margin: 10px 0 14px;
}

.rate-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.rate-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.rate-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.source-line,
.panel-note,
.fine-print {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.package-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.package-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.package-row strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.package-row em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.comparison-card {
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.tag-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(20, 87, 217, 0.2);
  border-radius: 50%;
  background: var(--paper);
}

.tag-icon::before,
.tag-icon::after {
  position: absolute;
  content: "";
}

.tag-icon::before {
  top: 15px;
  left: 14px;
  width: 19px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 4px 4px 4px 0;
  transform: rotate(-35deg);
}

.tag-icon::after {
  top: 18px;
  left: 27px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.section {
  padding-block: 66px;
}

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

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

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

.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.value-icon,
.service-icon {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(15, 143, 140, 0.28);
  border-radius: 999px;
  color: var(--teal);
}

.value-icon::before,
.service-icon::before,
.service-icon::after,
.value-icon::after {
  position: absolute;
  content: "";
}

.shield::before {
  width: 23px;
  height: 27px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 14px 14px;
  clip-path: polygon(50% 0, 100% 20%, 88% 82%, 50% 100%, 12% 82%, 0 20%);
}

.bank::before {
  width: 27px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
  box-shadow: inset 7px 0 0 transparent, inset -7px 0 0 transparent;
}

.bank::after {
  width: 31px;
  height: 22px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
}

.document::before {
  width: 25px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.document::after {
  width: 13px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.cost::before {
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cost::after {
  width: 2px;
  height: 22px;
  background: currentColor;
  box-shadow: 6px 5px 0 -1px currentColor, -6px -5px 0 -1px currentColor;
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  display: grid;
  min-height: 236px;
  align-content: start;
  padding: 22px;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card a {
  align-self: end;
  margin-top: 16px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 850;
}

.home::before {
  width: 26px;
  height: 22px;
  border: 2px solid currentColor;
  border-top: 0;
}

.home::after {
  width: 20px;
  height: 20px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 4px);
}

.refinance::before {
  width: 27px;
  height: 27px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.refinance::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 8px 0 currentColor;
}

.invest::before {
  bottom: 12px;
  width: 6px;
  height: 18px;
  background: currentColor;
  box-shadow: 10px -7px 0 currentColor, 20px -15px 0 currentColor;
}

.preapproval::before {
  width: 24px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.preapproval::after {
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

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

.process-list li {
  position: relative;
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--line);
  padding: 0 0 16px 22px;
}

.process-list span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 900;
}

.calculator-section {
  background: linear-gradient(135deg, #ecf7f7, #f8fbfd 56%, #fff8ed);
}

.calculator-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.calculator-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(20, 87, 217, 0.2);
  outline-offset: 2px;
}

.input-prefix,
.input-suffix {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.input-prefix span,
.input-suffix span {
  flex: 0 0 auto;
  color: var(--muted);
  padding-inline: 13px;
  font-weight: 800;
}

.input-prefix input,
.input-suffix input {
  border: 0;
  border-radius: 0;
}

.calculator-result {
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
  font-size: 1.14rem;
  font-weight: 900;
}

.proof-grid {
  display: grid;
  gap: 20px;
}

.quote-card,
.next-card {
  padding: 26px;
}

.quote-mark {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.7;
}

.quote-card h2,
.next-card h2 {
  font-size: 1.65rem;
}

.quote-card span {
  color: var(--muted);
  font-weight: 800;
}

.next-card {
  display: grid;
  align-content: center;
  background: var(--soft);
}

.stacked-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-grid {
  display: grid;
  gap: 22px;
}

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

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 18px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.faq-item button::after {
  float: right;
  color: var(--primary);
  content: "+";
  font-size: 1.2rem;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.contact-section {
  background: #111827;
  color: var(--paper);
  padding-block: 70px;
}

.contact-section h2,
.contact-section h3 {
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #72d3c8;
}

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

.contact-grid > div > p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-methods a,
.contact-methods span {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 12px;
}

.contact-methods strong {
  color: var(--paper);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1520;
  color: rgba(255, 255, 255, 0.7);
  padding-block: 34px 96px;
}

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

.site-footer img {
  width: 164px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.site-footer strong {
  color: var(--paper);
}

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 30px rgba(17, 24, 39, 0.1);
}

.mobile-cta .button {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

@media (min-width: 560px) {
  .hero-actions,
  .stacked-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 560px;
  }

  .hero-copy {
    max-width: 640px;
    padding-block: 82px;
  }

  .hero-visual::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
  }

  .hero-visual::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 24%, rgba(255, 255, 255, 0.34) 58%, rgba(255, 255, 255, 0.04) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(246, 249, 252, 0.18));
  }

  .market-heading {
    grid-template-columns: 1fr auto;
  }

  .market-grid {
    grid-template-columns: 0.78fr 1.12fr;
  }

  .comparison-card {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .comparison-card .button {
    width: auto;
  }

  .value-grid,
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-grid,
  .proof-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 34px;
  }

  h1 {
    font-size: 4.45rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .market-heading h2 {
    font-size: 2rem;
  }

  .quote-card h2,
  .next-card h2 {
    font-size: 2.35rem;
  }
}

@media (min-width: 1040px) {
  .container {
    width: min(100% - 80px, var(--container));
  }

  .brand {
    width: 172px;
  }

  .site-nav a {
    padding-inline: 13px;
    font-size: 0.86rem;
  }

  .hero {
    padding-block: 34px 26px;
  }

  .market-grid {
    grid-template-columns: 0.86fr 1.32fr 0.74fr;
  }

  .comparison-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

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

  .process-list li {
    border-top: 2px solid var(--line);
    border-left: 0;
    padding: 22px 18px 0 0;
  }

  h1 {
    font-size: 4.9rem;
  }

  h2 {
    font-size: 3.1rem;
  }
}

@keyframes rise-in {
  from {
    opacity: 1;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
