:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #5c6773;
  --line: #d8e0e6;
  --paper: #ffffff;
  --wash: #f6f7f2;
  --teal: #007c72;
  --blue: #245789;
  --coral: #d65a31;
  --gold: #c8911f;
  --mint: #dcefe8;
  --sky: #dfeaf7;
  --peach: #f8ded2;
  --shadow: 0 12px 30px rgba(22, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

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

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

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

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

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.content,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.mobile-menu a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  background: var(--mint);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
}

.btn,
.btn-ghost,
.btn-coral {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.btn {
  background: var(--teal);
  color: white;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.btn-coral {
  background: var(--coral);
  color: white;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 16px 14px;
  background: white;
}

.content {
  padding: 26px 0 44px;
}

.hero-search {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

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

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

h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 72px);
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 18px;
}

.lead {
  max-width: 680px;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero-image {
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.58) 100%),
    url("https://images.unsplash.com/photo-1543168256-418811576931?auto=format&fit=crop&w=1300&q=78") center / cover;
  display: flex;
  align-items: end;
  padding: 20px;
  color: white;
}

.hero-image strong {
  display: block;
  max-width: 420px;
  font-size: 26px;
  line-height: 1.1;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 28px;
}

.stat,
.card,
.panel,
.merchant-card,
.product-card,
.step {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.stat {
  padding: 16px;
}

.stat b {
  display: block;
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(130px, 0.7fr));
  gap: 10px;
  margin-bottom: 16px;
}

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

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.results-list,
.merchant-grid,
.cards-grid {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
}

.product-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.product-card p,
.merchant-card p,
.panel p,
.card p,
.step p {
  color: var(--muted);
}

.product-card p {
  margin: 5px 0 8px;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.tag.ok {
  background: var(--mint);
  color: var(--teal);
}

.tag.warn {
  background: var(--peach);
  color: var(--coral);
}

.price-block {
  min-width: 112px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
}

.price-block strong {
  font-size: 20px;
}

.price-block small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.panel {
  padding: 16px;
}

.panel h2,
.panel h3 {
  margin-bottom: 10px;
}

.panel ul,
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.merchant-card {
  padding: 14px;
}

.merchant-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 12px;
}

.merchant-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dash-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
}

.dash-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.dash-nav a[aria-current="page"],
.dash-nav a:hover {
  background: var(--mint);
  color: var(--ink);
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.dashboard-grid,
.form-grid,
.steps-grid,
.trust-grid {
  display: grid;
  gap: 12px;
}

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

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

.card {
  padding: 16px;
}

.file-zone {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #a9b7c2;
  border-radius: 8px;
  background: #fbfcfd;
}

.file-zone input,
.file-zone select {
  min-width: 0;
}

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

.step {
  padding: 16px;
}

.step b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  margin-bottom: 10px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.feedback-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.feedback-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 80;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.feedback-head h2 {
  font-size: 18px;
}

.feedback-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  font-weight: 900;
}

.feedback-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.feedback-form textarea {
  min-height: 118px;
}

.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feedback-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu.open {
    display: grid;
    gap: 4px;
  }

  .hero-search,
  .results-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .hero-search {
    min-height: auto;
  }

  .hero-image {
    min-height: 360px;
  }

  .filters,
  .stats-band,
  .merchant-grid,
  .dashboard-grid,
  .steps-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .content,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .content {
    padding-top: 18px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 24px;
  }

  .search-row,
  .page-head,
  .filters,
  .stats-band,
  .merchant-grid,
  .dashboard-grid,
  .form-grid,
  .steps-grid,
  .trust-grid,
  .dash-nav,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .product-card img {
    width: 72px;
    height: 72px;
  }

  .price-block {
    grid-column: 1 / -1;
    justify-items: start;
    min-width: 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .feedback-launcher {
    right: 12px;
    bottom: 12px;
  }

  .feedback-panel {
    right: 12px;
    bottom: 68px;
    width: calc(100vw - 24px);
  }
}
