/* ==========================================================================
   solay — styles
   Text rules (brand board): no bold except the brand name, lowercase product
   copy, navigation is the only thing that's uppercased.
   ========================================================================== */

:root {
  /* site ui */
  --black: #000000;
  --ink: #111111;
  --ink-soft: #4a4744;
  --white: #ffffff;
  --grey: #e8e8ea;      /* product backdrop */
  --grey-2: #f4f4f5;
  --line: #e0e0e0;
  --peach: #e5ab80;     /* add to cart */
  --peach-2: #e2b08c;   /* outlines, accents */
  --red-dark: #963327;  /* sale prices */
  --red: #c84839;       /* stickers, cart count */
  --blue: #2437a2;
  --dusty: #d8aba5;     /* hero pink */

  /* packaging */
  --butter: #eed88a;
  --mustard: #d0a245;
  --golden: #ddbc6e;
  --blush: #e2c4b7;
  --taupe: #a19589;
  --sage: #b9c8b9;
  --pink: #ed92be;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --container: 1368px;
  --gutter: 24px;
  --header-h: 64px;
  --announce-h: 36px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4, h5, h6, th { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 400; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--black); color: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 28px;
}
.eyebrow { font-size: 14px; letter-spacing: .02em; color: var(--ink-soft); }
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 28px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #2a2a2a; }
.btn--peach { background: var(--peach); color: var(--black); }
.btn--peach:hover { background: #dc9d6f; }
.btn--outline { background: var(--white); color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--quick { width: 100%; min-height: 38px; font-size: 14px; background: var(--white); border-color: var(--peach-2); }
.btn--quick:hover { background: var(--peach); border-color: var(--peach); }
.btn--small { min-height: 34px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: 18px; }
.btn[disabled] { opacity: .5; cursor: default; }

.link-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- announcement bar ---------- */
.topline { height: 3px; background: var(--blue); }
.announce {
  position: relative;
  background: var(--black);
  color: var(--white);
  height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.announce__track { position: relative; width: min(680px, calc(100% - 96px)); height: 100%; overflow: hidden; }
.announce__msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.announce__msg a { text-decoration: underline; text-underline-offset: 3px; }
.announce__msg.is-active { opacity: 1; transform: none; }
.announce__arrow { position: absolute; top: 0; bottom: 0; width: 44px; display: grid; place-items: center; color: var(--white); }
.announce__arrow svg { width: 16px; height: 16px; }
.announce__arrow--prev { left: 6px; }
.announce__arrow--next { right: 6px; }

/* ---------- header ---------- */
.site-header-slot { min-height: calc(var(--announce-h) + var(--header-h) + 4px); }
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.header__logo { font-size: 38px; padding: 0 36px; display: block; color: var(--black); }
.header__logo .wordmark { display: block; transform: translateY(-2px); }
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav--left { justify-content: flex-end; }
.nav--right { justify-content: flex-start; }
.nav__item { position: static; height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 9px;
  font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 16px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); }
.nav__link--sale { color: var(--red); }
.nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }
.header__icons { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--black); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: var(--white);
  font-size: 11px; line-height: 18px; text-align: center;
  border: 1.5px solid var(--white);
}
.header__mobile { display: none; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--black);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
.mega__inner { max-width: 1180px; margin: 0 auto; padding: 32px var(--gutter) 36px; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 48px; }
.mega__col h4 { font-size: 13px; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 14px; font-weight: 400; }
.mega__col li + li { margin-top: 10px; }
.mega__col a { font-size: 16px; }
.mega__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__col .code { font-family: var(--serif); display: inline-block; min-width: 28px; }
.mega__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-card__img { aspect-ratio: 1; background: var(--grey); display: grid; place-items: center; overflow: hidden; }
.mega-card__img svg { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.mega-card:hover .mega-card__img svg { transform: scale(1.04); }
.mega-card__label { display: block; font-size: 14px; margin-top: 10px; }

/* ---------- drawers / modals ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%);
  background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), visibility 0s .4s;
  visibility: hidden;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); width: min(380px, 88%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 22px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.close-btn { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -10px; }
.close-btn svg { width: 20px; height: 20px; }

/* cart */
.ship-meter { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.ship-meter__msg { font-size: 14px; margin-bottom: 10px; }
.ship-meter__bar { position: relative; height: 6px; background: var(--grey); border-radius: 3px; overflow: hidden; }
.ship-meter__fill { position: absolute; inset: 0 auto 0 0; background: var(--peach); border-radius: 3px; transition: width .5s var(--ease); }
.ship-meter__marks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 88px; height: 88px; background: var(--grey); display: block; overflow: hidden; }
.cart-line__img svg, .cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-size: 15px; line-height: 1.3; display: block; }
.cart-line__meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.cart-line__price { text-align: right; font-size: 15px; white-space: nowrap; }
.cart-line__price s { display: block; color: var(--ink-soft); font-size: 13px; }
.cart-line__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-line__remove { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cart-line--gift .cart-line__price { color: var(--red-dark); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 34px; }
.qty button { width: 32px; height: 100%; display: grid; place-items: center; font-size: 16px; }
.qty button:hover { background: var(--grey-2); }
.qty span { min-width: 28px; text-align: center; font-size: 14px; }
.cart-empty { padding: 56px 0; text-align: center; }
.cart-empty p { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; }
.cart-upsell { padding: 18px 0 22px; }
.cart-upsell h3 { font-size: 14px; color: var(--ink-soft); font-weight: 400; margin-bottom: 12px; }
.upsell { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--grey-2); padding: 10px; }
.upsell__img { width: 64px; height: 64px; background: var(--grey); }
.upsell__img svg { width: 100%; height: 100%; }
.upsell__name { font-size: 14px; line-height: 1.3; }
.upsell__price { font-size: 13px; color: var(--red-dark); }
.upsell__price s { color: var(--ink-soft); margin-left: 4px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 4px; }
.cart-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.cart-savings { font-size: 13px; color: var(--red-dark); margin-bottom: 2px; }

/* mobile menu */
.mnav { padding: 8px 0 24px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; text-align: left; }
.mnav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.mnav__item.is-open .mnav__link svg { transform: rotate(180deg); }
.mnav__sub { display: none; padding: 0 0 14px 2px; }
.mnav__item.is-open .mnav__sub { display: block; }
.mnav__sub a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink-soft); }
.mnav__sale { color: var(--red); }
.mnav__extra { padding: 22px 0; display: grid; gap: 12px; font-size: 15px; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__panel {
  position: relative; background: var(--white); width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .3s, transform .35s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 10px; right: 14px; z-index: 2; }

.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick__img { background: var(--grey); aspect-ratio: 1; position: relative; }
.quick__img svg, .quick__img img { width: 100%; height: 100%; object-fit: cover; }
.quick__info { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.quick__name { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.quick .plan__row { font-size: 15px; padding: 12px 14px; }
.quick__more { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

.signup { display: grid; grid-template-columns: 1fr 1fr; width: min(820px, 100%); }
.signup__art { background: var(--dusty); position: relative; min-height: 420px; overflow: hidden; }
.signup__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.signup__body { padding: 52px 40px 36px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.signup__kicker { font-size: 15px; }
.signup__title { font-family: var(--serif); font-size: 44px; line-height: 1.05; }
.signup__copy { font-size: 15px; color: var(--ink-soft); }
.signup__no { font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; align-self: center; margin-top: 4px; }
.signup__fine { font-size: 11px; color: var(--ink-soft); }

.field { display: flex; flex-direction: column; gap: 10px; }
.field input[type="email"] {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--black); background: var(--white); border-radius: 0; font-size: 15px;
}
.field input::placeholder { color: #8a8784; }
.form-done { font-family: var(--serif); font-size: 22px; line-height: 1.3; }

/* search */
.search {
  position: fixed; left: 0; right: 0; top: 0; z-index: 105;
  background: var(--white); border-bottom: 1px solid var(--black);
  transform: translateY(-100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s;
}
.search.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.search__inner { max-width: 880px; margin: 0 auto; padding: 22px var(--gutter) 28px; }
.search__bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--black); }
.search__bar svg { width: 20px; height: 20px; flex: none; }
.search__bar input { flex: 1; height: 56px; border: 0; outline: 0; font-family: var(--serif); font-size: 26px; background: transparent; }
.search__hint { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.search__hint button { text-decoration: underline; text-underline-offset: 3px; margin: 0 4px; }
.search__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.search__result-img { aspect-ratio: 1; background: var(--grey); }
.search__result-img svg { width: 100%; height: 100%; }
.search__result-name { font-size: 14px; margin-top: 8px; line-height: 1.3; }
.search__result-price { font-size: 13px; color: var(--red-dark); }
.search__empty { font-size: 15px; color: var(--ink-soft); margin-top: 22px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 130;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--black); color: var(--white); padding: 12px 20px; font-size: 14px; max-width: calc(100% - 32px); text-align: center;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero__frame { position: relative; overflow: hidden; }
.hero__track { display: flex; transition: transform .7s var(--ease); }
.hero__slide {
  position: relative; flex: 0 0 100%;
  aspect-ratio: 1367 / 773; max-height: 780px; min-height: 460px;
  display: grid; grid-template-columns: 54% 46%; align-items: center;
  background: var(--slide-bg, var(--dusty));
  overflow: hidden;
}
.hero__art { position: relative; height: 100%; }
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy { position: relative; text-align: center; padding: 0 7% 0 2%; display: flex; flex-direction: column; align-items: center; }
.pill-label {
  display: inline-block; background: var(--white); color: var(--black);
  border-radius: 999px; padding: 7px 18px 8px; font-size: 17px; letter-spacing: .04em; margin-bottom: 22px;
}
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.3vw, 78px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero__sub { font-size: clamp(17px, 1.75vw, 25px); line-height: 1.45; max-width: 520px; margin-bottom: 30px; }
.hero__fine { position: absolute; left: 22px; bottom: 16px; font-size: 11px; color: rgba(0, 0, 0, .6); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; color: rgba(255, 255, 255, .85);
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: 4px; }
.hero__arrow--next { right: 4px; }
.dots { display: flex; justify-content: center; gap: 10px; padding: 18px 0 0; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; transition: background .2s, transform .2s; }
.dots button[aria-current="true"] { background: var(--black); }
.dots button:hover { transform: scale(1.25); }

/* ---------- sections ---------- */
.section { padding: 64px 0 0; }
.section--tight { padding-top: 48px; }
.section__cta { display: flex; justify-content: center; margin-top: 30px; }

/* product grid */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }

.card { display: flex; flex-direction: column; position: relative; }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--grey); overflow: hidden; }
.card__media .view { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card__media .view svg, .card__media .view img { width: 100%; height: 100%; object-fit: cover; }
.card__media .view--alt { opacity: 0; }
.card:hover .card__media .view--alt { opacity: 1; }
.card:hover .card__media .view--main { opacity: 0; }
.badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--black); color: var(--white);
  font-size: 13px; line-height: 1; padding: 6px 8px 7px; letter-spacing: .01em;
}
.badge--left { right: auto; left: 8px; }
.swatches { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 4px; }
.swatches span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.card__body { text-align: center; padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.card__name { font-size: 15px; line-height: 1.35; }
.card__name .code { font-family: var(--serif); }
.card__tag { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.stars { --sw: 86px; position: relative; display: inline-block; width: var(--sw); height: calc(var(--sw) * 16 / 86); flex: none; }
.stars svg { position: absolute; inset: 0; width: var(--sw); height: calc(var(--sw) * 16 / 86); }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 6px; font-size: 15px; }
.price__now { color: var(--red-dark); }
.price__comp { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.price__label { font-size: 13px; color: var(--ink); }

/* collections scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.scroller::-webkit-scrollbar { display: none; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; scroll-snap-align: start; background: var(--tile-bg, var(--grey)); }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.tile:hover svg { transform: scale(1.04); }
.tile__label { position: absolute; left: 10px; bottom: 16px; background: var(--white); padding: 7px 12px 8px; font-size: 14px; line-height: 1; }
.progress { position: relative; height: 4px; background: #e0e0e0; margin-top: 10px; overflow: hidden; }
.progress__thumb { position: absolute; top: 0; bottom: 0; left: 0; background: #959595; transition: width .2s; }

/* the code explainer */
.code-key { background: var(--blush); margin-top: 72px; padding: 76px 0 80px; }
.code-key__head { text-align: center; max-width: 640px; margin: 0 auto; }
.code-key__head p { font-size: 18px; color: var(--ink); margin-top: -10px; }
.code-key__demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; max-width: 980px; margin: 44px auto 0; }
.code-key__big { font-family: var(--serif); font-size: clamp(140px, 19vw, 260px); line-height: .8; letter-spacing: -0.03em; display: flex; }
.code-key__big span { position: relative; padding: 0 .02em; }
.code-key__big .k-letter { color: var(--black); }
.code-key__big .k-num { color: var(--black); }
.code-key__note { font-size: 17px; line-height: 1.5; }
.code-key__note--left { text-align: right; }
.code-key__note h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.code-key__note .arrow { display: inline-block; font-family: var(--serif); }
.code-key__steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.step-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--white); padding: 10px 20px 10px 10px; border-radius: 999px; font-size: 16px; transition: background .2s; }
.step-chip:hover { background: #fbf6f3; }
.step-chip b { width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--grey-2); padding: 36px 32px 38px; }
.pillar__icon { width: 52px; height: 52px; margin-bottom: 22px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.pillar p { font-size: 16px; color: var(--ink-soft); }

/* newsletter band */
.join { background: var(--peach); margin-top: 72px; }
.join__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.join__title { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.015em; }
.join__copy { font-size: 17px; margin-top: 12px; max-width: 460px; }
.join__form { display: flex; gap: 0; }
.join__form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--black); border-right: 0; background: var(--white); border-radius: 0; font-size: 15px; }
.join__form .btn { min-height: 52px; }
.join__fine { font-size: 12px; margin-top: 10px; color: rgba(0, 0, 0, .7); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--black); padding: 56px 0 0; margin-top: 0; }
.footer--spaced { margin-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__about p { font-size: 15px; color: var(--ink-soft); max-width: 300px; margin-top: 14px; }
.footer__about .wordmark { font-size: 30px; }
.footer h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer li a { font-size: 15px; color: var(--ink-soft); }
.footer li a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--black); }
.socials svg { width: 17px; height: 17px; }
.footer__big { font-family: var(--serif); font-weight: 700; letter-spacing: -0.035em; line-height: .9; padding-bottom: .04em; font-size: clamp(84px, 20vw, 310px); text-align: center; margin: 48px 0 0; white-space: nowrap; overflow-x: clip; color: var(--black); user-select: none; }
.footer__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding: 18px 0 24px; margin-top: 28px; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs svg { width: 10px; height: 10px; }

/* ---------- collection page ---------- */
.collection { padding-top: 26px; }
.collection__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; margin: 14px 0 6px; }
.collection__desc { font-size: 15px; color: var(--ink-soft); max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--black); }
.chip[aria-current="page"] { background: var(--black); border-color: var(--black); color: var(--white); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--line); background: var(--white); border-radius: 0; font-size: 14px; cursor: pointer; }
.select svg { position: absolute; right: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none; }
.promo-tile { position: relative; background: var(--dusty); display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; padding: 28px 22px 0; }
.promo-tile h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.promo-tile p { font-size: 15px; margin: 8px 0 14px; max-width: 280px; }
.promo-tile__art { position: relative; width: 100%; flex: 1; min-height: 220px; margin-top: 10px; }
.promo-tile__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.count-line { text-align: center; font-size: 14px; margin: 44px 0 0; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
.no-results p { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }

/* ---------- product page ---------- */
.pdp { padding-top: 24px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 16px 36px; align-items: start; }
.gallery { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 14px; }
.gallery__thumb { width: 60px; height: 60px; background: var(--grey); overflow: hidden; border: 1px solid transparent; padding: 0; transition: border-color .2s; }
.gallery__thumb[aria-current="true"] { border-color: var(--black); }
.gallery__thumb svg, .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main { position: relative; background: var(--grey); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gallery__main.is-zoomed { cursor: zoom-out; }
.gallery__main .stage { position: absolute; inset: 0; transition: transform .45s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__main.is-zoomed .stage { transform: scale(1.8); }
.gallery__main svg, .gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__heart { position: absolute; top: 14px; left: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.gallery__heart svg { width: 17px; height: 17px; }
.gallery__heart[aria-pressed="true"] svg path { fill: var(--red); stroke: var(--red); }
.gallery__zoom { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; pointer-events: none; }
.gallery__zoom svg { width: 24px; height: 24px; }
.gallery__main .badge { top: 14px; right: 14px; font-size: 15px; padding: 7px 9px 8px; }

.buy { display: flex; flex-direction: column; }
.buy .crumbs { text-transform: none; letter-spacing: 0; font-size: 14px; }
.buy .crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.benefit-pill { align-self: flex-start; display: inline-block; margin-top: 16px; padding: 5px 16px 6px; border-radius: 999px; font-size: 15px; letter-spacing: .06em; background: var(--pill-bg, #eae0c9); }
.buy__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -0.01em; margin: 12px 0 10px; }
.buy__title .code { letter-spacing: -0.02em; }
.buy__tagline { font-size: 16px; color: var(--ink-soft); margin: -2px 0 12px; }
.buy .rating { font-size: 15px; }
.buy .rating .stars { transform: scale(1.12); transform-origin: left center; margin-right: 10px; }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 14px; }
.buy__price .price__now { font-size: 22px; }
.buy__price .price__comp { font-size: 22px; }
.buy__price .price__label { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.tip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.tip svg { width: 17px; height: 17px; }
.tip__bubble { position: absolute; right: -10px; bottom: calc(100% + 8px); width: min(240px, 70vw); background: var(--black); color: var(--white); font-size: 13px; line-height: 1.4; padding: 10px 12px; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 5; }
.tip:hover .tip__bubble, .tip:focus .tip__bubble, .tip:focus-within .tip__bubble { opacity: 1; visibility: visible; }
.buy__sale { color: var(--red-dark); font-size: 15px; margin-top: 10px; }
.code-mini { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line); }
.code-mini div { padding: 10px 14px; font-size: 14px; line-height: 1.35; }
.code-mini div + div { border-left: 1px solid var(--line); }
.code-mini b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.code-mini span { color: var(--ink-soft); }

.shades { margin-top: 20px; }
.shades__label { font-size: 15px; margin-bottom: 10px; }
.shades__label span { color: var(--ink-soft); }
.shades__row { display: flex; gap: 10px; }
.shade { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.shade[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--black); }

.plans { margin-top: 20px; border: 1px solid var(--line); }
.plan { display: block; cursor: pointer; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan__row { display: flex; align-items: center; gap: 12px; padding: 14px 14px; font-size: 16px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8b8b8b; display: grid; place-items: center; flex: none; }
.plan__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--black); transform: scale(0); transition: transform .15s; }
.plan input:checked + .plan__row .plan__radio { border-color: var(--black); }
.plan input:checked + .plan__row .plan__radio::after { transform: scale(1); }
.plan input:checked + .plan__row { background: var(--grey-2); }
.plan input:focus-visible + .plan__row { outline: 2px solid var(--blue); outline-offset: -2px; }
.plan__name { flex: 1; }
.plan__price { color: var(--red-dark); white-space: nowrap; }
.plan__price s { color: var(--ink); margin-left: 6px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 6px 18px 20px 46px; font-size: 14px; line-height: 1.35; }
.perk { display: flex; gap: 10px; align-items: center; }
.perk svg { width: 28px; height: 28px; flex: none; }
.plan__freq { padding: 0 18px 18px 46px; display: none; }
.plan input:checked ~ .plan__freq { display: block; }
.plan__freq .select select { width: 100%; }

.atc { margin-top: 20px; }
.atc .btn { width: 100%; min-height: 46px; font-size: 15px; }
.gift { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--grey); padding: 10px 10px 10px 20px; margin-top: 12px; font-size: 15px; border: 1px solid #dcdcde; }
.gift__img { width: 64px; height: 64px; flex: none; background: var(--blush); }
.gift__img svg { width: 100%; height: 100%; }
.pay-later { font-size: 13px; margin-top: 14px; }
.bullets { margin-top: 16px; padding-left: 20px; list-style: disc; font-size: 16px; line-height: 1.5; }
.bullets li + li { margin-top: 8px; }
.bullets li::marker { font-size: 13px; }

.accordion { margin-top: 22px; border-top: 1px solid var(--black); }
.acc { border-bottom: 1px solid var(--black); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 18px; text-align: left; }
.acc__head svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.acc__head[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__head[aria-expanded="true"] + .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__content { padding: 0 0 20px; font-size: 15px; color: var(--ink-soft); }
.acc__content p + p { margin-top: 10px; }
.acc__content ol { list-style: decimal; padding-left: 20px; }
.acc__content ol li + li { margin-top: 6px; }
.ing { padding: 12px 0; border-top: 1px solid var(--line); }
.ing:first-child { border-top: 0; padding-top: 0; }
.ing__name { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.inci { margin-top: 12px; font-size: 13px; }
.made-without { display: flex; flex-wrap: wrap; gap: 8px; }
.made-without span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink); }

.fbt { border: 1px solid var(--line); padding: 18px 18px 20px; margin-top: 22px; }
.fbt h3 { font-size: 17px; font-weight: 400; margin-bottom: 14px; }
.fbt__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbt__item { width: 72px; height: 72px; background: var(--grey); border: 1px solid var(--line); display: block; }
.fbt__item svg { width: 100%; height: 100%; }
.fbt__plus { font-size: 18px; color: var(--ink-soft); }
.fbt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 15px; }
.fbt__total s { color: var(--ink-soft); margin-left: 6px; font-size: 14px; }
.fbt__total .now { color: var(--red-dark); }

.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px; display: none; align-items: center; gap: 12px; transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-atc.is-show { transform: none; }
.sticky-atc__info { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.sticky-atc__info span { color: var(--red-dark); }
.sticky-atc .btn { min-height: 42px; padding: 0 22px; }

.not-found { text-align: center; padding: 100px 0 40px; }
.not-found h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 14px; }
.not-found p { font-size: 17px; color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- about ---------- */
.about-hero { background: var(--blush); }
.about-hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; gap: 24px; }
.about-hero__copy { padding: 60px 0; }
.about-hero__copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 22px; }
.about-hero__copy p { font-size: 19px; max-width: 520px; }
.about-hero__art { position: relative; align-self: stretch; min-height: 380px; }
.about-hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 16px; }
.prose-lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; text-align: center; max-width: 860px; margin: 0 auto; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { border: 1px solid var(--line); padding: 28px 26px 30px; }
.step-card__num { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; margin-bottom: 18px; }
.step-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.step-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.step-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.step-card li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.step-card li span { color: var(--ink-soft); }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.gloss { padding: 20px 0; border-top: 1px solid var(--line); }
.gloss h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.gloss p { font-size: 15px; color: var(--ink-soft); }
.gloss__in { font-size: 13px; margin-top: 8px; }
.gloss__in a { text-decoration: underline; text-underline-offset: 3px; }
.faq { max-width: 820px; margin: 0 auto; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav__link { padding: 0 7px; font-size: 14px; }
  .header__logo { padding: 0 22px; font-size: 34px; }
  .pdp__grid { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 58px; }
  .nav, .header__icons--desktop { display: none; }
  .header__inner { grid-template-columns: 1fr auto 1fr; }
  .header__mobile { display: flex; align-items: center; gap: 2px; }
  .header__mobile--right { justify-content: flex-end; }
  .header__logo { font-size: 32px; padding: 0 12px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .scroller { grid-auto-columns: calc((100% - 32px) / 3); }
  .code-key__demo { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .code-key__note--left { text-align: center; }
  .code-key__big { justify-content: center; order: -1; }
  .pdp__grid { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery__thumb { flex: none; }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 0; }
  .hero > .container { padding: 0; }
  .hero__slide { grid-template-columns: 1fr; grid-template-rows: auto auto; aspect-ratio: auto; max-height: none; min-height: 0; }
  .hero__art { height: auto; aspect-ratio: 1.15; order: 0; }
  .hero__copy { padding: 4px 24px 44px; order: 1; }
  .pill-label { font-size: 14px; margin-bottom: 14px; padding: 6px 14px; }
  .hero__sub { margin-bottom: 22px; }
  .btn--lg { min-height: 54px; font-size: 16px; }
  .hero__arrow { top: 36%; }
  .section { padding-top: 48px; }
  .section-title { margin-bottom: 20px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; row-gap: 24px; }
  .grid--4 { gap: 12px; }
  .card__name { font-size: 14px; }
  .price { font-size: 14px; }
  .card .rating { gap: 5px; font-size: 11.5px; }
  .card .stars { --sw: 66px; }
  .card .badge { font-size: 11px; padding: 5px 6px 6px; top: 6px; right: 6px; }
  .quick .plan__row, .plan__row { font-size: 15px; }
  .scroller { grid-auto-columns: 62%; gap: 12px; }
  .pillars { grid-template-columns: 1fr; }
  .join__inner { grid-template-columns: 1fr; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
  .quick { grid-template-columns: 1fr; }
  .quick__info { padding: 22px 20px 24px; }
  .signup { grid-template-columns: 1fr; }
  .signup__art { min-height: 200px; }
  .signup__body { padding: 28px 22px 24px; }
  .signup__title { font-size: 34px; }
  .search__results { grid-template-columns: repeat(2, 1fr); }
  .search__bar input { font-size: 22px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .sort { justify-content: space-between; }
  .promo-tile { grid-column: 1 / -1; padding-top: 24px; }
  .promo-tile__art { min-height: 200px; }
  .perks { grid-template-columns: 1fr; padding-left: 18px; }
  .plan__freq { padding-left: 18px; }
  .sticky-atc { display: flex; }
  .about-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .about-hero__copy { padding: 44px 0 0; }
  .about-hero__art { min-height: 300px; }
  .steps-row { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .code-key { padding: 56px 0 60px; margin-top: 56px; }
  .footer__big { margin-top: 40px; }
}

@media (max-width: 480px) {
  .announce { font-size: 13px; }
  .header__logo { font-size: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .cart-line { grid-template-columns: 72px 1fr auto; }
  .cart-line__img { width: 72px; height: 72px; }
  .fbt__item { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
