/* P-Mobile: white and pink. --pink is sampled from the P-Mobile logo. */
:root {
  --pink: #da2282;
  --pink-dark: #b8166c;
  --pink-tint: #fdeef4;
  --pink-soft: #fff7fa;
  --ink: #161616;
  --grey: #6e6e73;
  --line: #e8e8ea;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }

h1, h2, .wordmark, dt {
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 64px; display: flex; align-items: center; gap: 40px; }
.wordmark { font-weight: 800; font-size: 26px; color: var(--pink); }
.wordmark.small { font-size: 20px; }
.menu { display: flex; gap: 28px; font-size: 15px; margin-right: auto; }
.menu a { color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--pink); }
.header-cta {
  font-size: 14px; font-weight: 600;
  background: var(--pink); color: #fff;
  padding: 9px 18px; border-radius: 4px;
}
.header-cta:hover { background: var(--pink-dark); }
.menu-toggle { display: none; width: 32px; height: 32px; position: relative; }
.menu-toggle span { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle span:first-child { top: 12px; }
.menu-toggle span:last-child { top: 19px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 4px; border: 1.5px solid transparent;
}
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; height: calc(100svh - 64px); min-height: 520px; max-height: 860px; background: #000; overflow: hidden; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; }
.hero-kicker { font-size: 15px; font-weight: 600; color: #ff9cc6; margin-bottom: 8px; }
.hero h1 { font-size: clamp(56px, 9vw, 128px); font-weight: 800; line-height: .95; }
.hero-sub { font-size: clamp(16px, 1.6vw, 20px); max-width: 520px; margin: 16px 0 28px; color: rgba(255,255,255,.88); }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.video-toggle {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  font-size: 12px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: 4px; padding: 6px 12px;
}

/* ---------- line-up ---------- */
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 32px; }
.lineup { padding: 96px 0 104px; }
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phone { display: flex; flex-direction: column; }
.phone-img {
  background: var(--pink-soft); aspect-ratio: 4 / 5;
  display: grid; place-items: center; padding: 36px 24px; margin-bottom: 18px; overflow: hidden;
}
.phone-img img { height: 100%; max-width: 100%; width: auto; object-fit: contain; transition: transform .4s ease; }
.phone:hover .phone-img img { transform: translateY(-6px); }
.phone h3 { font-size: 22px; font-weight: 700; }
.phone .tagline { color: var(--grey); font-size: 15px; margin: 4px 0 12px; min-height: 45px; }
.phone .price { font-weight: 600; margin-bottom: 14px; }
.phone .links { display: flex; gap: 20px; font-weight: 600; font-size: 15px; margin-top: auto; }
.phone .links a { color: var(--pink); }
.phone .links a:hover { text-decoration: underline; }

/* ---------- swatches ---------- */
.swatches { display: flex; gap: 14px; align-items: center; margin: 12px 0 0; flex-wrap: wrap; }
.phone .swatches { margin: 0 0 12px; gap: 10px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  outline: 2px solid transparent; outline-offset: 2px;
}
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.swatch-label { font-size: 14px; color: var(--grey); margin-left: 4px; }

/* ---------- feature sections ---------- */
.feature { padding: 104px 0; }
.feature-pink { background: var(--pink-tint); }
.feature-soft { background: var(--pink-soft); }
.feature-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.feature-head h2 { font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: .95; }
.feature-head p { font-size: clamp(17px, 1.6vw, 21px); color: #3a3a3c; max-width: 480px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-media { aspect-ratio: 1 / 1; background: #000; overflow: hidden; display: grid; place-items: center; }
.split-media.plain, .split-media.swatch-stage { background: #fff; }
.split-media img { height: 82%; max-width: 90%; width: auto; object-fit: contain; transition: opacity .25s; }
.split-media video { width: 100%; height: 100%; object-fit: cover; }
.split + .swatches { margin-top: 20px; }

.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,.12); margin-top: 40px; padding-top: 28px; gap: 24px;
}
.figures dt { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; color: var(--pink); line-height: 1; }
.figures dd { color: var(--grey); font-size: 15px; margin-top: 8px; }

.wide-video { margin-top: 48px; aspect-ratio: 16 / 9; background: #000; }
.wide-video video { width: 100%; height: 100%; object-fit: cover; }

/* Cyber 15 photo mosaic */
.mosaic {
  display: grid; gap: 20px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  grid-template-areas: "a b c" "a b d";
}
.mosaic > * { width: 100%; height: 100%; object-fit: cover; background: #000; }
.m-a { grid-area: a; } .m-b { grid-area: b; } .m-c { grid-area: c; } .m-d { grid-area: d; }
#cyber15 .figures { margin-bottom: 48px; }

/* ---------- compare ---------- */
.compare { padding: 104px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
th, td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 18px; font-weight: 700; border-bottom: 2px solid var(--ink); }
tbody th { color: var(--grey); font-weight: 500; width: 16%; }

/* ---------- support + footer ---------- */
.support { background: var(--pink); color: #fff; padding: 72px 0; }
.support-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.support h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; margin-bottom: 12px; line-height: 1.05; }
.support h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.support a { border-bottom: 1px solid rgba(255,255,255,.5); }
.support a:hover { border-color: #fff; }
.footer { padding: 28px 0; font-size: 14px; color: var(--grey); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 4px 20px 12px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-row { gap: 16px; }
  .header-cta { margin-left: auto; }
  .lineup-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .feature-head { grid-template-columns: 1fr; gap: 16px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lineup, .feature, .compare { padding: 64px 0; }
  .split { grid-template-columns: 1fr; }
  .mosaic {
    grid-template-columns: 1fr 1fr; grid-template-rows: 240px 320px 200px;
    grid-template-areas: "a a" "b c" "b d";
  }
  .hero-text { bottom: 72px; }
  .phone .tagline { min-height: 0; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 420px) {
  .lineup-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-img img { transition: none; }
}

/* Fit product shots fully inside their frames */
.phone-img, .split-media { position: relative; }
.phone-img img {
  position: absolute; inset: 36px 24px;
  width: calc(100% - 48px); height: calc(100% - 72px); max-width: none;
  object-fit: contain;
}
.split-media img {
  position: absolute; inset: 8%;
  width: 84%; height: 84%; max-width: none;
  object-fit: contain;
}

/* ---------- logo ---------- */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; }
.footer-logo { height: 120px; width: auto; }

/* ---------- scroll-driven turn ---------- */
.turn { position: relative; height: 420vh; background: var(--white); }
.turn-sticky {
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: min(1240px, 100% - 40px); margin-inline: auto;
}
.turn-sticky::before {
  content: ""; position: absolute; z-index: 0;
  width: min(62vh, 560px); aspect-ratio: 1; border-radius: 50%;
  right: 25%; top: 50%; transform: translate(50%, -50%);
  background: var(--pink-tint);
}
.turn-copy { position: relative; z-index: 1; height: 220px; }
.turn-step {
  position: absolute; inset: 0 auto auto 0; max-width: 440px;
  font-size: clamp(18px, 1.7vw, 22px); color: #3a3a3c;
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
}
.turn-step.on { opacity: 1; transform: none; }
.turn-step span {
  display: block; color: var(--ink); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1; margin-bottom: 14px;
  font-variation-settings: "wdth" 112; letter-spacing: -0.02em;
}
.turn-step:first-child span { color: var(--pink); }
.turn-stage { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; }
.turn-phone { position: relative; height: min(72vh, 680px); will-change: width; }
.turn-phone img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; opacity: 0; will-change: opacity;
  user-select: none; -webkit-user-drag: none;
}
.turn-shadow {
  position: absolute; bottom: calc(50% - min(36vh, 340px) - 26px); left: 50%;
  width: 46%; height: 18px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18), transparent 70%);
}
.turn-progress { position: absolute; left: 0; right: 0; bottom: 28px; height: 2px; background: var(--line); z-index: 1; }
.turn-progress span { display: block; height: 100%; width: 0; background: var(--pink); }

@media (max-width: 800px) {
  .turn { height: 380vh; }
  .turn-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 28px; }
  .turn-sticky::before { right: 50%; top: 60%; width: 80vw; }
  .turn-copy { height: 150px; }
  .turn-step span { font-size: 40px; margin-bottom: 8px; }
  .turn-phone { height: min(54vh, 480px); }
  .turn-shadow { bottom: calc(50% - min(27vh, 240px) - 22px); }
  .brand-logo { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .turn-step { transition: none; }
}
.turn-step { transition: opacity .2s ease, transform .2s ease; }
.turn-step:not(.on) { transform: translateY(-16px); }
.turn-step.on { transition: opacity .45s ease .2s, transform .45s ease .2s; }

/* ---------- address ---------- */
address { font-style: normal; }
.support address { margin-bottom: 14px; }
.support .directions { font-weight: 600; }
.footer-info { display: flex; flex-direction: column; gap: 4px; text-align: right; }
@media (max-width: 640px) { .footer-info { text-align: left; } }

/* ---------- SM P1: light video hero ---------- */
.hero-light { background: #f6e9ee; color: var(--ink); }
.hero-light::after { background: linear-gradient(to top, rgba(255,255,255,.85), rgba(255,255,255,0) 50%); }
.hero-light .hero-kicker { color: var(--pink); }
.hero-light .hero-sub { color: #3a3a3c; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.hero-light .hero-sub { max-width: 340px; }
@media (min-width: 1001px) { .hero-light .hero-text { max-width: 1240px; } .hero-light h1 { max-width: 34%; } }
/* On phones: show the whole SM P1 film, with the text underneath instead of on top */
@media (max-width: 640px) {
  .hero-light { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: var(--pink-soft); }
  .hero-light::after { display: none; }
  .hero-light .hero-video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .hero-light .hero-text { position: relative; bottom: auto; padding: 28px 0 44px; }
  .hero-light .hero-sub { max-width: none; }
}
