/* Product pages: same precise studio language as the homepage, distinct proof scenes per app. */
.product-page {
  min-height: 100vh;
  overflow-x: clip;
  background: #edf3f5;
  color: #111318;
}

.product-vault { --product-accent: #c8ff42; --product-accent-ink: #233400; --product-dark: #0d1015; --product-soft: #dfe8eb; }
.product-wallpapers { --product-accent: #ffada0; --product-accent-ink: #5b2119; --product-dark: #151a29; --product-soft: #e7eaf5; }
.product-kids { --product-accent: #ffcf3e; --product-accent-ink: #503900; --product-dark: #111724; --product-soft: #f2e9cb; }

.product-nav {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 64px));
  transform: translateX(-50%);
}

.product-brand,
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}
.product-brand { padding: 0 12px; border-radius: 999px; background: rgba(9, 12, 15, .44); backdrop-filter: blur(12px) saturate(140%); }
.product-brand img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.product-back { padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px) saturate(140%); }
.product-back:hover { background: rgba(255, 255, 255, .27); }

.product-hero {
  position: relative;
  isolation: isolate;
  width: min(1320px, calc(100% - 48px));
  min-height: min(760px, calc(100svh - 30px));
  margin: 24px auto clamp(72px, 9vw, 128px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--product-dark);
  color: #fff;
}
.product-hero-life,
.product-hero-shade { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.product-hero-life { object-fit: cover; object-position: center; }
.product-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(6, 9, 13, .92), rgba(6, 9, 13, .64) 46%, rgba(6, 9, 13, .11) 78%), linear-gradient(0deg, rgba(6, 9, 13, .36), transparent 44%); }
.product-wallpapers .product-hero-life { object-position: 55% center; }
.product-kids .product-hero-life { object-position: 52% center; }

.product-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(48px, 9vw, 150px);
  min-height: inherit;
  padding: clamp(110px, 10vw, 150px) clamp(48px, 7vw, 96px) clamp(52px, 7vw, 92px);
}
.product-hero-copy { max-width: 620px; }
.product-hero-meta { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.product-icon { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 8px 14px rgba(0, 0, 0, .2); }
.product-kicker,
.product-companion-copy > p:first-child {
  margin: 0;
  color: var(--product-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-name { margin: 0 0 12px; color: rgba(255, 255, 255, .74); font-size: .94rem; font-weight: 600; }
.product-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.15vw, 6rem);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.04em;
}
.product-summary { max-width: 47ch; margin: 26px 0 0; color: rgba(255, 255, 255, .85); font-size: 1.02rem; line-height: 1.58; text-wrap: pretty; }
.product-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.product-app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #111318;
  font-size: .86rem;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}
.product-app-store:hover { background: var(--product-accent); transform: translateY(-2px); }
.product-text-link { display: inline-flex; gap: 9px; align-items: center; color: #fff; font-size: .88rem; font-weight: 600; }
.product-text-link:hover { color: var(--product-accent); }

.iphone-mockup {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: min(100%, 292px);
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 41px;
  background: linear-gradient(135deg, #878b91, #26292e 13%, #090a0c 61%, #62666c);
  box-shadow: 0 14px 16px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .7);
}
.iphone-mockup::after { position: absolute; z-index: 2; inset: 8px; border-radius: 34px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); content: ""; pointer-events: none; }
.iphone-mockup img { display: block; width: 100%; height: auto; border-radius: 33px; }
.iphone-speaker { position: absolute; z-index: 3; top: 14px; left: 50%; width: 33%; height: 13px; border-radius: 999px; background: #030304; transform: translateX(-50%); }
.product-hero-phone { justify-self: center; width: min(100%, 310px); transform: rotate(3deg); }
.product-kids .product-hero-phone { transform: rotate(-3deg); }

.product-details,
.product-showcase,
.product-companion,
.product-close { width: min(1140px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.product-details { margin-bottom: clamp(52px, 8vw, 96px); }
.product-details-intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(250px, .8fr); gap: clamp(42px, 10vw, 150px); align-items: end; padding-bottom: clamp(40px, 6vw, 70px); border-bottom: 1px solid rgba(17, 19, 24, .18); }
.product-details h2 { max-width: 15ch; margin: 0; font-size: clamp(2.5rem, 4.7vw, 4.8rem); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.product-details p { max-width: 42ch; margin: 0; color: rgba(17, 19, 24, .73); font-size: 1.03rem; line-height: 1.65; text-wrap: pretty; }

.product-showcase {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(38px, 8vw, 124px);
  min-height: 610px;
  margin-bottom: clamp(54px, 8vw, 110px);
  padding: clamp(40px, 6vw, 78px);
  border-radius: 16px;
}
.product-showcase-copy { max-width: 385px; }
.product-showcase-copy h2 { margin: 0; font-size: clamp(2.35rem, 4vw, 4.1rem); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.product-showcase-copy p { margin: 24px 0 0; font-size: 1rem; line-height: 1.62; text-wrap: pretty; }
.product-showcase-vault { background: #101217; color: #fff; }
.product-showcase-vault .product-showcase-copy p { color: rgba(255, 255, 255, .73); }
.product-showcase-wallpapers { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); background: #d8e1f3; color: #111318; }
.product-showcase-wallpapers .product-showcase-copy { grid-column: 2; grid-row: 1; }
.product-showcase-wallpapers .product-showcase-media { grid-column: 1; grid-row: 1; }
.product-showcase-kids { grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); background: #eee3b9; color: #111318; }

.product-showcase-media { position: relative; min-height: 475px; }
.product-stage-phone { position: absolute; bottom: 50%; width: 183px; transform-origin: bottom center; }
.stage-phone-main { z-index: 2; left: 50%; width: 230px; transform: translate(-50%, 50%); }
.stage-phone-left { left: 2%; transform: rotate(-12deg) translateY(48%); }
.stage-phone-right { right: 2%; transform: rotate(12deg) translateY(48%); }
.product-showcase-vault-media::before { position: absolute; inset: 13% 14%; border: 1px solid rgba(200, 255, 66, .33); border-radius: 50%; content: ""; }
.product-showcase-wallpapers-media { min-height: 500px; }
.product-showcase-wallpapers-media .stage-phone-main { width: 214px; transform: translate(-50%, 50%) rotate(-2deg); }
.product-showcase-wallpapers-media .stage-phone-left { left: 7%; transform: rotate(-17deg) translateY(49%); }
.product-showcase-wallpapers-media .stage-phone-right { right: 6%; transform: rotate(15deg) translateY(49%); }
.product-showcase-kids-media { min-height: 474px; overflow: hidden; border-radius: 12px; }
.product-showcase-kids-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-showcase-kids-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(17, 23, 36, .28), transparent 62%); }
.product-showcase-kids-media .stage-phone-main { z-index: 1; bottom: 6%; left: 68%; width: 204px; transform: translateX(-50%) rotate(5deg); }

.product-companion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .76fr); align-items: center; gap: clamp(44px, 9vw, 135px); margin-bottom: clamp(72px, 10vw, 130px); }
.product-companion-media { position: relative; min-height: 460px; }
.product-companion-phone { position: absolute; bottom: 0; width: 220px; }
.companion-phone-left { left: 14%; transform: rotate(-6deg); }
.companion-phone-right { right: 14%; transform: rotate(6deg); }
.product-companion-copy { max-width: 395px; }
.product-companion-copy h2 { margin: 18px 0 0; font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.product-companion-copy > p:last-child { margin: 24px 0 0; color: rgba(17, 19, 24, .73); line-height: 1.64; text-wrap: pretty; }
.product-companion-wallpapers { grid-template-columns: minmax(250px, .76fr) minmax(0, 1fr); }
.product-companion-wallpapers .product-companion-media { grid-column: 2; grid-row: 1; background: var(--product-dark); }
.product-companion-wallpapers .product-companion-copy { grid-column: 1; grid-row: 1; }
.product-companion-wallpapers .product-companion-media::before { position: absolute; inset: 16% 18%; border-radius: 50%; background: #ffada0; content: ""; opacity: .82; }
.product-companion-kids .product-companion-media { background: #d6e5e6; }
.product-companion-kids .companion-phone-left { left: 10%; }
.product-companion-kids .companion-phone-right { right: 10%; }

.product-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
  gap: clamp(40px, 9vw, 140px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 88px);
  padding: clamp(40px, 6vw, 68px);
  border-radius: 16px;
  background: #101217;
  color: #fff;
}
.product-close-copy > p { margin: 0 0 18px; color: var(--product-accent); font-size: .82rem; font-weight: 700; }
.product-close h2 { max-width: 13ch; margin: 0; font-size: clamp(2.3rem, 4.2vw, 4.35rem); font-weight: 400; line-height: .94; letter-spacing: -.04em; }
.product-close .product-app-store { margin-top: 28px; }
.product-close-links { display: grid; }
.product-close-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: .96rem; font-weight: 600; }
.product-close-links a:first-child { border-top: 1px solid rgba(255, 255, 255, .22); }
.product-close-links a:hover { color: var(--product-accent); }

.product-footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px max(24px, calc((100% - 1140px) / 2)); background: #050505; color: rgba(255, 255, 255, .72); font-size: .82rem; }
.product-footer a:hover { color: #fff; }

@media (max-width: 760px) {
  .product-nav { top: 14px; width: calc(100% - 32px); }
  .product-brand { min-height: 40px; padding-inline: 10px; }
  .product-back { min-height: 40px; padding-inline: 13px; font-size: .8rem; }
  .product-hero,
  .product-details,
  .product-showcase,
  .product-companion,
  .product-close { width: min(calc(100% - 32px), 620px); }
  .product-hero { min-height: 690px; margin-top: 16px; margin-bottom: 72px; }
  .product-hero-life { object-position: 60% center; }
  .product-hero-shade { background: linear-gradient(0deg, rgba(6, 9, 13, .96), rgba(6, 9, 13, .56) 64%, rgba(6, 9, 13, .12)); }
  .product-hero-content { grid-template-columns: 1fr; align-content: start; gap: 24px; padding: 104px 24px 0; }
  .product-hero h1 { max-width: 9ch; font-size: clamp(3.15rem, 14vw, 4.55rem); }
  .product-summary { margin-top: 19px; font-size: .94rem; }
  .product-hero-actions { gap: 16px; margin-top: 24px; }
  .product-hero-phone { width: 190px; margin: -4px auto 0; }
  .product-details { margin-bottom: 52px; }
  .product-details-intro { grid-template-columns: 1fr; gap: 24px; padding-bottom: 42px; }
  .product-details h2 { max-width: 13ch; font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .product-details p { font-size: .98rem; }
  .product-showcase,
  .product-showcase-wallpapers,
  .product-showcase-kids { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 30px 24px 36px; }
  .product-showcase-wallpapers .product-showcase-copy,
  .product-showcase-wallpapers .product-showcase-media { grid-column: auto; grid-row: auto; }
  .product-showcase-copy h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }
  .product-showcase-media { min-height: 390px; }
  .product-stage-phone { width: 145px; }
  .stage-phone-main { width: 180px; }
  .product-showcase-wallpapers-media { min-height: 400px; }
  .product-showcase-wallpapers-media .stage-phone-main { width: 176px; }
  .product-showcase-kids-media { min-height: 380px; }
  .product-showcase-kids-media .stage-phone-main { width: 166px; }
  .product-companion,
  .product-companion-wallpapers { grid-template-columns: 1fr; gap: 34px; margin-bottom: 78px; }
  .product-companion-wallpapers .product-companion-media,
  .product-companion-wallpapers .product-companion-copy { grid-column: auto; grid-row: auto; }
  .product-companion-media { min-height: 340px; }
  .product-companion-phone { width: 165px; }
  .companion-phone-left { left: 8%; }
  .companion-phone-right { right: 8%; }
  .product-companion-copy h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }
  .product-close { grid-template-columns: 1fr; gap: 36px; padding: 34px 24px; }
  .product-close h2 { font-size: clamp(2.3rem, 10vw, 3.35rem); }
  .product-footer { display: grid; grid-template-columns: 1fr 1fr; }
  .product-footer span { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .product-app-store { transition: none; }
}
