html, body { margin: 0; padding: 0; background: #F5F8FC; }
body {
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #12315E; text-decoration: none; }
a:hover { color: #2B6CB0; }
input { font-family: 'Manrope', sans-serif; }
input:focus { outline: none; }
::placeholder { color: #9AA7B8; }
* { box-sizing: border-box; }

.hero-root {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(255,246,235,0.78), transparent 60%),
    radial-gradient(950px 620px at 105% -5%, rgba(214,232,250,0.7), transparent 55%),
    radial-gradient(760px 520px at 50% 118%, rgba(228,239,251,0.85), transparent 62%),
    linear-gradient(180deg, #FDFBF8 0%, #F5F8FC 55%, #EDF3FA 100%);
}
.hero-root::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 58px; height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='180'%20viewBox='0%200%20300%20180'%3E%3Cg%20fill='none'%20stroke='%230E2A50'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%20176%20V95%20L60%2060%20L105%2095%20V176'/%3E%3Cpath%20d='M60%2060%20V40'/%3E%3Crect%20x='46'%20y='116'%20width='18'%20height='20'/%3E%3Cpath%20d='M120%20176%20V110%20L150%2082%20L180%20110%20V176'/%3E%3Cpath%20d='M210%20176%20V88%20L245%2058%20L280%2088%20V176'/%3E%3Cpath%20d='M245%2058%20V38'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom center; background-size: auto 200px;
  opacity: 0.05; pointer-events: none; z-index: 0;
}

/* Header */
.site-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 18px 32px;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.brand-name { font-size: 19px; font-weight: 900; color: #0E2A50; letter-spacing: -0.02em; }
.brand-tag { font-size: 10px; font-weight: 600; color: #7A8AA0; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-nav a { font-size: 14.5px; font-weight: 600; color: #45566E; }
.nav-signin {
  font-size: 14px !important; font-weight: 700 !important; color: #12315E !important;
  padding: 10px 20px; border: 1.5px solid #D5DFEC; border-radius: 10px; background: #FFFFFF;
  transition: border-color 0.15s, color 0.15s;
}
.nav-signin:hover { border-color: #2B6CB0; color: #2B6CB0 !important; }

/* Headline */
.headline {
  position: relative; z-index: 1;
  max-width: 1240px; width: 100%; margin: 8px auto 0;
  padding: 10px 32px 4px;
  text-align: center;
}
.headline h1 {
  margin: 0; font-size: clamp(34px, 4.5vw, 54px); font-weight: 800;
  letter-spacing: -0.03em; color: #0E2A50; line-height: 1.1;
}
.headline h1 i { font-weight: 300; }
.headline p {
  margin: 16px auto 0; max-width: 560px; font-size: 17px; font-weight: 500;
  color: #5B6B82; line-height: 1.6;
}

/* Hero grid */
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1240px; width: 100%; margin: 12px auto 0;
  padding: 0 32px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; flex: 1; min-height: 0;
}

.top-row { position: relative; display: flex; justify-content: center; width: 100%; }
.top-row .top-card { flex: 0 0 460px; max-width: 460px; }
.top-bg {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(14, 42, 80, 0.28); z-index: 0;
}
.top-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.top-bg-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,250,253,0.55) 0%, rgba(247,250,253,0.12) 35%, rgba(14,42,80,0.10) 100%);
}

.top-card {
  background: #FFFFFF; border-radius: 20px; border: 1px solid #E4EAF2;
  box-shadow: 0 20px 50px -20px rgba(14, 42, 80, 0.18), 0 2px 6px rgba(14, 42, 80, 0.04);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
  position: relative; z-index: 3; width: 100%;
}
.top-card h2 { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: #0E2A50; letter-spacing: -0.02em; }
.card-subtitle { margin: 0; font-size: 11px; color: #5B6B82; font-weight: 500; }

.field { position: relative; }
.field label { display: block; font-size: 12px; font-weight: 700; color: #33465F; margin-bottom: 5px; }
.field input[type="text"] {
  width: 100%; padding: 11px 14px; font-size: 14.5px; font-weight: 600; color: #0E2A50;
  border: 1.5px solid #D5DFEC; border-radius: 11px; background: #FBFCFE;
  transition: border-color 0.15s, box-shadow 0.15s; height: 35px;
}
.field input[type="text"]:focus {
  border-color: #2B6CB0; box-shadow: 0 0 0 4px rgba(43,108,176,0.12); background: #FFFFFF;
}

.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #FFFFFF; border: 1px solid #E4EAF2; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(14,42,80,0.25); overflow: hidden; z-index: 20;
}
.suggestion-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  cursor: pointer; border-bottom: 1px solid #F0F4F9;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: #F4F8FD; }
.suggestion-dot {
  width: 8px; height: 8px; border-radius: 2px; background: #2B6CB0;
  transform: rotate(45deg); flex-shrink: 0;
}
.suggestion-street { font-size: 14px; font-weight: 700; color: #0E2A50; }
.suggestion-city { font-size: 12px; font-weight: 500; color: #7A8AA0; }
.suggestion-loading {
  padding: 11px 16px; font-size: 13px; font-weight: 600; font-style: italic; color: #9AA7B8;
}

.condition-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.condition-row label { margin-bottom: 0; }
.condition-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: #2B6CB0;
  background: #F4F7FB; border: 1px solid #E7EDF5; padding: 4px 11px; border-radius: 999px;
}
.condition-dot { width: 8px; height: 8px; border-radius: 50%; background: #2B6CB0; }

.condition-slider { position: relative; height: 20px; color: #2B6CB0; }
.condition-track {
  position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: 999px; background: #E6ECF4;
}
.condition-fill {
  position: absolute; left: 0; top: 7px; height: 6px; border-radius: 999px;
  width: 50%; background: #2B6CB0; transition: width 0.25s ease;
}
.cond-range {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 0;
  width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; z-index: 2;
}
.cond-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: transparent; }
.cond-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px;
  border-radius: 50%; background: #FFFFFF; border: 3px solid currentColor;
  box-shadow: 0 2px 8px rgba(14,42,80,0.28); transition: transform 0.12s ease;
}
.cond-range:active::-webkit-slider-thumb { transform: scale(1.18); }
.cond-range::-moz-range-track { height: 6px; border-radius: 999px; background: transparent; }
.cond-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; border: 3px solid currentColor;
  box-shadow: 0 2px 8px rgba(14,42,80,0.28);
}
.condition-scale { display: flex; justify-content: space-between; margin-top: 7px; padding: 0 1px; }
.condition-scale span { font-size: 11px; font-weight: 700; color: #9AA7B8; }

.estimate-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: #FFFFFF;
  background: linear-gradient(135deg, #12315E 0%, #2B6CB0 100%); border: none; border-radius: 11px;
  cursor: pointer; letter-spacing: -0.01em; box-shadow: 0 10px 24px -8px rgba(18,49,94,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.estimate-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(18,49,94,0.55); }
.estimate-btn:active { transform: translateY(0px); }
.estimate-btn:disabled { cursor: default; }
.btn-spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #FFFFFF;
  border-radius: 50%; display: inline-block; animation: spinLoader 0.7s linear infinite;
}

/* Lead-capture modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 42, 80, 0.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeUp 0.2s ease both;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 400px;
  background: #FFFFFF; border-radius: 20px; border: 1px solid #E4EAF2;
  box-shadow: 0 30px 70px -20px rgba(14, 42, 80, 0.35);
  padding: 32px 28px 28px; text-align: center;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border: none; background: #F4F7FB; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1; color: #5B6B82;
}
.modal-close:hover { background: #E7EDF5; color: #12315E; }
.modal h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: #0E2A50; letter-spacing: -0.02em; }
.modal-subtitle { margin: 0 0 20px; font-size: 13.5px; font-weight: 500; color: #5B6B82; line-height: 1.5; }
#lead-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
#lead-form label { font-size: 12px; font-weight: 700; color: #33465F; }
#lead-form input {
  width: 100%; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: #0E2A50;
  border: 1.5px solid #D5DFEC; border-radius: 11px; background: #FBFCFE; margin-bottom: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#lead-form input:focus { border-color: #2B6CB0; box-shadow: 0 0 0 4px rgba(43,108,176,0.12); background: #FFFFFF; }
#lead-form input.input-error { border-color: #C6604F; }
.lead-error { font-size: 12px; font-weight: 600; color: #C6604F; margin: -2px 0 2px; min-height: 15px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: #FFFFFF;
  background: linear-gradient(135deg, #12315E 0%, #2B6CB0 100%); border: none; border-radius: 11px;
  cursor: pointer; letter-spacing: -0.01em; box-shadow: 0 10px 24px -8px rgba(18,49,94,0.5);
  transition: transform 0.15s, box-shadow 0.15s; margin-top: 6px;
}
.modal-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(18,49,94,0.55); }
.modal-submit:disabled { cursor: default; opacity: 0.85; transform: none; }
#modal-success-state[hidden], #modal-form-state[hidden] { display: none; }
.modal-success-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: #E7F4EE; color: #1E8E5A; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
#modal-success-text { font-size: 14px; font-weight: 500; color: #5B6B82; line-height: 1.6; margin: 0 0 20px; }

.row-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }

.insights-card, .value-prop-card {
  background: #FFFFFF; border-radius: 20px; border: 1px solid #E4EAF2;
  box-shadow: 0 12px 34px -18px rgba(14, 42, 80, 0.14);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 0;
}

.insights-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.insights-head h3 { margin: 0; font-size: 20px; font-weight: 800; color: #0E2A50; letter-spacing: -0.02em; }
.insights-head p { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #5B6B82; }
.insights-area { font-size: 12px; font-weight: 700; color: #2B6CB0; background: #EBF2FB; padding: 5px 12px; border-radius: 999px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-tile { background: #F8FAFD; border: 1px solid #EDF1F7; border-radius: 12px; padding: 12px 14px; }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #7A8AA0; line-height: 1.3; }
.stat-value { font-size: 19px; font-weight: 800; color: #0E2A50; margin-top: 4px; letter-spacing: -0.02em; }
.stat-trend { color: #1E8E5A; }

.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-head span:first-child { font-size: 12.5px; font-weight: 700; color: #33465F; }
.chart-trend { font-size: 12px; font-weight: 700; color: #1E8E5A; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 48px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar-fill {
  width: 100%; border-radius: 5px 5px 2px 2px; transform-origin: bottom;
  animation: barGrow 0.6s ease both;
}
.bar-label { font-size: 10px; font-weight: 700; color: #9AA7B8; }

.sold-note { display: flex; align-items: center; gap: 10px; border-top: 1px solid #EDF1F7; padding-top: 12px; }
.sold-dot { width: 9px; height: 9px; background: #2B6CB0; transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; }
.sold-note span { font-size: 12.5px; font-weight: 600; color: #5B6B82; }

.prop-group { display: flex; flex-direction: column; gap: 11px; }
.prop-head { display: flex; align-items: center; gap: 11px; }
.prop-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prop-icon-buy { background: linear-gradient(135deg, #2B6CB0, #12315E); }
.prop-icon-sell { background: linear-gradient(135deg, #4FA37A, #1E8E5A); }
.prop-title { font-size: 14.5px; font-weight: 800; color: #0E2A50; letter-spacing: -0.01em; line-height: 1.25; }
.prop-title span { color: #6E7F97; font-weight: 600; }

.prop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prop-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #33465F; }
.prop-list li::before {
  content: ''; width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  background-repeat: no-repeat; background-position: center;
}
.prop-list-buy li::before {
  background-color: #EBF2FB;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16' fill='none' stroke='%232B6CB0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 L6.5 11.5 L12.5 4.5'/%3E%3C/svg%3E");
}
.prop-list-sell li::before {
  background-color: #E7F4EE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16' fill='none' stroke='%231E8E5A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 L6.5 11.5 L12.5 4.5'/%3E%3C/svg%3E");
}
.prop-divider { height: 1px; background: #EDF1F7; }

.site-footer { border-top: 1px solid #E4EAF2; background: #FFFFFF; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-inner span { font-size: 13px; font-weight: 600; color: #8A99AE; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; font-weight: 600; color: #8A99AE; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #FFFFFF; border-top: 1px solid #E4EAF2;
  box-shadow: 0 -10px 30px -10px rgba(14, 42, 80, 0.15);
  padding: 18px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; animation: fadeUp 0.3s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: 13.5px; font-weight: 500; color: #45566E; line-height: 1.5; max-width: 760px; }
.cookie-text a { font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 20px; font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 700;
  border-radius: 10px; cursor: pointer; letter-spacing: -0.01em; transition: transform 0.15s, box-shadow 0.15s;
}
.cookie-decline {
  background: #FFFFFF; color: #45566E; border: 1.5px solid #D5DFEC;
}
.cookie-decline:hover { border-color: #2B6CB0; color: #2B6CB0; }
.cookie-accept {
  background: linear-gradient(135deg, #12315E 0%, #2B6CB0 100%); color: #FFFFFF; border: none;
  box-shadow: 0 10px 24px -8px rgba(18,49,94,0.5);
}
.cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(18,49,94,0.55); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

@keyframes spinLoader { to { transform: rotate(360deg); } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero-root { height: auto; overflow: visible; }
  .hero-root::before { display: none; }

  .top-row { flex-direction: column; gap: 12px; }
  .top-row .top-card { flex: none; width: 100%; max-width: none; }
  .top-bg { position: relative; inset: auto; width: 100%; height: 180px; }
  .top-bg-overlay { display: none; }

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

  .site-nav a:not(.nav-signin) { display: none; }
  .site-nav { gap: 16px; }
}
