:root {
  color-scheme: light;
  --ink: #211714;
  --muted: #6d625d;
  --line: #e7ded8;
  --panel: #fffaf6;
  --surface: #ffffff;
  --orange: #f25a1d;
  --pink: #c71f7b;
  --green: #1a7f64;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(65, 38, 20, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(255, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1120px;
  min-height: 580px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 40px);
}

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

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

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

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 720px;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.finder-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-width: 0;
  height: 52px;
  border: 1px solid #d8c8bd;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  background: #d94512;
}

.form-note,
footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-band,
.results-section,
.tool-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px) 56px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed #d4beb1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #907c70;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ad-slot-small {
  min-height: 72px;
}

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

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.result-card,
.steps article,
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.result-card h3,
.steps h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.result-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.primary-result {
  border-color: rgba(242, 90, 29, 0.34);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-row button {
  background: var(--ink);
}

.action-row button:hover {
  background: #3a2d28;
}

#status-label {
  color: var(--green);
}

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

.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fbe5db;
  color: var(--orange);
  font-weight: 900;
}

.faq details {
  margin-bottom: 12px;
}

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

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #fff;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .result-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

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

  button,
  .button-link {
    width: 100%;
  }
}
