/* Workout SUM 2.2 landing page. Loaded after styles.css; reuses nav, faq, more-apps, footer. */
:root {
  --teal: #0096b4;
  --teal-deep: #06323f;
  --teal-ink: #021a22;
  --gold: #ffc800;
  --flame: #ff8a2a;
}

body.home {
  background: var(--bg);
}

/* Phone frame */
.phone {
  position: relative;
  margin: 0;
  width: var(--w, 260px);
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w, 260px) * 0.155);
  padding: calc(var(--w, 260px) * 0.028);
  background: #0b0d10;
  box-shadow:
    0 0 0 1.5px #3a3f46,
    0 0 0 4px #14171b,
    0 40px 90px rgba(0, 20, 30, 0.45);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w, 260px) * 0.127);
  object-fit: cover;
  object-position: top;
}

/* Hero */
.home-hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 80px;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(0, 150, 180, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(0, 150, 180, 0.22), transparent 70%),
    linear-gradient(160deg, #04222c 0%, var(--teal-ink) 70%);
}

.home-hero .brand,
.home-hero .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.home-hero .brand {
  color: white;
}

.home-hero .nav-link:hover,
.home-hero .nav-link:focus-visible {
  color: white;
}

.home-hero .brand img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.home-hero .eyebrow {
  color: var(--gold);
}

.home-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  line-height: 0.9;
}

.home-hero .lede {
  color: white;
  max-width: 600px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.home-hero .intro {
  color: rgba(255, 255, 255, 0.72);
}

.home-hero .secondary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.home-hero .secondary-button:hover,
.home-hero .secondary-button:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 200, 0, 0.12);
}

.home-hero .store-badge-link img,
.home-hero .badge-button img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.hero-phones {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 640px;
}

.hero-phones .phone:nth-child(1) {
  --w: min(24vw, 290px);
  margin-top: 70px;
  transform: rotate(-4deg);
}

.hero-phones .phone:nth-child(2) {
  --w: min(24vw, 290px);
  margin-left: -4%;
  transform: rotate(3deg);
}

.hero-watch {
  position: absolute;
  left: 0;
  bottom: 4%;
  width: min(13vw, 150px);
  height: auto;
  border-radius: 26%;
  box-shadow: 0 0 0 3px #1b1f24, 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
}

/* Trust strip */
.trust {
  width: min(1180px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 12px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust div {
  padding: 18px 20px;
  background: var(--panel);
  text-align: center;
}

.trust div:first-child { border-radius: 11px 0 0 11px; }
.trust div:last-child { border-radius: 0 11px 11px 0; }

.trust strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
}

.trust span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Video */
.video-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.video-copy .section-kicker { color: var(--teal); }

.video-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.video-copy p:last-child {
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.68;
}

.video-frame {
  justify-self: center;
  width: min(100%, 320px);
  border-radius: 40px;
  padding: 8px;
  background: #0b0d10;
  box-shadow: 0 0 0 1.5px #3a3f46, 0 0 0 4px #14171b, 0 40px 90px rgba(0, 20, 30, 0.35);
  overflow: hidden;
}

.video-frame {
  position: relative;
}

.video-play {
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 0;
  border-radius: 32px;
  padding: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: white;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 26, 34, 0.78));
  font: inherit;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.video-play-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(255, 200, 0, 0.28), 0 14px 40px rgba(0, 0, 0, 0.4);
  animation: video-pulse 2.2s ease-out infinite;
  transition: transform 160ms ease;
}

.video-play-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-36%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--teal-ink);
}

.video-play-label {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(2, 26, 34, 0.7);
  font-size: 0.95rem;
  font-weight: 850;
}

.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon {
  transform: scale(1.08);
}

.video-play:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

@keyframes video-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.5), 0 14px 40px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: 0 0 0 26px rgba(255, 200, 0, 0), 0 14px 40px rgba(0, 0, 0, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .video-play-icon { animation: none; }
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 598 / 1296;
  border-radius: 32px;
  background: var(--teal-ink);
  object-fit: cover;
}

/* Feature rows */
.rows {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 24px;
  display: grid;
  gap: clamp(72px, 10vw, 128px);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.row.flip .row-art { order: -1; }

.row-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.row-copy > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.68;
  max-width: 520px;
}

.row-copy ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.row-copy li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.45;
}

.row-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.row .section-kicker {
  color: var(--teal);
}

.row-art {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 0;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 150, 180, 0.32), transparent 72%),
    linear-gradient(180deg, #0a3a49, var(--teal-ink));
  overflow: hidden;
}

.row-art.warm {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 138, 42, 0.35), transparent 72%),
    linear-gradient(180deg, #3a1d0c, #1a0d05);
}

.row-art.light {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 150, 180, 0.18), transparent 72%),
    linear-gradient(180deg, #e8f4f8, #cfe6ee);
}

.row-art .phone {
  --w: min(70vw, 270px);
}

.row-art.pair {
  gap: 0;
}

.row-art.pair .phone {
  --w: min(40vw, 220px);
}

.row-art.pair .phone:first-child {
  margin-right: -6%;
  margin-top: 36px;
  transform: rotate(-3deg);
}

.row-art.pair .phone:last-child {
  transform: rotate(2deg);
}

/* Watch / widgets / Siri */
.ecosystem {
  margin-top: clamp(72px, 10vw, 120px);
  padding: clamp(64px, 9vw, 112px) 0;
  color: white;
  background:
    radial-gradient(ellipse 60% 60% at 80% 0%, rgba(0, 150, 180, 0.4), transparent 70%),
    linear-gradient(170deg, #04222c, var(--teal-ink));
}

.ecosystem-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ecosystem-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.ecosystem-head .section-kicker {
  color: var(--gold);
}

.ecosystem-head h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.ecosystem-head p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.watch-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.watch-strip figure {
  overflow: visible;
  text-align: center;
}

.watch-strip img {
  border-radius: 20%;
  box-shadow: 0 0 0 3px #1b1f24, 0 20px 50px rgba(0, 0, 0, 0.5);
}

.watch-strip figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.eco-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(40px, 6vw, 72px);
}

.eco-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.05);
}

.eco-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.eco-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.eco-card img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-top: 22px;
  border-radius: 14px;
}

.siri-quotes {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.siri-quotes span {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--teal-ink);
  background: white;
  font-weight: 800;
}

.siri-quotes span:nth-child(2) { background: var(--gold); }
.siri-quotes span:nth-child(3) { background: #7fd6e8; }

/* Small features */
.more-features {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0 40px;
}

.more-features > h2 {
  max-width: 14ch;
  margin-bottom: 40px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.more-features .feature-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.more-features .feature-grid article {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(0, 150, 180, 0.07), transparent 62%),
    var(--panel);
}

.more-features .feature-mark {
  margin-bottom: 36px;
}

.feature-mark.teal { background: var(--teal); }
.feature-mark.gold { background: var(--gold); }
.feature-mark.flame { background: var(--flame); }

/* Light and dark */
.appearance {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.appearance .section-kicker { color: var(--teal); }

.appearance h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.appearance p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.68;
  max-width: 520px;
}

.appearance-art {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, #e8f4f8, #0a3a49);
}

.appearance-art .phone {
  --w: min(38vw, 210px);
}

.appearance-art .phone:first-child {
  margin-right: -4%;
  transform: rotate(-3deg);
}

.appearance-art .phone:last-child {
  margin-top: 28px;
  transform: rotate(3deg);
}

.icon-pair {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.icon-pair img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(18, 34, 56, 0.2);
}

.home .privacy-panel .section-kicker { color: var(--teal); }

.home .eyebrow { color: var(--gold); }

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 140px;
  }

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

  .hero-phones {
    min-height: 0;
    padding-top: 20px;
  }

  .hero-phones .phone:nth-child(1),
  .hero-phones .phone:nth-child(2) {
    --w: min(40vw, 260px);
  }

  .hero-watch {
    width: min(24vw, 140px);
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -20px;
  }

  .trust div:first-child,
  .trust div:last-child { border-radius: 0; }

  .trust div:last-child { grid-column: 1 / -1; }

  .video-section,
  .row,
  .appearance,
  .eco-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .row.flip .row-art { order: 0; }

  .watch-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .more-features .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero { padding: 124px 16px 56px; }

  .home-hero .hero-copy { max-width: calc(100vw - 32px); }

  .trust,
  .rows,
  .more-features,
  .appearance,
  .ecosystem-inner {
    width: min(100% - 28px, 1180px);
  }

  .more-features .feature-grid {
    grid-template-columns: 1fr;
  }

  .row-art.pair .phone { --w: min(42vw, 180px); }
}
