:root {
  --ink: #211827;
  --muted: #6e6774;
  --paper: #fffdf9;
  --lavender-wash: #f3edf6;
  --lavender: #aa8eb5;
  --purple: #765a85;
  --plum: #251a2a;
  --citrus: #f0ad68;
  --line: #ded4e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

video {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(37, 26, 42, 0.54);
  color: #fffdf9;
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 11px;
  font-weight: 800;
}

.header-cta {
  justify-self: end;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px clamp(18px, 6vw, 90px) 72px;
  background: var(--plum);
  color: #fffdf9;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center 38%;
  filter: blur(1.2px);
  transform: scale(1.006);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(37, 26, 42, 0.86), rgba(37, 26, 42, 0.2) 68%),
    linear-gradient(0deg, rgba(37, 26, 42, 0.76), transparent 58%);
}

.hero-claim-mask {
  position: absolute;
  top: 69%;
  left: 50%;
  z-index: 1;
  width: clamp(210px, 25vw, 360px);
  height: clamp(76px, 8vw, 118px);
  transform: translate(-50%, -50%) rotate(-5deg);
  border-radius: 48%;
  background: linear-gradient(
    112deg,
    transparent 4%,
    rgba(255, 255, 255, 0.05) 26%,
    rgba(238, 226, 242, 0.22) 52%,
    rgba(255, 255, 255, 0.08) 72%,
    transparent 96%
  );
  box-shadow: none;
  backdrop-filter: blur(5px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-content,
.hero-boundary {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--citrus);
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 7.3vw, 6.6rem);
  line-height: 0.92;
}

.hero-subcopy {
  max-width: 520px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
}

.hero-features {
  margin-bottom: 28px;
  color: rgba(255, 253, 249, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: var(--plum);
  color: #fffdf9;
  font-size: 11px;
  font-weight: 900;
}

.hero .primary-button {
  border-color: var(--citrus);
  background: var(--citrus);
  color: var(--plum);
}

.hero-boundary {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 28px;
  margin: 0;
  font-size: 8px;
  font-weight: 800;
}

.routine-module {
  padding: 68px clamp(18px, 6vw, 90px) 72px;
  background:
    radial-gradient(circle at 15% 10%, rgba(170, 142, 181, 0.18), transparent 35%),
    var(--paper);
}

.routine-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 24px;
}

.routine-header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: 0.98;
}

.routine-header > p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.35;
}

.routine-module > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.routine-tabs {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--lavender-wash);
}

.routine-tabs label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

#routine-moments:checked ~ .routine-tabs label[for="routine-moments"],
#routine-clarity:checked ~ .routine-tabs label[for="routine-clarity"],
#routine-morning:checked ~ .routine-tabs label[for="routine-morning"] {
  background: var(--plum);
  color: #fffdf9;
}

.routine-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  min-height: 490px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--lavender-wash);
  box-shadow: 0 22px 70px rgba(50, 34, 58, 0.1);
}

.routine-product {
  position: relative;
  min-width: 0;
  min-height: 490px;
  margin: 0;
  overflow: hidden;
  background: var(--plum);
}

.routine-product::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(37, 26, 42, 0.72), transparent 58%);
  content: "";
}

.routine-product video {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  filter: blur(1.8px);
  transform: scale(1.006);
}

.routine-product-mask {
  position: absolute;
  top: 66%;
  left: 50%;
  z-index: 2;
  width: 70%;
  height: 94px;
  border-radius: 48%;
  background: linear-gradient(
    118deg,
    transparent 3%,
    rgba(255, 255, 255, 0.05) 24%,
    rgba(229, 215, 236, 0.23) 52%,
    rgba(255, 255, 255, 0.07) 74%,
    transparent 97%
  );
  box-shadow: none;
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) rotate(-4deg);
  opacity: 0.68;
}

.prototype-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.routine-product figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  display: grid;
  gap: 3px;
  color: #fffdf9;
}

.routine-product figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.routine-product figcaption span {
  color: var(--citrus);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.routine-panels {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper);
}

.routine-panel {
  display: none;
  flex: 1;
}

#routine-moments:checked ~ .routine-stage .moments-panel,
#routine-clarity:checked ~ .routine-stage .clarity-panel,
#routine-morning:checked ~ .routine-stage .morning-panel {
  display: flex;
}

.moment-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.moment-cards article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--lavender-wash);
}

.moment-cards video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.moment-cards p {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 3px;
  margin: 0;
  padding: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.15;
}

.moment-cards strong {
  color: var(--purple);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.clarity-panel {
  flex-direction: column;
  justify-content: center;
}

.panel-kicker {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.clarity-chips {
  display: grid;
  gap: 8px;
}

.clarity-chips strong {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--lavender-wash);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.panel-copy {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.morning-panel {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.morning-panel h3 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.02;
}

.morning-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.morning-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.morning-visuals video {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 9px;
  object-fit: cover;
}

.routine-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.routine-actions p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

@media (hover: hover) {
  .primary-button,
  .header-cta,
  .routine-tabs label {
    transition:
      background-color 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .primary-button:hover,
  .primary-button:focus-visible,
  .header-cta:hover,
  .header-cta:focus-visible {
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .routine-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .routine-stage {
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  }

  .moment-cards {
    grid-template-columns: 1fr;
  }

  .moment-cards article {
    display: grid;
    grid-template-columns: 100px 1fr;
  }

  .moment-cards video {
    height: 100%;
    aspect-ratio: 1;
  }

  .morning-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 76vh;
    padding-top: 104px;
    padding-bottom: 86px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(37, 26, 42, 0.8), rgba(37, 26, 42, 0.22)),
      linear-gradient(0deg, rgba(37, 26, 42, 0.84), transparent 64%);
  }

  .hero-claim-mask {
    top: 67%;
    width: 210px;
    height: 72px;
  }

  h1 {
    font-size: 3.65rem;
  }

  .hero-subcopy {
    font-size: 19px;
  }

  .hero-boundary {
    right: 18px;
    left: 18px;
    bottom: 22px;
  }

  .routine-module {
    padding: 48px 18px 54px;
  }

  .routine-header h2 {
    font-size: 2.8rem;
  }

  .routine-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .routine-tabs label {
    justify-content: center;
    padding: 0 7px;
  }

  .routine-stage {
    grid-template-columns: 1fr;
  }

  .routine-product,
  .routine-product video {
    min-height: 330px;
  }

  .routine-panels {
    padding: 16px;
  }

  .moment-cards article {
    grid-template-columns: 82px 1fr;
  }

  .clarity-chips strong {
    padding: 14px;
    font-size: 20px;
  }

  .routine-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .routine-actions p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
