/* ============================================================
   TENTAVA PRODUCT PAGES — full-view storytelling & pricing
   ============================================================ */

html {
  scroll-snap-type: y mandatory;
}

/* Pricing is a naturally scrolling page. Mandatory snapping would lock the
   viewport onto the footer because the pricing content itself is not a snap
   section, which prevents users from scrolling back up. */
html.pricing-page-root {
  scroll-snap-type: none;
}

html.home-showcase-root,
html.feature-tiles-root {
  scroll-snap-type: none;
}

body.product-site {
  background-attachment: fixed;
  /* `hidden` creates a scroll container that breaks sticky storytelling. */
  overflow-x: clip;
}

.product-site main {
  position: relative;
  z-index: 1;
}

.product-site .footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.launch-countdown {
  min-height: clamp(260px, 36svh, 390px);
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 4vw, 38px);
  padding: calc(var(--nav-height) + 36px) max(24px, calc((100vw - var(--max-width)) / 2)) 44px;
  border-bottom: 1px solid rgba(225, 225, 225, 0.10);
  background: linear-gradient(180deg, rgba(204, 111, 255, 0.07), rgba(16, 25, 30, 0.12));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.launch-countdown__kicker {
  margin: 0;
  color: var(--default-text-color-fourth);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.launch-countdown__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2.2vw, 28px);
}

.launch-countdown__unit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.launch-countdown__value {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(84px, 13vw, 168px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  color: #10191e;
  background: linear-gradient(180deg, #f3f3f1 0%, #e4e5e3 49.5%, #d7d9d7 50.5%, #ededeb 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 7vw, 82px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  place-items: center;
}

.launch-countdown__value::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(16, 25, 30, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.launch-countdown__value.is-changing { animation: countdown-tick 180ms ease-out; }

.launch-countdown__label {
  color: var(--default-text-color);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(11px, 1.35vw, 15px);
}

@keyframes countdown-tick {
  from { transform: perspective(18rem) rotateX(-7deg); filter: brightness(0.9); }
  to { transform: perspective(18rem) rotateX(0); filter: brightness(1); }
}

.story-view {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 32px) max(24px, calc((100vw - var(--max-width)) / 2)) 32px;
  border-bottom: 1px solid rgba(225, 225, 225, 0.10);
  overflow: hidden;
}

.story-view__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3.25fr) minmax(230px, 1.35fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.story-view--reverse .story-view__grid {
  grid-template-columns: minmax(230px, 1.35fr) minmax(0, 3.25fr);
}

.story-view--reverse .story-view__device { order: 1; }
.story-view--reverse .story-view__content { order: 2; }

.story-view__content {
  max-width: 780px;
}

.story-view__kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--default-text-color-fourth);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-view__title {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.story-view__copy {
  max-width: 680px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.story-view__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.story-view__point {
  padding: 8px 13px;
  border: 1px solid rgba(204, 111, 255, 0.32);
  border-radius: var(--radius-pill);
  color: var(--default-text-color);
  background: rgba(16, 25, 30, 0.28);
  font-size: 13px;
}

.story-view__device {
  height: min(82svh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* The hero video includes a wide transparent canvas around the phone. Let the
   canvas overflow its grid cell so the visible iPhone can fill the viewport. */
.story-view--hero .story-view__grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
  gap: clamp(16px, 3vw, 52px);
}

.story-view__device--hero {
  height: min(96svh, 960px);
  box-sizing: border-box;
  padding-right: clamp(72px, 7vw, 128px);
  overflow: visible;
}

.home-hero-video {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: translateX(clamp(24px, 2.5vw, 48px)) scale(1.08);
  transform-origin: center;
  filter: none;
}

/* Home view transitions: content and device enter from opposite sides. */
.home-transitions .story-view__content,
.home-transitions .story-view__device {
  will-change: transform, opacity, filter;
  transition:
    opacity 0.72s ease,
    transform 0.88s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s ease;
}

.home-transitions .story-view__content {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(-64px, 24px, 0);
}

.home-transitions .story-view__device {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(72px, 18px, 0) scale(0.94);
  transition-delay: 0.10s;
}

.home-transitions .story-view--reverse .story-view__content {
  transform: translate3d(64px, 24px, 0);
}

.home-transitions .story-view--reverse .story-view__device {
  transform: translate3d(-72px, 18px, 0) scale(0.94);
}

.home-transitions .story-view.is-entering-back .story-view__content {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, -64px, 0) scale(0.98);
}

.home-transitions .story-view.is-entering-back .story-view__device {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, -48px, 0) scale(0.94);
}

.home-transitions .story-view.is-in-view .story-view__content,
.home-transitions .story-view.is-in-view .story-view__device {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.home-transitions .story-view.is-leaving-up .story-view__content {
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, -38px, 0) scale(0.985);
}

.home-transitions .story-view.is-leaving-up .story-view__device {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, -28px, 0) scale(0.97);
}

.iphone-mockup {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: scale(1.34);
  transform-origin: center;
  filter: none;
}

/* Home page 4: one sticky view that reveals each dashboard tile in sequence. */
.home-showcase {
  height: 600vh;
  height: 600svh;
  min-height: 600vh;
  min-height: 600svh;
  display: block;
  padding: 0;
  overflow: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.home-showcase__stage {
  position: sticky;
  top: 0;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100svh;
  align-items: center;
  padding: calc(var(--nav-height) + 32px) max(24px, calc((100vw - var(--max-width)) / 2)) 32px;
  overflow: hidden;
}

.home-showcase__device,
.home-showcase__content {
  transition: opacity 0.28s ease, transform 0.46s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.home-showcase__device { position: relative; }

.home-showcase__device.is-switching {
  opacity: 1;
  filter: none;
  transform: none;
}

.home-showcase__content.is-switching {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-18px);
}

.home-showcase__base {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.62s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.62s ease;
}

.home-showcase__device.is-detail .home-showcase__base {
  opacity: 0.25;
  filter: saturate(0.65) blur(1.5px);
  transform: scale(1.02);
}

.home-showcase__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: auto;
  max-width: min(112%, 420px);
  height: auto;
  max-height: min(84svh, 108%);
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  opacity: 1;
  box-shadow: none;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.32s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s ease;
}

.home-showcase__device.is-switching .home-showcase__overlay {
  opacity: 0;
  filter: blur(7px);
  transform: translate(-50%, calc(-50% + 32px)) scale(0.82);
}

.home-showcase__video { display: block; }
.home-showcase__video[hidden],
.home-showcase__overlay-image[hidden] { display: none; }

.home-transitions .story-view.home-showcase .story-view__content,
.home-transitions .story-view.home-showcase .story-view__device {
  opacity: 1;
  filter: none;
  transform: none;
}

.home-transitions .story-view.home-showcase .home-showcase__device.is-switching {
  opacity: 1;
  filter: none;
  transform: none;
}

.home-transitions .story-view.home-showcase .home-showcase__content.is-switching {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-18px);
}

/* Functions page: responsive expandable feature tiles (maximum four columns). */
.features-page {
  min-height: 100svh;
  padding: calc(var(--nav-height) + clamp(54px, 8vw, 104px)) max(24px, calc((100vw - var(--max-width)) / 2)) clamp(72px, 10vw, 132px);
}

.features-page__intro {
  max-width: 820px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.features-page__intro h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.features-page__intro p {
  max-width: 700px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
}

.feature-tile {
  --tile-accent: #CC6FFF;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 38%, transparent);
  border-radius: clamp(24px, 2.5vw, 34px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 14%, rgba(16, 25, 30, 0.88)), rgba(16, 25, 30, 0.72));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  transition: opacity 0.32s ease, transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  transform-origin: top left;
}

.feature-tile--tenacity { --tile-accent: #d77e2f; }
.feature-tile--chat { --tile-accent: #9fc6bd; }
.feature-tile--integrations { --tile-accent: #83a9d8; }
.feature-tile--ai { --tile-accent: #CC6FFF; }
.feature-tile--more { --tile-accent: #f0c77b; }

.feature-tile__trigger {
  display: flex;
  width: 100%;
  min-height: clamp(310px, 31vw, 430px);
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.5vw, 34px);
  color: var(--default-text-color);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.feature-tile__trigger:hover .feature-tile__icon { transform: translate(4px, -4px) rotate(8deg); }
.feature-tile__trigger:focus-visible { outline: 2px solid var(--tile-accent); outline-offset: -5px; }

.feature-tile__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 52%, transparent);
  border-radius: 50%;
  color: var(--tile-accent);
  font-size: 23px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  place-items: center;
}

.feature-tile__number {
  margin-bottom: 14px;
  color: var(--tile-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-tile__title {
  max-width: 14ch;
  color: var(--header-text);
  font-family: var(--font-header);
  font-size: clamp(24px, 2.5vw, 37px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.feature-tile__teaser {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.feature-tile__expanded { display: none; }

.feature-tile.is-open {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--tile-accent) 70%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.feature-tile.is-open .feature-tile__trigger { display: none; }
.feature-tile.is-open .feature-tile__expanded { display: block; }

.feature-tile__bar {
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 14px clamp(24px, 3vw, 42px);
  border-bottom: 1px solid color-mix(in srgb, var(--tile-accent) 34%, transparent);
  background: color-mix(in srgb, var(--tile-accent) 10%, rgba(16, 25, 30, 0.6));
}

.feature-tile__bar strong {
  color: var(--tile-accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-tile__close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 52%, transparent);
  border-radius: 50%;
  color: var(--tile-accent);
  cursor: pointer;
  touch-action: manipulation;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-tile__close:hover { background: color-mix(in srgb, var(--tile-accent) 14%, transparent); transform: translateY(-2px); }
.feature-tile__close span { font-size: 22px; transform: translateY(3px); }

.feature-tile__content {
  display: block;
  padding: clamp(36px, 6vw, 78px);
  animation: feature-content-in 0.5s 0.08s both cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-tile__content h2 {
  margin: 0;
  font-size: clamp(38px, 5.7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.feature-tile__content p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.65; }
.feature-tiles.has-open > .feature-tile:not(.is-open) { opacity: 0.32; transform: scale(0.97); }

.feature-detail__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.feature-detail__intro > p { max-width: 650px; }

.feature-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(36px, 6vw, 72px);
}

.feature-preview {
  grid-column: span 4;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.feature-preview--half { grid-column: span 6; }
.feature-preview--third { grid-column: span 4; }
.feature-preview--full { grid-column: 1 / -1; }

.feature-preview__visual {
  position: relative;
  display: grid;
  height: clamp(390px, 48vw, 650px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  place-items: end center;
}

.feature-preview__visual::after { content: none; }

.feature-preview__visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.feature-preview figcaption { padding: clamp(22px, 3vw, 34px); }

.feature-preview__label {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--tile-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-preview h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.08;
}

.feature-preview figcaption p { font-size: 16px; line-height: 1.65; }

.feature-showcase--single .feature-preview {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(300px, 1.2fr);
  align-items: stretch;
}

.feature-showcase--single .feature-preview__visual {
  height: clamp(480px, 58vw, 720px);
  border: 0;
}

.feature-showcase--single figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 82px);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(36px, 6vw, 72px);
}

.integration-option {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--tile-accent) 28%, transparent);
  border-radius: clamp(18px, 2.2vw, 26px);
  background: rgba(7, 13, 17, 0.24);
}

.integration-option:last-child { grid-column: 1 / -1; }

.integration-option__logo {
  display: grid;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 32%, transparent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #20282d;
  place-items: center;
}

.integration-option__logo svg { width: 48px; height: 48px; }
.integration-option__logo img { display: block; width: auto; max-width: 86%; height: auto; max-height: 86%; object-fit: contain; }
.integration-option__logo--health img { max-width: 100%; max-height: 100%; }
.integration-option__logo--wahoo img,
.integration-option__logo--polar img { max-width: 88%; }
.integration-option__logo--bluetooth img { max-width: 82%; max-height: 82%; }
.integration-option__logo--fit { background: #eaf5ee; color: #327451; }

.integration-option h3 { margin: 2px 0 8px; font-size: 23px; }
.integration-option p { font-size: 15px; line-height: 1.65; }

.feature-consent-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--tile-accent) 8%, transparent);
  font-size: 14px !important;
}

.feature-consent-note span { color: var(--tile-accent); font-size: 19px; }

.feature-tile__content--more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-more__mark {
  display: grid;
  width: clamp(110px, 14vw, 180px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 52%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tile-accent) 10%, rgba(7, 13, 17, 0.22));
  color: var(--tile-accent);
  font-family: var(--font-header);
  font-size: clamp(66px, 9vw, 118px);
  line-height: 1;
  place-items: center;
}

.feature-tile__content--more p { max-width: 780px; margin-top: 20px; }

@keyframes feature-content-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 48px);
  margin-bottom: 28px;
}

.brand-lockup__logo {
  width: clamp(108px, 14vw, 188px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.22));
}

.brand-lockup__slogan {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
}

.app-store-badge {
  display: inline-block;
  margin-top: 34px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.app-store-badge img { width: 184px; height: auto; }

.app-store-availability {
  width: 184px;
  margin: 9px 0 0;
  color: var(--default-text-color-fourth);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
}

.view-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.view-progress a {
  width: 7px;
  height: 7px;
  border: 1px solid var(--default-text-color-fourth);
  border-radius: 50%;
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.view-progress a.is-active {
  background: var(--default-text-color-fourth);
  opacity: 1;
  transform: scale(1.35);
}

/* Pricing */
.pricing-page {
  min-height: 100svh;
  padding: calc(var(--nav-height) + 72px) 0 88px;
}

.pricing-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.pricing-heading h1 { margin-bottom: 16px; }
.pricing-heading p { font-size: 18px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  --plan-color: var(--tier-core);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--plan-color) 52%, transparent);
  border-radius: 24px;
  background: rgba(16, 25, 30, 0.76);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.price-card--pro { --plan-color: var(--tier-pro); }
.price-card--peak { --plan-color: var(--tier-peak); }

.price-card--popular {
  border: 2px solid var(--tier-pro);
  box-shadow: 0 0 0 1px rgba(215, 126, 47, 0.18), 0 18px 52px rgba(215, 126, 47, 0.20);
}

.price-card__popular {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 7px 14px;
  border-radius: 0 0 12px 12px;
  background: var(--tier-pro);
  color: var(--default-text-color-contrast);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card__name {
  margin-bottom: 10px;
  color: var(--plan-color);
  font-size: 34px;
}

.price-card__description {
  min-height: 78px;
  margin-bottom: 20px;
  font-size: 14px;
}

.price-card__price {
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--plan-color) 32%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--plan-color) 12%, transparent);
}

.price-card__price strong,
.price-card__price span { display: block; }
.price-card__price strong { font-size: 17px; }
.price-card__price span { margin-top: 3px; color: var(--text-secondary); font-size: 14px; }

.price-card__coach-addon {
  margin: -8px 0 24px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--default-text-color-fourth) 34%, transparent);
  border-radius: 16px;
  background: rgba(204, 111, 255, 0.08);
}

.price-card__coach-heading,
.price-card__coach-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-card__coach-heading strong { color: var(--default-text-color-fourth); font-size: 15px; }
.price-card__coach-heading span { color: var(--text-secondary); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.price-card__coach-addon > p { min-height: 42px; margin: 10px 0 14px; font-size: 13px; line-height: 1.5; }
.price-card__coach-total { flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(204, 111, 255, 0.18); }
.price-card__coach-total span { width: 100%; color: var(--text-secondary); font-size: 12px; }
.price-card__coach-total strong { font-size: 16px; }
.price-card__coach-total small { color: var(--text-secondary); font-size: 13px; }
.price-card__saving { margin-top: 10px; color: var(--plan-color); font-size: 12px; font-weight: 700; }

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.price-card__features li {
  position: relative;
  padding-left: 25px;
  color: var(--default-text-color);
  font-size: 14px;
  line-height: 1.45;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--plan-color);
  font-weight: 700;
}

.coach-addon-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(204, 111, 255, 0.34);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(204, 111, 255, 0.12), rgba(225, 225, 225, 0.08));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.coach-addon-section__intro h2 { margin-bottom: 14px; color: var(--default-text-color-fourth); }
.coach-addon-section__intro p { max-width: 520px; font-size: 15px; line-height: 1.65; }
.coach-addon-section__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.coach-addon-section__features li {
  position: relative;
  min-height: 72px;
  padding: 18px 18px 18px 48px;
  border: 1px solid rgba(204, 111, 255, 0.20);
  border-radius: 16px;
  background: rgba(16, 25, 30, 0.24);
  color: var(--default-text-color);
  font-size: 14px;
  line-height: 1.5;
}

.coach-addon-section__features li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--default-text-color-fourth);
  font-weight: 800;
}

.coach-addon-section__features li:last-child { grid-column: 1 / -1; }

.download-view {
  min-height: 100vh;
  min-height: 100svh;
}

/* Functions: one sticky view whose content is replaced by scroll progress. */
.feature-page-root { scroll-snap-type: none; }

.feature-scroll {
  position: relative;
  height: 400vh;
  height: 400svh;
}

.feature-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 32px) max(24px, calc((100vw - var(--max-width)) / 2)) 32px;
  overflow: hidden;
}

.feature-stage__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(180px, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.feature-stage__content { min-width: 0; max-width: 790px; }
.feature-stage__device {
  height: min(74svh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s ease, transform 0.55s var(--ease);
}

.feature-stage__device.is-switching {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
}

.feature-cube {
  position: relative;
  height: clamp(108px, 15vw, 190px);
  margin-bottom: 22px;
  perspective: 900px;
  transform-style: preserve-3d;
}

.feature-cube__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.65, 0, 0.18, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.feature-cube.is-resetting .feature-cube__face {
  transition: none;
}

.feature-cube__face--current {
  opacity: 1;
  transform: rotateX(0deg) translateZ(0);
  transform-origin: center center;
}

.feature-cube__face--next {
  opacity: 0;
  transform: rotateX(-90deg) translateZ(70px);
  transform-origin: center bottom;
}

.feature-cube.is-rotating .feature-cube__face--current {
  opacity: 0;
  transform: rotateX(90deg) translateZ(70px) translateY(-16px);
}

.feature-cube.is-rotating .feature-cube__face--next {
  opacity: 1;
  transform: rotateX(0deg) translateZ(0) translateY(0);
}

.feature-cube.is-reversing .feature-cube__face--current {
  opacity: 0;
  transform: rotateX(-90deg) translateZ(70px) translateY(16px);
}

.feature-cube.is-reversing .feature-cube__face--next {
  opacity: 1;
  transform: rotateX(0deg) translateZ(0) translateY(0);
}

.feature-stage__details {
  transition: opacity 0.28s ease, transform 0.42s var(--ease);
}

.feature-stage__details.is-switching {
  opacity: 0;
  transform: translateY(18px);
}

.feature-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--default-text-color-fourth);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
}

.feature-progress button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--default-text-color-fourth);
  border-radius: 50%;
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.feature-progress button.is-active {
  background: var(--default-text-color-fourth);
  opacity: 1;
  transform: scale(1.35);
}

@media (max-width: 900px) {
  html { scroll-snap-type: y proximity; }

  .story-view,
  .story-view--reverse {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 40px);
    overflow: visible;
  }

  .story-view__grid,
  .story-view--reverse .story-view__grid {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr);
    gap: 24px;
  }

  .story-view--reverse .story-view__device { order: 1; }
  .story-view--reverse .story-view__content { order: 2; }
  .story-view__device { height: min(58svh, 570px); }
  .story-view--hero .story-view__grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    gap: 12px;
  }
  .story-view__device--hero { height: min(76svh, 680px); padding-right: clamp(40px, 6vw, 72px); }
  .home-hero-video { transform: translateX(clamp(12px, 2vw, 24px)) scale(1.06); }
  .story-view__title { font-size: clamp(34px, 7vw, 64px); }
  .brand-lockup { align-items: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .coach-addon-section { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .price-card__description { min-height: 0; }
  .feature-stage__grid { grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr); gap: 24px; }
  .feature-stage__device { height: min(58svh, 570px); }
  .feature-cube { height: clamp(92px, 14vw, 150px); }
  .feature-cube__face { font-size: clamp(34px, 7vw, 64px); }
  .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-preview--half,
  .feature-preview--third { grid-column: span 6; }
  .feature-showcase--ai .feature-preview:last-child { grid-column: 1 / -1; }
  .home-showcase__stage { padding-top: calc(var(--nav-height) + 40px); }
  .home-showcase .story-view__device { height: min(58svh, 570px); }
}

@media (max-width: 640px) {
  .launch-countdown {
    min-height: 250px;
    gap: 20px;
    padding: calc(var(--nav-height) + 24px) 14px 30px;
  }
  .launch-countdown__grid { gap: 6px; }
  .launch-countdown__unit { gap: 8px; }
  .launch-countdown__value { min-height: 72px; border-radius: 6px; }
  .launch-countdown__label { font-size: 10px; }

  .story-view,
  .story-view--reverse {
    padding: calc(var(--nav-height) + 32px) 20px 28px;
  }

  .story-view__grid,
  .story-view--reverse .story-view__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-view--reverse .story-view__content,
  .story-view__content { order: 1; }
  .story-view--reverse .story-view__device,
  .story-view__device {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    padding-inline: 4px;
  }
  .brand-lockup__logo { width: 88px; }
  .brand-lockup__slogan { font-size: clamp(34px, 11vw, 52px); }
  .story-view__copy { font-size: 16px; }
  .view-progress { display: none; }
  .pricing-page { padding-top: calc(var(--nav-height) + 44px); }
  .coach-addon-section__features { grid-template-columns: 1fr; }
  .coach-addon-section__features li:last-child { grid-column: auto; }
  .feature-stage { padding: calc(var(--nav-height) + 30px) 20px 24px; align-items: flex-start; }
  .feature-stage__grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-stage__device { height: min(37svh, 350px); }
  .feature-cube { height: 84px; margin-bottom: 12px; }
  .feature-cube__face { font-size: clamp(32px, 10vw, 48px); }
  .feature-stage__hint { display: none; }
  .iphone-mockup {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }
  .story-view--hero .story-view__grid { grid-template-columns: minmax(0, 1fr); }
  .story-view__device--hero {
    width: calc(100% + 40px);
    min-width: 0;
    height: min(64svh, 580px);
    margin-inline: -20px;
    padding: clamp(44px, 11vw, 60px) 24px 0 0;
  }
  .home-hero-video {
    width: auto;
    max-width: none;
    height: 100%;
    transform: scale(1.16);
  }
  .home-showcase__stage {
    padding: calc(var(--nav-height) + 14px) 14px 14px;
    align-items: flex-start;
  }
  .home-showcase .story-view__grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    height: 100%;
  }
  .home-showcase .story-view__device {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    padding-inline: 10px;
  }
  .home-showcase .story-view__content { order: 2; }
  .home-showcase .story-view__title { margin-bottom: 10px; font-size: clamp(29px, 8.5vw, 38px); }
  .home-showcase .story-view__kicker { margin-bottom: 8px; }
  .home-showcase .story-view__copy,
  .home-showcase .story-view__points { display: none; }
  .home-showcase__base {
    width: calc(100% - 20px);
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin-inline: auto;
  }
  .home-showcase__device.is-detail .home-showcase__base { transform: scale(0.86); }
  .home-showcase__overlay {
    width: calc(100% - 20px);
    max-width: none;
    max-height: 100%;
    border-radius: 16px;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1);
  }
  .home-showcase__device.is-switching .home-showcase__overlay {
    transform: translate(-50%, calc(-50% + 28px)) scale(0.78);
  }
  .feature-tiles { grid-template-columns: 1fr; }
  .feature-tile__trigger { min-height: 290px; }
  .feature-tile.is-open { overflow: visible; }
  .feature-tile__bar {
    position: sticky;
    top: var(--nav-height);
    z-index: 6;
    min-height: 64px;
    padding: 10px 14px 10px 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .feature-tile__content { padding: 32px 20px; }
  .feature-tile__content h2 { font-size: clamp(32px, 10vw, 48px); }
  .feature-tile__content p { font-size: 16px; }
  .feature-detail__intro { grid-template-columns: 1fr; gap: 20px; }
  .feature-preview--half,
  .feature-preview--third { grid-column: 1 / -1; }
  .feature-preview__visual { height: min(118vw, 590px); }
  .feature-showcase--single .feature-preview { grid-template-columns: 1fr; }
  .feature-showcase--single .feature-preview__visual {
    height: min(118vw, 590px);
    border: 0;
  }
  .feature-showcase--single figcaption { padding: 26px; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-option:last-child { grid-column: auto; }
  .feature-tile__content--more { grid-template-columns: 1fr; }
  .feature-tile__bar strong { max-width: calc(100% - 64px); }
}

@media (max-width: 430px) {
  .features-page { padding-inline: 16px; }
  .feature-tile__content { padding: 28px 18px; }
  .feature-preview figcaption { padding: 22px; }
  .integration-option { grid-template-columns: 56px minmax(0, 1fr); gap: 15px; padding: 20px 16px; }
  .integration-option__logo { width: 56px; height: 56px; border-radius: 16px; }
  .integration-option__logo svg { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .feature-cube__face,
  .feature-stage__details,
  .feature-stage__device { transition: none; }
  .home-transitions .story-view__content,
  .home-transitions .story-view__device {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .launch-countdown__value.is-changing { animation: none; }
  .home-showcase__device,
  .home-showcase__content,
  .feature-tile,
  .feature-tile__content { transition: none; animation: none; }
}
