/* CossyVita premium landing — scoped under .home */

.home {
  --bg: #f6f1ea;
  --bg-soft: #fbf7f2;
  --ink: #2a2235;
  --muted: #7d7488;
  --faint: #a49cad;
  --line: #ebe3da;
  --line-soft: rgba(42, 34, 53, 0.08);
  --accent: #6b4f86;
  --accent-deep: #3f2853;
  --lilac: #cbb6e0;
  --lilac-soft: #f0e8f7;
  --lilac-mid: #e4d6f0;
  --card: #ffffff;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 14px;
  --max: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 8px 24px rgba(42, 34, 53, 0.05);
  --shadow-md: 0 18px 44px rgba(42, 34, 53, 0.08);
  --shadow-lg: 0 28px 60px rgba(42, 34, 53, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.home .wrap {
  width: min(100% - 2.5rem, var(--max));
  max-width: var(--max);
  margin-inline: auto;
}

/* Keep header/nav on the same content rail as sections */
.home .site-header .wrap.nav {
  width: min(100% - 2.5rem, var(--max));
  max-width: var(--max);
}

/* ——— Media slot / placeholder ——— */
.media-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--lilac-soft);
}

.media-slot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-slot--cover > img {
  object-fit: cover;
}

.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(107, 79, 134, 0.05), rgba(107, 79, 134, 0.02)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(107, 79, 134, 0.03) 12px,
      rgba(107, 79, 134, 0.03) 24px
    ),
    #ebe4dc;
  border: 1.5px dashed rgba(107, 79, 134, 0.22);
  color: var(--accent-deep);
  box-sizing: border-box;
}

.media-ph[hidden] {
  display: none !important;
}

.media-ph-inner {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.media-ph-size {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.media-ph-label {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 16ch;
  line-height: 1.35;
}

.media-ph-icon {
  width: 26px;
  height: 26px;
  opacity: 0.4;
  margin-bottom: 0.2rem;
}

/* ——— Phone frame ———
   Full-app screenshots already include UI safe areas. Tightness comes from a
   thin CSS bezel + aggressive corner clip. Keep content full-bleed inside the
   screen, but give the hardware frame real thickness and matching radii. */
.home .phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 32px;
  /* +2px top/sides for cropped screenshots */
  padding: 8px 8px 6px;
  background: linear-gradient(165deg, #34283f, #1a1422);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
  flex-shrink: 0;
}

.home .phone--sm { width: 210px; }
.home .phone--lg { width: 270px; }

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 9px;
  border-radius: 999px;
  background: #0c0910;
  z-index: 3;
  pointer-events: none;
}

/* Screenshots already have status/header chrome — skip fake notch on decks */
.deck-active .phone-notch {
  display: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #f3eee8;
}

.phone-screen .media-slot,
.phone-screen .media-ph {
  border-radius: 0;
  border: 0;
  min-height: 100%;
  height: 100%;
}

.phone-screen .media-slot > img {
  object-fit: cover;
  object-position: center center;
}

.deck-active .phone-screen .media-slot > img {
  object-fit: cover;
  object-position: center center;
  transform: none;
}

/* ——— Header ——— */
.home .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  /* Sit over hero scene until scroll */
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.home .site-header.is-scrolled {
  background: rgba(251, 247, 242, 0.9) !important;
  border-bottom-color: rgba(235, 227, 218, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 10px 28px rgba(42, 34, 53, 0.04) !important;
}

.home .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.home .nav-links a {
  color: var(--muted);
  position: relative;
}

.home .nav-links a:hover,
.home .nav-links a.is-active,
.home .nav-links a[aria-current="true"],
.home .nav-links a[aria-current="page"] {
  color: var(--accent-deep);
}

.home .nav-links a.is-active::after,
.home .nav-links a[aria-current="true"]::after,
.home .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 999px;
}

.home .nav-cta {
  background: var(--accent);
  border-radius: 999px;
  color: #fff !important;
}

.home .nav-cta::after {
  display: none !important;
}

.home .nav-cta:hover {
  background: var(--accent-deep);
  color: #fff !important;
}

.home .nav-cta.is-active {
  color: #fff !important;
}

/* Anchor targets clear the sticky header */
.home #ana {
  scroll-margin-top: 0;
}

.home #nasil,
.home #ozellikler,
.home #cilt-analizi,
.home #indir,
.home #guven {
  scroll-margin-top: calc(var(--nav-h) + 0.85rem);
}

/* ——— Motion primitives ——— */
.home .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.home .stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.home .stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.home .stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.home .stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.home .stagger > .reveal:nth-child(5) { transition-delay: 320ms; }

.home .reveal-d1 { transition-delay: 80ms; }
.home .reveal-d2 { transition-delay: 160ms; }
.home .reveal-d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .home .reveal,
  .home .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .home .hero-float,
  .analysis-float,
  .analysis-float--metric,
  .steps-layout.is-leaving-next .deck-item,
  .steps-layout.is-leaving-prev .deck-item,
  .deck-item,
  .feature-slide.is-active .feature-mini-card,
  .feature-slide.is-active .feature-mini-card__img::after,
  .feature-slide.is-active .feature-mini-card__badge {
    animation: none !important;
    transition: none !important;
  }

  .feature-slide.is-active .feature-mini-card__img img {
    transform: none !important;
  }
}

/* ——— Eyebrow / section titles ——— */
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--accent-deep);
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 38ch;
}

.home-section {
  padding: 5.75rem 0;
}

.section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.slider-count {
  min-width: 4.6rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}

.icon-btn:hover:not(:disabled) {
  background: var(--lilac-soft);
  border-color: rgba(107, 79, 134, 0.28);
  transform: translateY(-1px);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.home .btn {
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.home .btn:hover {
  transform: translateY(-1px);
}

.home .btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* ——— Hero ——— */
/* Copy left + portrait with phone right (floating mini cards) */
.home .hero {
  display: block;
  position: relative;
  min-height: 0;
  padding: calc(var(--nav-h) + 1.5rem) 0 3.25rem;
  margin-top: calc(-1 * var(--nav-h));
  overflow: visible;
  grid-template-columns: none;
  gap: 0;
  background-color: #f6f1ea;
  background-image:
    radial-gradient(ellipse 70% 55% at 88% 42%, rgba(203, 182, 224, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(240, 232, 247, 0.55), transparent 58%);
}

.home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: clamp(480px, 62vh, 640px);
  overflow: visible;
}

.home .hero .eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-deep);
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.55rem, 5.2vw, 4.05rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
  max-width: 11ch;
}

.home .hero-copy {
  max-width: 34rem;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--muted);
}

.home .hero .store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.home .hero .btn-store {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.home .hero .btn-store:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.home .hero-trust {
  list-style: none;
  margin: 1.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  max-width: 36rem;
}

.home .hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.35;
}

.home .hero-trust__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 40, 83, 0.1);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.home .hero-trust__icon svg {
  width: 16px;
  height: 16px;
}

.home .hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  margin-inline: auto 0;
}

.home .hero-phone-scene {
  position: relative;
  width: 100%;
  /* Side gutters so floats sit outside the phone, not over the screen */
  padding: 1.1rem 4.75rem 1.35rem;
}

.home .hero-device {
  position: relative;
  z-index: 2;
  width: min(300px, 74%);
  margin-inline: auto;
  aspect-ratio: 9 / 19.4;
  border-radius: 2.1rem;
  /* +2px top/sides for cropped screenshots */
  padding: 7px 7px 5px;
  background: linear-gradient(160deg, #2c2436, #141018 55%, #1d1724);
  box-shadow:
    0 28px 56px rgba(42, 34, 53, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.home .hero-device__screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.65rem;
  background: #f7f2ec;
}

.home .hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(42, 34, 53, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 200px;
  pointer-events: none;
}

.home .hero-float strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.25;
}

.home .hero-float span,
.home .hero-float small,
.home .hero-float em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

/* Phone half-width helpers: device = min(300px, 74%) → half = min(150px, 37%)
   Cards overlap the bezel by ~16px so their edge sits on the frame. */
.home .hero-float--score {
  top: 11%;
  left: auto;
  right: calc(50% + min(150px, 37%) - 16px);
  animation: soft-float 5.2s var(--ease-out) infinite;
}

.home .hero-float__ring {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at center, #fff 56%, #3cb878 57%);
}

.home .hero-float__ring span {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent-deep);
}

.home .hero-float--score em {
  margin-top: 0.15rem;
  color: #2f9e63;
  font-weight: 650;
}

.home .hero-float--product {
  top: 32%;
  left: calc(50% + min(150px, 37%) - 16px);
  right: auto;
  max-width: none;
  width: max-content;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem 0.75rem 0.7rem;
  animation: soft-float 5.8s var(--ease-out) 0.4s infinite;
}

.home .hero-float--product img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}

.home .hero-float--product small,
.home .hero-float--product strong,
.home .hero-float--product span {
  white-space: nowrap;
}

.home .hero-float--product small {
  color: var(--accent);
  font-weight: 650;
}

.home .hero-float--match {
  bottom: 22%;
  left: auto;
  right: calc(50% + min(150px, 37%) - 16px);
  max-width: none;
  width: max-content;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem 0.75rem 0.7rem;
  animation: soft-float 6.2s var(--ease-out) 0.8s infinite;
}

.home .hero-float--match strong,
.home .hero-float--match span {
  white-space: nowrap;
}

.home .hero-float__badge {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7f6ee;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.home .hero-float__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.2 10.2 16l7.3-8' stroke='%232f9e63' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.home .hero-float-stack {
  position: absolute;
  z-index: 3;
  left: calc(50% + min(150px, 37%) - 16px);
  right: auto;
  bottom: 7%;
  width: auto;
  min-width: 168px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  pointer-events: none;
  transform: none;
}

.home .hero-float--insight {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  max-width: none;
  width: max-content;
  gap: 3px;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  background: #fff;
  transform: none;
}

.home .hero-float--insight img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
}

.home .hero-float--insight strong {
  font-size: 0.72rem;
  line-height: 1.2;
  max-width: none;
  white-space: nowrap;
}

.home .hero-float--insight-a {
  animation: soft-float 5.4s var(--ease-out) infinite;
}

.home .hero-float--insight-b {
  animation: soft-float 5.4s var(--ease-out) 0.35s infinite;
}

@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Portrait in an arch with the phone in front; her hair breaks out over the top of the arch.
   Her shoulders are cropped in the source, so the image ends exactly on the arch's right and bottom edges. */
.home .hero-grid .hero-visual {
  width: min(100%, 520px, max(340px, calc((100svh - 140px) / 1.066)));
  max-width: none;
}

.home .hero-visual .hero-portrait {
  aspect-ratio: 1 / 1.066;
  padding: 0;
}

.hero-portrait__arch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92%;
  height: 87%;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, #e8dcf6 0%, #f1e3ee 58%, #f8e7dd 100%);
  box-shadow: 0 40px 70px -44px rgba(63, 40, 83, 0.4);
}

.hero-portrait__woman {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92%;
  border-radius: 0 0 32px 32px;
}

.home .hero-portrait .hero-device {
  position: absolute;
  bottom: 4%;
  left: 0;
  width: 37%;
  margin: 0;
  padding: 5px;
  border-radius: 1.6rem;
}

.home .hero-portrait .hero-device__screen {
  border-radius: 1.25rem;
}

.home .hero-portrait .hero-float--score {
  top: -2%;
  right: -3%;
  left: auto;
}

.home .hero-portrait .hero-float--product {
  top: 2%;
  right: auto;
  left: -6%;
}

.home .hero-portrait .hero-float--match {
  right: -3%;
  bottom: 6%;
  left: auto;
}

@media (max-width: 640px) {
  .home .hero-portrait .hero-float--score,
  .home .hero-portrait .hero-float--match {
    right: 0.25rem;
  }

  .home .hero-portrait .hero-float--product {
    left: 0;
  }
}

@media (max-width: 340px) {
  .home .hero-portrait .hero-float--product {
    top: -2%;
  }
}

/* ——— Steps: active phone + stacked deck ——— */
.steps {
  padding-top: 2rem;
  /* Match hero→steps rhythm: keep a tighter bottom before features */
  padding-bottom: 3.25rem;
  overflow: visible;
}

.features-section {
  /* Pair with .steps padding-bottom ≈ hero→steps spacing */
  padding-top: 2rem;
}

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.steps-left .section-title {
  max-width: 14ch;
}

.steps-left .section-lead {
  margin-top: 1rem;
  max-width: 36ch;
}

.steps-active-copy {
  position: relative;
  margin-top: 2.5rem;
  min-height: 220px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.steps-active-copy h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.steps-active-copy p {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 34ch;
}

.steps-next-btn {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--lilac-soft);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.steps-next-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.steps-next-btn:hover {
  background: var(--lilac-mid);
  transform: translateY(-1px);
}

.steps-next-btn:hover svg {
  transform: translateX(3px);
}

.steps-right {
  position: relative;
  outline: none;
  min-height: 0;
}

.steps-right:focus-visible {
  box-shadow: 0 0 0 2px rgba(107, 79, 134, 0.22);
  border-radius: 16px;
}

.steps-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.steps-deck {
  --deck-phone-w: 300px;
  --deck-active-w: var(--deck-phone-w);
  --deck-card-w: 168px;
  /* Peek ~35–40% of each stacked card (reference fan) */
  --deck-gap: 62px;
  position: relative;
  /* Phone height × active scale + product/shadow room */
  height: calc(var(--deck-phone-w) * 19.2 / 9 * 1.12 + 3rem);
  width: 100%;
  overflow: visible;
}

.steps-deck.is-mockup-active {
  --deck-active-w: calc(var(--deck-phone-w) * 19.2 / 9 * 457 / 892);
}

.deck-item {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
  transform-origin: left center;
  transition:
    transform 0.48s var(--ease),
    opacity 0.48s var(--ease),
    filter 0.48s var(--ease),
    box-shadow 0.48s var(--ease);
  will-change: transform, opacity;
}

.deck-item.is-active {
  z-index: 20;
  width: var(--deck-active-w);
  transform: translate3d(0, 8px, 0) scale(1.06);
  opacity: 1;
  cursor: default;
  pointer-events: none;
  filter: drop-shadow(0 28px 48px rgba(42, 34, 53, 0.22));
}

.deck-item.is-stack {
  z-index: calc(15 - var(--stack-i, 0));
  width: var(--deck-card-w);
  cursor: pointer;
  transform: translate3d(
      calc(var(--deck-active-w) + 10px + (var(--stack-i, 0) * var(--deck-gap))),
      calc(28px + var(--stack-i, 0) * 14px),
      0
    )
    scale(calc(0.98 - var(--stack-i, 0) * 0.025));
  opacity: calc(1 - var(--stack-i, 0) * 0.06);
  filter: saturate(calc(1 - var(--stack-i, 0) * 0.03));
}

.deck-item.is-stack:hover {
  opacity: 1;
  filter: none;
  transform: translate3d(
      calc(var(--deck-active-w) + 10px + (var(--stack-i, 0) * var(--deck-gap))),
      calc(22px + var(--stack-i, 0) * 14px),
      0
    )
    scale(calc(1 - var(--stack-i, 0) * 0.02));
}

.deck-item.is-stack:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 22px;
}

.deck-active {
  position: relative;
  width: 100%;
}

.deck-active .phone {
  width: 100%;
  pointer-events: none;
  border-radius: 30px;
  padding: 7px 7px 5px;
}

.deck-active .phone-screen {
  border-radius: 25px;
  background: #120e18;
}

/* Full screenshot mockup — match .phone height, keep asset’s own thin bezel (no CSS chrome) */
.deck-active--mockup {
  position: relative;
  width: fit-content;
  max-width: none;
  margin-inline: 0;
}

.deck-mockup {
  display: block;
  width: auto;
  height: calc(var(--deck-phone-w) * 19.2 / 9);
  aspect-ratio: 457 / 892;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  border: 0;
  min-height: 0;
  box-shadow: none;
}

.deck-mockup > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

.deck-product {
  position: absolute;
  left: 50%;
  bottom: calc(-1.1rem + 2px);
  transform: translateX(-50%);
  z-index: 5;
  width: calc(100% + 56px);
  max-width: 360px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(42, 34, 53, 0.16);
  pointer-events: none;
}

.deck-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f0f6;
}

.deck-product-thumb .media-slot,
.deck-product-thumb .media-ph {
  min-height: 100%;
  border: 0;
  background: #f3f0f6;
}

.deck-product-thumb .media-slot > img {
  object-fit: contain;
  object-position: center bottom;
  padding: 3px;
  box-sizing: border-box;
}

.deck-product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.deck-product-brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a94a6;
  line-height: 1.2;
}

.deck-product-title {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e2740;
  line-height: 1.25;
}

.deck-product-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #8b8794;
  line-height: 1.2;
}

.deck-product--score {
  grid-template-columns: 52px 1fr;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
}

.deck-score-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.deck-score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.deck-score-track {
  fill: none;
  stroke: var(--lilac-soft);
  stroke-width: 4;
}

.deck-score-prog {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.deck-score-val {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--accent-deep);
  letter-spacing: -0.03em;
  line-height: 1;
}

.deck-product--score .deck-product-brand {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.72rem;
  font-weight: 650;
  color: #8a94a6;
}

.deck-product--score .deck-product-title {
  font-size: 0.9rem;
  color: var(--accent-deep);
}


.deck-card {
  width: 100%;
  height: 440px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffdfb 0%, #f4efe8 100%);
  border: 1px solid rgba(235, 227, 218, 0.9);
  box-shadow:
    0 18px 40px rgba(42, 34, 53, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  padding: 1.15rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  overflow: hidden;
}

.deck-card-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.deck-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 11ch;
}

.deck-card-preview {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #efe8f4;
  min-height: 0;
  margin-top: 0.15rem;
}

.deck-card-preview .media-slot,
.deck-card-preview .media-ph {
  min-height: 100%;
  border: 0;
}

.deck-card-preview .media-slot > img {
  object-fit: cover;
  object-position: center top;
}

/* Stack card: ingredients list preview (no squeezed screenshot) */
.deck-ing-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.55rem 0.45rem 0.4rem;
  gap: 0.4rem;
  background: linear-gradient(180deg, #faf7fc 0%, #f3edf8 100%);
}

.deck-ing-top {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 0.25rem;
}

.deck-ing-back {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--accent-deep);
  font-weight: 600;
}

.deck-ing-head {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
  text-align: center;
}

.deck-ing-tools {
  display: inline-flex;
  gap: 0.2rem;
}

.deck-ing-tools span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(107, 79, 134, 0.18);
}

.deck-ing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.deck-ing-chip {
  font-size: 0.52rem;
  font-weight: 650;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid rgba(107, 79, 134, 0.12);
  white-space: nowrap;
}

.deck-ing-chip.is-on {
  background: var(--accent-deep);
  color: #fff;
  border-color: transparent;
}

.deck-ing-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 0;
  overflow: hidden;
}

.deck-ing-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.3rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(42, 34, 53, 0.04);
}

.deck-ing-ico {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ing, #cbb6e0) 22%, #fff);
  color: var(--ing, #6b4f86);
  flex-shrink: 0;
}

.deck-ing-svg {
  width: 10px;
  height: 10px;
  display: block;
}

.deck-ing-aside {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
}

.deck-ing-chev {
  font-size: 0.7rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0.7;
}

.deck-ing-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.deck-ing-meta strong {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-ing-meta strong em {
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--lilac-soft);
  border-radius: 4px;
  padding: 0.05rem 0.22rem;
  margin-left: 0.15rem;
}

.deck-ing-meta small {
  font-size: 0.45rem;
  color: var(--muted);
  line-height: 1.1;
}

.deck-ing-tag {
  font-size: 0.42rem;
  font-weight: 700;
  padding: 0.14rem 0.28rem;
  border-radius: 6px;
  white-space: nowrap;
}

.deck-ing-tag.is-good {
  color: #2f7a4a;
  background: rgba(95, 173, 122, 0.18);
}

.deck-ing-tag.is-warn {
  color: #9a6b1a;
  background: rgba(201, 162, 74, 0.2);
}

.deck-ing-tag.is-neutral {
  color: #6a6570;
  background: rgba(120, 116, 128, 0.14);
}

.deck-ing-row + .deck-ing-row {
  border-top: 0;
}

.deck-ing-list > .deck-ing-row {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.28rem 0.1rem;
  border-bottom: 1px solid rgba(107, 79, 134, 0.08);
}

.deck-ing-list > .deck-ing-row:last-child {
  border-bottom: 0;
}

.steps-layout.is-leaving-next .steps-active-copy,
.steps-layout.is-leaving-prev .steps-active-copy {
  opacity: 0;
  transform: translateY(10px);
}

.steps-layout.is-leaving-next .deck-item.is-active {
  opacity: 0;
  transform: translate3d(-36px, 0, 0) scale(0.96);
}

.steps-layout.is-leaving-prev .deck-item.is-active {
  opacity: 0;
  transform: translate3d(36px, 0, 0) scale(0.96);
}

/* ——— Features carousel ——— */
.features-layout {
  display: grid;
  /* More room for title — card starts a bit further right */
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  /* Vertically center copy with the feature visual */
  align-items: center;
}

.features-intro {
  max-width: 100%;
}

.features-intro .eyebrow {
  margin-bottom: 0.85rem;
}

.features-intro .section-title {
  margin: 0;
  /* Width fits the longer line after the forced <br /> */
  max-width: min(32ch, 100%);
}

.features-intro .slider-controls {
  margin-top: 1.35rem;
}

.features-main {
  min-width: 0;
}

.features-main .home-dots {
  margin-top: 0.35rem;
}

.features-viewport {
  overflow: hidden;
  width: 100%;
  padding-inline: 0;
  box-sizing: border-box;
}

.features-track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding: 0.85rem 0 1.25rem;
  touch-action: pan-y;
}

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

/* Desktop: one slide fully in view — no peek of neighbors */
@media (min-width: 769px) {
  .features-section .feature-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .features-section .feature-slide--wide .feature-text-card {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    margin-right: -9.75rem;
    padding-right: 10.75rem;
  }

  .features-section .feature-slide .feature-text-card,
  .features-section .feature-slide .feature-stage,
  .features-section .feature-slide .feature-stage--cabinet {
    transition:
      opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* One feature = text + phone visual as a fixed pair */
.feature-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  position: relative;
}

.feature-slide--wide {
  /* text card extends under phone; phone stays on top */
}

/* Side copy cards — reference layout */
.feature-text-card {
  flex: 0 0 min(320px, 78vw);
  align-self: center;
  background: #fff;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(42, 34, 53, 0.08);
  padding: 1.85rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 300px;
  cursor: pointer;
  opacity: 0.88;
  transform: scale(0.97);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  position: relative;
  z-index: 1;
}

.feature-text-card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 48px rgba(42, 34, 53, 0.1);
}

/* Wide slides (cabinet / compare): card stretches under phone — constant size (no jump on active) */
.feature-slide--wide .feature-text-card {
  flex: 0 0 min(560px, 92vw);
  max-width: min(560px, 92vw);
  margin-right: -11.5rem;
  padding-right: 12.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ebe4f5;
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-text-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-text-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
  max-width: 28ch;
  flex: 1;
}

.feature-cta {
  margin-top: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  background: #e4dcf2;
  color: var(--accent-deep) !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-cta:hover {
  background: var(--lilac);
  transform: translateY(-1px);
}

/* Center visual: CSS phone chrome OR full scene mockup */
.feature-stage {
  position: relative;
  flex: 0 0 min(340px, 72vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  padding-bottom: 1.5rem;
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.feature-stage.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Phone mockup slides (cabinet / compare) */
.feature-stage--cabinet {
  position: relative;
  z-index: 2;
  flex: 0 0 min(400px, 78vw);
  min-height: 520px;
  align-items: flex-start;
  justify-content: center;
  padding: 0.25rem 0 3.25rem;
  overflow: visible;
  opacity: 1;
  transform: none;
}

/* Keep identical stage metrics even without minis (prevents phone sitting lower) */
.feature-stage--phone-only {
  padding-bottom: 3.25rem;
}

.feature-stage--phone-only .feature-phone-wrap {
  padding-bottom: 5.5rem;
}

/* Shared phone: straight, closer, identical size/position on all feature slides */
.feature-stage--cabinet .feature-phone-shot {
  transform: scale(1.12);
  transform-origin: center top;
}

.feature-stage--minis-2 .feature-mini-cards {
  width: 118%;
  gap: 0.65rem;
}

.feature-stage--minis-2 .feature-mini-card {
  max-width: 132px;
}

.feature-stage--minis-2 .feature-mini-card:nth-child(1) {
  transform: translateY(4px) rotate(-2deg);
}

.feature-stage--minis-2 .feature-mini-card:nth-child(2) {
  transform: translateY(4px) rotate(2deg);
  z-index: 2;
}

.feature-phone-wrap {
  position: relative;
  width: min(300px, 64vw);
  margin-inline: auto;
  padding-bottom: 5.5rem; /* room for mini cards under phone */
}

.feature-phone-shot {
  display: block;
  width: 100%;
  /* Shared viewport — same box for slides 1 / 2 / 3 (straight phones) */
  height: clamp(450px, 58vw, 540px);
  aspect-ratio: auto;
  border: 0 !important;
  border-radius: 0;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: scale(1.12);
  transform-origin: center top;
}

.feature-phone-shot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: transparent;
  /* Shadow follows phone alpha — avoids rectangular plate behind rounded corners */
  filter: drop-shadow(0 18px 36px rgba(42, 34, 53, 0.18));
}

.feature-phone-shot .media-ph {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.feature-mini-cards {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  width: 138%;
  pointer-events: none;
}

.feature-mini-card {
  flex: 1 1 0;
  max-width: 118px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 0.55rem 0.5rem 0.65rem;
  box-shadow:
    0 14px 32px rgba(42, 34, 53, 0.12),
    0 2px 6px rgba(42, 34, 53, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, box-shadow;
}

.feature-mini-card:nth-child(1) {
  transform: translateY(6px) rotate(-2deg);
}

.feature-mini-card:nth-child(2) {
  transform: translateY(-4px);
  z-index: 2;
}

.feature-mini-card:nth-child(3) {
  transform: translateY(6px) rotate(2deg);
}

/* Active slide: soft float + depth breathe */
.feature-slide.is-active .feature-mini-card:nth-child(1) {
  animation:
    mini-float-a 4.6s var(--ease-out) infinite,
    mini-depth 4.6s var(--ease-out) infinite;
}

.feature-slide.is-active .feature-mini-card:nth-child(2) {
  animation:
    mini-float-b 4.6s var(--ease-out) 0.35s infinite,
    mini-depth 4.6s var(--ease-out) 0.35s infinite;
}

.feature-slide.is-active .feature-mini-card:nth-child(3) {
  animation:
    mini-float-c 4.6s var(--ease-out) 0.7s infinite,
    mini-depth 4.6s var(--ease-out) 0.7s infinite;
}

.feature-slide.is-active .feature-stage--minis-2 .feature-mini-card:nth-child(1) {
  animation-name: mini-float-2a, mini-depth;
}

.feature-slide.is-active .feature-stage--minis-2 .feature-mini-card:nth-child(2) {
  animation-name: mini-float-2b, mini-depth;
}

@keyframes mini-float-a {
  0%,
  100% {
    transform: translateY(6px) rotate(-2deg);
  }
  50% {
    transform: translateY(-1px) rotate(-2deg);
  }
}

@keyframes mini-float-b {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(-11px);
  }
}

@keyframes mini-float-c {
  0%,
  100% {
    transform: translateY(6px) rotate(2deg);
  }
  50% {
    transform: translateY(-1px) rotate(2deg);
  }
}

@keyframes mini-float-2a {
  0%,
  100% {
    transform: translateY(4px) rotate(-2deg);
  }
  50% {
    transform: translateY(-3px) rotate(-2deg);
  }
}

@keyframes mini-float-2b {
  0%,
  100% {
    transform: translateY(4px) rotate(2deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}

@keyframes mini-depth {
  0%,
  100% {
    box-shadow:
      0 14px 32px rgba(42, 34, 53, 0.12),
      0 2px 6px rgba(42, 34, 53, 0.04);
  }
  50% {
    box-shadow:
      0 20px 40px rgba(42, 34, 53, 0.16),
      0 4px 10px rgba(42, 34, 53, 0.06);
  }
}

@keyframes mini-sheen {
  0% {
    transform: translateX(-130%) skewX(-16deg);
    opacity: 0;
  }
  18% {
    opacity: 0.55;
  }
  42% {
    opacity: 0.15;
  }
  100% {
    transform: translateX(160%) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes mini-badge-soft {
  0%,
  100% {
    transform: scale(1);
    background: #ebe4f5;
  }
  50% {
    transform: scale(1.04);
    background: #e4dcf2;
  }
}

/* Icon mini cards (compare slide) */
.feature-mini-card--icon {
  gap: 0.55rem;
  padding: 0.75rem 0.55rem 0.8rem;
  overflow: hidden;
}

.feature-mini-card--icon::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 40%, var(--mini-glow, rgba(126, 98, 168, 0.22)), transparent 68%);
  pointer-events: none;
  opacity: 0.85;
}

.feature-mini-card__icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--mini-ink, var(--accent-deep));
  background: var(--mini-chip, #ebe4f5);
  box-shadow:
    0 8px 18px rgba(42, 34, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feature-mini-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-mini-card--icon-img .feature-mini-card__icon {
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.feature-mini-card--icon-img .feature-mini-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(42, 34, 53, 0.14));
}

.feature-mini-card__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  max-width: 11ch;
  /* Reserve 2 lines so 1-line titles don’t shrink the card */
  min-height: calc(1.25em * 2);
}

.feature-mini-card--lilac {
  --mini-chip: #ebe4f5;
  --mini-ink: #5b3f86;
  --mini-glow: rgba(126, 98, 168, 0.28);
}

.feature-mini-card--gold {
  --mini-chip: #f5ecd8;
  --mini-ink: #8a6a2a;
  --mini-glow: rgba(212, 175, 55, 0.28);
}

.feature-mini-card--mint {
  --mini-chip: #e4f2ea;
  --mini-ink: #2f7a55;
  --mini-glow: rgba(60, 184, 120, 0.26);
}

.feature-slide.is-active .feature-mini-card--icon .feature-mini-card__icon {
  animation: mini-icon-pulse 3.8s var(--ease-out) infinite;
}

.feature-slide.is-active .feature-mini-card--icon:nth-child(1) .feature-mini-card__icon {
  animation-delay: 0.15s;
}

.feature-slide.is-active .feature-mini-card--icon:nth-child(2) .feature-mini-card__icon {
  animation-delay: 0.45s;
}

.feature-slide.is-active .feature-mini-card--icon:nth-child(3) .feature-mini-card__icon {
  animation-delay: 0.75s;
}

.feature-slide.is-active .feature-mini-card--icon::before {
  animation: mini-glow-breathe 4.2s var(--ease-out) infinite;
}

@keyframes mini-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 8px 18px rgba(42, 34, 53, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 12px 24px rgba(42, 34, 53, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }
}

@keyframes mini-glow-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.feature-mini-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.feature-mini-card__img::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.15) 54%,
    transparent 65%
  );
  transform: translateX(-130%) skewX(-16deg);
  pointer-events: none;
}

.feature-slide.is-active .feature-mini-card__img::after {
  animation: mini-sheen 5.5s var(--ease-out) infinite;
}

.feature-slide.is-active .feature-mini-card:nth-child(1) .feature-mini-card__img::after {
  animation-delay: 0.6s;
}

.feature-slide.is-active .feature-mini-card:nth-child(2) .feature-mini-card__img::after {
  animation-delay: 1.4s;
}

.feature-slide.is-active .feature-mini-card:nth-child(3) .feature-mini-card__img::after {
  animation-delay: 2.2s;
}

.feature-mini-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.feature-slide.is-active .feature-mini-card__img img {
  transform: scale(1.03);
}

.feature-mini-card__brand {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-mini-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--muted);
  max-width: 100%;
}

.feature-mini-card__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  color: var(--faint);
}

.feature-mini-card__badge {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #ebe4f5;
  color: var(--accent-deep);
  font-size: 0.58rem;
  font-weight: 650;
  transform-origin: center;
}

.feature-slide.is-active .feature-mini-card__badge {
  animation: mini-badge-soft 3.8s var(--ease-out) infinite;
}

.feature-slide.is-active .feature-mini-card:nth-child(2) .feature-mini-card__badge {
  animation-delay: 0.4s;
}

.feature-slide.is-active .feature-mini-card:nth-child(3) .feature-mini-card__badge {
  animation-delay: 0.8s;
}

.feature-phone-frame {
  width: min(250px, 58vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(165deg, #34283f, #1a1422);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}

.feature-phone-frame .media-slot,
.feature-phone-frame .media-ph {
  height: 100%;
  min-height: 100%;
  border-radius: 28px;
  border: 0;
  background: #efe8e0;
}

.feature-front-card {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  z-index: 4;
  width: min(300px, 78vw);
  aspect-ratio: 520 / 220;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.feature-front-card .media-slot,
.feature-front-card .media-ph {
  min-height: 100%;
  height: 100%;
  border: 0;
  background: #f7f2ec;
}

.home-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.home-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(107, 79, 134, 0.22);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.home-dot.is-active {
  width: 22px;
  background: var(--accent);
}

.home-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ——— Analysis ——— */
.analysis-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.analysis-copy {
  text-align: left;
  padding: 0.5rem 0;
}

.analysis-copy .section-title {
  max-width: 14ch;
}

.analysis-copy .section-lead {
  max-width: 36ch;
}

.analysis-copy .btn {
  margin-top: 1.5rem;
}

.analysis-phone-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  padding: 1rem 5.25rem 1.25rem;
}

.analysis-device {
  position: relative;
  z-index: 2;
  width: min(320px, 78%);
  margin-inline: auto;
  aspect-ratio: 9 / 19.4;
  border-radius: 2.1rem;
  padding: 7px 7px 5px;
  background: linear-gradient(160deg, #2c2436, #141018 55%, #1d1724);
  box-shadow:
    0 28px 56px rgba(42, 34, 53, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.analysis-device__screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.65rem;
  background: #f7f2ec;
}

.analysis-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.9rem 0.72rem 0.7rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(42, 34, 53, 0.12);
  max-width: none;
  width: max-content;
  pointer-events: none;
}

.analysis-float strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.25;
  white-space: nowrap;
}

.analysis-float span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
}

.analysis-float span em {
  font-style: normal;
  color: #2f9e63;
  font-weight: 700;
  margin-left: 0.2rem;
}

.analysis-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
}

/* device half ≈ min(160px, 39%) */
.analysis-float--score {
  top: 28%;
  left: auto;
  right: calc(50% + min(160px, 39%) - 16px);
  animation: soft-float 5.2s var(--ease-out) infinite;
}

.analysis-float__ring {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at center, #fff 56%, transparent 57%),
    conic-gradient(#3cb878 0 76%, #e7efe9 0);
}

.analysis-float__ring span {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--accent-deep);
  white-space: nowrap;
}

.analysis-float--moisture {
  top: 18%;
  left: calc(50% + min(160px, 39%) - 16px);
  right: auto;
  animation: soft-float 5.6s var(--ease-out) 0.25s infinite;
}

.analysis-float--match {
  bottom: 24%;
  left: auto;
  right: calc(50% + min(160px, 39%) - 16px);
  animation: soft-float 6s var(--ease-out) 0.55s infinite;
}

.analysis-float__badge {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7f6ee;
  flex-shrink: 0;
  overflow: hidden;
}

.analysis-float__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.2 10.2 16l7.3-8' stroke='%232f9e63' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.analysis-float-stack {
  position: absolute;
  z-index: 3;
  left: calc(50% + min(160px, 39%) - 16px);
  right: auto;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}

.analysis-float--metric {
  position: relative;
  animation: soft-float 5.8s var(--ease-out) infinite;
}

.analysis-float-stack .analysis-float--metric:nth-child(2) {
  animation-delay: 0.35s;
}

/* ——— Trust ——— */
.trust-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-sm);
}

.trust-band .section-title {
  max-width: 16ch;
}

.trust-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 560;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lilac-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

/* ——— Final CTA ——— */
.final-cta {
  padding: 3.5rem 0 5rem;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.final-cta .section-title {
  max-width: 16ch;
}

.final-cta .section-lead {
  max-width: 36ch;
}

/* ——— FAQ ——— */
.home-faq {
  padding: 1rem 0 4.5rem;
}

.home-faq h2 {
  font-family: var(--font-display);
  color: var(--accent-deep);
}

.home .faq details {
  background: var(--card);
  border-color: var(--line);
}

/* ——— Footer ——— */
.home .site-footer {
  background: #f1ebe4;
  border-top: 1px solid var(--line);
}

.home .footer-grid {
  grid-template-columns: 1.35fr repeat(3, 1fr) auto;
}

.home .footer-social h2 {
  margin: 0 0 0.55rem;
}

.home .footer-social-links {
  display: flex;
  gap: 0.5rem;
}

.home .footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.home .footer-social-links a:hover {
  background: var(--lilac-soft);
  transform: translateY(-1px);
}

.home .footer-social-links svg {
  width: 16px;
  height: 16px;
}

.home .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home .footer-lang {
  display: inline-flex;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.home .footer-lang a {
  color: var(--muted);
  text-decoration: none;
}

.home .footer-lang a[aria-current="true"] {
  color: var(--accent-deep);
  font-weight: 650;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .steps-deck {
    --deck-phone-w: 270px;
    --deck-card-w: 156px;
    --deck-gap: 54px;
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 1.12 + 2.75rem);
  }

  .steps-right {
    min-height: 0;
  }

  .deck-card {
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 0.95);
  }
}

@media (max-width: 1024px) {
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .steps-left {
    text-align: center;
  }

  .steps-left .section-title,
  .steps-left .section-lead,
  .steps-active-copy p {
    margin-inline: auto;
  }

  .steps-active-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .steps-next-btn {
    align-self: center;
    margin-inline: auto;
  }

  .steps-controls {
    justify-content: center;
    width: auto;
    margin-inline: auto;
  }

  .steps-right {
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .steps-deck {
    --deck-phone-w: 250px;
    --deck-card-w: 148px;
    --deck-gap: 48px;
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 1.12 + 2.75rem);
    /* Phone + peek card cluster, centered in the column */
    width: calc(var(--deck-phone-w) * 1.06 + var(--deck-card-w) * 0.7 + 1rem);
    max-width: min(100%, 640px);
    margin-inline: auto;
    overflow: visible;
  }

  .home .hero-grid,
  .analysis-layout,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .analysis-copy {
    text-align: center;
  }

  .analysis-copy .section-title,
  .analysis-copy .section-lead {
    margin-inline: auto;
  }

  .analysis-phone-scene {
    padding-inline: 2.5rem;
    overflow: visible;
  }

  .home .hero-grid {
    min-height: 0;
    gap: 1.75rem;
  }

  .home .hero-visual {
    order: -1;
    justify-self: center;
    width: min(100%, 400px);
    margin-inline: auto;
    overflow: visible;
  }

  .home .hero-phone-scene {
    padding: 1rem 2.25rem 1.25rem;
  }

  .home .hero-device {
    width: min(250px, 64%);
  }

  .home .hero-float--score,
  .home .hero-float--match {
    right: calc(50% + min(125px, 32%) - 10px);
  }

  .home .hero-float--product,
  .home .hero-float-stack {
    left: calc(50% + min(125px, 32%) - 10px);
  }

  .home .hero-copy {
    max-width: 100%;
  }

  .home .hero h1 {
    max-width: 14ch;
  }

  .home .hero-trust {
    gap: 0.85rem 1.1rem;
  }

  .features-viewport {
    overflow: hidden;
  }

  .analysis-phone-scene {
    overflow: hidden;
  }

  .trust-band {
    padding: 2rem;
  }

  .feature-text-card {
    flex-basis: min(280px, 72vw);
    min-height: 260px;
  }

  .feature-stage {
    flex-basis: min(300px, 68vw);
    min-height: 380px;
  }

  .feature-stage--cabinet {
    flex-basis: min(340px, 86vw);
    min-height: 460px;
  }

  .feature-phone-wrap {
    width: min(270px, 60vw);
    padding-bottom: 4.75rem;
  }

  .feature-phone-shot,
  .feature-stage--cabinet .feature-phone-shot {
    transform: scale(1.1);
    transform-origin: center top;
  }

  .feature-mini-cards {
    width: 142%;
    gap: 0.4rem;
  }

  .feature-mini-card {
    max-width: 100px;
    border-radius: 14px;
    padding: 0.45rem 0.4rem 0.5rem;
  }

  .home .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 3.25rem 0;
  }

  .section-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .section-toolbar-copy {
    max-width: 100%;
  }

  .section-toolbar .section-title {
    margin-inline: auto;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .features-main {
    margin-left: 0;
  }

  .features-intro {
    max-width: 100%;
    text-align: center;
    margin-inline: auto;
  }

  .features-intro .section-title {
    margin-inline: auto;
  }

  .features-intro .slider-controls {
    justify-content: center;
    margin-inline: auto;
  }

  .slider-controls {
    justify-content: center;
    margin-inline: auto;
  }

  .home .section-title {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem);
  }

  .home .hero {
    padding: calc(var(--nav-h) + 0.65rem) 0 2.25rem;
  }

  .home .hero-copy {
    text-align: center;
  }

  .home .hero .eyebrow,
  .home .hero h1,
  .hero-lead,
  .home .hero-trust {
    margin-inline: auto;
  }

  .home .hero h1 {
    max-width: 12ch;
  }

  .home .hero .store-row {
    justify-content: center;
  }

  .home .hero-trust {
    justify-content: center;
  }

  .home .hero-visual {
    width: min(100%, 100%);
    max-width: 420px;
    overflow: visible;
  }

  .home .hero-phone-scene {
    /* Side room for floats without clipping */
    padding: 0.85rem 0.15rem 1.1rem;
    overflow: visible;
  }

  .home .hero-device {
    width: min(210px, 54%);
  }

  .home .hero-float {
    max-width: min(118px, 31vw);
    width: min(118px, 31vw);
    gap: 0.35rem;
    padding: 0.42rem 0.45rem;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* Score title is longer — give room and allow a clean 2-line wrap */
  .home .hero-float--score {
    width: auto;
    max-width: min(158px, 44vw);
    min-width: 0;
  }

  .home .hero-float--score > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .home .hero-float--score strong {
    white-space: normal;
    overflow: visible;
    display: block;
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .home .hero-float strong {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .home .hero-float span,
  .home .hero-float small,
  .home .hero-float em {
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .home .hero-float__ring {
    width: 32px;
    height: 32px;
  }

  .home .hero-float__ring span {
    font-size: 0.58rem;
  }

  .home .hero-float--product img {
    width: 30px;
    height: 30px;
  }

  .home .hero-float--product,
  .home .hero-float--match {
    max-width: min(118px, 31vw);
    width: min(118px, 31vw);
    padding: 0.42rem 0.45rem;
  }

  .home .hero-float--product small,
  .home .hero-float--product strong,
  .home .hero-float--product span,
  .home .hero-float--match strong,
  .home .hero-float--match span,
  .home .hero-float--insight strong {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home .hero-float--product small {
    -webkit-line-clamp: 1;
  }

  /* Pin floats inside the scene with a small inset from the screen edge */
  .home .hero-float--score,
  .home .hero-float--match {
    left: 0.2rem;
    right: auto;
  }

  .home .hero-float--product,
  .home .hero-float-stack {
    left: auto;
    right: 0.2rem;
  }

  .home .hero-float-stack {
    min-width: 0;
    width: min(118px, 31vw);
    align-items: stretch;
  }

  .home .hero-float--insight {
    width: 100%;
    max-width: 100%;
    padding: 0.38rem 0.4rem;
  }

  .home .hero-float--insight img {
    width: 26px;
    height: 26px;
  }

  .home .hero-float--insight strong {
    -webkit-line-clamp: 1;
  }

  .home .hero-trust li {
    font-size: 0.8rem;
  }

  .steps-next-btn {
    align-self: center;
  }

  .steps-controls {
    justify-content: center;
    width: auto;
    margin-inline: auto;
  }

  .steps-right {
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .steps-deck {
    --deck-phone-w: min(200px, 52vw);
    --deck-card-w: min(112px, 30vw);
    --deck-gap: 28px;
    /* Phone height × active scale + soft shadow room (no hard clip) */
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 1.06 + 1.25rem);
    width: calc(var(--deck-phone-w) * 1.06 + var(--deck-card-w) * 0.72 + 0.75rem);
    max-width: 100%;
    margin-inline: auto;
    overflow: visible;
    padding-bottom: 0.5rem;
  }

  .deck-item.is-active {
    transform: translate3d(0, 2px, 0) scale(1.02);
    /* Avoid filter drop-shadow clipping against overflow-x parents */
    filter: none;
  }

  .deck-item.is-active .phone,
  .deck-item.is-active .deck-mockup {
    box-shadow: 0 18px 36px rgba(42, 34, 53, 0.18);
  }

  .deck-item.is-stack:nth-child(n + 3) {
    display: none;
  }

  .deck-card {
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 0.98);
    max-height: 400px;
    padding: 0.85rem 0.75rem;
  }

  .deck-card-title {
    font-size: 0.92rem;
  }

  .features-viewport {
    padding-inline: 0;
    overflow: hidden;
  }

  .features-track {
    gap: 1rem;
    padding: 0.75rem 0 1.25rem;
  }

  .features-main .home-dots {
    justify-content: center;
  }

  .feature-slide,
  .feature-slide--wide {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    gap: 1rem;
  }

  /* Visual first, copy below */
  .feature-slide .feature-stage,
  .feature-slide .feature-stage--cabinet {
    order: 1;
  }

  .feature-slide .feature-text-card {
    order: 2;
  }

  /* Wide feature: white shell starts mid-phone so the device pops above the card */
  .feature-slide--wide {
    --wide-shell-top: clamp(8.5rem, 37vw, 11.5rem);
    position: relative;
    gap: 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.2rem 0.75rem 0.15rem;
  }

  .feature-slide--wide::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: var(--wide-shell-top);
    bottom: 0;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(42, 34, 53, 0.08);
    pointer-events: none;
  }

  .feature-text-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 1.4rem 1.25rem 1.3rem;
    min-height: 0;
    border-radius: 24px;
    align-items: center;
    text-align: center;
  }

  .feature-text-card p {
    margin-inline: auto;
  }

  .feature-icon {
    margin-inline: auto;
  }

  .feature-cta {
    margin-inline: auto;
  }

  .feature-slide--wide .feature-text-card {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    padding: 0.45rem 0.45rem 0.85rem;
    border-radius: 0;
    align-items: center;
    text-align: center;
  }

  .feature-slide--wide .feature-icon {
    margin-bottom: 0.65rem;
  }

  .feature-slide--wide .feature-cta {
    margin-top: 0.95rem;
  }

  .feature-slide--wide .feature-text-card p {
    margin-top: 0.45rem;
  }

  .feature-stage {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-bottom: 2rem;
  }

  .feature-slide--wide .feature-stage--cabinet {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 0;
    padding: 0.15rem 0 0;
    overflow: visible;
  }

  .feature-phone-wrap {
    width: min(220px, 58vw);
    padding-bottom: 5.25rem;
  }

  .feature-slide--wide .feature-phone-wrap {
    width: min(210px, 54vw);
    /* Only a short overhang — mini cards sit mostly on the phone */
    padding-bottom: 3.35rem;
  }

  /* Soft float kept on mobile; travel stays small */
  .feature-slide.is-active .feature-mini-card:nth-child(1) {
    animation:
      mini-float-a 4.6s var(--ease-out) infinite,
      mini-depth 4.6s var(--ease-out) infinite;
  }

  .feature-slide.is-active .feature-mini-card:nth-child(2) {
    animation:
      mini-float-b 4.6s var(--ease-out) 0.35s infinite,
      mini-depth 4.6s var(--ease-out) 0.35s infinite;
  }

  .feature-slide.is-active .feature-mini-card:nth-child(3) {
    animation:
      mini-float-c 4.6s var(--ease-out) 0.7s infinite,
      mini-depth 4.6s var(--ease-out) 0.7s infinite;
  }

  .feature-phone-shot,
  .feature-stage--cabinet .feature-phone-shot {
    height: clamp(320px, 88vw, 400px);
    transform: scale(1.02);
    transform-origin: center top;
  }

  .feature-mini-cards,
  .feature-stage--minis-2 .feature-mini-cards {
    width: 118%;
    gap: 0.35rem;
    /* Lift onto the phone bezel / nav — same feel as slide 1 */
    bottom: 2.75rem;
  }

  .feature-mini-card,
  .feature-stage--minis-2 .feature-mini-card {
    max-width: 96px;
    border-radius: 14px;
    padding: 0.4rem 0.35rem 0.45rem;
  }

  .feature-mini-card--icon {
    padding: 0.45rem 0.3rem 0.5rem;
  }

  .analysis-layout {
    gap: 1.5rem;
  }

  .analysis-phone-scene {
    padding: 0.55rem 0.15rem 1rem;
    overflow: visible;
    max-width: 100%;
  }

  .analysis-device {
    width: min(210px, 54%);
  }

  .analysis-float {
    gap: 0.3rem;
    padding: 0.38rem 0.42rem 0.38rem 0.34rem;
    border-radius: 13px;
    max-width: min(118px, 32vw);
    width: auto;
  }

  /* Keep the soft float motion on mobile (was previously forced off) */
  .analysis-float--score {
    animation: soft-float 5.2s var(--ease-out) infinite;
  }

  .analysis-float--moisture {
    animation: soft-float 5.6s var(--ease-out) 0.25s infinite;
  }

  .analysis-float--match {
    animation: soft-float 6s var(--ease-out) 0.55s infinite;
  }

  .analysis-float--metric {
    animation: soft-float 5.8s var(--ease-out) infinite;
  }

  .analysis-float-stack .analysis-float--metric:nth-child(2) {
    animation-delay: 0.35s;
  }

  .analysis-float strong {
    font-size: 0.6rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .analysis-float span {
    font-size: 0.52rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .analysis-float img {
    width: 24px;
    height: 24px;
  }

  .analysis-float__ring {
    width: 32px;
    height: 32px;
  }

  .analysis-float__ring span {
    font-size: 0.64rem;
  }

  .analysis-float__badge {
    width: 22px;
    height: 22px;
  }

  /* Match hero: pin floats to the scene edge so they hug the phone frame */
  .analysis-float--score,
  .analysis-float--match {
    left: 0.2rem;
    right: auto;
  }

  .analysis-float--moisture,
  .analysis-float-stack {
    left: auto;
    right: 0.2rem;
  }

  /* Sit on the phone body — not floating above the device */
  .analysis-float--moisture {
    top: 24%;
  }

  .analysis-float--score {
    top: 36%;
  }

  .analysis-float--match {
    bottom: 20%;
  }

  .analysis-float-stack {
    bottom: 8%;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .final-cta .section-title,
  .final-cta .section-lead {
    margin-inline: auto;
  }

  .final-cta .store-row {
    justify-content: center;
  }

  .home .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home .footer-social {
    text-align: center;
  }

  .home .footer-social-links {
    justify-content: center;
  }

  .home .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .home .wrap,
  .home .site-header .wrap.nav {
    width: min(100% - 1.25rem, var(--max));
  }

  .home .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  .home .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .home .hero-phone-scene {
    padding-inline: 0.1rem;
  }

  .home .hero-device {
    width: min(196px, 50%);
  }

  .home .hero-float,
  .home .hero-float--product,
  .home .hero-float--match,
  .home .hero-float-stack {
    max-width: min(108px, 29vw);
    width: min(108px, 29vw);
  }

  .home .hero-float--score {
    top: 7%;
    width: auto;
    max-width: min(148px, 46vw);
  }

  .home .hero-float--score strong {
    font-size: 0.55rem;
  }

  .home .hero-float--product {
    top: 26%;
  }

  .home .hero-float--match {
    bottom: 16%;
  }

  .home .hero-float-stack {
    display: none;
  }

  .home .hero .btn-store {
    flex: 1 1 140px;
    justify-content: center;
  }

  .home .phone,
  .home .phone--lg {
    width: min(210px, 68vw);
  }

  .home .phone--sm {
    width: min(170px, 56vw);
  }

  .steps-deck {
    --deck-phone-w: min(178px, 48vw);
    --deck-card-w: min(100px, 27vw);
    --deck-gap: 22px;
    height: calc(var(--deck-phone-w) * 19.2 / 9 * 1.06 + 1.1rem);
    width: calc(var(--deck-phone-w) * 1.06 + var(--deck-card-w) * 0.72 + 0.5rem);
  }

  .deck-item.is-stack {
    transform: translate3d(
        calc(var(--deck-active-w) + 6px + (var(--stack-i, 0) * var(--deck-gap))),
        calc(14px + var(--stack-i, 0) * 8px),
        0
      )
      scale(calc(0.97 - var(--stack-i, 0) * 0.03));
  }

  .deck-item.is-stack:nth-child(n + 3) {
    display: none;
  }

  .feature-slide,
  .feature-slide--wide {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }

  .feature-slide--wide {
    --wide-shell-top: clamp(7.25rem, 34vw, 9.75rem);
    padding: 0.15rem 0.55rem 0.1rem;
  }

  .feature-slide--wide .feature-text-card {
    flex-basis: auto;
    padding: 0.35rem 0.35rem 0.7rem;
  }

  .feature-slide--wide .feature-stage--cabinet {
    flex-basis: auto;
    min-height: 0;
    margin-top: 0;
  }

  .feature-phone-wrap {
    width: min(200px, 54vw);
    padding-bottom: 4.75rem;
  }

  .feature-slide--wide .feature-phone-wrap {
    width: min(190px, 50vw);
    padding-bottom: 2.85rem;
  }

  .feature-phone-shot,
  .feature-stage--cabinet .feature-phone-shot {
    height: clamp(280px, 82vw, 360px);
    transform: scale(1.02);
  }

  .feature-mini-cards,
  .feature-stage--minis-2 .feature-mini-cards {
    width: 116%;
    bottom: 2.35rem;
  }

  .feature-mini-card {
    max-width: 82px;
  }

  .feature-mini-card__name {
    -webkit-line-clamp: 1;
  }

  .feature-mini-card__title {
    font-size: 0.64rem;
  }

  .analysis-phone-scene {
    padding: 0.35rem 0.05rem 0.85rem;
    overflow: visible;
  }

  .analysis-device {
    width: min(188px, 50%);
  }

  .analysis-float {
    max-width: min(104px, 30vw);
    padding: 0.32rem 0.36rem 0.32rem 0.28rem;
  }

  .analysis-float-stack {
    display: none;
  }

  .analysis-float--moisture {
    top: 22%;
    left: auto;
    right: 0.15rem;
  }

  .analysis-float--score {
    top: 34%;
    left: 0.15rem;
    right: auto;
  }

  .analysis-float--match {
    bottom: 18%;
    left: 0.15rem;
    right: auto;
  }
}
