/* =========================================================================
   Apple Homepage Exact Design System (apple.com Architecture)
   Pure Light Theme — Identical Text Placement & Sizing as apple.com
   ========================================================================= */

:root {
  --apple-bg-base: #ffffff;
  --apple-bg-section: #f5f5f7;
  --apple-bg-section-alt: #fbfbfd;
  --apple-bg-card: #f5f5f7;
  --apple-bg-card-pure: #ffffff;
  --apple-text-primary: #1d1d1f;
  --apple-text-secondary: #6e6e73;
  --apple-text-subhead: #1d1d1f;
  --apple-blue: #064e3b;
  --apple-blue-hover: #065f46;
  --apple-blue-active: #022c22;
  --apple-gap: 12px;
  --apple-card-radius: 18px;
  --mesh-bg-gradient: 
    radial-gradient(circle 800px at 16% 26%, rgba(208, 224, 255, 0.85) 0%, rgba(208, 224, 255, 0.28) 45%, transparent 75%),
    radial-gradient(circle 900px at 84% 36%, rgba(255, 224, 218, 0.90) 0%, rgba(255, 224, 218, 0.32) 48%, transparent 75%),
    radial-gradient(ellipse 95% 75% at 50% 50%, rgba(252, 253, 255, 0.94) 0%, rgba(241, 243, 248, 0.65) 60%, transparent 100%),
    radial-gradient(circle 750px at 50% 90%, rgba(235, 239, 246, 0.95) 0%, transparent 70%),
    #eef1f6;
}

/* GPU-Composited Background & Lenis Smooth Scroll */
.mesh-canvas-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--mesh-bg-gradient);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.grain-overlay {
  display: none !important;
}

html::-webkit-scrollbar {
  display: none;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Base Body Styles */
body {
  background-color: var(--apple-bg-base);
  color: var(--apple-text-primary);
  font-family: var(--apple-font-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Apple Announcement Ribbon (apple.com exact styling) ===== */
.apple-ribbon {
  background-color: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  text-align: center;
  font-family: var(--apple-font-text);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: #1d1d1f;
  margin-top: 44px; /* Clears fixed Apple nav */
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.apple-ribbon-content {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 2px;
}

.apple-ribbon-text {
  font-weight: 400;
  color: #1d1d1f;
}

.apple-ribbon-text strong,
.apple-ribbon-badge {
  font-weight: 600;
  color: #1d1d1f;
}

.apple-ribbon-link {
  color: #064e3b;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.apple-ribbon-link:hover {
  color: #065f46;
  text-decoration: underline;
}

.apple-ribbon-chevron {
  width: 6px;
  height: 10px;
  display: inline-block;
  margin-left: 3px;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-ribbon-link:hover .apple-ribbon-chevron {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .apple-ribbon {
    font-size: 13px;
    padding: 10px 14px;
    line-height: 1.38;
  }
}

/* ===== Main Hero Units (Full Bleed, Identical Apple Text Placement) ===== */
.apple-hero {
  position: relative;
  width: 100%;
  min-height: auto;
  margin-bottom: var(--apple-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 55px 20px 48px;
}

/* ===== Hero 1: Cinematic Video Background Edition (smarthome.mp4) ===== */
.apple-hero-flank.apple-hero-video-flagship {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: clamp(600px, 78vh, 740px);
  background-color: #000000;
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
  padding: 60px 0;
  margin-bottom: var(--apple-gap);
}

.apple-hero-flank.apple-hero-video-flagship::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.16) 75%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.apple-hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  filter: none !important;
  -webkit-filter: none !important;
}

.apple-hero-video-overlay {
  display: none !important;
}

.apple-hero-video-flagship .apple-hero-stage,
.apple-hero-stage.apple-hero-stage-center,
.apple-hero-stage.apple-hero-stage-left {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
  box-sizing: border-box;
}

.apple-hero-video-flagship .apple-hero-center-content,
.apple-hero-video-flagship .apple-hero-left-content {
  max-width: 640px;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apple-hero-video-flagship .apple-headline {
  font-family: var(--apple-font-display);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 16px 0;
  text-align: left;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}

.apple-hero-video-flagship .apple-subhead {
  font-family: var(--apple-font-text);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  opacity: 0.95;
  margin: 0 0 16px 0;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.apple-hero-video-flagship .apple-headline-gradient {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  display: inline;
}

.apple-hero-video-flagship .apple-hero-desc {
  font-family: var(--apple-font-text);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.62;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: #ffffff !important;
  max-width: 580px;
  margin: 0 0 32px 0;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.apple-hero-video-flagship .apple-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
}

.apple-hero-video-flagship .apple-btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.apple-hero-video-flagship .apple-btn-secondary:hover {
  background-color: #064e3b;
  border-color: #064e3b;
  color: #ffffff !important;
}

/* Legacy Flank Stage Support */
.apple-hero-flank {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: auto;
  background-color: #000000;
  background: #000000;
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 38px 24px 34px;
  margin-bottom: var(--apple-gap);
}

/* Hero 1 Matte Black Contrast Typography & CTAs */
.apple-hero-flank .apple-hero-center-content {
  max-width: 540px;
}

.apple-hero-flank .apple-hero-center-content .apple-headline {
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.09;
  letter-spacing: -0.022em;
  color: #f5f5f7;
  margin: 0 0 10px 0;
}

.apple-hero-flank .apple-hero-center-content .apple-subhead {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.25;
  color: #f5f5f7;
  margin: 0 0 12px 0;
}

.apple-hero-flank .apple-headline-gradient {
  background: linear-gradient(90deg, #2997ff 0%, #a855f7 35%, #ec4899 70%, #ff6624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.apple-hero-flank .apple-hero-desc {
  font-size: 13.5px;
  line-height: 1.48;
  color: #86868b;
  max-width: 500px;
  margin: 0 auto 22px;
}

.apple-hero-flank .apple-btn-secondary {
  border-color: #064e3b;
  color: #34d399 !important;
}

.apple-hero-flank .apple-btn-secondary:hover {
  background-color: #064e3b;
  border-color: #064e3b;
  color: #ffffff !important;
}

.apple-hero-flank .apple-device-img {
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.04));
}

.apple-hero-flank .apple-device-left:hover .apple-device-img,
.apple-hero-flank .apple-device-right:hover .apple-device-img {
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.08));
}

.apple-hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1512.8px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(360px, 1.2fr) minmax(280px, 1.05fr);
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 36px);
  box-sizing: border-box;
  padding: 0 clamp(8px, 1.8vw, 32px);
}

.apple-flank-device {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-device-left {
  align-items: flex-start;
  text-align: left;
  padding: 0;
}

.apple-device-right {
  align-items: flex-end;
  text-align: right;
  padding-left: clamp(4px, 1.2vw, 16px);
}

.apple-device-media-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.apple-device-left .apple-device-media-wrap {
  justify-content: flex-start;
}

.apple-device-right .apple-device-media-wrap {
  justify-content: flex-end;
}

.apple-device-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(290px, 42vh, 370px);
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 20px 45px rgba(80, 95, 125, 0.16));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

/* Dynamic elevation & subtle angle tilt matching Apple devices */
.apple-device-left .apple-device-img {
  transform: translateX(clamp(-100px, -8vw, -40px)) translateY(0);
  transform-origin: left bottom;
}

.apple-device-right .apple-device-img {
  position: relative;
  left: -0.5in;
  transform: translateX(clamp(15px, 2vw, 40px)) rotate(2deg) translateY(-2px);
  transform-origin: center center;
}

.apple-device-left:hover .apple-device-img {
  transform: translateX(clamp(-100px, -8vw, -40px)) translateY(-8px) scale(1.025);
  filter: drop-shadow(0 28px 55px rgba(80, 95, 125, 0.22));
}

.apple-device-right:hover .apple-device-img {
  transform: translateX(clamp(15px, 2vw, 40px)) rotate(0deg) translateY(-8px) scale(1.025);
  filter: drop-shadow(0 28px 55px rgba(80, 95, 125, 0.22));
}

.apple-device-caption {
  font-family: var(--apple-font-text);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
  white-space: nowrap;
  opacity: 0.85;
}

/* Center Content: Title, Subhead, Desc, CTAs placed directly between both devices */
.apple-hero-center-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.apple-hero-center-content .apple-headline {
  font-family: var(--apple-font-display);
  font-size: clamp(44px, 4.2vw, 56px);
  line-height: 1.07143;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--apple-text-primary);
  margin: 0 0 8px 0;
}

.apple-hero-center-content .apple-subhead {
  font-family: var(--apple-font-display);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--apple-text-primary);
  margin: 0 0 10px 0;
}

.apple-headline-gradient {
  background: linear-gradient(90deg, #064e3b 0%, #a855f7 35%, #ec4899 70%, #ff6624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-style: normal;
}

.apple-hero-desc {
  font-family: var(--apple-font-text);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 400;
  margin: 0 0 20px 0;
  color: var(--apple-text-secondary);
  max-width: 360px;
}

.apple-hero-center-content .apple-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}

/* Responsive adjustments for Intermediate Tablet Stage */
@media (max-width: 1024px) and (min-width: 835px) {
  .apple-hero-stage {
    grid-template-columns: minmax(220px, 1.15fr) minmax(300px, 1.25fr) minmax(180px, 1fr);
    gap: 14px;
    padding: 0 12px;
  }

  .apple-device-left .apple-device-img {
    transform: translateX(clamp(-50px, -4vw, -20px)) translateY(0);
  }

  .apple-device-right .apple-device-img {
    transform: translateX(10px) rotate(2deg) translateY(-2px);
  }

  .apple-device-img {
    max-height: clamp(240px, 34vh, 320px);
  }

  .apple-device-caption {
    font-size: 11px;
  }
}

.apple-hero-2 {
  background-color: var(--apple-bg-section-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px;
}

.apple-hero-2 .apple-hero-header .apple-cta-row {
  margin-bottom: 18px;
}

.apple-hero-2 .apple-lighting-video {
  max-height: 310px;
}

.apple-lighting-media-img {
  width: auto;
  max-width: min(640px, 92vw);
  height: auto;
  max-height: 330px;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.10));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.apple-hero-2:hover .apple-lighting-media-img {
  transform: scale(1.02);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.15));
}

/* Uncropped Video with Rounded Corner Edges (Made 40% Smaller) */
.apple-lighting-video,
.apple-hero-video,
.apple-knx-video {
  width: 100%;
  max-width: 510px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  user-select: none;
  pointer-events: none; /* Completely blocks browser Picture-in-Picture hover overlay and context icons */
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.apple-hero:hover .apple-lighting-video,
.apple-hero:hover .apple-hero-video,
.apple-hero:hover .apple-knx-video {
  transform: scale(1.015);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .apple-lighting-video,
  .apple-hero-video,
  .apple-knx-video {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }
}

.apple-hero-3 {
  background-color: var(--apple-bg-section);
  width: 100%;
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px;
}

.apple-hero-3 .apple-hero-header .apple-cta-row {
  margin-bottom: 18px;
}

.apple-hero-3 .apple-knx-video {
  max-height: 310px;
}

/* Hero Text Placement Layer (Top Centered) */
.apple-hero-header {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apple-eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
  color: #c2410c;
}

.apple-headline {
  font-family: var(--apple-font-display);
  font-size: clamp(44px, 4.8vw, 56px);
  line-height: 1.07143;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
  color: var(--apple-text-primary);
}

.apple-subhead {
  font-family: var(--apple-font-text);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.10722;
  font-weight: 400;
  letter-spacing: 0.004em;
  margin: 0 0 16px 0;
  color: var(--apple-text-subhead);
}

/* Apple Exact Dual CTAs */
.apple-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

/* Primary Button (Apple Elevated Dark Green Pill) */
.apple-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #064e3b;
  color: #ffffff !important;
  font-family: var(--apple-font-text);
  font-size: 14px;
  line-height: 1.17648;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 980px;
  border: 1px solid #064e3b;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.28);
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.apple-btn-pill:hover {
  background-color: #065f46;
  border-color: #065f46;
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.38);
  transform: scale(1.02);
}

.apple-btn-pill:active {
  background-color: #022c22;
  border-color: #022c22;
  transform: scale(0.98);
}

/* Secondary Button (Apple Bordered Dark Green Pill) */
.apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #064e3b !important;
  font-family: var(--apple-font-text);
  font-size: 14px;
  line-height: 1.17648;
  font-weight: 500;
  padding: 7px 17px;
  border-radius: 980px;
  border: 1.5px solid #064e3b;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.apple-btn-secondary:hover {
  background-color: #064e3b;
  border-color: #064e3b;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.22);
  transform: scale(1.02);
}

.apple-btn-secondary:active {
  background-color: #022c22;
  border-color: #022c22;
  transform: scale(0.98);
}

/* Hero Media Stage (Centered Below Text - Made 40% Smaller) */
.apple-hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}

.apple-hero-img {
  width: 100%;
  height: auto;
  max-height: clamp(220px, 28vh, 300px);
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.08));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-hero:hover .apple-hero-img {
  transform: scale(1.015);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}



/* ===== Apple 6-Tile Bento Matrix (2 columns x 3 rows) ===== */
.apple-grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--apple-gap);
  box-sizing: border-box;
}

.apple-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--apple-gap);
  margin-bottom: var(--apple-gap);
}

.apple-promo-card {
  position: relative;
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 42px 28px 0;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--apple-text-primary);
  background-color: var(--apple-bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.apple-promo-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Card Themes */
.apple-card-white {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}

.apple-card-light {
  background: linear-gradient(180deg, #fcfcfd 0%, #f4f4f7 100%);
  border-color: rgba(0, 0, 0, 0.05);
}

/* Luxury Dark Card (Apple Watch Ultra / Pro Style) */
.apple-card-dark {
  background: radial-gradient(circle at 50% 0%, #1c1c20 0%, #0a0a0d 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.apple-card-dark:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}

.apple-card-header {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.apple-card-eyebrow {
  font-family: var(--apple-font-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: inline-block;
  color: #064e3b;
  transition: color 0.3s ease;
}

.apple-card-dark .apple-card-eyebrow {
  color: #34d399;
}

.apple-card-title {
  font-family: var(--apple-font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 8px 0;
  color: #111113;
}

.apple-card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.apple-card-title a:hover {
  opacity: 0.85;
}

.apple-card-dark .apple-card-title,
.apple-card-dark .apple-card-title a {
  color: #ffffff;
}

.apple-card-sub {
  font-family: var(--apple-font-text);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  color: #48484a;
  max-width: 400px;
}

.apple-card-dark .apple-card-sub {
  color: rgba(255, 255, 255, 0.78);
}

/* Action CTA buttons placed directly inside header beneath description */
.apple-card-header .apple-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 8px;
}

.apple-card-dark .apple-btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.apple-card-dark .apple-btn-secondary:hover {
  background-color: #064e3b;
  border-color: #064e3b;
  color: #ffffff !important;
}

.apple-card-media {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.apple-card-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 310px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  display: block;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.apple-card-dark .apple-card-img {
  box-shadow: 0 -6px 36px rgba(0, 0, 0, 0.45);
}

.apple-promo-card .apple-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.apple-card-img.curtain-card-img {
  object-position: center 20%;
}

.apple-card-img.keypad-card-img {
  object-position: center calc(30% - 0.5in);
}

.apple-promo-card:hover .apple-card-img {
  transform: translateY(-4px) scale(1.02);
}

/* ===== Apple Experience Showcase Carousel (Light Theme) ===== */
.apple-carousel-section {
  position: relative;
  width: 100%;
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--apple-bg-section);
  padding: 24px 0 20px;
  overflow: hidden;
  margin-bottom: var(--apple-gap);
  color: var(--apple-text-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.apple-carousel-title-row {
  max-width: 1280px;
  margin: 0 auto 16px;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.apple-carousel-title {
  font-family: var(--apple-font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--apple-text-primary);
}

.apple-carousel-subtitle {
  font-size: 14px;
  color: var(--apple-text-secondary);
  margin-top: 4px;
}

.apple-carousel-track-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 12px;
}

.apple-carousel-track-wrap::-webkit-scrollbar {
  display: none;
}

.apple-carousel-track {
  display: flex;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  width: max-content;
}

.apple-carousel-card {
  position: relative;
  width: clamp(340px, 46vw, 560px);
  height: 380px;
  max-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.apple-carousel-card:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.apple-carousel-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.apple-carousel-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.94) 85%, #ffffff 100%);
}

.apple-carousel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 3;
}

.apple-carousel-card-badge {
  display: inline-block;
  background: rgba(6, 78, 59, 0.10);
  color: #06170e;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 8px;
}

.apple-carousel-card-title {
  font-family: var(--apple-font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
  color: var(--apple-text-primary);
}

.apple-carousel-card-desc {
  font-size: 13.5px;
  color: var(--apple-text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Carousel Dots Indicator */
.apple-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.apple-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.apple-carousel-dot.active {
  background: var(--apple-blue);
  transform: scale(1.3);
}

/* ===== Apple Directory Global Footer (apple.com Standard) ===== */
.apple-footer {
  background-color: var(--apple-bg-section);
  color: var(--apple-text-secondary);
  font-size: 12px;
  line-height: 1.45;
  padding: 34px 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.apple-footer-wrapper {
  max-width: 1024px;
  margin: 0 auto;
}

/* Footnotes Section */
.apple-footnotes {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.apple-footnotes p {
  margin: 0 0 8px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--apple-text-secondary);
}

.apple-footnotes p:last-child {
  margin-bottom: 0;
}

/* Breadcrumb Bar */
.apple-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: var(--apple-text-secondary);
}

.apple-breadcrumb-logo {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.apple-breadcrumb-logo img {
  width: 14px;
  height: 14px;
}

.apple-breadcrumb-sep {
  color: #6e6e73;
}

.apple-breadcrumb-item {
  color: inherit;
  text-decoration: none;
}

.apple-breadcrumb-item:hover {
  text-decoration: underline;
  color: var(--apple-text-primary);
}

/* 5-Column Directory Navigation */
.apple-directory-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 30px;
}

.apple-directory-col h3 {
  font-family: var(--apple-font-text);
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-primary);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.apple-directory-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.apple-directory-list:last-child {
  margin-bottom: 0;
}

.apple-directory-list li {
  margin-bottom: 9px;
}

.apple-directory-link {
  color: var(--apple-text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}

.apple-directory-link:hover {
  color: var(--apple-text-primary);
  text-decoration: underline;
}

/* Legal & Copyright Row (With Location/Country on the Right) */
.apple-legal-row {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.apple-copyright {
  margin: 0;
  color: var(--apple-text-secondary);
}

.apple-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.apple-legal-link {
  color: var(--apple-text-secondary);
  text-decoration: none;
}

.apple-legal-link:hover {
  text-decoration: underline;
  color: var(--apple-text-primary);
}

.apple-country {
  color: var(--apple-text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.apple-country:hover {
  text-decoration: underline;
  color: var(--apple-text-primary);
}

/* =========================================================================
   Apple Standard Responsive Design System (Mobile & Tablet <= 834px)
   Matches apple.com iOS Mobile Layout, Typography, & Spatial Rhythm
   ========================================================================= */
@media (max-width: 834px) {
  /* Suppress any floating / hover mobile action dock & neutralize hover on touch */
  #mobile-quick-dock,
  .mobile-quick-dock,
  .floating-whatsapp,
  .floating-call {
    display: none !important;
  }

  [data-cta="whatsapp"]:hover,
  [data-cta="call"]:hover,
  .apple-ribbon-link:hover,
  .apple-btn-secondary[data-cta="whatsapp"]:hover {
    transform: none !important;
    text-decoration: none !important;
  }

  /* Global Canvas & Ribbon Adjustments */
  .apple-ribbon {
    font-size: 13.5px;
    padding: 10px 16px;
    line-height: 1.38;
  }

  .apple-ribbon-content {
    column-gap: 5px;
    row-gap: 3px;
  }

  /* -------------------------------------------------------------------------
     Hero 1: Flagship Stage (Mobile: Same as Desktop View)
     ------------------------------------------------------------------------- */
  .apple-hero-flank.apple-hero-video-flagship {
    position: relative !important;
    min-height: 540px !important;
    height: clamp(540px, 80vh, 660px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    overflow: hidden !important;
    padding: 60px 20px 48px !important;
  }

  .apple-hero-video-flagship .apple-headline {
    font-size: clamp(32px, 8vw, 44px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-align: left !important;
    margin-bottom: 12px !important;
  }

  .apple-hero-video-flagship .apple-subhead {
    font-size: 17.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-align: left !important;
    margin-bottom: 14px !important;
  }

  .apple-hero-video-flagship .apple-hero-desc {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    margin: 0 0 24px !important;
    max-width: 520px !important;
    text-align: left !important;
  }

  .apple-hero-video-flagship .apple-cta-row {
    justify-content: flex-start !important;
  }

  .apple-hero-flank {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 44px 16px 36px;
    margin-bottom: var(--apple-gap);
  }

  .apple-hero-stage {
    display: grid;
    grid-template-areas:
      "center center"
      "left   right";
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    box-sizing: border-box;
  }

  .apple-hero-center-content {
    grid-area: center;
    max-width: 100%;
    padding: 0;
  }

  .apple-hero-center-content .apple-headline {
    font-size: clamp(34px, 8.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
  }

  .apple-hero-center-content .apple-subhead {
    font-size: clamp(18px, 4.5vw, 21px);
    line-height: 1.22;
    letter-spacing: 0.005em;
    margin: 0 0 8px 0;
  }

  .apple-hero-desc {
    font-size: 13.5px;
    line-height: 1.38;
    color: var(--apple-text-secondary);
    max-width: 320px;
    margin: 0 auto 18px;
  }

  .apple-hero-center-content .apple-cta-row {
    margin-bottom: 0;
    gap: 12px;
  }

  .apple-flank-device {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .apple-device-left {
    grid-area: left;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  .apple-device-right {
    grid-area: right;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  .apple-device-media-wrap {
    height: clamp(140px, 35vw, 195px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
  }

  .apple-device-left .apple-device-media-wrap,
  .apple-device-right .apple-device-media-wrap {
    align-items: center;
    justify-content: center;
  }

  .apple-device-img,
  .apple-device-left .apple-device-img,
  .apple-device-right .apple-device-img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    transform: none !important;
    transform-origin: center center !important;
    filter: drop-shadow(0 14px 28px rgba(80, 95, 125, 0.16)) !important;
    margin: 0 auto !important;
    display: block !important;
    pointer-events: none;
  }

  /* Prevent sticky touch-hover displacements on mobile */
  .apple-device-left:hover .apple-device-img,
  .apple-device-right:hover .apple-device-img {
    transform: none !important;
    filter: drop-shadow(0 14px 28px rgba(80, 95, 125, 0.16)) !important;
  }

  /* Smooth vertical entrance on mobile without horizontal clipping */
  html.apple-motion-ready .apple-device-left,
  html.apple-motion-ready .apple-device-right {
    transform: translate3d(0, 24px, 0) !important;
  }

  .apple-device-caption {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--apple-text-secondary);
    margin-top: 8px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  /* -------------------------------------------------------------------------
     Full-Bleed Heroes (Hero 2: Smart Lighting, Hero 3: Whole-Home KNX)
     Eliminates artificial auto-margins and matches Apple screenshot spacing
     ------------------------------------------------------------------------- */
  .apple-hero {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 44px 16px 36px;
    margin-bottom: var(--apple-gap);
  }

  .apple-hero-2,
  .apple-hero-3 {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 44px 16px 36px;
  }

  .apple-hero-header {
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
  }

  .apple-headline {
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
  }

  .apple-subhead {
    font-size: clamp(18px, 4.5vw, 21px);
    line-height: 1.25;
    letter-spacing: 0.005em;
    margin: 0 0 16px 0;
  }

  .apple-cta-row {
    gap: 12px;
    margin-bottom: 26px; /* Exact Apple breathing space between CTAs and media */
  }

  .apple-btn-pill,
  .apple-btn-secondary {
    font-size: 14px;
    min-height: 36px;
    padding: 8px 18px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .apple-btn-secondary {
    padding: 7px 17px;
  }

  .apple-hero-media {
    margin-top: 0; /* Overrides desktop margin-top: auto */
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .apple-lighting-video,
  .apple-hero-video,
  .apple-knx-video {
    max-width: min(340px, 80vw);
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }

  .apple-hero-img {
    max-width: min(340px, 80vw);
    max-height: clamp(160px, 28vh, 220px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
  }

  .apple-lighting-media-img {
    max-width: min(340px, 86vw);
    max-height: clamp(180px, 32vh, 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
  }

  /* -------------------------------------------------------------------------
     Apple 6-Tile Bento Promo Matrix (Stacked 1-column on mobile)
     ------------------------------------------------------------------------- */
  .apple-grid-container {
    padding: 0 12px;
  }

  .apple-promo-grid {
    grid-template-columns: 1fr;
    gap: var(--apple-gap);
  }

  .apple-promo-card {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 38px 20px 0;
    border-radius: 20px;
    justify-content: flex-start;
  }

  .apple-card-header {
    max-width: 100%;
    padding: 0;
    margin-bottom: 8px;
  }

  .apple-card-title {
    font-size: clamp(26px, 6.2vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.018em;
    margin: 0 0 6px 0;
  }

  .apple-card-sub {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.4;
    margin: 0 0 14px 0;
    max-width: 100%;
  }

  .apple-card-header .apple-cta-row {
    margin-bottom: 16px;
  }

  .apple-card-media {
    margin: 0;
    width: 100%;
    max-height: 280px;
    padding: 0;
  }

  .apple-card-img {
    height: clamp(210px, 54vw, 270px);
    border-radius: 16px 16px 0 0;
  }

  .apple-promo-card .apple-cta-row {
    margin-top: 0;
    margin-bottom: 0;
    gap: 12px;
  }

  /* -------------------------------------------------------------------------
     Apple Residences Showcase Carousel (Mobile view)
     ------------------------------------------------------------------------- */
  .apple-carousel-section {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 42px 0 32px;
  }

  .apple-carousel-title-row {
    padding: 0 16px;
    margin-bottom: 18px;
  }

  .apple-carousel-title {
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.15;
  }

  .apple-carousel-subtitle {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 4px;
  }

  .apple-carousel-track {
    padding: 0 16px;
    gap: 14px;
  }

  .apple-carousel-card {
    width: clamp(280px, 82vw, 340px);
    height: clamp(280px, 72vw, 340px);
    border-radius: 16px;
  }

  .apple-carousel-card-content {
    padding: 18px;
  }

  .apple-carousel-card-title {
    font-size: 18px;
  }

  .apple-carousel-card-desc {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .apple-carousel-controls {
    margin-top: 16px;
  }

  /* -------------------------------------------------------------------------
     Apple Global Footer Directory & Legal on Mobile
     ------------------------------------------------------------------------- */
  .apple-directory-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .apple-directory-col {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 0;
  }

  .apple-directory-col h3 {
    margin: 0;
    padding: 6px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
  }

  .apple-directory-col h3::after {
    content: '+';
    font-size: 15px;
    font-weight: 400;
    transition: transform 0.2s ease;
  }

  .apple-directory-col.active h3::after {
    transform: rotate(45deg);
  }

  .apple-directory-list {
    display: none;
    padding-top: 8px;
  }

  .apple-directory-col.active .apple-directory-list {
    display: block;
  }

  .apple-legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apple-legal-links {
    gap: 10px 14px;
  }
}

/* Specific fine-tuning for smaller smartphones */
@media (max-width: 480px) {
  .apple-hero-flank.apple-hero-video-flagship {
    min-height: 500px !important;
    height: clamp(500px, 82vh, 600px) !important;
    padding: 50px 14px 40px !important;
  }

  .apple-hero-flank {
    padding: 34px 12px 24px;
  }

  .apple-hero-stage {
    gap: 18px 10px;
    max-width: 100%;
  }

  .apple-hero-center-content .apple-headline {
    font-size: clamp(30px, 8.8vw, 36px);
  }

  .apple-hero-center-content .apple-subhead {
    font-size: 17px;
    line-height: 1.25;
  }

  .apple-hero-desc {
    font-size: 13px;
    margin: 0 auto 16px;
    padding: 0 4px;
  }

  .apple-device-media-wrap {
    height: clamp(125px, 32vw, 160px);
  }
}

/* =========================================================================
   Apple Mac Page Scroll & Entrance Fade-In Motion System
   apple.com/in/mac Architecture & Easing — Ultra Slow & Smooth Edition
   ========================================================================= */

:root {
  --apple-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --apple-fade-duration: 1.45s;
  --apple-transform-duration: 1.55s;
}

/* Progressive enhancement: Only apply initial motion offset when motion is ready */
html.apple-motion-ready .apple-ribbon,
html.apple-motion-ready .apple-hero-center-content > *,
html.apple-motion-ready .apple-flank-device,
html.apple-motion-ready .apple-hero-header > *,
html.apple-motion-ready .apple-hero-media,
html.apple-motion-ready .apple-promo-card,
html.apple-motion-ready .apple-carousel-title-row > *,
html.apple-motion-ready .apple-carousel-card,
html.apple-motion-ready .apple-footnotes,
html.apple-motion-ready .apple-breadcrumbs,
html.apple-motion-ready .apple-directory-col,
html.apple-motion-ready .apple-fade-in,
html.apple-motion-ready .apple-reveal-element {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity var(--apple-fade-duration) cubic-bezier(0.25, 1, 0.35, 1),
              transform var(--apple-transform-duration) var(--apple-motion-ease);
  will-change: opacity, transform;
}

/* Announcement Ribbon subtle slow drop-down */
html.apple-motion-ready .apple-ribbon {
  transform: translate3d(0, -12px, 0);
  transition-duration: 1.2s;
}

/* Hardware Products (Hero 1 Flanks): Slow Lateral + Rotational Glide */
html.apple-motion-ready .apple-device-left {
  transform: translate3d(-42px, 32px, 0);
  transition: opacity 1.6s cubic-bezier(0.25, 1, 0.35, 1),
              transform 1.7s var(--apple-motion-ease);
}

html.apple-motion-ready .apple-device-right {
  transform: translate3d(42px, 32px, 0);
  transition: opacity 1.6s cubic-bezier(0.25, 1, 0.35, 1),
              transform 1.7s var(--apple-motion-ease);
}

/* Cinematic Video Showcases (Heroes 2 & 3): Slow Scale & Elevation Glide */
html.apple-motion-ready .apple-hero-media {
  transform: translate3d(0, 46px, 0) scale(0.96);
  transition: opacity 1.55s cubic-bezier(0.25, 1, 0.35, 1),
              transform 1.65s var(--apple-motion-ease);
}

/* Bento Promo Cards & Carousel Cards: Slow Subtle Scale & Elevation */
html.apple-motion-ready .apple-promo-card,
html.apple-motion-ready .apple-carousel-card {
  transform: translate3d(0, 48px, 0) scale(0.965);
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.35, 1),
              transform 1.6s var(--apple-motion-ease),
              box-shadow 0.5s ease;
}

/* =========================================================================
   REVEALED / IN-VIEWPORT STATES (.is-revealed)
   ========================================================================= */

/* Single Elements */
.apple-ribbon.is-revealed,
.apple-footnotes.is-revealed,
.apple-breadcrumbs.is-revealed,
.apple-directory-col.is-revealed,
.apple-fade-in.is-revealed,
.apple-reveal-element.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Cards & Media return to scale(1) */
.apple-hero-media.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.apple-promo-card.is-revealed,
.apple-carousel-card.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Flanking Devices settle into position */
.apple-device-left.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

.apple-device-right.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Grouped Containers trigger all direct children with stagger */
.apple-hero-center-content.is-revealed > *,
.apple-hero-header.is-revealed > *,
.apple-carousel-title-row.is-revealed > *,
.apple-reveal-group.is-revealed > * {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* =========================================================================
   STAGGER TIMINGS (Apple Mac Stagger Architecture — Slow & Luxurious)
   ========================================================================= */

/* Flagship Hero Center Content Stagger */
.apple-hero-center-content .apple-headline { transition-delay: 0.06s; }
.apple-hero-center-content .apple-subhead { transition-delay: 0.18s; }
.apple-hero-center-content .apple-hero-desc { transition-delay: 0.30s; }
.apple-hero-center-content .apple-cta-row { transition-delay: 0.42s; }

/* Flanking Devices */
.apple-device-left { transition-delay: 0.22s; }
.apple-device-right { transition-delay: 0.34s; }

/* Section 2 & 3 Hero Headers */
.apple-hero-header .apple-eyebrow { transition-delay: 0.04s; }
.apple-hero-header .apple-headline { transition-delay: 0.10s; }
.apple-hero-header .apple-subhead { transition-delay: 0.22s; }
.apple-hero-header .apple-cta-row { transition-delay: 0.34s; }

/* Section 2 & 3 Media Videos */
.apple-hero-2 .apple-hero-media { transition-delay: 0.26s; }
.apple-hero-3 .apple-hero-media { transition-delay: 0.26s; }

/* Bento Promo Grid Staggering (Desktop 2-column alternating cascade) */
.apple-promo-grid .apple-promo-card:nth-child(odd) {
  transition-delay: 0.06s;
}
.apple-promo-grid .apple-promo-card:nth-child(even) {
  transition-delay: 0.22s;
}

/* Carousel Section */
.apple-carousel-title-row .apple-carousel-title { transition-delay: 0.06s; }
.apple-carousel-title-row .apple-carousel-subtitle { transition-delay: 0.20s; }

.apple-carousel-card:nth-child(1) { transition-delay: 0.06s; }
.apple-carousel-card:nth-child(2) { transition-delay: 0.20s; }
.apple-carousel-card:nth-child(3) { transition-delay: 0.34s; }
.apple-carousel-card:nth-child(4) { transition-delay: 0.48s; }

/* Footer Columns Staggering */
.apple-directory-col:nth-child(1) { transition-delay: 0.06s; }
.apple-directory-col:nth-child(2) { transition-delay: 0.14s; }
.apple-directory-col:nth-child(3) { transition-delay: 0.22s; }
.apple-directory-col:nth-child(4) { transition-delay: 0.30s; }
.apple-directory-col:nth-child(5) { transition-delay: 0.38s; }

/* =========================================================================
   HOVER COMPATIBILITY AFTER REVEAL
   ========================================================================= */

.apple-promo-card.is-revealed:hover {
  transform: scale(1.006) translate3d(0, -2px, 0) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html.apple-motion-ready *,
  .apple-ribbon,
  .apple-hero-center-content > *,
  .apple-flank-device,
  .apple-hero-header > *,
  .apple-hero-media,
  .apple-promo-card,
  .apple-carousel-title-row > *,
  .apple-carousel-card,
  .apple-footnotes,
  .apple-breadcrumbs,
  .apple-directory-col {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* ===== Immediate Architectural Service Briefing Section (Fanned Arc Placement) ===== */
.apple-service-overview-section {
  width: 100%;
  background-color: var(--apple-bg-base, #ffffff);
  box-sizing: border-box;
  padding: clamp(52px, 6vw, 84px) 16px clamp(44px, 5vw, 68px);
  margin-bottom: var(--apple-gap);
  position: relative;
  overflow: hidden;
}

/* Ambient Aurora Glow matching reference */
.fanned-aurora-glow {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 380px;
  background: radial-gradient(circle at 18% 85%, rgba(217, 249, 157, 0.35) 0%, transparent 50%),
              radial-gradient(circle at 82% 85%, rgba(192, 132, 252, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 50% 95%, rgba(186, 230, 253, 0.4) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.apple-service-overview-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centered Header (Mindspace Reference Style) */
.fanned-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fanned-top-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.28));
}

.fanned-title {
  font-family: var(--apple-font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  margin: 0 0 14px 0;
  line-height: 1.08;
}

.fanned-subtitle {
  font-family: var(--apple-font-text, sans-serif);
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.55;
  color: #6e6e73;
  margin: 0 0 24px 0;
  max-width: 540px;
}

.fanned-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1e;
  color: #ffffff !important;
  padding: 11px 26px;
  border-radius: 980px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.fanned-pill-cta:hover {
  transform: scale(1.04);
  background-color: #064e3b;
}

.fanned-pill-cta svg {
  fill: currentColor;
}

/* Fanned Stage & Track */
.fanned-cards-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 30px 10px 40px;
  perspective: 1200px;
}

.fanned-cards-track {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 1.4vw, 18px);
  width: 100%;
  max-width: 1360px;
  position: relative;
}

/* Fanned Card Item */
.fanned-card-item {
  flex: 1;
  max-width: 310px;
  min-width: 250px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  transform-origin: center bottom;
  position: relative;
  display: flex;
}

/* Arched Placement Offsets (Fan Layout) */
.fanned-card-item.card-pos-1 {
  transform: translateY(22px) rotate(-6deg);
  z-index: 2;
}

.fanned-card-item.card-pos-2 {
  transform: translateY(4px) rotate(-2deg);
  z-index: 3;
}

.fanned-card-item.card-pos-3 {
  transform: translateY(4px) rotate(2deg);
  z-index: 3;
}

.fanned-card-item.card-pos-4 {
  transform: translateY(22px) rotate(6deg);
  z-index: 2;
}

/* Hover: Lift and Straighten */
.fanned-card-item:hover {
  transform: translateY(-20px) rotate(0deg) scale(1.05) !important;
  z-index: 10 !important;
}

/* Outer Card Container */
.apple-service-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fanned-card-item:hover .apple-service-card {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.1);
  border-color: rgba(6, 78, 59, 0.25);
}

/* Inner Rounded Frame */
.service-inner-box {
  background: #ececf0;
  border-radius: 22px;
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  flex-grow: 1;
}

.service-title {
  font-family: var(--apple-font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.service-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #55555a;
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.service-sunburst {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #55555a;
}

.service-desc {
  font-family: var(--apple-font-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  font-size: 11px;
  line-height: 1.4;
  color: #6e6e73;
  margin: 0 0 10px 0;
  max-width: 230px;
  text-align: center;
}

/* Media Wrap & Image */
.service-media-wrap {
  width: 100%;
  height: 175px;
  margin-top: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.service-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.fanned-card-item:hover .service-media-img {
  transform: scale(1.05);
}

/* Bottom Footer Row */
.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 2px;
}

.service-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.service-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-sizing: border-box;
}

.service-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-user-handle {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
}

.service-user-status {
  font-size: 10.5px;
  color: #86868b;
  line-height: 1.2;
}

.service-btn-pill {
  background-color: #18181b;
  color: #ffffff !important;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
}

.fanned-card-item:hover .service-btn-pill {
  background-color: #064e3b;
  transform: scale(1.03);
}

/* Floating Bridge Pill Badges */
.fanned-bridge-pill {
  position: absolute;
  z-index: 6;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.pill-left {
  bottom: 40px;
  left: calc(25% - 42px);
  transform: rotate(-3deg);
}

.pill-left:hover {
  transform: rotate(-3deg) scale(1.06);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.pill-right {
  bottom: 40px;
  right: calc(25% - 42px);
  transform: rotate(3deg);
}

.pill-right:hover {
  transform: rotate(3deg) scale(1.06);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.dot-pink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  display: inline-block;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* Responsive Adaptation */
@media (max-width: 1080px) {
  .fanned-cards-track {
    flex-wrap: wrap;
    gap: 20px;
  }
  .fanned-card-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    transform: none !important;
  }
  .fanned-bridge-pill {
    display: none;
  }
}

@media (max-width: 600px) {
  .fanned-card-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .fanned-title {
    font-size: 32px;
  }
  .fanned-cards-stage {
    padding: 10px 0 20px;
  }
  .apple-service-card {
    border-radius: 26px;
    padding: 10px 10px 12px;
  }
  .service-inner-box {
    border-radius: 18px;
  }
  .service-media-img {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}


/* Interactive Promo Card Pointer & Hover Lift */
.apple-promo-card[data-href], .apple-service-card[data-href], .apple-hero-media[data-href] {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.apple-promo-card[data-href]:hover, .apple-service-card[data-href]:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   Apple Transparent Pricing Flow Section (30% Compact Refined Scale)
   ========================================================================= */
.apple-pricing-section {
  width: 100%;
  background-color: var(--apple-bg-section, #f5f5f7);
  box-sizing: border-box;
  padding: 48px 16px 54px;
  margin-bottom: var(--apple-gap);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 20;
}

.apple-pricing-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.apple-pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 38px;
}

.apple-pricing-eyebrow {
  display: inline-block;
  font-family: var(--apple-font-text);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
  background: rgba(6, 78, 59, 0.08);
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 10px;
}

.apple-pricing-title {
  font-family: var(--apple-font-display);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #111113;
  margin: 0 0 10px 0;
}

.apple-pricing-subtitle {
  font-family: var(--apple-font-text);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.5;
  color: #6e6e73;
  margin: 0;
}

/* 3-Step Flow Grid (30% smaller, compact) */
.apple-pricing-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 26px;
}

.apple-pricing-step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  box-sizing: border-box;
}

.apple-pricing-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
  border-color: rgba(6, 78, 59, 0.25);
}

/* Featured Centerpiece Card (Pillar 2) */
.apple-pricing-step-card.pricing-card-featured {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.22);
}

.apple-pricing-step-card.pricing-card-featured:hover {
  box-shadow: 0 22px 48px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.5);
}

.pricing-featured-badge {
  position: absolute;
  top: -9px;
  right: 18px;
  background: linear-gradient(135deg, #bef264 0%, #84cc16 100%);
  color: #14532d;
  font-family: var(--apple-font-text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 980px;
  box-shadow: 0 3px 10px rgba(132, 204, 22, 0.3);
}

.apple-pricing-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--apple-font-text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 980px;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 10px;
  width: fit-content;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-step-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

.apple-pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}

.apple-pricing-currency {
  font-family: var(--apple-font-display);
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-currency {
  color: #ffffff;
}

.apple-pricing-amount {
  font-family: var(--apple-font-display);
  font-size: clamp(26px, 2.8vw, 33px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111113;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-amount {
  color: #ffffff;
}

.apple-pricing-unit {
  font-family: var(--apple-font-text);
  font-size: 11px;
  font-weight: 500;
  color: #6e6e73;
  margin-left: 3px;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-unit {
  color: #9ca3af;
}

.apple-pricing-step-name {
  font-family: var(--apple-font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111113;
  margin: 6px 0 4px 0;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-step-name {
  color: #ffffff;
}

.apple-pricing-step-desc {
  font-family: var(--apple-font-text);
  font-size: 11.5px;
  line-height: 1.45;
  color: #48484a;
  margin: 0 0 12px 0;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-step-desc {
  color: #9ca3af;
}

.apple-pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-feature-list {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.apple-pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--apple-font-text);
  font-size: 11.5px;
  line-height: 1.4;
  color: #374151;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-feature-item {
  color: #e5e7eb;
}

.apple-pricing-check-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 1.5px;
}

.apple-pricing-check-icon svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.8;
}

.apple-pricing-step-card.pricing-card-featured .apple-pricing-check-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Card Action Button (Compact) */
.pricing-card-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--apple-font-text);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.pricing-card-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-2px);
}

.apple-pricing-step-card.pricing-card-featured .pricing-card-btn {
  background: #ffffff;
  color: #09090b !important;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.18);
}

.apple-pricing-step-card.pricing-card-featured .pricing-card-btn:hover {
  background: #bef264;
  color: #14532d !important;
  box-shadow: 0 4px 14px rgba(190, 242, 100, 0.3);
  transform: translateY(-2px);
}

/* Flow Connectors */
.apple-pricing-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1px;
}

.apple-pricing-plus-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Summary / Formula Card (Compact) */
.apple-pricing-summary-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
}

.apple-pricing-summary-content {
  flex: 1;
  min-width: 260px;
}

.apple-pricing-summary-title {
  font-family: var(--apple-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #111113;
  margin: 0 0 6px 0;
}

.apple-pricing-formula-pill {
  font-family: var(--apple-font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  background: #f8fafc;
  color: #0f172a;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
  margin-bottom: 6px;
}

.apple-pricing-summary-note {
  font-family: var(--apple-font-text);
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

.apple-pricing-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.apple-pricing-cta-wrap .apple-btn-pill,
.apple-pricing-cta-wrap .apple-btn-secondary {
  font-size: 12.5px;
  padding: 8px 16px;
  min-height: 32px;
}

@media (max-width: 980px) {
  .apple-pricing-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .apple-pricing-connector {
    display: none;
  }
  .apple-pricing-section {
    padding: 38px 14px 44px;
  }
  .apple-pricing-summary-card {
    padding: 18px 16px;
  }
}

/* ===== Installation Journey: Staggered Zigzag Flowchart (30% Compact Scale) ===== */
.stagger-flow-section {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(45px, 5vw, 68px) var(--apple-page-pd, 20px);
  background: var(--apple-bg, #fbfbfd);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stagger-flow-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.stagger-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: clamp(25px, 3.5vw, 38px);
  flex-wrap: wrap;
}

.stagger-header-left {
  max-width: 520px;
}

.stagger-pill-badge {
  display: inline-block;
  background: #bef264;
  color: #14532d;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
}

.stagger-flow-title {
  font-family: var(--apple-font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif);
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin: 0 0 10px 0;
}

.stagger-flow-desc {
  font-family: var(--apple-font-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  font-size: clamp(11.5px, 1.1vw, 13px);
  line-height: 1.5;
  color: #6e6e73;
  margin: 0;
}

.stagger-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stagger-timeline-chip {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.chip-neutral {
  background: rgba(0, 0, 0, 0.04);
  color: #6e6e73;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.chip-active {
  background: #bef264;
  color: #14532d;
  font-weight: 700;
}

/* Pipeline Layout */
.stagger-pipeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.stagger-row {
  display: flex;
  width: 100%;
}

.row-left {
  justify-content: flex-start;
}

.row-right {
  justify-content: flex-end;
}

/* Stagger Cards */
.stagger-card {
  width: 100%;
  max-width: 330px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 15px 17px 15px 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-sizing: border-box;
}

.stagger-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.stagger-card-tint {
  background: #f7fee7;
  border-color: #d9f99d;
}

/* Vertical Capsule / Pill on the Left */
.stagger-pill {
  width: 25px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 0;
}

.stagger-pill-green {
  background: #064e3b;
  color: #ffffff;
}

.stagger-pill-dark {
  background: #18181b;
  color: #ffffff;
}

.stagger-pill-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Card Body */
.stagger-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.stagger-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.stagger-icon {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.02);
}

.stagger-icon svg {
  width: 11px;
  height: 11px;
}

.stagger-step-title {
  font-family: var(--apple-font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.015em;
  margin: 0;
}

.stagger-desc {
  font-family: var(--apple-font-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  font-size: 11px;
  line-height: 1.45;
  color: #6e6e73;
  margin: 0;
}

/* Connector Wraps */
.stagger-connector-wrap {
  width: 100%;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3px 0;
  pointer-events: none;
}

.stagger-svg-connector {
  width: 100%;
  height: 100%;
  display: block;
}

.desktop-connector {
  display: block;
}

.mobile-connector {
  display: none;
}

.flowchart-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.flowchart-cta-row .apple-btn-pill {
  padding: 8px 18px;
  font-size: 12px;
}

.flowchart-cta-row .apple-btn-secondary {
  padding: 8px 18px;
  font-size: 12px;
}

/* Responsive Stacking */
@media (max-width: 860px) {
  .stagger-flow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .stagger-row {
    justify-content: center !important;
  }
  .stagger-card {
    max-width: 100%;
  }
  .stagger-connector-wrap {
    height: 28px;
    margin: 3px 0;
  }
  .desktop-connector {
    display: none;
  }
  .mobile-connector {
    display: block;
    width: 32px;
    height: 28px;
  }
}

