:root {
  --bg: #f5efe5;
  --bg-strong: #e1d1b4;
  --panel: rgba(255, 250, 241, 0.82);
  --panel-strong: #fffaf1;
  --text: #1f2a1f;
  --muted: #5e6d5f;
  --line: rgba(31, 42, 31, 0.12);
  --accent: #0f6a46;
  --accent-warm: #ba7a21;
  --shadow: 0 18px 50px rgba(29, 36, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(186, 122, 33, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(15, 106, 70, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-visual-card,
.search-panel,
.result-card {
  backdrop-filter: blur(12px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(31, 42, 31, 0.12);
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.eyebrow,
.section-label,
.plan-label,
.result-category {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.25rem, 3.6vw, 4rem);
  max-width: 12ch;
  margin-top: 20px;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 650;
}

h3 {
  font-weight: 650;
}

.hero-text,
.result-subtitle,
.result-notes,
#resultsSummary {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1rem;
}

.hero-actions,
.search-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.primary-button,
.ghost-button,
.text-button {
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-button {
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.ghost-button {
  padding: 14px 20px;
  background: rgba(15, 106, 70, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.hero-visual-card {
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 72% center;
}

.hero-visual-copy {
  padding: 22px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(247, 241, 230, 0.96)),
    var(--panel-strong);
}

.hero-visual-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-panel {
  margin-top: 26px;
  border-radius: 24px;
  padding: 24px;
}

.search-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.field span {
  font-size: 0.92rem;
}

.field input,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.search-meta {
  justify-content: space-between;
  margin-top: 18px;
}

.results-section {
  margin-top: 32px;
}

.results-header {
  display: flex;
  gap: 18px;
  align-items: end;
}

.results-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  border-radius: 22px;
  padding: 20px;
}

.ad-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(29, 36, 28, 0.16);
}

.ad-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ad-card-wide {
  grid-column: 1 / -1;
}

.ad-card-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #eadcc2;
}

.ad-card-wide .ad-card-media {
  aspect-ratio: 21 / 6;
}

.ad-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-card-copy {
  padding: 20px;
}

.ad-card-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

.ad-card-title {
  margin-top: 10px;
  font-size: 1.4rem;
}

.ad-card-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.result-title {
  margin-top: 8px;
  font-size: 1.32rem;
}

.result-subtitle,
.result-notes {
  margin: 12px 0 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 18px 0 0;
}

.detail-list div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 42, 31, 0.08);
}

.detail-list dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 36px;
  padding: 20px 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.site-footer-copy {
  margin: 0;
}

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

.site-footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

.legal-shell {
  width: min(980px, calc(100% - 32px));
}

.legal-page {
  margin-top: 24px;
}

.legal-card {
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 32px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-card h1 {
  margin-bottom: 18px;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

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

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero,
  .search-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .ad-card {
    grid-column: span 1;
  }

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

  .detail-list {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: start;
    flex-direction: column;
  }

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