/* ==========================================================================
   XE'LHA — design tokens (inspired by the Millie design reference)
   ========================================================================== */
:root {
  /* colours */
  --ink: #242424;
  --ink-soft: #333333;
  --canvas: #DCEAFB;         /* client "Soft Clinical" light blue */
  --surface-subtle: #F3F8FE;
  --muted: #6F6F6F;
  --divider: #C7DBF0;
  --overlay: rgba(0, 0, 0, 0.3);
  --brand: #0071CE;          /* XE'LHA logo blue, used sparingly */
  --brand-tint: #EAF3FC;
  --deep: #0B4F9E;           /* deep brand blue: replaces the beige bands (client feedback 2026-09-10) */
  --deep-soft: rgba(255,255,255,.14);

  /* Instagram palette: ice blue, warm grey, natural skin tone */
  --ice: #FFFFFF;            /* tinted bands turn white on the blue canvas */
  --ice-deep: #B9D3EE;
  --warm: #F4F1EC;
  --warm-deep: #E7E1D8;
  --skin: #F5E6DA;
  --skin-deep: #E8CFBD;

  /* type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans KR", sans-serif;
  --fs-body: 14px;    --lh-body: 1.7143;
  --fs-utility: 12px; --lh-utility: 1.5;
  --fs-h: 28px;       --lh-h: 1.3571;
  --fs-h-xl: 44px;    --lh-h-xl: 1.2273;

  /* shape */
  --r-utility: 4px;
  --r-card: 16px;
  --r-hero: 20px;
  --r-pill: 100px;

  /* layout */
  --container: 1392px;
  --gutter: 24px;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   type roles
   -------------------------------------------------------------------------- */
.h-xl { font-size: clamp(30px, 5vw, var(--fs-h-xl)); font-weight: 700; line-height: var(--lh-h-xl); letter-spacing: -0.02em; }
.h    { font-size: clamp(22px, 3vw, var(--fs-h)); font-weight: 700; line-height: var(--lh-h); letter-spacing: -0.01em; }
.eyebrow { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   buttons (Millie home utility button: #333, 4px radius, 12px text)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 12px;
  font-size: var(--fs-utility); line-height: var(--lh-utility); font-weight: 400;
  border-radius: var(--r-utility);
  background: var(--ink-soft); color: #fff;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--surface-subtle); }
.btn--lg { height: 44px; padding: 0 20px; font-size: var(--fs-body); }
.btn--brand { background: var(--brand); }
.btn--brand:hover { background: #005FB0; }

/* --------------------------------------------------------------------------
   header component
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(220,234,251,.92); /* --canvas with a little translucency */
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: var(--fs-body); color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .15s ease;
}
.icon-btn:hover { background: var(--surface-subtle); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 1px; right: 1px;
  min-width: 14px; height: 14px; padding: 0 3px;
  font-size: 9px; line-height: 14px; text-align: center;
  border-radius: var(--r-pill); background: var(--ink); color: #fff;
}
.menu-toggle { display: none; }

/* mobile drawer */
.site-drawer {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: var(--canvas);
  padding: 8px var(--gutter) 32px;
  flex-direction: column;
  overflow-y: auto;
}
.site-drawer[data-open="true"] { display: flex; }
.site-drawer a {
  display: block; padding: 16px 0;
  font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--divider);
}
.site-drawer a.btn { display: inline-flex; margin-top: 24px; width: 100%; border-bottom: 0; }
body[data-drawer-open="true"] { overflow: hidden; }

@media (max-width: 860px) {
  .site-nav, .site-header__actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   hero: one photo with the copy on top (desktop: wide banner; phones: 4:5 crop)
   -------------------------------------------------------------------------- */
/* desktop: rounded banner inside the container; phones: full-bleed (see the media query below) */
.hero { padding-block: 16px 40px; }
.hero__frame {
  position: relative;
  border-radius: var(--r-hero); overflow: hidden;
  aspect-ratio: 1392 / 640;   /* taller banner: the photo leads (client feedback 2026-09-10) */
  background: var(--surface-subtle);
}
.hero__media { position: absolute; inset: 0; display: block; }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; } /* bottles right, copy left */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,0) 75%);
}

.hero__copy {
  position: absolute; z-index: 2;
  left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  max-width: 600px; color: #fff;
}
.hero__copy h1 { color: #fff; text-wrap: balance; }
.hero__copy .hero__tagline { margin-top: 12px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: rgba(255,255,255,.9); max-width: 44ch; }
.hero__cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero__cta .btn { background: #fff; color: var(--ink); }
.hero__cta .btn:hover { background: var(--surface-subtle); }
.hero__cta .btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.75); }
.hero__cta .btn--outline-light:hover { background: rgba(255,255,255,.14); }

/* bold brand bar under the hero, then the technique video */
.tone-bar { background: var(--deep); color: #fff; }
.tone-bar p { padding: 18px 0; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.video { position: relative; overflow: hidden; background: #0f1c2b; width: 100%; height: clamp(360px, 44vw, 720px); }
.video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.62) 100%); }
.video__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); text-align: center; color: #fff; padding-inline: var(--gutter); }
.video__copy .h { color: #fff; text-wrap: balance; }
.video__copy p { margin-top: 8px; font-size: clamp(14px, 1.3vw, 17px); color: rgba(255,255,255,.88); }
.video__cta { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.video__cta .btn { background: #fff; color: var(--ink); }
.video__cta .btn:hover { background: var(--surface-subtle); }
.video__cta .btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.75); }
.video__cta .btn--outline-light:hover { background: rgba(255,255,255,.14); }
@media (max-width: 860px) {
  .tone-bar p { padding: 14px 0; font-size: 14px; }
  .video { height: clamp(420px, 120vw, 640px); }
  .video__cta .btn { flex: 1 1 0; }
}

/* phones: tall photo, copy at the bottom over a darkening gradient */
@media (max-width: 860px) {
  .hero { padding: 0; max-width: none; }
  .hero__frame { border-radius: 0; aspect-ratio: auto; height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 820px; }
  .hero__media img { object-position: 50% 50%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 22%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.72) 100%); }
  .hero__copy { left: 20px; right: 20px; bottom: 28px; max-width: none; }
  .hero__copy h1 { font-size: 30px; line-height: 1.2; }
  .hero__copy .hero__tagline { font-size: 15px; }
  .hero__cta .btn { flex: 1 1 0; }
}

/* --------------------------------------------------------------------------
   sections
   -------------------------------------------------------------------------- */
.section { padding-block: 40px; }
.section--tint { background: var(--surface-subtle); }
.section--warm { background: var(--warm); }
.section--deep { background: var(--deep); color: #fff; }
.section--deep .h { color: #fff; }
.section--deep .eyebrow { color: rgba(255,255,255,.72); }
.section--ice { background: var(--ice); }
.section__note { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }
.anchor { scroll-margin-top: calc(var(--header-h) + 8px); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .section__head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .h { font-size: 22px; }
}
/* forced line breaks in large headings are desktop-only */
@media (max-width: 860px) { .h-xl br { display: none; } }
.section__head .link { font-size: var(--fs-body); color: var(--muted); white-space: nowrap; }
.section__head .link:hover { color: var(--ink); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--surface-subtle);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .2s ease;
}
.cat-card:hover { transform: translateY(-2px); }
.cat-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card__img--contain { padding: 8%; }
.cat-card__img--contain img { object-fit: contain; }
.cat-card:hover .cat-card__img img { transform: scale(1.03); }
.cat-card__body { padding: 18px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.cat-card__body > div { min-width: 0; }
.cat-card__body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.cat-card__body p { margin-top: 2px; font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }
.cat-card__arrow { width: 32px; height: 32px; border-radius: var(--r-pill); background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-card__arrow svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { grid-template-columns: 112px 1fr; grid-template-rows: none; }
  .cat-card__img { aspect-ratio: 1; }
  .cat-card__body { padding: 14px 18px; }
}

/* product shelf (horizontal scroll on mobile) */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) {
  .shelf {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf > * { flex: 0 0 64%; scroll-snap-align: start; }
}
.prod {
  background: #fff; border: 1px solid var(--divider);
  border-radius: var(--r-card); overflow: hidden;
}
.prod__img { aspect-ratio: 3 / 4; background: var(--surface-subtle); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prod__img--contain { background: #fff; padding: 12%; }
.prod__img--contain img { object-fit: contain; }
.prod__body { padding: 14px 16px 16px; }
.prod__body h3 { font-size: var(--fs-body); font-weight: 700; }
.prod__body p { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); margin-top: 2px; }
.prod__tag { display: inline-block; margin-top: 10px; padding: 2px 8px; font-size: 11px; line-height: 1.5; border-radius: var(--r-utility); background: var(--brand-tint); color: var(--brand); font-weight: 500; }

/* about strip */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 20px; } }
.about__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text .eyebrow { margin-bottom: 8px; }
.about__text p { margin-top: 12px; max-width: 52ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 14px 16px; border-radius: 10px;
  background: var(--canvas); border: 1px solid var(--divider);
}
.value strong { display: block; font-size: var(--fs-body); font-weight: 700; margin-bottom: 2px; }
.value span { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }

/* join band */
.join {
  border-radius: var(--r-hero); overflow: hidden;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 48px);
}
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }
.join h2 { color: #fff; }
.join p { margin-top: 8px; color: rgba(255,255,255,.7); max-width: 48ch; }
.join .btn { background: #fff; color: var(--ink); }
.join .btn:hover { background: var(--surface-subtle); }

/* --------------------------------------------------------------------------
   footer component
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--divider); padding-block: 40px 28px; margin-top: 24px; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 32px; }
.site-footer__top > * { min-width: 0; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; gap: 28px; } }
.site-footer__brand img { height: 20px; width: auto; }
.site-footer__brand p { margin-top: 12px; color: var(--muted); max-width: 40ch; font-size: var(--fs-utility); line-height: var(--lh-utility); }
.site-footer__contact a:hover { text-decoration: underline; color: var(--ink); }
.site-footer h4 { margin: 0 0 10px; font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.site-footer li + li { margin-top: 6px; }
.site-footer__links a:hover { text-decoration: underline; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  font: inherit; font-size: var(--fs-utility);
  border: 1px solid var(--divider); border-radius: var(--r-utility);
  background: var(--surface-subtle); color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.newsletter__msg { margin-top: 8px; font-size: var(--fs-utility); color: var(--muted); }
.newsletter__msg[data-kind="success"] { color: #14532D; }
.newsletter__msg[data-kind="error"] { color: #8A1C1C; }
.newsletter .btn { height: 36px; }
/* mobile: stack the field and the button so neither gets clipped */
@media (max-width: 860px) {
  .newsletter { flex-direction: column; align-items: stretch; }
  .newsletter input { flex: none; width: 100%; height: 44px; }
  .newsletter .btn { width: 100%; height: 44px; font-size: var(--fs-body); }
}
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-subtle);
}
.social a:hover { background: var(--divider); }
.social svg { width: 16px; height: 16px; fill: var(--ink); }
.site-footer__bottom {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted);
}

/* --------------------------------------------------------------------------
   inner pages
   -------------------------------------------------------------------------- */
.page-head { padding-block: 40px 24px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head p.lead { margin-top: 12px; max-width: 60ch; color: var(--muted); }

/* banner (rounded image with caption, used on About) */
.banner { border-radius: var(--r-hero); overflow: hidden; aspect-ratio: 1392 / 420; background: var(--surface-subtle); }
@media (max-width: 860px) { .banner { aspect-ratio: 4 / 3; } }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* two-column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.split--form { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .split--form { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 12px; }
.prose p { max-width: 60ch; }

/* stat / value tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .tiles--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tiles--4 { grid-template-columns: 1fr; } }
.tile { background: var(--surface-subtle); border-radius: var(--r-card); padding: 24px; }
.tile .num { display: block; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tile p { color: var(--muted); }

/* filter pills */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
@media (max-width: 860px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
}
.pill {
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: var(--fs-utility); line-height: var(--lh-utility);
  background: var(--surface-subtle); color: var(--ink); white-space: nowrap;
  border: 1px solid transparent; transition: background .15s ease;
}
.pill:hover { background: var(--divider); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* product grid (products page) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.grid .prod[hidden] { display: none; }
/* wide card (starter pack): image left, text right */
.prod--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.prod--wide .prod__img { aspect-ratio: auto; min-height: 240px; }
.prod--wide .prod__body { padding: 22px 24px; align-self: center; }
.prod--wide .prod__body h3 { font-size: 18px; }
.prod--wide .prod__body p { font-size: var(--fs-body); line-height: var(--lh-body); margin-top: 6px; }
.prod__meta .link { font-size: var(--fs-utility); color: var(--brand); }
@media (max-width: 860px) { .prod--wide { grid-column: 1 / -1; grid-template-columns: 1fr; } }
.prod__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.prod__price { font-size: var(--fs-utility); color: var(--muted); }
/* product detail (starter pack) */
.detail__img { border-radius: var(--r-card); background: #fff; border: 1px solid var(--divider); padding: 10%; display: grid; place-items: center; min-height: 260px; }
.detail__img img { width: 100%; height: auto; max-width: 520px; }
.detail__price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail__price strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.detail__price .muted { font-size: var(--fs-utility); }
.detail__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.detail__list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface-subtle); }
.detail__list li span { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }
.detail__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.page-head .eyebrow a { color: inherit; text-decoration: underline; }
.prod__body h3 a { color: inherit; }
.group { padding-block: 8px 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.group__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.group__head h2 { font-size: 18px; font-weight: 700; }
.group__head span { font-size: var(--fs-utility); color: var(--muted); }
@media (max-width: 860px) { .group__head { flex-direction: column; gap: 2px; } }

/* notice */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--divider); color: var(--ink);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 24px;
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.notice a { text-decoration: underline; }

/* forms */
.form { display: grid; gap: 14px; }
/* the hidden attribute must win over display rules like .form's grid */
[hidden] { display: none !important; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 14px;
  font: inherit; font-size: var(--fs-body); color: var(--ink);
  background: var(--surface-subtle); border: 1px solid var(--divider); border-radius: 10px;
}
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: #fff; }
.form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form__foot small { color: var(--muted); font-size: var(--fs-utility); }
.form__done { display: none; padding: 16px 18px; border-radius: 10px; background: var(--surface-subtle); }
.form[data-sent="true"] .form__done { display: block; }
.form[data-sent="true"] .form__fields { display: none; }

/* contact aside */
.card { background: var(--surface-subtle); border-radius: var(--r-card); padding: 24px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); }
.card .btn { margin-top: 14px; }

/* empty state */
.empty { text-align: center; padding: 56px 24px; background: var(--surface-subtle); border-radius: var(--r-hero); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--muted); }
.empty p { color: var(--muted); margin-top: 6px; }
.empty .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   home: XE'LHA Peel sections
   -------------------------------------------------------------------------- */

/* brand, products, Basic vs Ultra, ingredients (from the client's PT deck) */
.brand-lead { max-width: 780px; margin-bottom: 24px; }
.brand-lead .eyebrow { margin-bottom: 8px; color: var(--brand); font-weight: 600; }
.brand-lead p:not(.eyebrow) { margin-top: 12px; color: var(--ink-soft); }

.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lineup a { display: grid; height: 100%; background: #fff; border: 1px solid transparent; border-radius: var(--r-card); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.lineup a:hover { border-color: var(--divider); transform: translateY(-2px); }
.lineup__img { display: block; aspect-ratio: 1; }
.lineup__img img { width: 100%; height: 100%; object-fit: contain; }
.lineup__name { padding: 4px 12px 20px; text-align: center; color: var(--brand); font-size: 18px; font-weight: 600; }
@media (max-width: 600px) {
  .lineup { gap: 8px; }
  .lineup__name { padding: 0 4px 12px; font-size: 12px; }
}

.versus { background: #fff; border-radius: var(--r-card); padding: clamp(20px, 3.5vw, 40px); }
.versus__head, .versus__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; }
.versus__head { margin-bottom: 24px; align-items: end; }
.versus__bottle { display: grid; justify-items: center; }
.versus__bottle img { width: 55%; }
.versus__pill { width: 100%; padding: 12px 16px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; text-align: center; }
.versus__row + .versus__row { margin-top: 10px; }
.versus__row [role="cell"] { text-align: center; font-weight: 600; }
.versus__row [role="rowheader"] { padding: 12px; border-radius: var(--r-utility); background: var(--surface-subtle); color: var(--muted); text-align: center; }
@media (max-width: 600px) {
  .versus__head, .versus__row { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .versus__gap { display: none; }
  .versus__bottle img { width: 70%; }
  .versus__pill { padding: 8px 6px; font-size: 12px; }
  .versus__row + .versus__row { margin-top: 16px; }
  .versus__row [role="rowheader"] { grid-column: 1 / -1; order: -1; padding: 6px; font-size: var(--fs-utility); line-height: var(--lh-utility); }
  .versus__row [role="cell"] { font-size: var(--fs-utility); line-height: var(--lh-utility); }
}

.ingr { --ingr-pad: clamp(16px, 2.6vw, 36px); display: grid; grid-template-columns: repeat(3, 1fr); }
.ingr__item { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding-inline: var(--ingr-pad); }
.ingr__item:first-child { padding-left: 0; }
.ingr__item:last-child { padding-right: 0; }
.ingr__item + .ingr__item { border-left: 1px solid var(--divider); }
.ingr__item h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--brand); }
.ingr__img { position: relative; aspect-ratio: 751 / 511; border-radius: var(--r-utility); background: var(--surface-subtle); }
.ingr__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ingr__item + .ingr__item .ingr__img::before {
  content: ""; position: absolute; top: 50%; left: calc(-1 * var(--ingr-pad) - 18px);
  width: 36px; height: 36px; margin-top: -18px; border: 1px solid var(--brand); border-radius: 50%;
  background: linear-gradient(var(--brand), var(--brand)) center / 14px 1px no-repeat,
              linear-gradient(var(--brand), var(--brand)) center / 1px 14px no-repeat, #fff;
}
.ingr__item p { color: var(--ink-soft); text-align: center; }
@media (max-width: 860px) {
  .ingr { grid-template-columns: 1fr; }
  .ingr__item, .ingr__item:first-child, .ingr__item:last-child { padding-inline: 0; }
  .ingr__item + .ingr__item { border-left: 0; border-top: 1px solid var(--divider); margin-top: 24px; padding-top: 24px; }
  .ingr__item + .ingr__item .ingr__img::before { display: none; }
  .ingr__item p { text-align: left; }
}

/* partner clinic logos: endless marquee, pauses on hover */
.partners { --p-gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--divider); }
.partners__label { margin-bottom: 20px; text-align: center; }
.partners__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners__track { display: flex; width: max-content; animation: partners-scroll 40s linear infinite; }
.partners__viewport:hover .partners__track { animation-play-state: paused; }
.partners__group { display: flex; gap: var(--p-gap); padding-right: var(--p-gap); }
.partners__group li { flex: none; width: clamp(150px, 15vw, 210px); aspect-ratio: 3 / 2; border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; background: #fff; }
.partners__group a { display: block; height: 100%; }
.partners__group a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.partners__group img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.partners__group a:hover img { transform: scale(1.05); }
.partners__viewport:focus-within .partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .partners__track { animation: none; }
  .partners__group[aria-hidden] { display: none; }
}

/* peel & fill */
.pf { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 1000px) { .pf { grid-template-columns: 1fr 1fr; } .pf__img { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 7; min-height: 0; } }
@media (max-width: 600px) {
  .pf { grid-template-columns: 1fr; gap: 10px; }
  .pf__img { aspect-ratio: 3 / 4; } /* the portrait photo's own ratio: nothing cropped */
  .pf__panel { padding: 20px; }
  .pf__panel p { max-width: none; }
}
.pf__panel { padding: 28px; border-radius: var(--r-card); display: grid; align-content: start; gap: 10px; }
.pf__panel--peel { background: #fff; color: var(--ink); }
.pf__panel--peel .pf__step { color: var(--muted); }
.pf__panel--fill { background: var(--deep-soft); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.pf__panel--fill .pf__step, .pf__panel--fill p { color: rgba(255,255,255,.82); }
.pf__step { font-size: var(--fs-utility); letter-spacing: .08em; color: var(--muted); }
.pf__panel h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pf__panel p { max-width: 36ch; }
.pf__panel ul { display: grid; gap: 6px; margin-top: 8px; }
.pf__panel li { position: relative; padding-left: 18px; font-size: var(--fs-utility); line-height: var(--lh-utility); }
.pf__panel li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pf__panel--fill li::before { background: #fff; }
.pf__img { border-radius: var(--r-card); overflow: hidden; background: var(--deep-soft); min-height: 240px; min-width: 0; width: 100%; }
.pf__img img { width: 100%; height: 100%; object-fit: cover; }

/* compare table */
.compare { margin-top: 12px; border-radius: var(--r-card); background: #fff; border: 1px solid rgba(255,255,255,.3); overflow: hidden; color: var(--ink); }
.compare__row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--brand-tint); align-items: center; }
.compare__row--head { border-top: 0; background: var(--canvas); font-size: var(--fs-utility); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.compare__row [role="rowheader"] { font-weight: 600; }
.compare__row [role="cell"] { color: var(--muted); }
.compare__brand { color: var(--brand) !important; font-weight: 600; }
.compare__row--head .compare__brand { color: var(--deep) !important; }
@media (max-width: 600px) {
  .compare__row { grid-template-columns: 1fr 1fr; padding: 12px 16px; }
  .compare__row [role="rowheader"] { grid-column: 1 / -1; font-size: var(--fs-utility); color: var(--muted); font-weight: 500; margin-bottom: -6px; }
  .compare__row--head [role="columnheader"]:first-child { display: none; }
  .compare__row [role="cell"] { font-size: var(--fs-utility); line-height: var(--lh-utility); }
}

/* key benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }
.benefit { padding: 22px; border-radius: var(--r-card); background: var(--deep); color: #fff; }
.benefit__icon { display: block; color: #fff; margin-bottom: 12px; line-height: 0; }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.benefit p { color: rgba(255,255,255,.82); font-size: var(--fs-utility); line-height: var(--lh-utility); }

/* treatment steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--r-card); }
.step__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-subtle); border-radius: var(--r-card) var(--r-card) 0 0; }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__img--contain { padding: 10%; background: #fff; }
.step__img--contain img { object-fit: contain; }
.step__body { padding: 18px 22px 22px; }
.step__num { display: inline-block; font-size: var(--fs-utility); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.step__body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.step__body p { margin-top: 6px; color: var(--muted); font-size: var(--fs-utility); line-height: var(--lh-utility); }
/* arrow between steps on desktop */
@media (min-width: 861px) {
  .step + .step::before {
    content: "\2192"; position: absolute; left: -6px; top: 50%; transform: translate(-50%, -50%);
    width: 28px; height: 28px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--ice-deep);
    display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--brand); z-index: 1;
  }
}
/* mobile: stacked cards with a wide photo on top, and a down-arrow connector between steps */
@media (max-width: 860px) {
  .steps { gap: 28px; }
  .step + .step::before {
    content: "\2193"; position: absolute; top: -28px; left: 50%; transform: translate(-50%, 0);
    width: 28px; height: 28px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--ice-deep);
    display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--brand);
  }
  .step__img { aspect-ratio: 16 / 9; }
  .step__img--contain { padding: 5% 12%; }
  .step__body { padding: 16px 18px 20px; }
  .step__body h3 { font-size: 18px; }
}

/* before & after */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } }
.ba { margin: 0; background: #fff; border: 1px solid var(--divider); border-radius: var(--r-card); overflow: hidden; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--divider); }
.ba__shot { position: relative; aspect-ratio: 4 / 3; background: var(--skin); overflow: hidden; }
.ba__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba__shot::after {
  content: attr(data-label); position: absolute; left: 10px; top: 10px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(36,36,36,.72); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.ba__shot--placeholder { background: linear-gradient(160deg, var(--skin) 0%, var(--skin-deep) 100%); display: flex; align-items: center; justify-content: center; }
.ba__ph { font-size: var(--fs-utility); color: rgba(36,36,36,.55); text-align: center; padding: 0 16px; }
.ba figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; font-size: var(--fs-utility); line-height: var(--lh-utility); color: var(--muted); }
.ba figcaption b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; padding: 20px 22px; border-radius: var(--r-card); background: var(--deep); color: #fff; }
.review p { font-size: var(--fs-body); }
.review p::before { content: "\201C"; color: rgba(255,255,255,.6); font-size: 28px; line-height: 0; margin-right: 4px; vertical-align: -8px; }
.review footer { margin-top: 12px; font-size: var(--fs-utility); line-height: var(--lh-utility); color: rgba(255,255,255,.78); }
.review footer b { color: #fff; font-weight: 600; }
.review--placeholder { border: 1px dashed var(--divider); background: #fff; color: var(--ink); }
.review--placeholder footer { color: var(--muted); }
.review--placeholder footer b { color: var(--ink); }
.review--placeholder p::before { color: var(--divider); }
.review--placeholder p { color: var(--muted); font-style: italic; }

/* two paths: clients vs clinics */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-hero); display: grid; align-content: start; gap: 10px; }
.path .eyebrow { margin-bottom: 0; }
.path p:not(.eyebrow) { max-width: 44ch; }
.path .btn { justify-self: start; margin-top: 10px; }
.path--client { background: var(--deep); color: #fff; }
.path--client .h { color: #fff; }
.path--client p:not(.eyebrow) { color: rgba(255,255,255,.82); }
.path--client .eyebrow { color: rgba(255,255,255,.65); }
.path--client .btn--ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.path--client .btn--ghost:hover { background: rgba(255,255,255,.14); }
.path--clinic { background: var(--ink); color: #fff; }
.path--clinic .h { color: #fff; }
.path--clinic p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.path--clinic .eyebrow { color: rgba(255,255,255,.6); }
.path--clinic .btn { background: #fff; color: var(--ink); }
.path--clinic .btn:hover { background: var(--ice); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
