:root {
  --ink: #111111;
  --muted: #68635f;
  --line: #dedbd4;
  --paper: #fbfaf7;
  --blue: #d4edf7;
  --peach: #f2d4c5;
  --green: #dce7d7;
  --lavender: #dedaf0;
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 56px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  font-size: 0.86rem;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.button--header {
  background: var(--ink);
  color: var(--white);
  min-height: 56px;
  padding: 0 26px;
}

.cart-link span {
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  display: inline-grid;
  font-size: 0.72rem;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  width: 20px;
}

.hero,
.section,
.collection-hero,
.pdp,
.cart-page,
.checkout-page,
.quiz-page {
  padding: 56px 28px;
}

.hero--home {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  min-height: calc(100vh - 64px);
}

.hero__copy {
  align-content: center;
  display: grid;
  justify-items: start;
  padding-right: 6vw;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  font-weight: 400;
  line-height: 0.94;
  margin-bottom: 22px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.hero__copy > p:not(.eyebrow) {
  font-size: 1.14rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button,
.product-card__actions button {
  align-items: center;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

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

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__media-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 0.72fr;
}

.image-card {
  background: var(--line);
  border-radius: var(--radius);
  margin: 0;
  min-height: 250px;
  overflow: hidden;
}

.image-card--tall {
  min-height: 620px;
}

.hero__media-grid .image-card:last-child {
  align-self: end;
  min-height: 410px;
}

.split {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

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

.concern-list a {
  border-bottom: 1px solid var(--line);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  padding: 12px 0;
}

.section__heading {
  margin-bottom: 24px;
  max-width: 780px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card__media {
  background: #f2f0eb;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.product-card__body {
  padding: 18px;
}

.product-card__meta,
.product-card__actions,
.summary-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.product-card__meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
  padding-top: 14px;
}

.product-card__actions {
  gap: 12px;
  margin-top: 18px;
}

.product-card__actions button {
  min-height: 40px;
  padding: 0 14px;
}

.packshot {
  background: var(--blue);
  border-radius: 7px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  display: grid;
  height: 230px;
  justify-items: center;
  padding: 18px 18px 24px;
  position: relative;
  width: 150px;
}

.packshot--peach {
  background: var(--peach);
}

.packshot--green {
  background: var(--green);
}

.packshot--lavender {
  background: var(--lavender);
}

.packshot__cap {
  background: var(--ink);
  border-radius: 5px 5px 3px 3px;
  height: 28px;
  width: 112px;
}

.packshot__label {
  align-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  text-align: center;
}

.packshot__dose {
  align-self: end;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.platform {
  align-items: center;
  background: #111;
  color: var(--white);
  display: grid;
  gap: 34px;
  grid-template-columns: 0.78fr 1fr;
}

.platform p {
  color: #d6d3cb;
}

.phone-panel {
  display: grid;
  place-items: center;
}

.phone-panel__screen {
  background: var(--paper);
  border-radius: 28px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  min-height: 420px;
  padding: 34px 28px;
  width: min(320px, 100%);
}

.phone-panel__screen span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  font-weight: 800;
  padding: 18px;
}

.review-grid,
.stat-grid,
.details-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.before-after .image-card {
  min-height: 340px;
}

.collection-hero {
  border-bottom: 1px solid var(--line);
}

.page-title-band {
  background: #ffff99;
  border-bottom: 1px solid var(--ink);
  padding: 56px 28px;
}

.collection-hero h1,
.page-title-band h1 {
  margin-bottom: 10px;
}

.collection {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 260px 1fr;
}

.collection__rail {
  position: sticky;
  top: 88px;
}

.filters {
  display: grid;
  gap: 8px;
}

.filters button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.pdp {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
}

.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pdp-gallery {
  background: #f8f8f6;
  min-height: calc(100vh - 72px);
  min-width: 0;
}

.pdp-gallery__sticky {
  position: sticky;
  top: 72px;
}

.pdp-gallery__stage {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: start stretch;
  position: relative;
}

.pdp-gallery__slide {
  grid-area: 1 / 1;
  height: calc(100vh - 170px);
  margin: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  width: 100%;
}

.pdp-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pdp-gallery__slide img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.pdp-gallery__controls {
  display: flex;
  inset: 50% 24px auto;
  justify-content: space-between;
  position: absolute;
  transform: translateY(-50%);
  width: calc(100% - 48px);
}

.pdp-gallery__controls button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0;
  height: 42px;
  width: 42px;
}

.pdp-gallery__controls button::before {
  content: "←";
  font-size: 1rem;
}

.pdp-gallery__controls [data-pdp-next]::before {
  content: "→";
}

.pdp-gallery__nav {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-auto-flow: column;
  justify-content: center;
  padding: 0 0 34px;
}

.pdp-gallery__nav button {
  background: #aaa;
  border: 0;
  cursor: pointer;
  display: block;
  height: 2px;
  padding: 0;
  width: 74px;
}

.pdp-gallery__nav button.is-active {
  background: var(--ink);
  height: 3px;
}

.pdp-info {
  display: grid;
  grid-template-rows: minmax(430px, 41vh) auto auto auto;
  min-width: 0;
}

.pdp-title-slab {
  background: #ffff99;
  display: grid;
  align-content: start;
  padding: 42px 54px 32px;
}

.pdp-measure-row {
  border-bottom: 1px solid var(--ink);
  display: flex;
  font-size: 1.2rem;
  justify-content: space-between;
  padding-bottom: 10px;
}

.pdp-title-slab h1 {
  font-family: Impact, "Arial Narrow", "Arial Black", sans-serif;
  font-size: clamp(5.8rem, 8.4vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 22px 0 0;
  overflow-wrap: anywhere;
}

.pdp-buy-intro {
  display: grid;
  gap: 24px;
  padding: 40px 54px 30px;
}

.button--panel {
  background: var(--ink);
  color: var(--white);
  font-size: 1.2rem;
  justify-content: space-between;
  min-height: 60px;
  width: 100%;
}

.button--panel::after {
  content: "->";
}

.pdp-meta-row {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr;
}

.pdp-ingredients,
.rating {
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-size: 1.2rem;
  padding-top: 18px;
}

.pdp-ingredients {
  font-weight: 400;
}

.pdp-shade-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pdp-shade-row a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stars {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.purchase-options {
  display: grid;
  gap: 12px;
}

.pdp-purchase-stack {
  padding: 0 54px;
}

.purchase-card {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}

.purchase-card--active {
  background: var(--white);
}

.purchase-card > div:first-child {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.purchase-card h3 {
  margin: 0;
}

.gift-callout {
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
}

.gift-callout img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.gift-callout span,
.purchase-card small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.add-to-bag {
  margin: 0 54px;
  min-height: 56px;
  width: calc(100% - 108px);
}

.pdp-promises {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 18px 54px 52px;
}

.pdp-promises li {
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 800;
  padding-top: 10px;
  text-align: center;
}

.pdp__media {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.72fr 1fr;
}

.pdp__media .packshot {
  align-self: start;
  height: 440px;
  justify-self: center;
  width: 270px;
}

.image-card--product {
  min-height: 590px;
}

.pdp__buy {
  align-self: start;
  position: sticky;
  top: 88px;
}

.pdp__tagline {
  color: var(--ink);
  font-size: 1.22rem;
}

.rating {
  color: var(--ink);
  font-weight: 800;
}

.buy-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
}

.buy-box label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.benefit-list,
.ingredient-list,
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li,
.ingredient-list li,
.badge-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.badge-list {
  margin-top: 18px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 400;
}

.cart-page,
.checkout-page {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 360px;
}

.cart-summary,
.checkout-step,
.cart-line {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-summary {
  display: grid;
  gap: 18px;
  padding: 18px;
  position: sticky;
  top: 88px;
}

.cart-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 16px;
}

.cart-line span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.cart-line button {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.empty-cart {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.checkout-main {
  display: grid;
  gap: 14px;
}

.checkout-step {
  display: grid;
  gap: 18px;
  grid-template-columns: 40px 1fr;
  padding: 18px;
}

.checkout-step span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-step input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.quiz-page {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.86fr 1fr;
  min-height: calc(100vh - 64px);
}

.quiz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 430px;
  padding: 24px;
}

.quiz-progress {
  background: #efeee9;
  border-radius: 999px;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress span {
  background: var(--ink);
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: grid;
  gap: 12px;
}

.quiz-step button:not(.button) {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  min-height: 58px;
  padding: 0 16px;
  text-align: left;
}

.site-footer {
  align-items: end;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
  padding: 46px 28px;
}

.footer-kicker,
.site-footer p {
  color: #d6d3cb;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.cart-pulse .cart-link span {
  background: #0f6fff;
}

.cart-drawer {
  background: rgba(0, 0, 0, 0.34);
  bottom: 0;
  display: grid;
  justify-items: end;
  left: 0;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 160ms ease;
  z-index: 50;
}

.cart-drawer[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.cart-drawer__panel {
  background: var(--white);
  border-left: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr auto auto auto;
  height: 100%;
  max-width: 460px;
  padding: 18px;
  transform: translateX(0);
  transition: transform 180ms ease;
  width: min(100vw, 460px);
}

.cart-drawer[aria-hidden="true"] .cart-drawer__panel {
  transform: translateX(100%);
}

.cart-drawer__header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.cart-drawer__header h2 {
  font-size: 2.2rem;
  margin: 0;
}

.promo-row {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
}

.cart-drawer-open {
  overflow: hidden;
}

.concern-gallery,
.commitment {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 0.72fr;
}

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

.concern-gallery article,
.review-card,
.expert-grid article,
.accordion-grid article,
.feature-grid article,
.review-list article,
.comparison-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.concern-gallery article span {
  display: block;
  font-weight: 800;
  padding: 12px;
}

.concern-gallery .image-card {
  border-radius: 0;
  min-height: 320px;
}

.app-download {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.download-badges {
  display: flex;
  gap: 12px;
}

.download-badges span {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-grid;
  font-weight: 800;
  min-height: 54px;
  min-width: 150px;
  place-items: center;
}

.experts {
  background: #f1eee8;
}

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

.expert-grid article {
  min-height: 240px;
  padding: 18px;
}

.commitment {
  background: var(--ink);
  color: var(--white);
}

.commitment .image-card {
  min-height: 560px;
}

.commitment p,
.commitment h2 {
  color: var(--white);
}

.image-card--wide {
  min-height: 520px;
}

.review-card {
  padding-bottom: 18px;
}

.review-card h3,
.review-card p {
  padding-left: 16px;
  padding-right: 16px;
}

.review-card .eyebrow {
  margin-top: 16px;
}

.review-card__date {
  color: var(--ink);
  font-weight: 800;
}

.collection-groups {
  display: grid;
  gap: 46px;
}

.collection-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 46px;
}

.accordion-grid,
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accordion-grid article,
.feature-grid article,
.review-list article {
  padding: 22px;
}

.section-step {
  color: var(--muted);
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.comparison-grid {
  display: grid;
  gap: 10px;
}

.comparison-head,
.comparison-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.75fr 1fr 1fr;
  padding: 18px;
}

.comparison-head {
  background: #ffff99;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.comparison-row strong {
  color: var(--ink);
}

.comparison-row span {
  color: var(--muted);
}

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

.difference {
  background: #f2f0eb;
}

.review-highlights {
  border-top: 1px solid var(--line);
}

.faq {
  background: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 16px;
  }

  .nav {
    gap: 12px;
  }

  .hero,
  .section,
  .collection-hero,
  .page-title-band,
  .pdp,
  .pdp-hero,
  .cart-page,
  .checkout-page,
  .quiz-page {
    padding: 34px 16px;
  }

  .hero--home,
  .split,
  .platform,
  .concern-gallery,
  .commitment,
  .collection,
  .pdp,
  .pdp-hero,
  .cart-page,
  .checkout-page,
  .quiz-page,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero__media-grid,
  .pdp__media,
  .pdp-promises,
  .product-grid,
  .product-grid--wide,
  .review-grid,
  .stat-grid,
  .details-grid,
  .expert-grid,
  .accordion-grid,
  .feature-grid,
  .review-list {
    grid-template-columns: 1fr;
  }

  .comparison-head,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .image-card--tall,
  .hero__media-grid .image-card:last-child,
  .image-card--product {
    min-height: 360px;
  }

  .collection__rail,
  .pdp__buy,
  .cart-summary {
    position: static;
  }

  .pdp__media .packshot {
    height: 300px;
    width: 190px;
  }

  .pdp-gallery__sticky {
    position: static;
  }

  .pdp-gallery,
  .pdp-gallery__stage,
  .pdp-gallery__slide {
    min-height: 430px;
  }

  .pdp-gallery__slide {
    height: 430px;
    padding: 0;
  }

  .pdp-info {
    grid-template-rows: auto;
  }

  .pdp-title-slab,
  .pdp-buy-intro,
  .pdp-purchase-stack {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pdp-title-slab h1 {
    font-size: 4.35rem;
  }

  .add-to-bag {
    margin: 0 16px;
    width: calc(100% - 32px);
  }

  .footer-links,
  .hero__actions,
  .app-download,
  .download-badges {
    flex-wrap: wrap;
  }

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