:root {
  --bg: #f6f0ec;
  --surface: #f6f0ec;
  --sand: #edd8c5;
  --fg: #5b3427;
  --muted: #885946;
  --border: #ddbea9;
  --accent: #885946;
  --accent-secondary: #32201a;
  --font-display: "Vanguard CF", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --line: 1px;
  --space: 8px;
  --header-h: 64px;
  --util-h: 36px;
  --max: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

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

img[hidden] {
  display: none;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
}

a:hover {
  background: var(--surface);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 80;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 40px, 1360px);
}

/* Utility + header */

.utility {
  height: var(--util-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-secondary);
  border-bottom: var(--line) solid var(--accent-secondary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: var(--line) solid var(--border);
}

.header.is-scrolled {
  border-bottom-color: var(--fg);
}

.header__bar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.header__left,
.header__right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header__right {
  justify-content: flex-end;
}

@media screen and (max-width: 899px) {
  .header__right {
    gap: 0;
  }

  .header__right .nav-text,
  .header__right .btn--nav {
    padding-inline: 8px;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  background: none;
}

.wordmark:hover {
  color: var(--accent-secondary);
  background: none;
}

.nav-text,
.icon-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  background: var(--bg);
  border-radius: var(--radius);
}

.nav-text:hover,
.icon-btn:hover {
  background: var(--surface);
  color: var(--fg);
}

.nav-text[aria-expanded="true"],
.icon-btn[aria-expanded="true"] {
  background: var(--surface);
}

.btn--nav {
  min-height: 36px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border: var(--line) solid var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn--nav:hover,
.btn--nav[aria-expanded="true"] {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--fg);
}

.btn--nav:active {
  background: var(--accent-secondary);
  color: var(--bg);
  border-color: var(--accent-secondary);
}

.btn--nav:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--fg);
}

.btn--nav__full {
  display: none;
}

@media screen and (min-width: 900px) {
  .btn--nav {
    padding: 8px 14px;
  }

  .btn--nav__full {
    display: inline;
  }

  .btn--nav__short {
    display: none;
  }
}

.cart-count {
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.menu-toggle {
  display: inline-flex;
}

.desktop-only {
  display: none;
}

@media screen and (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .desktop-only {
    display: inline-flex;
  }
}

/* Mega menu */

.mega {
  display: none;
  border-top: var(--line) solid var(--border);
  background: var(--bg);
}

.mega.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-bottom: var(--line) solid var(--border);
}

.mega__grid {
  display: grid;
  gap: 32px;
  padding: 24px 0 32px;
}

@media screen and (min-width: 900px) {
  .mega__grid {
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    padding: 32px 0 40px;
  }
}

.mega__label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

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

.mega__list a,
.mega__edit {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--fg);
}

.mega__list a:hover,
.mega__edit:hover {
  background: var(--surface);
  color: var(--fg);
}

.mega__meta {
  font-size: 13px;
  color: var(--accent-secondary);
}

.mega__feature {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  background: var(--accent-secondary);
  color: var(--bg);
  border-radius: var(--radius);
}

.mega__feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.mega__feature p,
.mega__feature .mega__label {
  margin: 0;
  color: var(--border);
}

.mega__feature .btn--text {
  background: transparent;
  color: var(--bg);
  border-color: transparent;
  justify-self: start;
}

.mega__feature .btn--text:hover {
  background: var(--bg);
  color: var(--accent-secondary);
}

.mobile-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow: auto;
  padding: 16px;
}

.mobile-sheet.is-open {
  display: block;
}

.mobile-sheet__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  margin-bottom: 16px;
}

.mobile-sheet__quiz {
  width: 100%;
  margin-bottom: 16px;
}

.mobile-sheet details {
  border-bottom: var(--line) solid var(--border);
}

.mobile-sheet summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-sheet .mega__list {
  padding-bottom: 12px;
}

/* Overlay */

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--fg);
  opacity: 0.32;
}

.scrim.is-open {
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: var(--line) solid var(--bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn--primary {
  background: var(--accent-secondary);
  color: var(--bg);
  border-color: var(--accent-secondary);
}

.btn--primary:hover {
  background: var(--bg);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn--primary:active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn--ghost {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--fg);
}

.btn--text {
  background: var(--bg);
  color: var(--accent-secondary);
  border-color: var(--bg);
  padding-inline: 0;
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--text:hover {
  background: var(--surface);
  color: var(--accent-secondary);
}

.btn:disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
}

.btn.btn--nav {
  min-height: 36px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  letter-spacing: 0.08em;
  font-size: 12px;
}

.btn.btn--nav:hover,
.btn.btn--nav[aria-expanded="true"] {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--fg);
}

.btn.btn--nav:active {
  background: var(--accent-secondary);
  color: var(--bg);
  border-color: var(--accent-secondary);
}

/* Hero A: centered wordmark that docks into the nav */

.hero-a {
  position: relative;
  min-height: calc(100svh - var(--util-h));
  overflow: hidden;
}

.hero-a__media {
  position: absolute;
  inset: 0;
}

.hero-a__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-a__lockup {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 2;
  width: min(92vw, 520px);
  padding-inline: 16px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  transform: translate(-50%, calc(0.5 * clamp(48px, 12vw, 140px) + 24px));
  transition: opacity 180ms ease;
}

.page--logo-morph.is-hero-leaving .hero-a__lockup {
  opacity: 0;
  pointer-events: none;
}

.hero-a__claim {
  margin: 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.4;
  color: var(--bg);
  text-shadow: 0 1px 12px var(--accent-secondary);
}

.hero-a__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-a__actions .btn {
  min-width: 148px;
}

.btn--tan {
  background: var(--sand);
  color: var(--fg);
  border-color: var(--sand);
}

.btn--tan:hover {
  background: var(--fg);
  color: var(--sand);
  border-color: var(--fg);
}

.btn--tan:active {
  background: var(--accent-secondary);
  color: var(--sand);
  border-color: var(--accent-secondary);
}

.btn--chocolate {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn--chocolate:hover {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--fg);
}

.btn--chocolate:active {
  background: var(--accent-secondary);
  color: var(--bg);
  border-color: var(--accent-secondary);
}

@media screen and (max-height: 640px) {
  .hero-a__lockup {
    gap: 12px;
    transform: translate(-50%, calc(0.5 * clamp(40px, 10vw, 96px) + 16px));
  }

  .hero-a__actions .btn {
    min-height: 44px;
    padding-block: 10px;
  }
}

.hero-a__mark-static {
  display: none;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bg);
  text-shadow: 0 2px 24px var(--accent-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .hero-a__mark-static {
    display: block;
  }
}

.page--logo-morph .header {
  background: transparent;
  border-bottom-color: transparent;
}

.page--logo-morph .nav-text,
.page--logo-morph .icon-btn {
  background: transparent;
  color: var(--fg);
  text-shadow: none;
}

.page--logo-morph .nav-text:hover,
.page--logo-morph .icon-btn:hover,
.page--logo-morph .nav-text[aria-expanded="true"],
.page--logo-morph .icon-btn[aria-expanded="true"] {
  background: var(--bg);
  color: var(--fg);
}

.page--logo-morph.is-logo-docked .header,
.page--logo-morph .header.is-scrolled,
.page--logo-morph .header:has(.mega.is-open) {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.page--logo-morph:has(.mega.is-open) .morph-logo,
.page--logo-morph:has(.cart.is-open) .morph-logo,
.page--logo-morph:has(.quiz.is-open) .morph-logo,
.page--logo-morph:has(.mobile-sheet.is-open) .morph-logo,
.page--logo-morph:has(.mega.is-open) .hero-a__lockup,
.page--logo-morph:has(.cart.is-open) .hero-a__lockup,
.page--logo-morph:has(.quiz.is-open) .hero-a__lockup,
.page--logo-morph:has(.mobile-sheet.is-open) .hero-a__lockup {
  visibility: hidden;
}

.page--logo-morph .wordmark--slot {
  color: transparent;
  pointer-events: none;
}

.page--logo-morph.is-logo-docked .wordmark--slot {
  color: var(--accent);
  pointer-events: auto;
}

.morph-logo {
  position: fixed;
  left: 50%;
  top: 56%;
  z-index: 41;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bg);
  text-shadow: 0 2px 24px var(--accent-secondary);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.morph-logo.is-docking {
  color: var(--accent);
  text-shadow: none;
}

.page--logo-morph.is-logo-docked .morph-logo {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .morph-logo {
    display: none;
  }

  .page--logo-morph .header {
    background: var(--bg);
    border-bottom-color: var(--border);
  }

  .page--logo-morph .wordmark--slot {
    color: var(--accent);
    pointer-events: auto;
  }
}

.hero-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  border: var(--line) solid var(--border);
  overflow: hidden;
}

.hero-toggle button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--fg);
}

.hero-toggle button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.hero-toggle button:hover {
  background: var(--surface);
  color: var(--fg);
}

.hero-toggle button[aria-pressed="true"]:hover {
  background: var(--accent-secondary);
  color: var(--bg);
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Hero B: full-bleed film */

.hero-film {
  position: relative;
  min-height: calc(100svh - var(--util-h) - var(--header-h));
  overflow: hidden;
}

.hero-film__media {
  position: absolute;
  inset: 0;
}

.hero-film__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  animation: kenburns 16s ease-in-out infinite alternate;
}

.hero-film__copy {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 420px;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
}

@media screen and (min-width: 720px) {
  .hero-film__copy {
    left: auto;
    right: 32px;
    bottom: 32px;
    padding: 32px;
  }
}

.hero-film__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-film__copy p {
  margin: 0;
  max-width: 34ch;
  color: var(--fg);
}

.hero-film__copy .eyebrow {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-film__media img {
    animation: none;
  }
}

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

/* Sections */

.section {
  padding: 64px 0;
}

.section--surface {
  background: var(--bg);
  border-block: var(--line) solid var(--border);
}

.section--dark {
  background: var(--accent-secondary);
  color: var(--bg);
}

.section--dark .section__head p,
.section--dark .eyebrow {
  color: var(--border);
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  max-width: 40rem;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--accent-secondary);
}

/* Products */

.product-grid {
  display: grid;
  gap: 16px;
}

@media screen and (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: grid;
  gap: 12px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.product-card__media .img-hover {
  opacity: 0;
}

.product-card:hover .img-hover,
.product-card:focus-within .img-hover {
  opacity: 1;
}

.product-card:hover .img-main,
.product-card:focus-within .img-main {
  opacity: 0;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent-secondary);
  font-size: 14px;
}

.product-card .btn {
  width: 100%;
}

/* Marquee */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: var(--line) solid var(--fg);
  background: var(--fg);
  padding: 16px 0;
}

.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

.marquee__pause {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  min-height: 32px;
  min-width: 32px;
  padding: 4px 10px;
  border: var(--line) solid var(--bg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee__pause:hover {
  background: var(--bg);
  color: var(--fg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  padding: 0 28px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--bg);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .marquee__pause {
    display: none;
  }
}

/* Story */

.story {
  display: grid;
  gap: 32px;
}

@media screen and (min-width: 900px) {
  .story {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
  }
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.story h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.story p {
  margin: 0 0 16px;
}

.mark {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.claim-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.claim-list li {
  padding: 10px 0;
  border-top: var(--line) solid var(--border);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* UGC */

.ugc-grid {
  display: grid;
  gap: 16px;
}

@media screen and (min-width: 720px) {
  .ugc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ugc-card {
  display: grid;
  gap: 12px;
}

.ugc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.ugc-card h3 {
  margin: 0;
  font-size: 16px;
}

.ugc-card p {
  margin: 0;
  color: var(--accent-secondary);
}

.study-note {
  font-size: 12px;
  color: var(--accent-secondary);
}

/* Comparison */

.table-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: var(--line) solid var(--border);
  vertical-align: top;
}

.compare th {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.compare td:nth-child(2),
.compare th:nth-child(2) {
  color: inherit;
}

.compare td:nth-child(3) {
  color: var(--muted);
}

.section--dark .compare th,
.section--dark .compare td {
  border-bottom-color: var(--fg);
}

.section--dark .compare td:nth-child(3) {
  color: var(--border);
}

.section--dark .mark-yes {
  background: var(--bg);
}

.section--dark .mark-no {
  background: transparent;
  border-color: var(--border);
}

.mark-yes,
.mark-no {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -2px;
}

.mark-yes {
  background: var(--fg);
}

.mark-no {
  background: var(--bg);
  border: var(--line) solid var(--border);
}

.compare-mobile {
  display: none;
}

@media screen and (max-width: 719px) {
  .table-wrap {
    display: none;
  }

  .compare-mobile {
    display: grid;
    gap: 12px;
  }

  .compare-row {
    background: var(--surface);
    border: var(--line) solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
  }

  .section--dark .compare-row {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
  }

  .compare-row h3 {
    margin: 0 0 12px;
    font-size: 16px;
  }

  .compare-row p {
    margin: 0 0 6px;
  }
}

/* Edits */

.edit-grid {
  display: grid;
  gap: 16px;
}

@media screen and (min-width: 720px) {
  .edit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.edit-card {
  display: grid;
  gap: 12px;
}

.edit-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.edit-card h3,
.learn-card h3 {
  margin: 0;
}

.price-pair {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.price-pair s {
  color: var(--accent-secondary);
}

/* Education */

.learn-grid {
  display: grid;
  gap: 16px;
}

@media screen and (min-width: 720px) {
  .learn-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.learn-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--bg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  min-height: 220px;
}

.learn-card--image {
  padding: 0;
  overflow: hidden;
}

.learn-card--image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.learn-card--image > div {
  padding: 20px 24px 24px;
  display: grid;
  gap: 12px;
}

.ritual {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: ritual;
}

.ritual li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-top: var(--line) solid var(--border);
  counter-increment: ritual;
}

.ritual li::before {
  content: counter(ritual);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-secondary);
}

/* Footer */

.footer {
  border-top: 0;
  padding: 48px 0 32px;
  background: var(--accent-secondary);
  color: var(--bg);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

@media screen and (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer input[type="email"] {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0 12px;
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--fg);
}

.footer input[type="email"][aria-invalid="true"] {
  border-color: var(--bg);
}

.footer__error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--border);
}

.footer__error[hidden] {
  display: none;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--bg);
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.footer a:hover {
  background: var(--bg);
  color: var(--accent-secondary);
}

.footer .btn--ghost {
  background: transparent;
  color: var(--bg);
  border-color: var(--border);
}

.footer .btn--ghost:hover {
  background: var(--bg);
  color: var(--accent-secondary);
}

.footer .note {
  color: var(--border);
}

.footer__legal {
  margin-top: 40px;
  padding-top: 16px;
  border-top: var(--line) solid var(--fg);
  color: var(--border);
  font-size: 13px;
}

/* Cart */

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(100%, 420px);
  height: 100%;
  background: var(--bg);
  border-left: var(--line) solid var(--border);
  display: none;
  grid-template-rows: auto auto 1fr auto;
}

.cart.is-open {
  display: grid;
}

.cart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: var(--line) solid var(--accent-secondary);
  background: var(--accent-secondary);
  color: var(--bg);
}

.cart__head .icon-btn {
  background: transparent;
  color: var(--bg);
}

.cart__head .icon-btn:hover {
  background: var(--bg);
  color: var(--accent-secondary);
}

.cart__head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker {
  padding: 16px 20px;
  border-bottom: var(--line) solid var(--border);
}

.tracker__bar {
  height: 4px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.tracker__fill {
  height: 100%;
  width: 0;
  background: var(--accent-secondary);
}

.cart__lines {
  overflow: auto;
  padding: 16px 20px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.line h3 {
  margin: 0;
  font-size: 15px;
}

.line__meta {
  color: var(--accent-secondary);
  font-size: 13px;
}

.line__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}

.qty {
  display: flex;
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
}

.qty button {
  width: 44px;
  height: 44px;
  color: var(--fg);
}

.qty button:hover {
  background: var(--surface);
  color: var(--fg);
}

.qty span {
  min-width: 28px;
  display: grid;
  place-items: center;
}

.cart__empty {
  padding: 24px 20px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.cart__empty[hidden] {
  display: none;
}

.cart__empty h3 {
  margin: 0;
}

.cart__empty p {
  margin: 0;
  max-width: 32ch;
}

.upsell {
  padding: 16px 20px;
  border-top: var(--line) solid var(--border);
  display: none;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.upsell.is-visible {
  display: grid;
}

.upsell img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
}

.upsell p {
  margin: 0;
  font-size: 14px;
}

.cart__foot {
  padding: 16px 20px 24px;
  border-top: var(--line) solid var(--border);
  display: grid;
  gap: 8px;
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.quiz {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(100%, 420px);
  height: 100%;
  background: var(--bg);
  border-left: var(--line) solid var(--border);
  display: none;
  grid-template-rows: auto 1fr;
}

.quiz.is-open {
  display: grid;
}

.quiz__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: var(--line) solid var(--accent-secondary);
  background: var(--accent-secondary);
  color: var(--bg);
}

.quiz__head .icon-btn {
  background: transparent;
  color: var(--bg);
}

.quiz__head .icon-btn:hover {
  background: var(--bg);
  color: var(--accent-secondary);
}

.quiz__head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz__form {
  overflow: auto;
  padding: 20px;
}

.quiz__step {
  display: none;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz__step.is-active {
  display: grid;
}

.quiz__step legend {
  padding: 0;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz__error {
  margin: 0;
  font-size: 14px;
  color: var(--fg);
}

.quiz__error[hidden] {
  display: none;
}

.quiz__choice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  min-height: 44px;
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}

.quiz__choice:hover,
.quiz__choice:has(input:focus-visible) {
  background: var(--sand);
  color: var(--fg);
  border-color: var(--fg);
}

.quiz__choice:has(input:checked) {
  background: var(--sand);
  border-color: var(--fg);
  color: var(--fg);
}

.quiz__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz__choice span {
  font-weight: 500;
}

.quiz__choice em {
  font-style: normal;
  font-size: 13px;
  color: var(--accent-secondary);
}

.quiz__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz__step[data-quiz-step="result"] img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.quiz__step[data-quiz-step="result"] h3 {
  margin: 0;
}

.quiz__price {
  margin: 0;
  color: var(--accent-secondary);
}

.quiz .btn--primary {
  justify-self: stretch;
}

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

/* Launcher */

.launcher {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.launcher__inner {
  width: min(100%, 920px);
  display: grid;
  gap: 32px;
}

.launcher h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.12em;
}

.launcher__grid {
  display: grid;
  gap: 16px;
}

@media screen and (min-width: 720px) {
  .launcher__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.launcher a.choice {
  display: grid;
  gap: 12px;
  color: var(--fg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.launcher a.choice:hover {
  background: var(--surface);
  color: var(--fg);
}

.launcher a.choice img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.launcher a.choice div {
  padding: 0 20px 20px;
}

.note {
  color: var(--accent-secondary);
}
