:root {
  --ink: #18211f;
  --muted: #66726f;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --brand: #0c7c72;
  --brand-dark: #07594f;
  --accent: #e07538;
  --blue: #2563eb;
  --line: #dce4df;
  --shadow: 0 18px 45px rgba(24, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.product-nav,
.top-actions,
.tabs,
.deal-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}

.product-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.product-nav .active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(24, 33, 31, 0.08);
}

.top-actions {
  gap: 8px;
}

.business-contact {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(12, 124, 114, 0.24);
  border-radius: 7px;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 800;
}

.top-actions button,
.tabs button,
.panel-title button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.top-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 54px clamp(18px, 4vw, 56px) 34px;
}

.pilot-notice {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px clamp(18px, 4vw, 56px) 0;
  padding: 12px 14px;
  border: 1px solid rgba(224, 117, 56, 0.34);
  border-radius: 8px;
  background: #fff7f2;
}

.pilot-notice strong {
  color: var(--accent);
  white-space: nowrap;
}

.pilot-notice span {
  color: var(--muted);
  line-height: 1.45;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-media {
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.compare-shell {
  padding: 0 clamp(18px, 4vw, 56px) 64px;
}

.search-panel,
.filters-preview,
.deal-card,
.roadmap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 33, 31, 0.07);
}

.market-readiness {
  max-width: 1180px;
  margin: 0 auto 76px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.market-readiness h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.readiness-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 33, 31, 0.06);
}

.readiness-grid strong {
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.readiness-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brand-dark);
  font-weight: 800;
}

.legal-page h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
}

.legal-note {
  margin: 18px 0 28px;
  padding: 14px;
  border: 1px solid rgba(224, 117, 56, 0.34);
  border-radius: 8px;
  color: var(--muted);
  background: #fff7f2;
}

.legal-page section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 10px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}

.secondary-action {
  margin-top: 10px;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: var(--surface);
}

.quick-destinations,
.quick-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-destinations button,
.quick-criteria button {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: var(--surface-soft);
}

.filter-row.stacked {
  align-items: stretch;
  flex-direction: column;
}

.shortlist-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.shortlist-list {
  display: grid;
  gap: 8px;
}

.shortlist-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.save-offer-button {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: var(--surface);
}

.tabs {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tabs button {
  min-height: 40px;
  padding: 0 14px;
}

.tabs .active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(140px, 0.8fr)) auto;
  gap: 10px;
}

.search-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfb;
}

.search-grid span,
.panel-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-grid input,
.search-grid select,
.results-header select {
  width: 100%;
  min-height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.search-error {
  min-height: 20px;
  margin: 10px 2px 0;
  color: #b42318;
  font-weight: 800;
}

.search-grid input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.search-button {
  min-width: 132px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.filters-preview {
  align-self: start;
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-title button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-dark);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.filter-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.criteria-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 7px;
  background: var(--surface-soft);
}

.criteria-box strong {
  display: block;
  margin-bottom: 6px;
}

.criteria-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.criteria-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.criteria-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.criteria-form button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.criteria-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.criteria-chip {
  padding: 6px 8px;
  border: 1px solid rgba(12, 124, 114, 0.28);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.results {
  display: grid;
  gap: 12px;
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 2px;
}

.results-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.comparison-note {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.results-header select {
  width: auto;
  min-width: 190px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.result-count {
  margin: -4px 0 2px;
  color: var(--muted);
  font-weight: 800;
}

.active-search-summary {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.deal-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.deal-card,
.item,
.summary-card,
.panel,
.offer-detail {
  overflow-wrap: anywhere;
}

.deal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  padding: 18px;
}

.deal-card.best {
  border-color: rgba(12, 124, 114, 0.42);
  box-shadow: 0 14px 34px rgba(12, 124, 114, 0.13);
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.muted {
  color: var(--ink);
  background: #e7ece9;
}

.deal-card h3 {
  margin: 12px 0 6px;
  font-size: 1.32rem;
}

.deal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-meta span {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.source-meta .freshness-fresh {
  color: #07594f;
  background: #dff3ea;
}

.source-meta .freshness-expiring,
.source-meta .freshness-needs_confirmation {
  color: #8a4b00;
  background: #fff1d6;
}

.source-meta .freshness-stale {
  color: #9f1c1c;
  background: #ffe1df;
}

.deal-meta {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.deal-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfcfb;
  font-size: 0.82rem;
  font-weight: 700;
}

.price-block {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.price-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.price-block strong {
  color: var(--brand-dark);
  font-size: 1.55rem;
}

.price-block small {
  color: var(--muted);
  font-weight: 700;
}

.price-block em {
  max-width: 160px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.price-block button {
  min-height: 42px;
  min-width: 112px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.empty-actions button,
.empty-actions a,
.empty-suggestions button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(12, 124, 114, 0.22);
  padding: 9px 12px;
  font-weight: 800;
  text-decoration: none;
}

.empty-actions button {
  background: var(--brand);
  color: #fff;
}

.empty-actions a,
.empty-suggestions button {
  background: #fff;
  color: var(--brand-dark);
}

.empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.empty-request-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-context {
  font-weight: 800;
  color: var(--ink);
}

.empty-request-form[hidden] {
  display: none;
}

.empty-request-form input,
.empty-request-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.empty-request-form .consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.empty-request-form button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.roadmap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 24px;
}

.roadmap h2 {
  margin: 0;
  font-size: 2rem;
}

.roadmap ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.roadmap strong {
  color: var(--ink);
}

.trust-faq {
  max-width: 980px;
  margin: 34px auto;
  padding: 0 18px;
}

.trust-faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.trust-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(13, 22, 20, 0.44);
}

body.detail-open {
  overflow: hidden;
}

.offer-detail {
  position: fixed;
  z-index: 31;
  top: 0;
  right: 0;
  width: min(620px, 100%);
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  box-shadow: -22px 0 50px rgba(24, 33, 31, 0.22);
}

.offer-detail[hidden] {
  display: none;
}

.detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.08;
}

.detail-header button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 1.6rem;
  line-height: 1;
}

.detail-body {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.detail-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.detail-section.warning {
  border-color: rgba(224, 117, 56, 0.34);
  background: #fff7f2;
}

.detail-section h3 {
  margin: 0 0 12px;
}

.detail-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-section dl div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
}

.detail-section dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-section dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.detail-section p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 6px;
}

.lead-form .consent-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.lead-form span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-form .consent-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
}

.lead-form .consent-row a {
  color: var(--brand-dark);
  font-weight: 800;
}

.lead-form .consent-row input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--brand);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  outline: 0;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.form-error {
  min-height: 20px;
  color: #b42318;
  font-weight: 800;
}

.lead-note {
  font-size: 0.86rem;
}

.lead-success {
  padding: 14px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--surface-soft);
}

.lead-success p {
  margin: 6px 0 0;
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .product-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .content-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

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

  .search-button {
    min-height: 54px;
    grid-column: 1 / -1;
  }

  .price-block {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .top-actions button {
    padding: 0 9px;
  }

  .business-contact {
    padding: 0 9px;
  }

  .hero {
    padding: 32px 14px 20px;
  }

  .pilot-notice {
    align-items: flex-start;
    flex-direction: column;
    margin-inline: 14px;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-media img {
    min-height: 220px;
  }

  .compare-shell {
    padding: 0 14px 48px;
  }

  .search-grid,
  .deal-card {
    grid-template-columns: 1fr;
  }

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

  .results-header {
    align-items: stretch;
    display: grid;
  }

  .results-header select {
    width: 100%;
  }

  .roadmap {
    margin: 0 14px 48px;
  }

  .market-readiness {
    margin-bottom: 48px;
    padding: 0 14px;
  }

  .readiness-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-detail {
    padding: 18px;
  }

  .detail-section dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
