:root {
  --spruce: #1b2e24;
  --spruce-deep: #0f1a15;
  --moss: #6b7f4e;
  --lichen: #a3b18a;
  --blaze: #e85d04;
  --blaze-hot: #f48c06;
  --fog: #e6e2d8;
  --fog-dim: #cfc9bb;
  --ink: #121714;
  --card: #f3efe6;
  --stroke: rgba(18, 23, 20, 0.12);
  --shadow: 0 18px 50px rgba(15, 26, 21, 0.28);
  --radius: 4px;
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fog);
  background: var(--spruce-deep);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  position: relative;
}

.topo {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(107, 127, 78, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(232, 93, 4, 0.12), transparent 50%),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 11px,
      rgba(163, 177, 138, 0.05) 11px,
      rgba(163, 177, 138, 0.05) 12px
    );
}

.view {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

.hidden {
  display: none !important;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* The mark is very wide (wingspan), so it gets height-constrained and lets
   width follow. Same asset everywhere — one file to change. */
.brand-mark {
  height: 1.15rem;
  width: auto;
  display: block;
}

.hero-mark {
  display: block;
  width: min(320px, 62%);
  height: auto;
  margin: 0 0 1.25rem;
}

@media (min-width: 760px) {
  .hero-mark {
    margin-left: auto;
    margin-right: auto;
  }
}

.brand-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--fog);
  text-wrap: balance;
}

.brand-hero-sm {
  font-size: clamp(2rem, 8vw, 3rem);
}

.beta {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lichen);
}

.site-bar,
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  min-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1,
.results-head h1,
.closer h2,
.panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  max-width: 20ch;
  color: var(--lichen);
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  color: var(--fog-dim);
  font-size: 1.1rem;
}

/* At desktop widths the left-aligned hero left a large dead zone to its right.
   Centre it so the column reads as intentional rather than unfinished. */
@media (min-width: 760px) {
  .view-landing {
    max-width: 840px;
  }

  .hero {
    text-align: center;
    padding-top: 2rem;
  }

  .hero h1,
  .hero .lede,
  .hero .fine {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta-row {
    justify-content: center;
  }

  .hero .fine {
    max-width: 52ch;
  }
}

.fine {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--fog-dim);
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.text-btn:focus-visible,
.choice:focus-visible,
.swipe-btn:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blaze);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blaze);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blaze-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--stroke);
  width: 100%;
  margin-top: 0.5rem;
}

.btn-ghost:hover {
  border-color: var(--lichen);
}

.text-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--lichen);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.panel {
  padding: 1.75rem 0;
  border-top: 1px solid var(--stroke);
}

.panel h2 {
  font-size: 1.35rem;
  color: var(--fog);
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.how-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.how-body {
  color: var(--fog-dim);
}

.tired ul,
.faq p {
  color: var(--fog-dim);
  padding-left: 1.1rem;
}

.tired li + li {
  margin-top: 0.5rem;
}

details {
  border-top: 1px solid var(--stroke);
  padding: 0.85rem 0;
}

details:first-of-type {
  border-top: none;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.closer {
  text-align: left;
}

.site-foot {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--fog-dim);
}

/* Flow */
.view-flow {
  max-width: 520px;
}

.progress {
  flex: 1;
  height: 3px;
  background: rgba(230, 226, 216, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blaze);
  transition: width 0.25s ease;
}

.step-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fog-dim);
  min-width: 3rem;
  text-align: right;
}

.flow-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.flow-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.flow-card .hint {
  margin: 0 0 1.25rem;
  color: rgba(18, 23, 20, 0.65);
  font-size: 0.95rem;
}

.choices {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.choice {
  appearance: none;
  width: 100%;
  min-height: 52px;
  text-align: left;
  border: 1.5px solid rgba(18, 23, 20, 0.14);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice:hover {
  border-color: var(--moss);
}

/* Selection has to be unmistakable at arm's length in daylight, on a phone,
   possibly with gloves on. A tinted background is not enough. */
.choice.selected {
  border-color: var(--blaze);
  background: var(--blaze);
  color: #fff;
  font-weight: 600;
}

.choice .sub {
  display: block;
  font-size: 0.85rem;
  color: rgba(18, 23, 20, 0.55);
  font-weight: 400;
  margin-top: 0.15rem;
}

.choice.selected .sub {
  color: rgba(255, 255, 255, 0.82);
}

.flow-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
}

.flow-actions .btn {
  flex: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(18, 23, 20, 0.2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  appearance: none;
  border: 1.5px solid rgba(18, 23, 20, 0.14);
  background: #fff;
  border-radius: 99px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.chip.selected {
  background: var(--spruce);
  color: var(--fog);
  border-color: var(--spruce);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input,
.field select,
.email-form input {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid rgba(18, 23, 20, 0.18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

/* Swipe */
.swipe-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.swipe-card {
  background: #fff;
  border: 1.5px solid rgba(18, 23, 20, 0.1);
  border-radius: 8px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  touch-action: pan-y;
}

.product-media {
  background: #0f1a15;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.swipe-body,
.result-body {
  padding: 1rem 1.15rem 1.2rem;
}

.group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(18, 23, 20, 0.5);
  font-weight: 700;
  margin: 1rem 0 0.45rem;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--stroke);
  border-radius: 99px;
  color: var(--fog-dim);
}

.pill em {
  font-style: normal;
  color: var(--lichen);
  margin-left: 0.25rem;
}

.result-card {
  padding: 0;
  overflow: hidden;
}

.result-card .product-media {
  border-radius: 8px 8px 0 0;
}

.swipe-card.fly-left {
  transform: translateX(-120%) rotate(-8deg);
  opacity: 0;
}

.swipe-card.fly-right {
  transform: translateX(120%) rotate(8deg);
  opacity: 0;
}

.swipe-brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(18, 23, 20, 0.5);
  margin: 0 0 0.35rem;
}

.swipe-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}

.swipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(27, 46, 36, 0.08);
  border-radius: 99px;
}

/* Caveats read as a separate beat from the reason we picked it, not as a
   run-on sentence. */
.why-note {
  display: block;
  margin-top: 0.4rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--blaze);
  border-radius: 0;
  color: rgba(18, 23, 20, 0.62);
  font-size: 0.9rem;
}

.swipe-why {
  color: rgba(18, 23, 20, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

.swipe-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1rem 0 0;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.swipe-btn {
  appearance: none;
  border: 1.5px solid rgba(18, 23, 20, 0.15);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.swipe-btn.no:hover {
  border-color: #9b2226;
  color: #9b2226;
}

.swipe-btn.meh:hover {
  border-color: rgba(18, 23, 20, 0.45);
}

.swipe-btn.yes:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.swipe-count {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(18, 23, 20, 0.55);
  margin: 0.75rem 0 0;
}

/* Results */
.results-list {
  display: grid;
  gap: 1rem;
}

.result-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.result-rank {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blaze);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.result-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.result-card .why {
  margin: 0.65rem 0;
  color: rgba(18, 23, 20, 0.75);
}

.retailers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.retailers a {
  color: var(--spruce);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.capture {
  background: rgba(243, 239, 230, 0.06);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  margin-top: 1.5rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 720px) {
  .view {
    padding-top: 2rem;
  }

  .hero {
    padding-top: 4rem;
  }
}
