:root {
  --ink: #151515;
  --muted: #60635f;
  --paper: #f6f6f1;
  --surface: #ffffff;
  --line: #deded7;
  --sage: #7b927e;
  --amber: #b98255;
  --charcoal: #2d302d;
  --citrus: #d0a93d;
  --fig: #64775c;
  --shadow: 0 20px 70px rgba(32, 32, 28, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  align-items: center;
  background: rgba(15, 17, 15, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f6f4ed;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand,
.header-nav,
.proof-row,
.hero-actions,
.quiz-controls,
.form-grid,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: #f6f4ed;
  color: var(--charcoal);
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.header-nav {
  color: rgba(246, 244, 237, 0.72);
  font-size: 14px;
  gap: 24px;
}

.nav-cta {
  border: 1px solid rgba(246, 244, 237, 0.7);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}

.hero {
  background: #11130f;
  color: #f6f4ed;
  display: flex;
  isolation: isolate;
  align-items: center;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 6vw, 84px) clamp(54px, 7vw, 86px);
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(9, 11, 9, 0.92) 0%, rgba(12, 14, 12, 0.72) 42%, rgba(12, 14, 12, 0.2) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  max-width: 520px;
}

h2 {
  font-size: clamp(34px, 4.7vw, 64px);
}

h3,
h4,
p {
  margin-top: 0;
}

.hero-lede {
  color: rgba(246, 244, 237, 0.76);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 650px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 22px;
}

.hero .button-primary {
  background: #f6f4ed;
  border-color: #f6f4ed;
  color: #11130f;
}

.hero .button-secondary {
  border-color: rgba(246, 244, 237, 0.58);
  color: #f6f4ed;
}

.button {
  border: 1px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.proof-row {
  color: rgba(246, 244, 237, 0.72);
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
}

.proof-row span {
  border: 1px solid rgba(246, 244, 237, 0.2);
  background: rgba(246, 244, 237, 0.06);
  padding: 8px 11px;
}

.hero-visual {
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.quiz-section {
  background: #f1f2ed;
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 860px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 16px auto 0;
  max-width: 680px;
}

.quiz-shell {
  margin: 0 auto;
  max-width: 900px;
}

.quiz-progress {
  background: #e7e1d6;
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.quiz-progress-bar {
  background: var(--sage);
  height: 100%;
  transition: width 180ms ease;
  width: 20%;
}

.quiz-card,
.result-card,
.tester-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 56px rgba(24, 26, 22, 0.1);
}

.quiz-card,
.result-card {
  padding: clamp(22px, 4vw, 42px);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.step-count {
  color: var(--sage);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.quiz-card h3,
.result-card h3 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.option-grid label {
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
}

.option-grid label:has(input:checked) {
  background: #eff3ed;
  border-color: var(--sage);
}

.option-grid input {
  accent-color: var(--sage);
}

.quiz-controls {
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}

.result-card {
  margin-top: 18px;
}

.result-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 10px;
}

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

.result-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.result-notes span {
  background: #f0ede6;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.lead-form {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.lead-form h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-grid {
  gap: 12px;
  margin: 18px 0;
}

.form-grid label {
  color: var(--muted);
  flex: 1;
  font-size: 13px;
  font-weight: 800;
}

input[type="email"],
input[type="text"] {
  border: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

.privacy-note {
  font-size: 12px;
  margin: 14px 0 0;
}

.scent-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.scent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 22px;
}

.scent-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scent-card h3 {
  font-size: 24px;
  line-height: 1.12;
  margin: 62px 0 12px;
}

.scent-card p,
.step p,
.tester-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.clean {
  border-top: 5px solid var(--sage);
}

.citrus {
  border-top: 5px solid var(--citrus);
}

.vanilla {
  border-top: 5px solid var(--amber);
}

.woody {
  border-top: 5px solid var(--charcoal);
}

.salt {
  border-top: 5px solid #7c9aae;
}

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

.step {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.step span {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.step h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 22px 0 10px;
}

.tester-panel {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: clamp(26px, 5vw, 54px);
}

.tester-panel > div {
  max-width: 800px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
}

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 11, 9, 0.9) 0%, rgba(9, 11, 9, 0.74) 54%, rgba(9, 11, 9, 0.2) 100%);
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    height: 30px;
    width: 30px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding-top: 66px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-actions,
  .quiz-controls,
  .form-grid,
  .tester-panel,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .option-grid,
  .scent-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .scent-card {
    min-height: 170px;
  }

  .scent-card h3 {
    margin-top: 34px;
  }
}
