/* Sales pages. System font, no framework. Dark field matching the marketing site. */

/* Topic bar. Same pattern as the sessions web subnav: a heading, then quiet text links. */
.feature-subnav {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: #050508;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-subnav-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.45rem 20px 0.55rem;
  box-sizing: border-box;
}

.feature-subnav-title {
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-subnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem 1.15rem;
  margin-left: auto;
}

.sell .feature-subnav-links a {
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 0.15rem 0;
}

.sell .feature-subnav-links a:hover { color: rgba(255, 255, 255, 0.86); }

.sell .feature-subnav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 500;
}

.feature-index {
  width: 100%;
  margin: 0;
  padding: 2.25rem 1rem 2.25rem;
  background: #050508;
  color: #fff;
}

.feature-index h2,
.feature-index > p {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.feature-index h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.feature-index > p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.feature-index-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature-index-grid a {
  display: block;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-index-grid a:hover { border-color: rgba(126, 231, 245, 0.7); }

.feature-index-grid a[aria-current="page"] {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.feature-index-grid strong { display: block; margin-bottom: 0.2rem; }

.feature-index-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .feature-subnav { top: 56px; }
  .feature-subnav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-top: 0.55rem;
    padding-bottom: 0.65rem;
  }
  .feature-subnav-links a[href="/sessions/features/"] { display: none; }
  .feature-subnav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem 0.7rem;
    width: 100%;
  }
  .feature-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feature-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .feature-subnav-inner { padding-left: 14px; padding-right: 14px; }
  .feature-subnav-links { gap: 0.3rem 0.42rem; }
  .sell .feature-subnav-links a { font-size: 0.68rem; letter-spacing: -0.02em; }
}

.sell {
  --sell-pink: #d43b95;
  --sell-cyan: #7ee7f5;
  --sell-ink: #f4f7fb;
  --sell-muted: rgba(244, 247, 251, 0.72);
  --sell-line: rgba(255, 255, 255, 0.12);
  --sell-max: 1120px;
  color: var(--sell-ink);
  background: #050508;
}

.sell a { color: inherit; }

.sell-wrap {
  width: min(var(--sell-max), calc(100% - 2rem));
  margin-inline: auto;
}

.sell-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 820px);
  overflow: hidden;
}

.sell-hero-photo,
.sell-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.sell-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.82) 0%, rgba(5, 5, 8, 0.45) 48%, rgba(5, 5, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.15) 0%, #050508 100%);
}

.sell-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  width: min(var(--sell-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 8rem) 0 clamp(2rem, 5vh, 3.5rem);
}

.sell-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sell-cyan);
}

.sell h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  font-weight: 760;
  letter-spacing: -0.038em;
  line-height: 0.96;
}

.sell-lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.45;
  color: var(--sell-muted);
}

.sell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.85rem;
  margin-top: 1.35rem;
}

.sell-actions img { display: block; height: 44px; width: auto; }

.sell-text-link {
  font-weight: 650;
  text-underline-offset: 0.22em;
}

.sell-crumb {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.sell-crumb a { text-decoration: none; }
.sell-crumb a:hover { text-decoration: underline; }

.sell-phone {
  justify-self: end;
  width: min(280px, 70vw);
  margin: 0;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.sell-phone.device { filter: none; }

.sell-phone img,
.sell-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.sell-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.sell-section + .sell-section { border-top: 1px solid var(--sell-line); }

.sell-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.sell-split > .device {
  justify-self: end;
  width: min(250px, 70vw);
}

.sell-split--flip { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.1fr); }
.sell-split--flip .sell-copy { order: 2; }

.sell h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sell p { margin: 0 0 0.9rem; line-height: 1.55; color: var(--sell-muted); }
.sell p strong, .sell li strong { color: #fff; font-weight: 680; }

.sell-facts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sell-facts li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--sell-line);
  line-height: 1.45;
  color: var(--sell-muted);
}

.sell-facts li:first-child { border-top: 0; }

.sell-facts span {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font-weight: 700;
}

.sell-note {
  margin: 1.15rem 0 0;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-left: 3px solid var(--sell-cyan);
  background: rgba(126, 231, 245, 0.06);
  color: var(--sell-ink);
}

.sell-note p { margin: 0; color: var(--sell-ink); }
.sell-note p + p { margin-top: 0.45rem; }

.sell-tip {
  margin-top: 1.5rem;
  max-width: 42rem;
  padding: 1rem 1.15rem 0.2rem;
  border-radius: 16px;
  background: rgba(126, 231, 245, 0.07);
  border: 1px solid rgba(126, 231, 245, 0.32);
}

.sell-tip .sell-label { color: var(--sell-cyan); }

.foil-aside {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.foil-aside .sell-wrap { max-width: 42rem; }

.foil-aside h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.sell-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sell-pink);
}

.sell-wide {
  margin: 0;
}

.sell-wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #0c0e14;
}

.sell-wide figcaption,
.sell-phone figcaption,
.sell-shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.sell-video {
  margin: 1.25rem 0 0;
}

.sell-video video {
  display: block;
  width: min(720px, 100%);
  height: auto;
  border-radius: 16px;
  background: #000;
}

.sell-sports {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
}

.sell-faq details {
  border-top: 1px solid var(--sell-line);
}

.sell-faq details:last-child { border-bottom: 1px solid var(--sell-line); }

.sell-faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 680;
  list-style: none;
}

.sell-faq summary::-webkit-details-marker { display: none; }

.sell-faq summary::after {
  content: "+";
  float: right;
  color: var(--sell-cyan);
  font-weight: 500;
}

.sell-faq details[open] summary::after { content: "−"; }

.sell-faq details p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.sell-more {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.sell-more a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--sell-line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: #fff;
}

.sell-more a[aria-current="page"] {
  border-color: transparent;
  background: #fff;
  color: #111;
}

.sell-statrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sell-stat {
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sell-line);
}

.sell-stat b {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.sell-stat span { color: var(--sell-muted); font-size: 0.92rem; line-height: 1.35; }

.sell-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
  margin: 1.25rem 0 0;
}

.sell-logos img { height: 28px; width: auto; display: block; }

.connect-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.4rem 0 1.6rem;
  max-width: 42rem;
}

.connect-source {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 141, 177, 0.28);
  background: #161b24;
}

.connect-source img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 78%;
}

.connect-source--garmin img { height: 36px; }
.connect-source--suunto img { height: 34px; }
.connect-source--coros img { height: 24px; }
.connect-source--polar img { height: 22px; }

.connect-source--gpx {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.35rem;
}

.device {
  position: relative;
  margin: 0;
  container-type: inline-size;
}

.device::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 3.2%;
  top: 0.8%;
  width: 93.6%;
  height: 98.2%;
  border-radius: 13cqw;
  background: #000;
}

.device-ui {
  position: absolute;
  z-index: 1;
  left: 7.6%;
  top: 6.6%;
  width: 85.2%;
  height: 90.4%;
  object-fit: cover;
  object-position: center top;
  border-radius: 9cqw;
  background: #000;
}

.device-shell {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45));
}

.foil-hero-pair {
  position: relative;
  justify-self: end;
  width: min(540px, 100%);
  height: 600px;
}

.foil-hero-pair .device--back,
.foil-hero-pair .device--front {
  position: absolute;
}

.foil-hero-pair .device--back {
  width: 50%;
  right: 6px;
  top: 42px;
  transform: rotate(10deg);
}

.foil-hero-pair .device--front {
  width: 48%;
  left: 10px;
  top: 6px;
  z-index: 2;
  transform: rotate(-8deg);
}

.foil-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1.05fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.foil-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.foil-charts img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.foil-scene-photo.turns-photo-tall { object-position: center 92%; }

.foil-hero .sell-hero-photo { object-position: 62% 46%; }
.waves-hero .sell-hero-photo { object-position: center 55%; }
.foil-speed .foil-scene-photo { object-position: 58% 42%; }
.vmg-polar .foil-scene-photo { object-position: 100% 58%; }
.vmg-polar .foil-scene-scrim {
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.78) 0%, rgba(5, 5, 8, 0.42) 42%, rgba(5, 5, 8, 0.18) 100%);
}
.foil-speed .sell-statrow { margin-top: 1.6rem; }

.waves-scene .foil-scene-photo { object-position: center 48%; }

/* Instagram promo is framed for a smaller phone, so this glass is filled to the bezel. */
.waves-scene .device--play .device-ui {
  top: 1.2%;
  left: 4.4%;
  width: 91.2%;
  height: 95.6%;
  border-radius: 11.5cqw;
}

.turns-chart {
  margin: 1.6rem 0 0;
  max-width: 36rem;
}

.turns-chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.foil-layout > .device {
  justify-self: end;
  width: min(250px, 70vw);
}

.foil-intro .device--play {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.foil-intro .sell-tip,
.foil-intro .foil-more {
  grid-column: 1;
}

.foil-intro .sell-tip { margin-top: 0.35rem; }

.foil-scene {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

.foil-scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.foil-scene-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.72) 42%, rgba(5, 5, 8, 0.45) 100%);
}

.foil-scene > .sell-wrap {
  position: relative;
  z-index: 1;
}

.foil-scene-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: center;
}

.foil-scene-grid .foil-set {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.foil-set {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.1rem;
  align-items: end;
  justify-items: center;
}

.device-slot {
  margin: 0;
  width: min(240px, 100%);
}

.device-slot:last-child { width: min(260px, 100%); }

.foil-set .device-slot:first-child .device { transform: rotate(-10deg); }
.foil-set .device-slot:last-child .device { transform: rotate(8deg); }

.device-slot figcaption {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 800px) {
  .sell-hero { min-height: 0; }
  .sell-hero-grid,
  .sell-split,
  .sell-split--flip {
    grid-template-columns: 1fr;
  }
  .sell-split--flip .sell-copy { order: 0; }
  .sell-phone { justify-self: start; width: min(240px, 62vw); }
  .sell-split > .device { justify-self: center; width: min(240px, 62vw); }
  .hub-grid { grid-template-columns: 1fr; }
  .sell-statrow { grid-template-columns: 1fr; }
  .foil-layout,
  .foil-charts { grid-template-columns: 1fr; }
  .foil-layout > .device { justify-self: center; }
  .foil-intro .device--play,
  .foil-intro .sell-tip {
    grid-column: auto;
    grid-row: auto;
  }
  .foil-intro .sell-tip { margin-top: 1.35rem; }
  .sell-hero-scrim {
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.72) 42%, #050508 100%);
  }
  .sell-hero.foil-hero {
    min-height: 100svh;
    align-items: end;
  }
  .foil-hero .sell-hero-scrim {
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.62) 0%, rgba(5, 5, 8, 0.18) 46%, rgba(5, 5, 8, 0.55) 100%);
  }
  .foil-hero .sell-hero-grid {
    align-content: end;
    min-height: 100svh;
    padding-top: 5.25rem;
    padding-bottom: 1.25rem;
  }
  .foil-hero .foil-hero-pair {
    width: min(360px, 94vw);
    height: 430px;
    justify-self: center;
    margin-top: 0.75rem;
  }
  .foil-hero-pair .device--back { width: 48%; top: 28px; transform: rotate(8deg); }
  .foil-hero-pair .device--front { width: 46%; transform: rotate(-7deg); }
  .foil-scene-grid { grid-template-columns: 1fr; }
  .foil-scene-grid .sell-copy,
  .foil-scene-grid .foil-set,
  .foil-scene-grid .foil-more {
    grid-column: auto;
    grid-row: auto;
  }
  .foil-scene-scrim {
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.82) 0%, rgba(5, 5, 8, 0.45) 55%, rgba(5, 5, 8, 0.72) 100%);
  }
  .foil-set {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.5rem;
  }
  .device-slot,
  .device-slot:last-child { width: 100%; }
  .foil-set .device-slot:first-child .device { transform: rotate(-6deg); }
  .foil-set .device-slot:last-child .device { transform: rotate(6deg); }
  .foil-charts {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
  }
  .foil-charts img {
    flex: 0 0 86%;
    width: 86%;
    scroll-snap-align: start;
  }
}

.hub-manifesto {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--sell-line);
}

.hub-manifesto .sell-wrap { max-width: 44rem; }

.hub-manifesto p {
  margin: 0 0 0.9rem;
  color: var(--sell-muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.hub-manifesto p:last-child { margin-bottom: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-card:hover { border-color: rgba(126, 231, 245, 0.7); }

.hub-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.hub-card img.is-ui { object-position: top center; }
.hub-card img.is-foil { object-position: center 42%; }
.hub-card img.is-turns { object-position: center 35%; }
.hub-card img.is-vmg { object-position: center 58%; }
.hub-card img.is-waves { object-position: center 68%; }
.hub-card img.is-paddle { object-position: 82% center; }
.hub-card img.is-log { object-position: center 18%; }
.hub-card img.is-connect { object-position: 22% center; }

.hub-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.1rem 1.15rem;
  flex: 1;
}

.hub-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hub-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  font-size: 0.98rem;
}

.hub-card-go {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--sell-cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

.hub-close {
  text-align: center;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hub-close h2 { text-wrap: balance; }

.hub-close .sell-lead { margin-inline: auto; }

.hub-close .sell-actions { justify-content: center; }

.hub-note {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}
