:root {
  --bg: #0c1016;
  --bg-accent: #111a24;
  --panel: rgba(20, 28, 38, 0.84);
  --panel-strong: rgba(17, 24, 33, 0.96);
  --text: #eef3f7;
  --muted: #a5b3c2;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff8c32;
  --accent-dark: #ffb067;
  --good: #ff8c32;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 140, 50, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 176, 103, 0.14), transparent 26%),
    linear-gradient(160deg, #090d12 0%, #121a24 50%, #1a1110 100%);
}

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

.hero {
  padding: 24px 8px 32px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: #fff5ea;
  text-wrap: balance;
}

.intro {
  width: min(62ch, 100%);
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel-form {
  background: linear-gradient(180deg, var(--panel-strong), rgba(18, 24, 34, 0.92));
  padding: 24px;
  position: sticky;
  top: 16px;
}

.panel-results {
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.84), rgba(14, 20, 28, 0.95));
  padding: 24px;
}

form {
  display: grid;
  gap: 18px;
}

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

.field span,
legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.store-list {
  display: grid;
  gap: 10px;
}

.store-option {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.store-option input {
  width: auto;
  margin-top: 2px;
}

.store-label {
  display: grid;
  gap: 4px;
}

.store-label strong {
  font-size: 0.98rem;
}

.store-label span {
  color: var(--muted);
  font-size: 0.88rem;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #ff9d43, #f36a16);
  color: #1a0f08;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.status-card,
.feedback,
.result-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.status-card {
  padding: 18px;
}

.status-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent-dark);
}

.status-copy {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.feedback {
  margin-top: 16px;
  padding: 14px 16px;
  color: #ffd2ae;
}

.results {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.result-card {
  padding: 18px;
}

.result-card h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #fff3e5;
}

.result-meta {
  margin: 0 0 12px;
  color: var(--muted);
}

.store-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.store-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 140, 50, 0.12);
  color: var(--good);
  font-size: 0.9rem;
}

.store-result {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.store-result:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.store-result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.store-result-header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.product-list li {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.beer-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.beer-image-wrap {
  width: 84px;
}

.beer-image {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 8px;
}

.beer-image-fallback {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

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

.product-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.product-name {
  margin: 0 0 6px;
  font-weight: 700;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-meta a {
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel-form,
  .panel-results {
    padding: 20px;
  }

  .panel-form {
    position: static;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding: 18px 0 34px;
  }

  .hero {
    padding: 12px 2px 22px;
  }

  .intro {
    font-size: 0.98rem;
  }

  .beer-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .beer-image-wrap {
    width: 64px;
  }

  .beer-image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    padding: 6px;
  }
}
