/* ==========================================================================
   SleepKraft — hero (v2, violet field)
   Palette + type tokens live in :root. Nothing else should hard-code colour.
   ========================================================================== */

:root {
  --violet:      #7A3E9D;
  --violet-lift: #8B49B2;
  --violet-mid:  #6A2E90;
  --aubergine:   #46215F;
  --deep:        #2E1240;
  --amber:       #E6A23C;
  --amber-dk:    #D38F28;
  --bone:        #FBF7F2;
  --ink:         #1E1922;

  --sans: "Nunito", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-fall: cubic-bezier(.16, .84, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 118px; }

body {
  margin: 0;
  background: #4A2168;
  font-family: var(--sans);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: #fff; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
a:hover { color: var(--amber); }
h1, h2 { margin: 0; font-weight: 900; }
p { margin: 0; }

/* ==========================================================================
   KEYFRAMES — the intro sequence
   ========================================================================== */
@keyframes veil     { 0%, 58% { opacity: 1 } 100% { opacity: 0; visibility: hidden } }
@keyframes breathe  { 0%, 100% { transform: scale(1);    opacity: .9 }  50% { transform: scale(1.06); opacity: .55 } }
@keyframes ring     { 0% { transform: scale(.82); opacity: 0 } 40% { opacity: .5 } 100% { transform: scale(1.5); opacity: 0 } }
@keyframes fall     { 0% { opacity: 0; transform: translateY(-26px) scale(.985); filter: blur(6px) } 100% { opacity: 1; transform: none; filter: blur(0) } }
@keyframes rise     { 0% { opacity: 0; transform: translateY(38px) scale(.97) } 100% { opacity: 1; transform: none } }
@keyframes soft     { 0% { opacity: 0; transform: translateY(14px) } 100% { opacity: 1; transform: none } }
@keyframes panelIn  { 0% { opacity: 0; transform: scale(.988) } 100% { opacity: 1; transform: none } }
@keyframes float    { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-16px) rotate(-.35deg) } }
@keyframes bob      { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(7px) } }
@keyframes pulse    { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.34) } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0) } }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.20), 0 0 22px 2px rgba(230,162,60,.16), 0 0 46px 6px rgba(160,96,208,.14) }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,.34), 0 0 30px 4px rgba(230,162,60,.30), 0 0 64px 12px rgba(160,96,208,.26) }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.veil {
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(120% 100% at 50% 42%, var(--violet-mid) 0%, #4A2168 46%, var(--deep) 100%);
  animation: veil 1.9s cubic-bezier(.4, 0, .2, 1) forwards;
}
.veil__mark { position: relative; display: flex; align-items: center; justify-content: center; }
.veil__ring {
  position: absolute; width: 132px; height: 132px; border-radius: 100px;
  border: 1px solid rgba(230, 162, 60, .5); animation: ring 2.6s ease-out infinite;
}
.veil__ring--delayed { border-color: rgba(255, 255, 255, .3); animation-delay: .7s; }
.veil__disc {
  width: 108px; height: 108px; border-radius: 100px; background: rgba(251, 247, 242, .96);
  display: flex; align-items: center; justify-content: center; animation: breathe 2.8s ease-in-out infinite;
}
.veil__disc img { width: 62px; height: auto; }
.veil__label {
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); animation: breathe 2.8s ease-in-out infinite;
}

/* ==========================================================================
   FRAME / PANEL
   ========================================================================== */
.stage {
  height: 100svh; min-height: 760px; overflow: hidden; max-width: 100%; display: flex;
  padding: clamp(10px, 1.6vw, 22px);
  background: radial-gradient(120% 95% at 82% 18%, #8C4CB4 0%, var(--violet-mid) 42%, #4A2168 100%);
}
.frame {
  flex: 1; min-width: 0; min-height: 0; display: flex;
  background: var(--bone); border-radius: clamp(30px, 3.8vw, 56px); padding: clamp(10px, 1.3vw, 18px);
  animation: panelIn 1.1s var(--ease) .75s both;
}
.panel {
  position: relative; overflow: hidden; border-radius: clamp(24px, 3.4vw, 50px);
  background: radial-gradient(110% 100% at 78% 12%, var(--violet-lift) 0%, var(--violet-mid) 46%, var(--aubergine) 100%);
  padding: clamp(16px, 2.2vh, 32px) clamp(22px, 3.2vw, 54px) clamp(30px, 4.2vh, 52px);
  flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column;
}

/* notched tabs */
.tab { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; background: var(--bone); z-index: 6; }
.tab--logo   { top: 0; border-radius: 0 0 30px 30px; padding: 10px clamp(26px, 3vw, 46px) 14px; animation: soft 1s var(--ease) 1.9s both; }
.tab--logo img { height: clamp(20px, 1.8vw, 28px); width: auto; }
.tab--scroll { bottom: 0; border-radius: 24px 24px 0 0; padding: 9px 26px 5px; animation: soft 1s ease 2.3s both; }
.scroll-btn {
  width: 40px; height: 40px; border-radius: 100px; background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.scroll-btn:hover { background: var(--amber); color: var(--ink); }
.scroll-btn svg { animation: bob 2.4s ease-in-out infinite; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: relative; z-index: 7; min-height: 52px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(16px, 2vw, 38px);
  animation: soft 1s var(--ease) 2.05s both;
}
.nav__pill {
  background: var(--bone); color: var(--violet); font-weight: 700;
  font-size: clamp(13px, 1.02vw, 15px); padding: 10px 22px; border-radius: 100px; white-space: nowrap;
}
.nav__pill:hover { background: #fff; color: var(--violet); }
.nav__link {
  font-weight: 600; font-size: clamp(13px, 1.02vw, 15px); color: rgba(255, 255, 255, .86);
  padding: 10px 0; white-space: nowrap;
}
.nav__spacer { flex: 1 1 auto; min-width: clamp(180px, 22vw, 300px); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 100px; color: #fff;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .26);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.contact {
  display: flex; align-items: center; gap: 12px; background: var(--bone); color: var(--violet);
  font-weight: 800; font-size: clamp(13px, 1.02vw, 15px); padding: 6px 6px 6px 20px;
  border-radius: 100px; white-space: nowrap;
}
.contact:hover { background: #fff; color: var(--violet); }
.contact__dot {
  width: 32px; height: 32px; border-radius: 100px; background: var(--amber); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; z-index: 4; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(4px, 1.1vh, 20px); margin-top: clamp(4px, .9vh, 14px);
}

.wordmark {
  display: flex; align-items: baseline; justify-content: center;
  gap: clamp(4px, 1.2vw, 18px); line-height: .9; user-select: none;
}
.wordmark__big   { font-size: max(38px, min(10.2vw, 15vh)); font-weight: 900; letter-spacing: -.05em; color: var(--bone); }
.wordmark__small {
  font-size: max(14px, min(2.7vw, 4.4vh)); font-weight: 600; letter-spacing: -.02em;
  color: rgba(251, 247, 242, .92); align-self: flex-start; margin-top: clamp(6px, 1.4vw, 22px);
}
.w1 { animation: fall 1.25s var(--ease-fall) 1.05s both; }
.w2 { animation: fall 1.25s var(--ease-fall) 1.25s both; }
.w3 { animation: fall 1.25s var(--ease-fall) 1.45s both; }

.hero__row {
  position: relative; margin-top: 0;
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: clamp(16px, 2.6vw, 52px) clamp(20px, 3vw, 56px); padding-bottom: clamp(10px, 1.6vh, 30px);
}
.col { min-width: 0; position: relative; }
.col--copy    { flex: 1 1 min(100%, 300px); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(10px, 1.8vh, 24px); z-index: 3; }
.col--product { flex: 1 1 min(100%, 340px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 0; z-index: 2; }
.col--aside   { flex: 1 1 min(100%, 320px); display: flex; flex-direction: column; justify-content: flex-end; z-index: 3; }

.copy { display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 24px); }
.lede { font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.65; color: rgba(255, 255, 255, .9);  max-width: 32ch; text-wrap: pretty; animation: soft 1.1s var(--ease) 1.6s both; }
.meta { font-size: clamp(13.5px, 1vw, 15px); line-height: 1.65; color: rgba(255, 255, 255, .66); max-width: 32ch; text-wrap: pretty; animation: soft 1.1s var(--ease) 1.75s both; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; animation: soft 1.1s var(--ease) 1.9s both; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 100px;
  font-weight: 800; font-size: clamp(14px, 1.1vw, 16px); padding: clamp(13px, 1.8vh, 17px) clamp(24px, 2.4vw, 30px);
  white-space: nowrap; border: 0; cursor: pointer;
}
.btn--bone  { background: var(--bone); color: var(--violet); }
.btn--bone:hover { background: #fff; color: #5B2B7A; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-dk); color: var(--ink); }
.btn--sm { font-size: 13.5px; padding: 13px 20px; }

.social { display: flex; gap: 10px; margin-top: clamp(8px, 1.4vw, 20px); animation: soft 1.1s var(--ease) 2.15s both; }
.social a {
  width: 36px; height: 36px; border-radius: 100px; background: var(--bone); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--amber); color: var(--ink); }

/* ---------- product ---------- */
.product { position: relative; width: 100%; max-width: 560px; }
.product__shadow {
  position: absolute; left: 6%; right: 6%; bottom: 4%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(35, 14, 52, .55) 0%, rgba(35, 14, 52, 0) 70%);
  filter: blur(6px);
}
.product__img {
  position: relative; width: 100%; height: auto; max-height: 26vh; object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(30, 12, 46, .42));
  animation: rise 1.4s var(--ease) 1.25s both, float 7s ease-in-out 2.5s infinite;
}
.anchor { position: absolute; top: 38%; left: 30%; width: 0; height: 0; z-index: 5; }

.hotspot {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 100px;
  background: rgba(251, 247, 242, .94); border: 0; color: var(--violet);
  font-family: var(--sans); font-size: 17px; font-weight: 800; line-height: 1; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(24, 10, 38, .28);
  transition: background .35s ease, color .35s ease, transform .35s var(--ease);
  animation: rise .9s ease-out 2.1s both, pulse 2.8s ease-out 3s infinite;
}
.hotspot:hover { background: var(--amber); color: var(--ink); transform: scale(1.1); }

.tip {
  position: absolute; bottom: 22px; left: 0;
  width: min(238px, 52vw); margin-left: calc(min(238px, 52vw) / -2);
  transform-origin: 50% 100%;
  transition: opacity .5s ease, transform .5s var(--ease);
  opacity: 0; transform: translateY(8px) scale(.94); pointer-events: none;
}
.tip.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.tip__body {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  background: rgba(46, 18, 64, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .94);
  animation: glow 4.6s ease-in-out 2.6s infinite;
}
.tip__body strong {
  display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
}
.tip__close {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 100px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); font-size: 12px; line-height: 1; padding: 0;
  transition: background .3s ease, color .3s ease;
}
.tip__close:hover { background: var(--amber); color: var(--ink); }

.since { margin-top: 12px; font-size: 12.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .5); animation: soft 1.1s ease 2.25s both; }

/* ---------- aside: firmness + showroom card ---------- */
.aside { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 18px); width: 100%; animation: soft 1.15s var(--ease) 2s both; }
.firmness { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.firmness__label { font-size: clamp(13.5px, 1.05vw, 15px); font-weight: 600; color: rgba(255, 255, 255, .86); }
.firmness__dials { display: flex; gap: 10px; }
.dial {
  width: 42px; height: 42px; border-radius: 100px; background: none; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .9);
  font-family: var(--sans); font-size: 12px; font-weight: 800;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.dial:hover { border-color: var(--amber); color: var(--amber); }
.dial.is-active { border-color: var(--amber); color: var(--amber); background: rgba(230, 162, 60, .18); }

.card { background: var(--bone); border-radius: 26px; padding: clamp(18px, 2.4vh, 28px) clamp(20px, 2.6vw, 30px); color: var(--ink); margin-left: auto; width: 100%; max-width: 380px; }
.card__body { display: flex; gap: 18px; align-items: flex-start; }
.card__text { flex: 1 1 auto; min-width: 0; }
.card__title { font-size: clamp(16px, 1.25vw, 19px); font-weight: 800; color: var(--violet); letter-spacing: -.01em; }
.card__text p { margin: 7px 0 14px; font-size: 13px; line-height: 1.5; color: rgba(30, 25, 34, .7); }
.card__slot {
  position: relative; width: 88px; flex-shrink: 0; align-self: stretch; min-height: 108px;
  border-radius: 18px; overflow: hidden; background: #F3ECE3;
  display: flex; align-items: flex-end; justify-content: center;
}
.card__slot img { width: 128%; max-width: none; height: auto; object-fit: contain; object-position: bottom; }


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; scroll-padding-top: 0; }
  .veil { display: none; }
}


/* ==========================================================================
   SHARED SECTION FURNITURE (light sections below the hero)
   ========================================================================== */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--violet);
}
.kicker span { width: 22px; height: 2px; background: var(--amber); }

.h2 {
  margin: 18px 0 0; font-size: clamp(32px, 3.6vw, 54px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.04; color: #3B2450; max-width: 16ch; text-wrap: pretty;
}
.h2--sm { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }

.section-lede {
  margin: 20px 0 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7;
  color: rgba(30, 25, 34, .66); max-width: 42ch; text-wrap: pretty;
}

.btn--violet { background: var(--violet); color: #fff; margin-top: 30px; font-size: 15px; padding: 15px 26px; }
.btn--violet:hover { background: #5B2B7A; color: #fff; }
.btn--soft { background: #F5EFE6; color: #3B2450; font-size: 15px; padding: 16px 26px; }
.btn--soft:hover { background: #F1E9F5; color: var(--violet); }

/* ---------- what's inside ---------- */
.inside { background: var(--bone); color: var(--ink); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.inside__wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(36px, 5vw, 80px); }
.inside__intro { flex: 1 1 min(100%, 340px); min-width: 0; position: sticky; top: 118px; }

.layers { flex: 1 1 min(100%, 420px); min-width: 0; display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.layer {
  display: flex; align-items: center; gap: 20px; background: #fff;
  border: 1px solid rgba(59, 36, 80, .08); border-radius: 20px; padding: 20px 24px;
}
.layer--hi { background: #F1E9F5; border-color: rgba(122, 62, 157, .18); }
.layer__n { flex-shrink: 0; width: 28px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--amber); }
.layer--hi .layer__n { color: var(--violet); }
.layer h3 { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 800; color: #3B2450; }
.layer p  { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(30, 25, 34, .62); }

/* ---------- the range ---------- */
.range { background: #F5EFE6; color: var(--ink); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.range__wrap { max-width: 1240px; margin: 0 auto; }
.range__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.quiz-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--violet); font-weight: 800; font-size: 15px;
  border-bottom: 2px solid rgba(122, 62, 157, .3); padding-bottom: 3px;
}
.quiz-link:hover { color: #3B2450; border-bottom-color: var(--amber); }

.range__grid { margin-top: clamp(34px, 4vw, 54px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2vw, 26px); }
.range__card {
  min-width: 0; position: relative;
  display: flex; flex-direction: column; gap: 18px;
  background: #fff; border: 1px solid rgba(59, 36, 80, .07); border-radius: 26px; padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.range__card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(59, 36, 80, .13); }
.range__card--hero { border: 1.5px solid var(--amber); }
.range__badge {
  position: absolute; top: 18px; right: 18px; background: var(--amber); color: var(--ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
}
.range__slot { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #F3ECE3; }
.range__slot img, .acc__slot img, .post__slot img { width: 100%; height: 100%; object-fit: cover; }
.range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.range__head h3 { margin: 0; font-family: var(--sans); font-size: 21px; font-weight: 900; letter-spacing: -.02em; color: #3B2450; }
.range__feel { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.range__copy { font-size: 14px; line-height: 1.6; color: rgba(30, 25, 34, .66); }
.range__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #F5EFE6; color: #3B2450; font-weight: 800; font-size: 14px; padding: 14px 20px; border-radius: 100px;
}
.range__cta:hover { background: var(--amber); color: var(--ink); }
.range__cta--amber { background: var(--amber); color: var(--ink); }
.range__cta--amber:hover { background: var(--amber-dk); color: var(--ink); }

/* ---------- sleep advisor ---------- */
.advisor { background: var(--bone); color: var(--ink); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.advisor__wrap {
  max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; overflow: hidden;
  background: #fff; border: 1px solid rgba(59, 36, 80, .08); border-radius: clamp(26px, 3vw, 40px);
}
.advisor__copy { flex: 1 1 min(100%, 360px); min-width: 0; padding: clamp(32px, 4vw, 56px); }
.advisor__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.stats { display: flex; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid rgba(59, 36, 80, .1); }
.stats dt { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--violet); }
.stats dd { margin: 2px 0 0; font-size: 12.5px; color: rgba(30, 25, 34, .6); }

.advisor__figure {
  position: relative; flex: 1 1 min(100%, 320px); min-width: 0; min-height: 400px; overflow: hidden;
  background: #F3ECE3;
}
.advisor__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.advisor__figure img {
  position: relative; width: 100%; height: auto; max-height: 100%;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 24px 40px rgba(24, 10, 38, .42));
}



/* ==========================================================================
   ACCESSORIES · REVIEWS · ADVICE · QUIZ · FOOTER
   ========================================================================== */
.section__wrap { max-width: 1240px; margin: 0 auto; }
.h2--wide   { max-width: 18ch; }
.h2--light  { color: var(--bone); }
.h2--center { max-width: 18ch; margin-inline: auto; }
.kicker--amber { color: var(--amber); }

/* ---------- accessories ---------- */
.accessories { background: #F5EFE6; color: var(--ink); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.acc__grid { margin-top: clamp(34px, 4vw, 54px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.acc {
  min-width: 0; display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid rgba(59, 36, 80, .07); border-radius: 24px; padding: 22px;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.acc:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(59, 36, 80, .12); }
.acc__slot { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #F3ECE3; }
.acc h3 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 800; color: #3B2450; }
.acc p  { margin: -6px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(30, 25, 34, .62); }
.acc a  { margin-top: auto; font-size: 13.5px; font-weight: 800; color: var(--violet); }
.acc a:hover { color: var(--amber); }

/* ---------- reviews ---------- */
.reviews { background: #3B2450; color: #fff; padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.reviews__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.score { display: flex; align-items: center; gap: 14px; }
.score__n { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--amber); }
.score__meta { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }

.reviews__grid { margin-top: clamp(34px, 4vw, 54px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2vw, 26px); }
.review {
  min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 28px;
}
.review__stars { font-size: 13px; letter-spacing: .2em; color: var(--amber); }
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.review figcaption { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 100px; background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff;
}
.review figcaption strong { display: block; font-size: 13.5px; font-weight: 700; }
.review figcaption small  { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- sleep advice ---------- */
.advice { background: var(--bone); color: var(--ink); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 56px); }
.advice__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.advice__grid { margin-top: clamp(34px, 4vw, 54px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2vw, 26px); }
.post {
  min-width: 0; color: var(--ink);
  display: flex; flex-direction: column; gap: 16px; transition: transform .4s var(--ease);
}
.post:hover { transform: translateY(-6px); color: var(--ink); }
.post__slot { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #F3ECE3; }
.post__tag { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.post h3 { margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: #3B2450; }
.post p  { margin: -6px 0 0; font-size: 14px; line-height: 1.6; color: rgba(30, 25, 34, .62); }

/* ---------- quiz band ---------- */

/* ==========================================================================
   STICKY FROSTED BAR — floating capsule, logo dead centre
   ========================================================================== */
.sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none;
  padding: clamp(10px, 1.4vw, 18px) clamp(12px, 2.4vw, 34px);
  transform: translateY(-130%); opacity: 0;
  transition: transform .6s var(--ease), opacity .45s ease;
}
.sticky.is-on { transform: translateY(0); opacity: 1; }

.sticky__bar {
  pointer-events: auto; max-width: 1180px; margin: 0 auto;
  padding: 8px 10px; border-radius: 100px;
  background: rgba(58, 26, 80, .5);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 16px 40px rgba(24, 10, 38, .3);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}

.sticky__nav { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 6px clamp(12px, 1.7vw, 28px); }
.sticky__nav--left { padding-left: 14px; }
.sticky__nav--right { justify-content: flex-end; gap: 8px clamp(10px, 1.6vw, 22px); }
.sticky__nav a { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .84); white-space: nowrap; }
.sticky__nav a:hover { color: var(--amber); }

.sticky__logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 1.4vw, 20px); }
.sticky__logo img { height: 21px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

.sticky__cta {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--bone); color: var(--violet); font-size: 13.5px; font-weight: 800;
  padding: 6px 6px 6px 18px; border-radius: 100px;
}
.sticky__cta:hover { background: #fff; color: var(--violet); }
.sticky__cta span {
  width: 28px; height: 28px; border-radius: 100px; background: var(--amber); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .sticky__bar { grid-template-columns: auto 1fr; padding: 8px 10px; border-radius: 26px; }
  .sticky__nav--left { display: none; }
  .sticky__logo { justify-content: flex-start; padding-left: 6px; }
}
@media (max-width: 560px) {
  .sticky__nav--right a:not(.sticky__cta) { display: none; }
}


/* ==========================================================================
   FOOTER — rounded panel, notched back-to-top, ghosted wordmark
   ========================================================================== */
.footer { background: var(--bone); padding: 0 clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px); }
.footer__panel {
  position: relative; overflow: hidden; border-radius: clamp(30px, 3.8vw, 56px);
  background: radial-gradient(120% 130% at 20% 0%, #5A2A7E 0%, #3B2450 45%, var(--deep) 100%);
  color: rgba(255, 255, 255, .72);
  padding: clamp(64px, 6.5vw, 104px) clamp(24px, 4vw, 64px) clamp(20px, 2vw, 28px);
}
.footer__notch {
  position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; width: max-content;
  background: var(--bone); border-radius: 0 0 24px 24px; padding: 6px 26px 10px;
}
.footer__notch a {
  width: 40px; height: 40px; border-radius: 100px; background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.footer__notch a:hover { background: var(--amber); color: var(--ink); }
.footer__wrap { max-width: 1180px; margin: 0 auto; }

.footer__cta {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px clamp(30px, 4vw, 60px);
  padding-bottom: clamp(44px, 5vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer__cta h2 {
  margin: 0; font-family: var(--sans); font-size: clamp(28px, 3.4vw, 50px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.06; color: var(--bone); max-width: 15ch; text-wrap: pretty;
}
.footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--sm2 { font-size: 15px; padding: 16px 26px; }

.footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start;
  gap: clamp(28px, 3vw, 46px); padding: clamp(40px, 4.4vw, 64px) 0;
}
.footer__brand  { min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.footer__letter { min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.footer__brand img { height: 24px; width: auto; align-self: flex-start; object-fit: contain; filter: brightness(0) invert(1); }
.footer__brand p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .58); max-width: 30ch; text-wrap: pretty; }
.footer__line { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.footer__line svg { flex-shrink: 0; }
.footer__social { display: flex; gap: 9px; margin-top: 6px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 100px; color: #fff;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--amber); color: var(--ink); }

.footer__col { min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.footer__col h3, .footer__letter h3 {
  margin: 0 0 3px; font-family: var(--sans); font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
}
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, .66); }
.footer__col a:hover { color: var(--amber); }
.footer__letter p { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .58); max-width: 30ch; }

.subscribe {
  display: flex; gap: 8px; max-width: 260px; margin-top: 2px; padding: 4px 4px 4px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
}
.subscribe input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: #fff; font-family: var(--sans); font-size: 13px;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .45); }
.subscribe button {
  flex-shrink: 0; border: 0; border-radius: 100px; cursor: pointer; padding: 9px 16px;
  background: var(--amber); color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 800;
}
.subscribe button:hover { background: var(--amber-dk); }

.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 22px 0 clamp(18px, 3vw, 34px); border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 12.5px; color: rgba(255, 255, 255, .42);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal a { color: rgba(255, 255, 255, .42); }
.footer__legal a:hover { color: var(--amber); }

.footer__mark {
  display: flex; align-items: baseline; justify-content: center; gap: clamp(4px, 1vw, 14px);
  line-height: .78; margin-bottom: -.16em; user-select: none; opacity: .1; color: var(--bone);
}
.footer__mark-big { font-size: clamp(52px, 12vw, 190px); font-weight: 900; letter-spacing: -.05em; }
.footer__mark-sm  { font-size: clamp(16px, 3.2vw, 50px); font-weight: 600; letter-spacing: -.02em; }


.btn--ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-weight: 800; }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
