/* ============================================
   Brand Statement — fullscreen video background
   ============================================ */
.brand-statement {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-statement-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-statement-poster,
.brand-statement-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.brand-statement-poster {
  z-index: 1;
  transition: opacity 0.6s ease;
}

.brand-statement-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.brand-statement-video.is-playing {
  opacity: 1;
}

.brand-statement-video.is-playing + .brand-statement-poster,
.brand-statement-bg:has(.brand-statement-video.is-playing) .brand-statement-poster {
  opacity: 0;
}

.brand-statement-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--sp-lg);
}

.brand-statement-text {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 16ch;
  margin: 0 auto;
  line-height: 1.15;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .brand-statement-video {
    display: none;
  }

  /* Portrait poster frames the model in the lower half, so lift the copy
     into the clean upper area of the wall (stops the sub-line sitting on
     top of her). Desktop keeps the centred 16:9 composition. */
  .brand-statement {
    align-items: flex-start;
  }

  .brand-statement-content {
    padding-top: 20vh;
  }
}

/* ============================================
   Before / After
   ============================================ */
.before-after {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.before-after-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/pattern-toile-baroque-navy.webp') repeat center center;
  background-size: 500px 500px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.before-after .container {
  position: relative;
  z-index: 1;
}

.before-after h2 {
  margin-bottom: var(--sp-lg);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-md);
  max-width: 900px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  border-radius: var(--glass-radius);
  overflow: hidden;
  cursor: ew-resize;
  aspect-ratio: 3 / 4;
  user-select: none;
  -webkit-user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before .placeholder-img,
.ba-after .placeholder-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
}

.ba-handle-line {
  flex: 1;
  width: 2px;
  background: var(--c-white);
  opacity: 0.8;
}

.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.ba-handle-circle svg {
  width: 20px;
  height: 20px;
}

.ba-handle-circle svg path {
  stroke: var(--c-navy);
}

/* ============================================
   How It Works — Horizontal Scroll
   ============================================ */
/* Pinned frame: the whole section freezes (GSAP pin) while you scroll.
   Background + phone + title stay still; the steps reveal in place.
   Flex column so the title sits on top and the phone+steps cluster
   centres in the remaining space (not the whole viewport) — balanced. */
.how-it-works {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-white);
  overflow: hidden;
  /* override the generic `section { padding: var(--sp-section) 0 }` (base.css):
     this is a full-viewport pinned frame, the 8vw vertical padding squeezed the
     content band so tight the phone filled it and touched the title. */
  padding: 0;
}

.hiw-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-cream, #faf8f5);
  background-image: url('../assets/pattern-toile-baroque-navy.webp');
  background-repeat: repeat;
  background-position: center center;
  background-size: 500px 500px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.hiw-title {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
  /* hug the fixed 72px navbar at the top, then a clear gap (sp-md) BELOW the
     title so it separates from the phone + steps cluster, instead of touching it. */
  padding: calc(var(--nav-height) + var(--sp-sm)) var(--sp-md) var(--sp-md);
  font-size: var(--fs-h2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  margin: 0;
}

/* Two fixed columns: phone (left) + the 3 stacked steps (right).
   flex:1 fills the space below the title so the cluster centres there. */
.hiw-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-md) var(--sp-md);
}

/* Right column: 3 steps stacked, the cluster centred within its half */
.hiw-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* gap shrinks on short viewports so the 3-step cluster never crowds the title */
  gap: clamp(1.5rem, 4vh, 4rem);
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--sp-sm);
  /* fixed width so all 3 steps left-align (badges line up) while the
     whole cluster stays centred in the column */
  width: min(360px, 100%);
  /* hidden until scroll reveals it; once revealed it stays, full opacity */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hiw-step.is-revealed {
  opacity: 1;
  transform: none;
}

/* step number + heading on the same row */
.hiw-text-head {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.hiw-step .step-number {
  position: relative;
  isolation: isolate;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-lilac), var(--c-denim));
  color: var(--c-white);
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: var(--fw-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Active step: sparkling blinking ring around the number — same effect as the
   navbar "Coming soon" button (reuses --cta-angle + cta-border-spin/blink). */
.hiw-step.is-active .step-number::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0deg,
    rgba(255, 255, 255, 0.95) 35deg,
    var(--c-lilac) 70deg,
    transparent 130deg,
    transparent 230deg,
    var(--c-denim) 290deg,
    rgba(255, 255, 255, 0.95) 325deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation:
    cta-border-spin 4s linear infinite,
    cta-border-blink 1.6s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hiw-step.is-active .step-number::after {
    animation: none;
    background: rgba(190, 158, 255, 0.7);
  }
}

.hiw-step h3 {
  font-size: var(--fs-h3);
  color: var(--c-navy);
  margin: 0;
}

.hiw-step p {
  color: var(--c-slate);
  font-size: var(--fs-body);
  margin: 0;
  max-width: 320px;
}

/* Phone fixed in the centre of the pinned frame */
.hiw-phone-mockup {
  position: relative;
  justify-self: center;
  /* iPhone screen ratio 19.5:9 — phone frame is baked into the image (transparent bg).
     Height tracks the viewport (clamped) so the phone never fills the whole band and
     leaves breathing room above it; width derives from the locked aspect ratio. */
  height: clamp(460px, 64vh, 620px);
  width: auto;
  aspect-ratio: 280 / 607;
  /* shadow follows the phone silhouette, not a rectangle */
  filter: drop-shadow(0 16px 40px rgba(0, 39, 62, 0.18));
}

/* The 3 screens are stacked; only .is-active shows (crossfade between steps) */
.hiw-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hiw-screen.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hiw-screen {
    transition: none;
  }
}

/* ============================================
   Use Cases — Style Every Moment
   ============================================ */
.use-cases {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
}

.uc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Color bridge into the CTA section: flat cream across the upper ~75%, then
     melts into the CTA sky's top lilac (#d9cdf2) at the very bottom so the
     Section 5 -> CTA boundary has no hard seam (both sides meet on lilac). */
  background: linear-gradient(180deg, #f7f6f4 0%, #f7f6f4 75%, #d9cdf2 100%);
}

.uc-bg-model {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90%;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.uc-title {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  z-index: 1;
  font-size: clamp(3rem, 7vw, 6.5rem);
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  margin: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.uc-title-left {
  position: relative;
  left: -0.5em;
}

.uc-title-right {
}

.uc-title-every {
  background: linear-gradient(90deg, #4D6C93 0%, #BE9EFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uc-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.uc-card {
  position: absolute;
  width: 180px;
  padding: 8px 8px 32px 8px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 39, 62, 0.15);
  pointer-events: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  top: 38%;
  left: 45%;
  transform-origin: 50% 100%;
}

.uc-card:nth-child(1) { transform: rotate(-44deg); z-index: 5; }
.uc-card:nth-child(2) { transform: rotate(-22deg); z-index: 4; }
.uc-card:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.uc-card:nth-child(4) { transform: rotate(22deg); z-index: 2; }
.uc-card:nth-child(5) { transform: rotate(44deg); z-index: 1; }

.uc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 2px;
  display: block;
}

/* Source images are 9:16 full-body; the 3:4 window center-crops ~12.5% off top.
   These 4 have heads near the top edge, so anchor the crop upward to keep the
   face + outfit (trades off some footroom). Café (nth-child 5) sits lower — keep
   it centered. */
.uc-card:nth-child(1) img,
.uc-card:nth-child(2) img,
.uc-card:nth-child(3) img,
.uc-card:nth-child(4) img {
  object-position: 50% 10%;
}

.uc-card-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-slate);
  text-align: center;
  padding-top: 4px;
}

.uc-ribbons {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100vw;
  z-index: 4;
}

.uc-ribbon {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  background: white;
  padding: 12px 0;
  transform-origin: center;
}

.uc-ribbon--ltr {
  transform: rotate(-2deg);
}

.uc-ribbon--rtl {
  transform: rotate(2deg);
  margin-top: 8px;
}

.uc-ribbon span {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-heading);
  letter-spacing: 0.3em;
  color: var(--c-navy);
  text-transform: uppercase;
}

/* Reduced-motion fallback */
.uc-no-animation {
  height: auto;
  overflow: visible;
}

.uc-no-animation .uc-title {
  position: relative;
  top: auto;
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
}

.uc-no-animation .uc-cards {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
}

.uc-no-animation .uc-card {
  position: relative;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* ============================================================
   Brand statement subtitle — inclusivity sub-line under H2
   ============================================================ */
.brand-statement-sub {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--c-lilac);
  text-align: center;
  margin-top: var(--sp-sm);
  letter-spacing: 0.01em;
  opacity: 0.92;
}

/* ============================================================
   Section 6.5: FAQ
   ============================================================ */
.faq {
  padding: var(--sp-section) 0;
  background: var(--c-white);
}

.faq .container {
  max-width: 880px;
}

.faq h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  color: var(--c-navy);
  text-align: center;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.01em;
}

.faq-intro {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--c-slate);
  max-width: 640px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.faq-item {
  border-top: 1px solid var(--c-navy-10);
  padding: var(--sp-sm) 0;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--c-navy-10);
}

.faq-item summary {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  color: var(--c-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-xs) 0;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-lilac);
  transition: transform 0.2s ease;
  margin-left: var(--sp-sm);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--c-lilac);
}

.faq-item p {
  font-size: var(--fs-body);
  color: var(--c-slate);
  line-height: 1.6;
  margin: var(--sp-xs) 0 var(--sp-sm);
  max-width: 720px;
}
