:root {
  color-scheme: light;
  --ink: #252329;
  --muted: #6f6872;
  --soft: #fff8fa;
  --paper: #ffffff;
  --line: #eadfe4;
  --rose: #b65268;
  --rose-deep: #893a4d;
  --leaf: #557b69;
  --lavender: #7487d8;
  --sage: #78a99b;
  --lime: #79b86a;
  --sky: #8fc7e8;
  --shadow: 0 18px 48px rgba(61, 45, 53, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(234, 223, 228, 0.86);
  background: rgba(255, 248, 250, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 36px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 58px;
  height: 42px;
  justify-content: center;
  border: 1px solid rgba(182, 82, 104, 0.24);
  border-radius: 8px;
  color: var(--rose-deep);
  background: #fff;
}

.cart-icon {
  position: relative;
  width: 17px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.cart-count {
  min-width: 20px;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: min(760px, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: clamp(24px, 6vw, 72px);
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 88px);
  background-image:
    linear-gradient(90deg, rgba(255, 248, 250, 0.98) 0%, rgba(255, 248, 250, 0.9) 44%, rgba(255, 248, 250, 0.28) 100%),
    url("/assets/collection-preview.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.7rem, 13vw, 10.5rem);
  line-height: 0.85;
  font-weight: 900;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: #514951;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.8;
  font-weight: 560;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0;
}

.button.primary {
  color: #fff;
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

.button.ghost {
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(182, 82, 104, 0.3);
}

.button.full {
  width: 100%;
}

.hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 380px;
}

.hero-stat {
  width: min(100%, 320px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.hero-stat span,
.hero-stat strong {
  display: block;
}

.hero-stat span {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stat strong {
  margin-top: 6px;
  line-height: 1.4;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-band p {
  margin: 0;
  min-height: 76px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 850;
}

.intro-band p:last-child {
  border-right: 0;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading h2,
.routine-band h2,
.notify-copy h2,
.notice h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.03;
}

.section-heading p:not(.eyebrow),
.notify-copy p:not(.eyebrow),
.notice p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(64, 46, 55, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: clamp(12px, 2vw, 22px);
  background: var(--product-soft);
}

.product-card.sleep {
  --product: var(--lavender);
  --product-soft: #f1f0ff;
}

.product-card.calm {
  --product: var(--sage);
  --product-soft: #eefaf6;
}

.product-card.fit {
  --product: var(--lime);
  --product-soft: #f5fbdf;
}

.product-card.glow {
  --product: var(--sky);
  --product-soft: #eefaff;
}

.product-content {
  display: grid;
  align-content: start;
  padding: 18px;
}

.product-kicker {
  margin: 0;
  color: var(--product);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.product-card p:not(.product-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.product-footer span {
  color: var(--ink);
  font-weight: 850;
}

.product-footer button {
  min-width: 64px;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--product) 45%, #fff);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--product) 18%, #fff);
  font-weight: 850;
}

.routine-band {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: #234f45;
}

.routine-band .eyebrow {
  color: #cde8dc;
}

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

.routine-steps div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.routine-steps span,
.routine-steps strong {
  display: block;
}

.routine-steps span {
  color: #cde8dc;
  font-weight: 900;
}

.routine-steps strong {
  margin-top: 20px;
  font-size: 1.25rem;
}

.routine-steps p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.notify-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.notify-form {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.notify-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.notify-form input,
.notify-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--leaf);
  font-size: 0.94rem;
  line-height: 1.5;
}

.notice {
  padding: 34px clamp(18px, 5vw, 72px) 48px;
  border-top: 1px solid var(--line);
  background: #f7fbf9;
}

.notice h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.notice p {
  max-width: 980px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(420px, 100vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: -24px 0 56px rgba(31, 26, 31, 0.18);
  transform: translateX(106%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

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

.cart-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cart-header button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span,
.empty-cart {
  color: var(--muted);
}

.empty-cart {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background: rgba(28, 22, 27, 0.24);
  transition: opacity 180ms ease;
}

body.cart-open .cart-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  min-width: min(320px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(35, 79, 69, 0.2);
  border-radius: 8px;
  color: #173b33;
  background: #f0faf6;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routine-band,
  .notify-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .cart-toggle {
    flex: 0 0 58px;
    width: 58px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    order: 3;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 2px;
    font-size: 0.86rem;
    width: 100%;
    min-width: 0;
  }

  .nav-links a {
    text-align: center;
  }

  .hero {
    min-height: 620px;
    grid-template-columns: 1fr;
    align-items: end;
    background-image:
      linear-gradient(180deg, rgba(255, 248, 250, 0.95) 0%, rgba(255, 248, 250, 0.82) 48%, rgba(255, 248, 250, 0.34) 100%),
      url("/assets/collection-preview.jpg");
    background-position: center bottom;
  }

  h1 {
    max-width: 4.4ch;
    font-size: clamp(4.2rem, 22vw, 6rem);
    line-height: 0.9;
  }

  .hero-text {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-panel {
    display: none;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .intro-band p {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-band p:last-child {
    border-bottom: 0;
  }

  .product-grid,
  .routine-steps {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .section,
  .routine-band,
  .notify-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-content,
  .routine-steps div,
  .notify-form {
    padding: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
