:root {
  --bg: #0f0f0f;
  --panel: #171717;
  --panel-strong: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f1ea;
  --muted: #b6aea3;
  --accent: #ff6b00;
  --accent-soft: rgba(255, 107, 0, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 107, 0, 0.18), transparent 26%),
    linear-gradient(180deg, #141414 0%, #0f0f0f 48%, #121212 100%);
  color: var(--text);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.site-shell--search {
  padding-top: 1rem;
}

.hero {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
  text-align: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.logo--small {
  margin: 0;
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 6.1rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-copy,
.results-subtitle,
.step-card p,
.ask-box p,
.result-card p {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.hero-copy {
  width: min(100%, 42rem);
  margin: 0 auto;
}

.search-form {
  display: grid;
  gap: 0.8rem;
}

.search-form input,
.ask-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-form input:focus,
.ask-box textarea:focus {
  border-color: rgba(255, 107, 0, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.14);
  transform: translateY(-1px);
}

.search-form input::placeholder,
.ask-box textarea::placeholder {
  color: #8f877d;
}

.search-form button,
.ask-box button {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c38 100%);
  color: #140b05;
  padding: 1rem 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.search-form button:hover,
.search-form button:focus-visible {
  filter: brightness(1.03);
}

.search-form--hero {
  width: min(100%, 52rem);
  margin: 0 auto;
}

.search-form--hero input {
  min-height: 4.4rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.ad-zone {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(255, 107, 0, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 255, 255, 0.02));
  color: #d18d60;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-zone--wide {
  margin: 1rem 0 0;
}

.section {
  padding: 1.75rem 0;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.section h2,
.results-heading h1,
.ask-box h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.category-grid,
.steps,
.results-list {
  display: grid;
  gap: 1rem;
}

.category-card,
.step-card,
.result-card,
.ask-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.category-card,
.step-card,
.result-card {
  padding: 1.2rem;
}

.category-card {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-card:hover,
.category-card:focus-visible,
.result-card:hover,
.result-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.12), rgba(255, 255, 255, 0.02));
}

.steps {
  counter-reset: step;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.search-header,
.results-layout {
  display: grid;
  gap: 1rem;
}

.search-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.6rem 0 1rem;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(15, 15, 15, 0.82), rgba(15, 15, 15, 0));
  backdrop-filter: blur(16px);
}

.results-panel,
.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.result-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.amazon-cta {
  display: block;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(255, 107, 0, 0.08));
  border: 1px solid rgba(255, 107, 0, 0.34);
  color: #ffd5b5;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ask-box {
  padding: 1.2rem;
}

.ask-box textarea {
  min-height: 160px;
  margin: 0.9rem 0;
  resize: vertical;
  font-family: Arial, Helvetica, sans-serif;
}

.ask-box button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.site-footer {
  padding: 2rem 0 0.5rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  text-align: center;
}

@media (min-width: 640px) {
  .search-form--hero,
  .search-form--top {
    grid-template-columns: 1fr auto;
  }

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

@media (min-width: 900px) {
  .site-shell {
    width: min(calc(100% - 3rem), var(--max));
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

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

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

  .results-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.8fr);
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 6.4rem;
  }
}
