/* =========================================================
   Skincare with AI — landing page
   Built from Figma "Skincare with ai" (Desktop-204 @1440, iPhone 14/15 Pro Max-73 @430)
   ========================================================= */

:root {
  --blue: #0066a1;
  --blue-dark: #005385;
  --ink: #101721;
  --nav-ink: #151515;
  --body: #2f2f2f;
  --muted: #dfdcdc;
  --sky: #d8ebf6;
  --sky-dot: #bcd8ea;
  --bg: #f9f9f9;
  --white: #ffffff;
  --divider: #1278b4;
  --tint: rgba(0, 102, 161, 0.1);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: -0.04em; }   /* Figma: tracking -4% on every text style (set per element so em resolves at each font-size) */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.d-only { display: inline; }
.d-br { display: inline; }
.m-only { display: none; }

/* ---------- Logo ---------- */
.logo { position: relative; display: block; flex: none; overflow: hidden; }
.logo--44 { width: 44px; height: 44px; }
.logo--24 { width: 24px; height: 24px; }
.logo__mark { position: absolute; inset: 4.85% 3.56% 3.15% 3.68%; }
.logo__mark img { width: 100%; height: 100%; max-width: none; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 30px;
  background: var(--tint);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  color: var(--blue); font-size: 14px; font-weight: 400;
  white-space: nowrap;
}
.badge__icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 30px; border-radius: 50px;
  font-size: 18px; font-weight: 400; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn img { width: 24px; height: 24px; flex: none; transition: transform .25s var(--ease); }
.btn:hover img { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px -10px rgba(0, 102, 161, .7); }
.btn--glass { background: rgba(255, 255, 255, 0.1); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.55); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--sky); }
.btn--block { width: 100%; }

/* ---------- Carousel controls (shared) ---------- */
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.carousel-btn { position: relative; width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--sky); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.carousel-btn img { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); transition: filter .25s var(--ease); }
.carousel-btn--next img { transform: translate(-50%, -50%) scaleX(-1); }
.carousel-btn:hover { background: var(--blue); }
.carousel-btn:hover img { filter: brightness(0) invert(1); }
.carousel-btn:active { transform: scale(.94); }
.dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 8px; background: var(--sky-dot); transition: width .35s var(--ease), background-color .35s var(--ease); }
.dot.is-active { width: 26px; background: var(--blue); }
.dot:hover:not(.is-active) { background: #9cc5df; }

/* hide native scrollbars on swipe tracks */
.reviews__track, .skin__grid { scrollbar-width: none; }
.reviews__track::-webkit-scrollbar, .skin__grid::-webkit-scrollbar { display: none; }

/* =========================================================
   MOBILE HEADER (hidden on desktop)
   ========================================================= */
.m-header { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: calc(100% - 48px); max-width: 1392px; height: 800px;
  margin: 24px auto 0;
  border-radius: 15px; overflow: hidden;
  background: #c4c4c4;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  position: absolute; left: 50%; top: 50%;
  width: 103.574%; height: 101.427%; max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) scaleX(-1);   /* Figma: rotate 180 + flip Y = mirrored */
}
.hero__inner { position: relative; height: 100%; width: calc(100% - 120px); max-width: 1272px; margin: 0 auto; }

.hero__nav { position: absolute; top: 40px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; }
.nav-pill {
  display: flex; align-items: center; gap: 30px;
  padding: 20px 30px; border-radius: 40px; background: var(--white);
  color: var(--nav-ink); font-size: 18px; white-space: nowrap;
}
.nav-pill a { position: relative; transition: color .2s var(--ease); }
.nav-pill a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-pill a:hover { color: var(--blue); }
.nav-pill a:hover::after { transform: scaleX(1); }

.hero__content { position: absolute; top: 235px; left: 0; width: 644px; display: flex; flex-direction: column; align-items: flex-start; gap: 60px; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.hero__title { display: flex; flex-direction: column; gap: 2px; font-size: 60px; font-weight: 600; color: var(--ink); }
.hero__row { display: flex; align-items: center; gap: 4px; }
.hero__row > span { flex: none; white-space: nowrap; }
.w-healthy { width: 220px; }
.w-healthy b { font-weight: 700; }
.w-skin { width: 120px; padding: 0 2px; background: var(--tint); color: var(--blue); text-align: center; }
.w-starts { width: 296px; }
.hero__line2 { display: block; }
.hero__lead { width: 405px; max-width: 100%; font-size: 18px; font-weight: 500; color: var(--body); }
.hero__ctas { display: flex; align-items: center; gap: 20px; }
.hero__m-img { display: none; }

/* =========================================================
   SECTION SHELL + HEADINGS
   ========================================================= */
.section { width: min(1272px, calc(100% - 168px)); margin: 130px auto 0; }

.sec-head { width: 609px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.sec-head__top { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.sec-title { width: 479px; max-width: 100%; font-size: 50px; font-weight: 600; color: var(--ink); }
.sec-title--faq { width: 478px; }
.sec-lead { width: 571px; max-width: 100%; font-size: 20px; font-weight: 500; color: var(--body); }

/* =========================================================
   SKIN TYPE
   ========================================================= */
.skin__grid { margin-top: 80px; display: grid; grid-template-columns: repeat(4, minmax(0, 300px)); justify-content: space-between; gap: 24px; }
.skin__dots { display: none; }

.skin-card { position: relative; display: block; width: 100%; height: 370px; border-radius: 15px; background: var(--sky); overflow: hidden; transition: box-shadow .35s var(--ease); }
.skin-card__head { position: absolute; top: 14px; left: 10px; width: calc(100% - 20px); height: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.skin-card__head--center { align-items: center; }
.skin-card__title { font-size: 18px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.skin-card__arrow { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50px; background: var(--white); overflow: hidden; transition: background-color .3s var(--ease); }
.skin-card__arrow img { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%) scaleX(-1); transition: filter .3s var(--ease); }
.skin-card__media { position: absolute; left: 10px; bottom: 11px; width: calc(100% - 20px); height: 300px; border-radius: 10px; background: var(--white); overflow: hidden; }
.skin-card__media img {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--h); max-width: none; object-fit: cover;
  transform: translate(-50%, -50%);
  transition: transform .6s var(--ease);
}
.skin-card--top .skin-card__media img { top: -15px; transform: translateX(-50%); }

.skin-card:hover { box-shadow: 0 18px 40px -22px rgba(0, 102, 161, .55); }
.skin-card:hover .skin-card__arrow { background: var(--blue); }
.skin-card:hover .skin-card__arrow img { filter: brightness(0) invert(1); }
.skin-card:hover .skin-card__media img { transform: translate(-50%, -50%) scale(1.05); }
.skin-card--top:hover .skin-card__media img { transform: translateX(-50%) scale(1.05); }

/* =========================================================
   REVIEWS — looping carousel
   ========================================================= */
.section.reviews { width: 100%; max-width: none; }
.reviews__track {
  --pad: max(24px, calc((100% - 1392px) / 2));     /* first card lines up with the hero edge */
  position: relative;
  margin-top: 80px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.review { display: flex; flex: none; scroll-snap-align: start; }
.review__body { position: relative; flex: none; width: 340px; height: 398px; background: var(--white); border-radius: 15px 0 0 15px; overflow: hidden; }
.review__author { position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 12px; }
.review__author > div { width: 151px; display: flex; flex-direction: column; gap: 4px; }
.review__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.review__name { font-size: 20px; font-weight: 500; color: var(--ink); }
.review__role { font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; }
.review__quote { position: absolute; left: 24px; top: 104px; width: 292px; font-size: 18px; color: #000; }
.review__foot { position: absolute; left: 24px; top: 352px; width: 292px; display: flex; align-items: center; justify-content: space-between; }
.stars { display: flex; }
.stars img { width: 24px; height: 24px; }
.review__date { font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; }
.review__photo { display: block; width: 237px; height: 398px; flex: none; border-radius: 0 15px 15px 0; overflow: hidden; }
.review__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.review:hover .review__photo img { transform: scale(1.04); }

/* =========================================================
   VIDEO
   ========================================================= */
.video { position: relative; width: calc(100% - 48px); max-width: 1392px; height: 560px; margin: 130px auto 0; border-radius: 15px; overflow: hidden; background: #8a7a68; }
.video__media { position: absolute; inset: 0; overflow: hidden; }
/* Real footage (Pexels #8760578, free licence) — faces sit in the upper-middle of the frame */
.video__media video, .video__poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
/* The poster sits underneath; the video stays invisible until its first real frame is drawn,
   so phones never flash an empty box while the clip buffers. */
.video__media video { opacity: 0; transition: opacity .35s ease; }
.video.has-frame .video__media video { opacity: 1; }
.video__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.1); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.video__play { position: relative; width: 100px; height: 100px; border-radius: 50%; transition: transform .35s var(--ease), filter .35s var(--ease), opacity .35s var(--ease); }
.video__play img, .video__play svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s var(--ease); }
.video__play .icon-pause { opacity: 0; }
.video__play:hover { transform: scale(1.08); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .25)); }
.video.is-playing .video__overlay { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: none; backdrop-filter: none; cursor: pointer; }
.video.is-playing .video__play { opacity: 0; transform: scale(.85); }
.video.is-playing .video__play img { opacity: 0; }
.video.is-playing .video__play .icon-pause { opacity: 1; }
.video.is-playing:hover .video__play, .video.is-playing .video__play:focus-visible { opacity: .9; transform: scale(1); }

/* =========================================================
   WHY
   ========================================================= */
.why__grid { margin-top: 80px; display: flex; align-items: center; gap: 24px; }
.why-main { position: relative; flex: 732 1 0; min-width: 0; height: 504px; border-radius: 15px; overflow: hidden; }
.why-main__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-main__card { position: absolute; left: 30px; top: 340px; width: min(407px, calc(100% - 60px)); height: 139px; border-radius: 15px; background: var(--white); overflow: hidden; }
.why-main__card-inner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(359px, calc(100% - 48px)); display: flex; flex-direction: column; gap: 12px; }
.why-main__title { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.why-main__seal { width: 30px; height: 30px; flex: none; }
.why-main__text { font-size: 18px; color: var(--body); }

.why__col { flex: 516 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.why-card { position: relative; height: 240px; width: 100%; border-radius: 15px; overflow: hidden; }
.why-card--light { background: var(--sky); }
.why-card--blue { background: var(--blue); }
.why-card__img--sensitive { position: absolute; right: 25.667px; top: -33px; width: 215.333px; height: 323px; max-width: none; object-fit: cover; transition: transform .7s var(--ease); }
.why-card__rot { position: absolute; left: -61px; top: -52px; width: 344.413px; height: 389.275px; display: flex; align-items: center; justify-content: center; }
.why-card__rot img { width: 217px; height: 325.5px; max-width: none; flex: none; object-fit: cover; transform: rotate(28deg); transition: transform .7s var(--ease); }
.why-card--light:hover .why-card__img--sensitive { transform: translateY(-6px); }
.why-card--blue:hover .why-card__rot img { transform: rotate(24deg) translateY(-4px); }
.why-card__text { position: absolute; top: 50%; width: 237px; display: flex; flex-direction: column; gap: 12px; }
.why-card__text--sensitive { left: 24px; transform: translateY(calc(-50% + .5px)); }
.why-card__text--sensitive .why-card__title { text-align: center; }
.why-card__text--thermal { right: 39px; transform: translateY(-50%); text-align: right; }
.why-card__title { font-size: 24px; font-weight: 500; color: var(--ink); }
.why-card__p { font-size: 18px; color: var(--body); }
.why-card--blue .why-card__title { color: var(--white); }
.why-card--blue .why-card__p { color: var(--muted); }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { margin-top: 80px; display: flex; align-items: center; gap: 50px; }
.faq-help { position: relative; width: 432px; height: 600px; flex: none; border-radius: 20px; background: var(--blue); overflow: hidden; }
.faq-help__inner { position: absolute; left: calc(50% + .5px); top: 50%; transform: translate(-50%, -50%); width: min(373px, calc(100% - 48px)); display: flex; flex-direction: column; align-items: center; gap: 94px; }
.faq-help__icon { width: 100px; height: 100px; }
.faq-help__copy { display: flex; flex-direction: column; gap: 20px; text-align: center; width: 100%; }
.faq-help__title { font-size: 40px; font-weight: 600; color: var(--white); }
.faq-help__text { font-size: 18px; color: var(--muted); }

.faq__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.faq-item { background: var(--white); border-radius: 50px; overflow: hidden; transition: border-radius .35s var(--ease), box-shadow .35s var(--ease); }
.faq-item:hover { box-shadow: 0 10px 30px -20px rgba(16, 23, 33, .35); }
.faq-item__q { width: 100%; min-height: 80px; padding: 0 22px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq-item__icon { position: relative; width: 50px; height: 50px; flex: none; border-radius: 50px; background: var(--sky); transition: background-color .3s var(--ease); }
.faq-item__icon img { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); transition: transform .35s var(--ease), filter .3s var(--ease); }
.faq-item__q:hover .faq-item__icon { background: #c7e1f1; }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item__a > p { overflow: hidden; min-height: 0; padding: 0 100px 0 28px; font-size: 18px; color: var(--body); opacity: 0; transition: opacity .3s var(--ease), padding .4s var(--ease); }
.faq-item.is-open { border-radius: 30px; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-item__a > p { padding-bottom: 26px; opacity: 1; }
.faq-item.is-open .faq-item__icon { background: var(--blue); }
.faq-item.is-open .faq-item__icon img { transform: translate(-50%, -50%) rotate(45deg); filter: brightness(0) invert(1); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative; width: min(1272px, calc(100% - 168px)); height: 400px; margin: 130px auto 0; border-radius: 20px; background: var(--sky); overflow: hidden;
  container-type: inline-size;
  --fw: min(26.105cqw, 332.056px);   /* width of the fair model's image box (Figma: 332px @ 1272) */
}
.cta__img { position: absolute; top: 0; width: var(--fw); max-width: none; aspect-ratio: 332.056 / 445; height: auto; object-fit: cover; }
/* Right model: wider shot with both shoulders in frame, scaled so her face matches the fair model's
   (head-to-chin ≈ 0.66 × --fw) and her arm leaves through the bottom of the card instead of a hard side cut. */
.cta__img--right {
  width: calc(var(--fw) * 1.592); aspect-ratio: 1024 / 1280;
  top: calc(var(--fw) * -0.195); right: calc(-2.556px - var(--fw) * 0.256);
}
.cta__img--left { left: -3px; transform: scaleX(-1); }
.cta__content { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 682px; max-width: calc(100% - 64px); display: flex; flex-direction: column; align-items: center; gap: 50px; }
.cta__copy { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; text-align: center; }
.cta__title { font-size: 50px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cta__lead { width: 602px; max-width: 100%; font-size: 20px; font-weight: 500; color: var(--body); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; width: calc(100% - 48px); max-width: 1392px; height: 380px; margin: 153px auto 24px; border-radius: 20px; background: var(--blue); overflow: hidden; }
.footer__inner { position: absolute; top: 60px; left: calc(50% + .5px); transform: translateX(-50%); width: min(1273px, calc(100% - 119px)); display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; z-index: 2; }
.footer__brand { flex: 0 1 408px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; color: var(--white); white-space: nowrap; }
.footer__about { font-size: 18px; font-weight: 500; color: var(--muted); }
.footer__cols { display: flex; align-items: flex-start; gap: 94px; }
.fcol { width: 115px; display: flex; flex-direction: column; gap: 18px; }
.fcol--social { width: 116px; }
.fcol__head, .fcol__title { display: block; font-size: 20px; font-weight: 500; color: var(--white); text-align: left; cursor: default; }
.fcol__caret { display: none; }
.fcol__links { display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--muted); }
.fcol__links a, .social a { transition: color .2s var(--ease); }
.fcol__links a:hover, .social a:hover { color: var(--white); }
.social { display: flex; flex-direction: column; gap: 12px; }
.social a { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--muted); }
.social__icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 20px; overflow: hidden; transition: transform .25s var(--ease); }
.social a:hover .social__icon { transform: translateY(-2px); }
.social__icon > img { width: 30px; height: 30px; }
.social__icon--bg { background: var(--muted); }
.social__icon .social__glyph { position: absolute; left: calc(50% + .5px); top: calc(50% + .5px); width: 15px; height: 15px; transform: translate(-50%, -50%); }
.social__x { position: absolute; left: calc(50% + .5px); top: calc(50% + .5px); width: 15px; height: 15px; transform: translate(-50%, -50%); }
.social__x img { position: absolute; left: 0; right: 0; top: 4.69%; width: 15px; height: 13.594px; }

.footer__word {
  position: absolute; left: calc(50% - 422px); bottom: -42px;
  font-size: 120px; font-weight: 600; letter-spacing: -4.8px; white-space: nowrap;
  background: linear-gradient(180deg, #dfdcdc -171.65%, #0066a1 78.049%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  pointer-events: none; user-select: none;
}
.footer__leaf { position: absolute; left: -89.8px; bottom: -123.71px; width: 274.758px; height: 313.082px; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: 20% 90%; }
.footer__leaf img { width: 140.711px; height: 282.734px; max-width: none; flex: none; object-fit: cover; transform: rotate(-146deg) scaleY(-1); }

/* =========================================================
   SCROLL EFFECTS
   ========================================================= */
/* generic fade-up */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* CTA — the models step into frame like a camera pulling focus:
   rise + slide from their side, out-of-focus → sharp, a touch of scale settling,
   then they keep "breathing" with a slow, slightly different float each. A soft light glint sweeps the card once. */
:root { --out-expo: cubic-bezier(.16, 1, .3, 1); }
.js .cta.appear .cta__img {
  opacity: 0; filter: blur(10px) saturate(.85);
  transition: opacity .9s ease-out, filter 1.3s var(--out-expo), translate 1.5s var(--out-expo), scale 1.5s var(--out-expo);
}
.js .cta.appear .cta__img { transform-origin: 50% 100%; }   /* keep x at 50%: the left image is mirrored with scaleX(-1) */
.js .cta.appear .cta__img--left  { translate: -48px 34px; scale: 1.06; }
.js .cta.appear .cta__img--right { translate:  48px 34px; scale: 1.06; transition-delay: .22s; }
.js .cta.appear.in .cta__img { opacity: 1; filter: none; translate: 0 0; scale: 1; }
.js .cta.appear.in .cta__img--left  { animation: ctaBreathe 6.5s ease-in-out 1.6s infinite; }
.js .cta.appear.in .cta__img--right { animation: ctaBreathe 7.2s ease-in-out 2.1s infinite reverse; }
@keyframes ctaBreathe {
  0%, 100% { translate: 0 0; scale: 1; }
  50%      { translate: 0 -5px; scale: 1.012; }
}
.cta::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-12deg); opacity: 0;
}
.js .cta.appear.in::after { animation: ctaGlint 1.6s cubic-bezier(.4, 0, .2, 1) .9s 1 both; }
@keyframes ctaGlint {
  0%   { left: -40%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* footer leaf — unfurls from its stem in the corner, then sways gently as if in a light breeze */
.js .footer.appear .footer__leaf {
  opacity: 0; translate: -60px 70px; rotate: -28deg; scale: .72; filter: blur(4px);
  transform-origin: 18% 92%;
  transition: opacity .9s ease-out .2s, translate 1.8s var(--out-expo) .2s, rotate 2s var(--out-expo) .2s, scale 1.8s var(--out-expo) .2s, filter 1.2s ease-out .2s;
}
.js .footer.appear.in .footer__leaf { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; filter: none; animation: leafSway 7s ease-in-out 2.2s infinite; }
@keyframes leafSway {
  0%, 100% { rotate: 0deg; }
  30%      { rotate: 3deg; }
  55%      { rotate: -1.5deg; }
  80%      { rotate: 1.2deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .cta.appear .cta__img, .js .footer.appear .footer__leaf { opacity: 1; translate: none; rotate: none; scale: none; filter: none; transition: none; animation: none !important; }
  .cta::after { display: none; }
  * { transition-duration: 0s !important; }
}

/* =========================================================
   SMALL LAPTOP  (≤ 1439)
   ========================================================= */
@media (max-width: 1439px) {
  .footer__cols { gap: clamp(32px, 4vw, 94px); }
}

/* =========================================================
   LARGE TABLET / SMALL LAPTOP  (768 – 1279)
   ========================================================= */
@media (max-width: 1279px) {
  .section, .cta { width: calc(100% - 96px); }

  .hero__bg img { object-position: 0% center; }   /* element is mirrored: keeps the product tray pinned right, crops the empty side */
  .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249, 249, 249, .75) 0%, rgba(249, 249, 249, .35) 45%, rgba(249, 249, 249, 0) 70%); }

  .video { height: auto; aspect-ratio: 1392 / 560; }

  .why__grid { flex-direction: column; align-items: stretch; }
  .why-main, .why__col { flex: none; width: 100%; }

  .faq__grid { flex-direction: column-reverse; align-items: stretch; }
  .faq__list { flex: none; width: 100%; }
  .faq-help { width: 100%; height: 460px; }
  .faq-help__inner { gap: 48px; }

  .footer { height: auto; padding: 60px 48px 170px; }
  .footer__inner { position: static; transform: none; width: 100%; flex-wrap: wrap; gap: 48px; }
  .footer__brand { flex: 1 1 100%; max-width: 480px; }
  .footer__cols { gap: 48px; flex-wrap: wrap; }
  .footer__word { left: 50%; transform: translateX(-50%); font-size: clamp(72px, 11vw, 120px); }
}

@media (max-width: 1099px) {
  .nav-pill { display: none; }
  .hero__row > span { width: auto; }
  .w-skin { padding: 0 2px; }

  /* tablet hero: copy on top, product photo card below (same pattern as the mobile design) */
  .hero { height: auto; background: none; border-radius: 0; overflow: visible; }
  .hero__bg { display: none; }
  .hero__inner { width: 100%; height: auto; }
  .hero__nav { position: static; }
  .hero__content { position: static; margin-top: 80px; width: 100%; }
  .btn--glass { background: var(--white); box-shadow: inset 0 0 0 1px rgba(16, 23, 33, .14); }
  .btn--glass:hover { background: var(--white); box-shadow: inset 0 0 0 1px rgba(0, 102, 161, .45); }
  .hero__m-img { display: block; margin-top: 60px; width: 100%; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; }
  .hero__m-img-inner { position: relative; width: 100%; height: 100%; transform: scaleX(-1); }
  .hero__m-img-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 60%; }

  .skin__grid { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }

  /* stacked CTA: copy on top, the two models rise from the bottom corners */
  .cta { height: auto; padding: 64px 32px 250px; --fw: min(30cqw, 240px); --fb: 60px; }
  .cta__img { top: auto; bottom: calc(var(--fb) * -1); }
  .cta__img--right { top: auto; bottom: calc(var(--fb) * -1 - var(--fw) * 0.455); }
  .cta__content { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: none; z-index: 1; }
  .cta__title { white-space: normal; font-size: clamp(32px, 5vw, 44px); }

  .why-main__card { left: 24px; right: 24px; top: auto; bottom: 24px; width: auto; }
}

/* =========================================================
   MOBILE  (< 768) — iPhone 14 & 15 Pro Max - 73 (430 wide)
   ========================================================= */
@media (max-width: 767px) {
  .d-br, .d-only { display: none; }
  .m-only { display: inline; }

  /* header */
  .m-header { display: block; position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow .3s var(--ease); }
  .m-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(16, 23, 33, .4); }
  .m-header__inner { width: calc(100% - 62px); max-width: 368px; height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
  .m-header__menu { width: 24px; height: 24px; }
  .m-header__menu img { width: 24px; height: 24px; }
  .m-menu { display: none; padding: 4px 31px 24px; border-top: 1px solid #eee; }
  .m-header.is-open .m-menu { display: block; animation: menuIn .3s var(--ease); }
  .m-menu a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; color: var(--nav-ink); border-bottom: 1px solid #eee; }
  .m-menu a:not(.btn):active { color: var(--blue); }
  .m-menu .m-menu__cta { margin-top: 20px; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  .btn--sm, .hero .btn, .cta .btn { padding: 16px 20px; font-size: 14px; }
  .btn--sm img, .hero .btn img, .cta .btn img { width: 18px; height: 18px; }

  /* badge — larger and semibold on phones so it stays legible */
  .badge { font-size: 11px; font-weight: 600; padding: 7px 12px 7px 10px; gap: 5px; letter-spacing: 0; }
  .badge__icon { width: 16px; height: 16px; }

  /* hero — sizes in em so the headline scales down on small phones (35px @ 430) */
  .hero { width: auto; max-width: none; height: auto; margin: 30px 31px 0; border-radius: 0; overflow: visible; background: none; }
  .hero__bg, .hero__nav { display: none; }
  .hero__inner { width: auto; max-width: 368px; height: auto; margin: 0 auto; }
  .hero__content { position: static; width: 100%; margin-top: 0; gap: 24px; }
  .hero__copy { gap: 12px; }
  .hero__title { font-size: clamp(26px, 9.3vw, 44px); font-weight: 700; line-height: 1.12; gap: 0; }   /* 2 lines: "Healthy Skin starts" ≈ 8.6em */
  .hero__row { align-items: center; flex-wrap: wrap; gap: 0 .14em; }
  .hero__row > span { width: auto; }
  .w-healthy .sp { display: none; }
  .w-skin { padding: 0 .08em; border-radius: 4px; }
  .hero__lead { width: 100%; font-size: 15px; line-height: 1.45; }
  .hero__ctas { flex-wrap: wrap; gap: 10px; width: 100%; }
  .hero__ctas .btn { flex: 1 1 0; min-width: max-content; padding: 15px 10px; gap: 6px; }
  .hero__m-img { display: block; margin-top: 50px; width: 100%; aspect-ratio: 959 / 811; border-radius: 15px; overflow: hidden; }
  .hero__m-img-inner { position: relative; width: 100%; height: 100%; transform: scaleX(-1); }
  .hero__m-img-inner img { position: absolute; left: .03%; top: 0; width: 150.34%; height: 100.05%; max-width: none; }

  /* section shell */
  .section { width: calc(100% - 62px); max-width: 368px; margin-top: 80px; }
  .sec-head { width: 100%; align-items: flex-start; text-align: left; gap: 10px; }
  .sec-head__top { align-items: flex-start; }
  .sec-title, .sec-title--faq { width: 100%; font-size: clamp(22px, 6.05vw, 26px); overflow-wrap: anywhere; }
  .sec-lead { width: 100%; font-size: 14px; }

  /* skin type — swipe carousel, full-bleed */
  .skin { width: 100%; max-width: none; }
  .skin .sec-head { width: calc(100% - 56px); max-width: 374px; }
  .skin .sec-title { line-height: 34px; }
  .skin__grid {
    --pad: max(28px, calc((100% - 374px) / 2));
    display: flex; justify-content: flex-start; gap: 20px;
    margin: 34px 0 0; padding: 4px var(--pad) 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  }
  /* one card fills most of the screen, the next one peeks in (~30%) */
  .skin-card { flex: 0 0 min(340px, calc((100vw - 48px) / 1.32)); width: auto; height: auto; aspect-ratio: 300 / 370; scroll-snap-align: start; }
  .skin-card__head { top: 14px; left: 12px; width: calc(100% - 24px); height: 30px; align-items: center; }
  .skin-card__title { font-size: 17px; }
  .skin-card__media { left: 10px; bottom: 11px; width: calc(100% - 20px); height: calc(100% - 70px); }
  .skin-card__media img { width: var(--pw); height: var(--ph); }
  .skin-card--top .skin-card__media img { top: -5%; }
  .skin__dots { display: flex; margin-top: 16px; }

  /* reviews */
  .reviews .sec-head { width: calc(100% - 62px); max-width: 368px; }
  .reviews__track { --pad: max(31px, calc((100% - 368px) / 2)); margin-top: 34px; gap: 31px; }
  .review { width: min(368px, calc(100vw - 62px)); }
  .review__body { position: relative; flex: 1; min-width: 0; width: auto; height: 280px; padding: 0 19px 0 20px; display: flex; flex-direction: column; justify-content: center; }
  .review__author, .review__quote, .review__foot { position: static; }
  .review__author { gap: 8px; }
  .review__author > div { gap: 2px; }
  .review__avatar { width: 40px; height: 40px; }
  .review__name { font-size: 16px; }
  .review__role { font-size: 12px; }
  .review__quote { margin-top: 20px; width: 188px; max-width: 100%; font-size: 14px; }
  .review__foot { margin-top: 100px; width: 100%; gap: 8px; }
  .stars img { width: 20px; height: 20px; }
  .review__photo { width: 146px; height: 279px; border-radius: 0 12.848px 12.848px 0; }
  .carousel-nav { margin-top: 24px; gap: 16px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn img { width: 20px; height: 20px; }

  /* video */
  .video { width: calc(100% - 16px); max-width: 414px; height: auto; aspect-ratio: 414 / 280; margin-top: 80px; }
  .video__play { width: 40px; height: 40px; }

  /* why */
  .why__grid { margin-top: 34px; gap: 20px; }
  .why-main { height: 250px; border-radius: 7.541px; }
  .why-main__card { left: 24px; right: auto; top: 140px; bottom: auto; width: min(264px, calc(100% - 48px)); height: 89px; }
  .why-main__card-inner { width: calc(100% - 30px); gap: 8px; transform: translate(-50%, calc(-50% + .5px)); }
  .why-main__title { font-size: 16px; }
  .why-main__seal { width: 22px; height: 22px; }
  .why-main__text { font-size: 14px; }
  .why__col { gap: 20px; }
  .why-card { height: 164px; }
  .why-card__img--sensitive { left: 0; right: auto; top: -18px; width: 155.001px; height: 232.502px; }
  .why-card__text { gap: 10px; }
  .why-card__text--sensitive { left: auto; right: 19px; width: 158px; text-align: right; transform: translateY(calc(-50% - .5px)); }
  .why-card__text--sensitive .why-card__title { text-align: right; }
  .why-card__title { font-size: 16px; }
  .why-card__p { font-size: 14px; }
  .why-card__rot { left: auto; right: -43.438px; top: -35px; width: 253.438px; height: 286.45px; }
  .why-card__rot img { width: 159.681px; height: 239.521px; transform: rotate(-28deg); }
  .why-card--blue:hover .why-card__rot img { transform: rotate(-24deg) translateY(-4px); }
  .why-card__text--thermal { left: 20px; right: auto; width: 174px; gap: 12px; text-align: left; }

  /* faq */
  .faq__grid { margin-top: 34px; }
  .faq-help { display: none; }
  .faq__list { gap: 20px; }
  .faq-item__q { min-height: 60px; padding: 0 14px 0 20px; gap: 12px; font-size: 14px; }
  .faq-item__q > span:first-child { max-width: 312px; padding: 10px 0; }
  .faq-item__icon { width: 30px; height: 30px; }
  .faq-item__icon img { width: 18px; height: 18px; }
  .faq-item__a > p { padding: 0 56px 0 20px; font-size: 14px; }
  .faq-item.is-open { border-radius: 24px; }
  .faq-item.is-open .faq-item__a > p { padding-bottom: 18px; }

  /* cta — mobile version (not in the Figma mobile frame; follows the stacked tablet layout) */
  .cta { width: calc(100% - 16px); max-width: 414px; margin-top: 80px; padding: 40px 20px 200px; }
  .cta { --fw: 47cqw; --fb: 44px; }
  .cta__content { gap: 22px; }
  .cta__copy { gap: 12px; }
  .cta__title { font-size: clamp(26px, 7.6vw, 32px); line-height: 1.15; }
  .cta__lead { font-size: 14px; line-height: 1.45; }

  /* footer */
  .footer { width: 100%; max-width: none; height: auto; margin: 90px 0 0; padding: 30px 0 0; border-radius: 20px; }
  .footer__inner { position: static; transform: none; width: calc(100% - 61px); max-width: 369px; margin: 0 auto; flex-direction: column; align-items: stretch; gap: 24px; }
  .footer__brand { flex: none; width: 100%; max-width: none; gap: 14px; }
  .footer__logo { font-size: 16px; }
  .footer__logo .logo--44 { width: 24px; height: 24px; }
  .footer__about { font-size: 16px; }
  .footer__cols { flex-direction: column; align-items: stretch; gap: 20px; }
  .fcol, .fcol--social { width: 100%; gap: 0; }
  .fcol:nth-child(3) { padding-bottom: 20px; border-bottom: 1px solid var(--divider); }
  .fcol__head { width: 100%; height: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; cursor: pointer; }
  .fcol__caret { display: block; width: 24px; height: 24px; transform: rotate(90deg); transition: transform .3s var(--ease); }
  .fcol.is-open .fcol__caret { transform: rotate(-90deg); }
  .fcol__links { display: flex; gap: 0; max-height: 0; overflow: hidden; font-size: 15px; transition: max-height .35s var(--ease); }
  .fcol.is-open .fcol__links { max-height: 200px; }
  .fcol__links li a { display: block; padding-top: 12px; }
  .fcol--social { flex-direction: row; align-items: center; justify-content: space-between; }
  .fcol__title { font-size: 16px; }
  .social { flex-direction: row; gap: 14px; }
  .social__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .footer__word { position: relative; left: auto; bottom: auto; transform: none; display: block; width: max-content; margin: 36px 0 0 calc(50% - 155px); font-size: 44px; letter-spacing: -1.76px; height: 60px; }
  .footer__leaf { left: -4.22px; bottom: -53.02px; width: 71.992px; height: 131.247px; }
  .footer__leaf img { width: 63.277px; height: 127.143px; transform: rotate(176deg) scaleY(-1); }
}

/* ---------- smaller phones ---------- */
@media (max-width: 429px) {
  .review__photo { width: 38%; }
  .review__author > div { width: auto; min-width: 0; }
}
@media (max-width: 400px) {
  .why-card__img--sensitive { top: -8px; width: 132px; height: 198px; }
  .why-card__text--sensitive { width: min(158px, 54%); right: 16px; }
  .why-card__rot { scale: .82; transform-origin: right center; }
  .why-card__text--thermal { width: min(174px, 56%); }
}
@media (max-width: 379px) {
  /* stack review cards: photo on top, text below */
  .review { flex-direction: column; }
  .review__photo { order: -1; width: 100%; height: 220px; border-radius: 15px 15px 0 0; }
  .review__body { flex: none; height: auto; padding: 20px; border-radius: 0 0 15px 15px; }
  .review__foot { margin-top: 28px; }
  .footer__word { margin: 36px auto 0; font-size: 38px; height: 52px; }
}
