/* Home only: hero scrub, integration marquee, phone mock, stats.
   Shared fe-* components live in /css/site.css (slice ds-core).
   Page colors are --pg-*. :root is light. :root[data-theme="dark"] is the previous dark look.
   Hero paint stays on the photo in both themes. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans/dm-sans-v17-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans/dm-sans-v17-latin_latin-ext-600.woff2") format("woff2");
}

:root {
  --pg-hero-bg: rgb(10, 12, 16);
  --pg-hero-frame: rgb(5, 9, 20);
  --pg-hero-ink: #ffffff;
  --pg-hero-soft: #c3c8d3;
  --pg-hero-em: #6699ff;
  --pg-hero-online: #4dff9f;
  --pg-hero-shade:
    linear-gradient(180deg, rgb(5 9 20 / .55), rgb(5 9 20 / .2) 36%, rgb(5 9 20 / .92)),
    linear-gradient(90deg, rgb(5 9 20 / .85), rgb(5 9 20 / .1) 70%);
  --pg-hero-grid:
    linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgb(0 87 255 / .28), transparent 60%);
  --pg-hero-chip-bg: rgb(10 14 22 / .45);
  --pg-hero-chip-line: rgb(255 255 255 / .14);
  --pg-hero-ghost: rgb(255 255 255 / .06);
  --pg-hero-ghost-line: rgb(255 255 255 / .3);
  --pg-hero-ghost-hover: rgb(255 255 255 / .14);
  --pg-hero-capbtn: rgb(255 255 255 / .16);
  --pg-hero-capbtn-line: rgb(255 255 255 / .22);
  --pg-hero-capbtn-hover: rgb(255 255 255 / .2);
  --pg-hero-sep: rgb(255 255 255 / .2);
  --pg-hero-btn-bg: #ffffff;
  --pg-hero-btn-fg: rgb(5, 9, 20);
  --pg-hero-btn-hover: #e8efff;
  --pg-hero-btn-shadow: 0 18px 50px rgb(0 87 255 / .45);
  --pg-cap-fallback: rgb(255 255 255 / .88);
  --pg-cap-line: rgb(255 255 255 / .7);
  --pg-cap-kicker: #003399;
  --pg-cap-text: #0b1220;
  --pg-cap-blur: blur(16px);
  --pg-mq-bg: #ffffff;
  --pg-mq-ink: #1f2736;
  --pg-mq-pill: #ffffff;
  --pg-mq-line: rgb(10 20 40 / .10);
  --pg-mq-icon: #0047d6;
  --pg-mq-shadow: 0 10px 28px rgb(15 25 50 / .07);
  --pg-phone-bg: #ffffff;
  --pg-phone-line: rgb(10 20 40 / .12);
  --pg-phone-shadow: var(--fe-shadow, 0 18px 50px rgb(15 25 50 / .10));
  --pg-phone-ink: #141b28;
  --pg-phone-notch: #eaeff8;
  --pg-phone-screen: #f4f6fb;
  --pg-phone-kicker: #0047d6;
  --pg-phone-row: #ffffff;
  --pg-phone-row-line: rgb(10 20 40 / .08);
  --pg-stats-bg: #f4f6fb;
  --pg-stats-ink: #0b1220;
  --pg-stats-label: #3b4457;
  --pg-stats-line: rgb(10 20 40 / .08);
  --pg-media-shadow: 0 14px 36px rgb(15 25 50 / .08);
  --pg-more: #0047d6;
  --pg-more-hover: #003399;
}

:root[data-theme="dark"] {
  --pg-cap-fallback: rgba(10, 14, 22, 0.84);
  --pg-cap-line: rgba(255,255,255,.14);
  --pg-cap-kicker: #99baff;
  --pg-cap-text: #ffffff;
  --pg-cap-blur: none;
  --pg-mq-bg: #0a0c10;
  --pg-mq-ink: #f1f3f7;
  --pg-mq-pill: #12161f;
  --pg-mq-line: rgba(255,255,255,.07);
  --pg-mq-icon: #6699ff;
  --pg-mq-shadow: none;
  --pg-phone-bg: #12161f;
  --pg-phone-line: rgba(255,255,255,.12);
  --pg-phone-shadow: 0 30px 80px rgba(5, 9, 20, 0.28);
  --pg-phone-ink: #ffffff;
  --pg-phone-notch: #0a0c10;
  --pg-phone-screen: #0a0c10;
  --pg-phone-kicker: #6699ff;
  --pg-phone-row: #12161f;
  --pg-phone-row-line: rgba(255,255,255,.07);
  --pg-stats-bg: #0a0c10;
  --pg-stats-ink: #ffffff;
  --pg-stats-label: #c3c8d3;
  --pg-stats-line: transparent;
  --pg-media-shadow: none;
  --pg-more: #99baff;
  --pg-more-hover: #ffffff;
}

.hm-hero,
.fe-marquee,
.fe-stats,
.hm-apps,
.hm-mode {
  font-family: "DM Sans", Inter, "Segoe UI", sans-serif;
}

/* ---------- hero ---------- */
.hm-hero {
  position: relative;
  height: 200vh;
  background: var(--pg-hero-bg);
  color: var(--pg-hero-ink);
}
.hm-hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.hm-hero__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--pg-hero-frame);
  will-change: clip-path;
}
.hm-hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  will-change: transform;
}
.hm-hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hm-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hm-hero__shade {
  position: absolute;
  inset: 0;
  background: var(--pg-hero-shade);
}
.hm-hero__grid {
  position: absolute;
  inset: 0;
  background: var(--pg-hero-grid);
  background-size: 64px 64px, 64px 64px, auto;
  pointer-events: none;
}
.hm-hero__cap {
  position: absolute;
  z-index: 3;
  left: calc(5vw + 22px);
  right: calc(5vw + 22px);
  bottom: calc(6vh + 22px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hm-hero__capbox {
  max-width: 620px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--fe-glass, var(--pg-cap-fallback));
  border: 1px solid var(--pg-cap-line);
  -webkit-backdrop-filter: var(--pg-cap-blur);
  backdrop-filter: var(--pg-cap-blur);
}
.hm-hero__capbox p {
  margin: 0;
}
.hm-hero__capbox p:first-child {
  color: var(--pg-cap-kicker);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hm-hero__capbox p:last-child {
  color: var(--pg-cap-text);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.hm-hero__capbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--pg-hero-capbtn);
  border: 1px solid var(--pg-hero-capbtn-line);
  color: var(--pg-hero-ink);
  font-weight: 600;
  text-decoration: none;
}
.hm-hero__capbtn:hover {
  background: var(--pg-hero-capbtn-hover);
  color: var(--pg-hero-ink);
}
.hm-hero__head {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 88px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(18px, 4vw, 56px) clamp(24px, 5vh, 64px);
  will-change: transform, opacity;
}
.hm-hero__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.hm-hero .fe-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--pg-hero-chip-bg);
  border: 1px solid var(--pg-hero-chip-line);
  color: var(--pg-hero-ink);
  font-size: 13px;
  font-weight: 600;
}
.hm-hero .fe-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg-hero-online);
  box-shadow: 0 0 10px var(--pg-hero-online);
}
.hm-hero h1 {
  margin: 0;
  font-size: clamp(36px, min(9.2vw, 12.5vh), 168px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--pg-hero-ink);
}
.hm-hero h1 > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hm-hero h1 > span:last-child {
  padding-bottom: 0.08em;
}
.hm-hero h1 [data-line] {
  display: block;
  transform: translateY(100%);
  animation: hm-line-in 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hm-hero h1 > span:nth-child(2) [data-line] {
  animation-delay: 80ms;
}
.hm-hero h1 em {
  font-style: normal;
  color: var(--pg-hero-em);
}
@keyframes hm-line-in {
  to { transform: translateY(0); }
}
.hm-hero__lede {
  max-width: 680px;
  margin: clamp(14px, 2vh, 22px) 0 0;
  color: var(--pg-hero-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}
.hm-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(16px, 3.4vh, 40px);
}
.hm-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hm-hero .hm-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--pg-hero-btn-bg);
  color: var(--pg-hero-btn-fg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--pg-hero-btn-shadow);
}
.hm-hero .hm-btn-hero:hover {
  background: var(--pg-hero-btn-hover);
  color: var(--pg-hero-btn-fg);
}
.hm-hero .hm-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--pg-hero-ghost);
  border: 1px solid var(--pg-hero-ghost-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pg-hero-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.hm-hero .hm-btn-ghost:hover {
  background: var(--pg-hero-ghost-hover);
  color: var(--pg-hero-ink);
}
.hm-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  color: var(--pg-hero-soft);
  font-size: 14px;
}
.hm-hero__meta a {
  color: var(--pg-hero-soft);
  text-decoration: none;
}
.hm-hero__meta a:hover { color: var(--pg-hero-ink); }
.hm-hero__meta strong { color: var(--pg-hero-ink); font-weight: 600; }
.hm-hero__sep {
  width: 1px;
  height: 16px;
  background: var(--pg-hero-sep);
}

/* ---------- marquee ---------- */
.fe-marquee {
  padding: 28px 0 8px;
  background: var(--pg-mq-bg);
  color: var(--pg-mq-ink);
}
.fe-marquee__mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.fe-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: none;
}
.fe-marquee__set {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.fe-marquee__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  height: 60px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pg-mq-ink);
  background: var(--pg-mq-pill);
  border: 1px solid var(--pg-mq-line);
  box-shadow: var(--pg-mq-shadow);
}
.fe-marquee__pill svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--pg-mq-icon);
}

/* ---------- phone mock ---------- */
.hm-apps__row {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hm-apps__row + .hm-apps__row { margin-top: 36px; }
.hm-phone {
  width: min(280px, 100%);
  margin-inline: auto;
  padding: 12px 12px 16px;
  border-radius: 36px;
  background: var(--pg-phone-bg);
  border: 1px solid var(--pg-phone-line);
  box-shadow: var(--pg-phone-shadow);
  color: var(--pg-phone-ink);
}
.hm-phone__notch {
  width: 92px;
  height: 16px;
  margin: 0 auto 12px;
  border-radius: 0 0 12px 12px;
  background: var(--pg-phone-notch);
}
.hm-phone__screen {
  border-radius: 24px;
  background: var(--pg-phone-screen);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}
.hm-phone__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pg-phone-kicker);
}
.hm-phone__row {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pg-phone-row);
  border: 1px solid var(--pg-phone-row-line);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- transport photos ---------- */
.hm-mode__media {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--pg-media-shadow);
}
.hm-mode__media picture { display: block; }
.hm-mode__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.hm-mode:hover .hm-mode__img,
.hm-mode:focus-within .hm-mode__img {
  transform: scale(1.06);
}

/* ---------- stats ---------- */
.fe-section.hm-block {
  padding-top: clamp(48px, 6vw, 96px);
}
.fe-stats {
  display: block;
  background: var(--pg-stats-bg);
  color: var(--pg-stats-ink);
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 56px);
  box-shadow: inset 0 1px 0 var(--pg-stats-line), inset 0 -1px 0 var(--pg-stats-line);
}
.fe-stats__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fe-stats .fe-num {
  display: block;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pg-stats-ink);
  font-variant-numeric: tabular-nums;
}
.fe-stats p {
  margin: 10px 0 0;
  color: var(--pg-stats-label);
  font-size: 15px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .hm-apps__row {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 48px;
  }
}

@media (max-width: 899.98px) {
  .fe-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-hero__cap {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .fe-stats__grid { grid-template-columns: 1fr; }
}

/* Static hero: phone widths and reduced motion. No scrub, caption stays visible. */
@media (max-width: 899.98px), (prefers-reduced-motion: reduce) {
  .hm-hero {
    height: auto;
    min-height: 100svh;
  }
  .hm-hero__sticky {
    position: relative;
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hm-hero__frame { clip-path: none !important; }
  .hm-hero__frame,
  .hm-hero__media,
  .hm-hero__head,
  .hm-hero__cap { will-change: auto; }
  .hm-hero__media { transform: none; }
  .hm-hero__head {
    position: relative;
    top: auto;
    bottom: auto;
    order: 1;
    padding-top: 88px;
  }
  .hm-hero__cap {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 8px clamp(18px, 4vw, 56px) 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero h1 [data-line] {
    animation: none;
    transform: none;
  }
  .hm-mode__img { transition: none; }
  .hm-mode:hover .hm-mode__img,
  .hm-mode:focus-within .hm-mode__img { transform: none; }
  .fe-marquee__mask {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .fe-marquee__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    transform: none !important;
    padding: 0 18px;
  }
  .fe-marquee__dup { display: none; }
}

/* Link under a home card, and plan buttons that are marketing pills inside a column. */
.hm-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--pg-more);
}
.hm-more:hover { color: var(--pg-more-hover); }
.fe-price > .fe-btn,
#plan-detail > .fe-btn {
  align-self: flex-start;
  margin-top: 12px;
}
