/*
  Sehat Dari Sini — Ecosystem Hub
  Production stylesheet. Refactored 1:1 from the Google Stitch export
  (Tailwind CDN + inline config) into plain, organized CSS.
  Visual output (colors, spacing, typography, radii, shadows) is
  preserved exactly from the original design tokens.
*/

/* ==========================================================================
   1. Fonts (self-hosted, subset to Latin — the only script used on this page)
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plusjakartasans-variable-latin.woff2") format("woff2");
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
  /* Color palette — "Serene Vitality" (see DESIGN.md) */
  --color-primary: #466641;
  --color-primary-dark: #364f32;
  --color-on-primary: #ffffff;
  --color-primary-container: #8bae83;
  --color-on-primary-container: #234120;
  --color-primary-fixed: #c8edbe;

  --color-secondary: #5d5f5f;
  --color-on-secondary-variant: #616363;

  --color-tertiary-fixed-dim: #c3c8c2;

  --color-background: #fafaf4;
  --color-on-background: #1a1c19;
  --color-surface: #fafaf4;
  --color-surface-container-low: #f4f4ee;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface: #1a1c19;
  --color-on-surface-variant: #434840;
  --color-outline-variant: #c3c8bd;

  --color-error: #ba1a1a;

  /* Typography */
  --font-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  --text-display-mobile: 700 36px/44px var(--font-heading);
  --text-display-mobile-tracking: -0.02em;
  --text-display: 700 48px/56px var(--font-heading);
  --text-display-tracking: -0.02em;

  --text-headline-sm: 700 24px/32px var(--font-heading);

  --text-body-lg: 400 18px/28px var(--font-body);
  --text-body-md: 400 16px/24px var(--font-body);

  --text-label-md: 600 14px/20px var(--font-body);
  --text-label-md-tracking: 0.02em;
  --text-label-md-bold: 700 14px/20px var(--font-body);

  --text-label-sm: 500 12px/16px var(--font-body);
  --text-label-sm-tracking: 0.05em;

  /* Spacing scale (8px base unit) */
  --space-margin-mobile: 20px;
  --space-margin-desktop: 64px;
  --space-gutter: 24px;

  /* Element-level vertical rhythm — use these for margins/gaps between
     content blocks instead of arbitrary pixel values */
  --space-xs: 16px;
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;

  /* Section-level vertical rhythm (padding-block on <section> elements) */
  --space-section-gap: 80px;
  --space-section-gap-mobile: 64px;

  --container-max: 1200px;

  /* Shape */
  --radius-full: 9999px;
  --radius-hero: 32px;
  --radius-lg: 1rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-ambient: 0px 10px 40px rgba(139, 174, 131, 0.1);

  /* Motion */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
}

/* ==========================================================================
   3. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  font: var(--text-body-md);
  color: var(--color-on-background);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Visible keyboard-focus ring across all interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-margin-desktop);
  }
}

/* ==========================================================================
   5. Icons (inlined-at-build SVGs from the same Material Symbols font,
      recolored via CSS mask so they inherit currentColor)
   ========================================================================== */

.icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-hub {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("../icons/hub.svg");
  mask-image: url("../icons/hub.svg");
}

.icon-group {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/group.svg");
  mask-image: url("../icons/group.svg");
}

.icon-favorite {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/favorite.svg");
  mask-image: url("../icons/favorite.svg");
}

.icon-instagram {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("../icons/instagram.svg");
  mask-image: url("../icons/instagram.svg");
}

.icon-arrow-forward {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("../icons/arrow_forward.svg");
  mask-image: url("../icons/arrow_forward.svg");
}

.icon-flag {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/flag.svg");
  mask-image: url("../icons/flag.svg");
}

.icon-directions-run {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/directions_run.svg");
  mask-image: url("../icons/directions_run.svg");
}

.icon-language {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/language.svg");
  mask-image: url("../icons/language.svg");
}

.icon-sports-tennis {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/sports_tennis.svg");
  mask-image: url("../icons/sports_tennis.svg");
}

.icon-fitness-center {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/fitness_center.svg");
  mask-image: url("../icons/fitness_center.svg");
}

.icon-grid-view {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/grid_view.svg");
  mask-image: url("../icons/grid_view.svg");
}

.icon-layers {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/layers.svg");
  mask-image: url("../icons/layers.svg");
}

.icon-checkroom {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/checkroom.svg");
  mask-image: url("../icons/checkroom.svg");
}

.icon-open-in-full {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/open_in_full.svg");
  mask-image: url("../icons/open_in_full.svg");
}

.icon-water-drop {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/water_drop.svg");
  mask-image: url("../icons/water_drop.svg");
}

.icon-air {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/air.svg");
  mask-image: url("../icons/air.svg");
}

.icon-eco {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/eco.svg");
  mask-image: url("../icons/eco.svg");
}

.icon-waves {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/waves.svg");
  mask-image: url("../icons/waves.svg");
}

.icon-shopping-bag {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/shopping_bag.svg");
  mask-image: url("../icons/shopping_bag.svg");
}

.icon-person {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/person.svg");
  mask-image: url("../icons/person.svg");
}

.icon-star {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/star.svg");
  mask-image: url("../icons/star.svg");
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/whatsapp.svg");
  mask-image: url("../icons/whatsapp.svg");
}

.icon-chevron-left {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/chevron_left.svg");
  mask-image: url("../icons/chevron_left.svg");
}

.icon-chevron-right {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/chevron_right.svg");
  mask-image: url("../icons/chevron_right.svg");
}

.icon-expand-less {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/expand_less.svg");
  mask-image: url("../icons/expand_less.svg");
}

.icon-shield {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/shield.svg");
  mask-image: url("../icons/shield.svg");
}

.icon-spa {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/spa.svg");
  mask-image: url("../icons/spa.svg");
}

.icon-calendar-today {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/calendar_today.svg");
  mask-image: url("../icons/calendar_today.svg");
}

.icon-insights {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/insights.svg");
  mask-image: url("../icons/insights.svg");
}

.icon-storefront {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("../icons/storefront.svg");
  mask-image: url("../icons/storefront.svg");
}

.icon-person-add {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/person_add.svg");
  mask-image: url("../icons/person_add.svg");
}

.icon-credit-card {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/credit_card.svg");
  mask-image: url("../icons/credit_card.svg");
}

.icon-badge {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/badge.svg");
  mask-image: url("../icons/badge.svg");
}

.icon-upload {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/upload.svg");
  mask-image: url("../icons/upload.svg");
}

.icon-auto-awesome {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/auto_awesome.svg");
  mask-image: url("../icons/auto_awesome.svg");
}

.icon-workspace-premium {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/workspace_premium.svg");
  mask-image: url("../icons/workspace_premium.svg");
}

.icon-inventory-2 {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/inventory_2.svg");
  mask-image: url("../icons/inventory_2.svg");
}

.icon-local-shipping {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("../icons/local_shipping.svg");
  mask-image: url("../icons/local_shipping.svg");
}

.icon-location-on {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("../icons/location_on.svg");
  mask-image: url("../icons/location_on.svg");
}

/* ==========================================================================
   6. Site header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(250, 250, 244, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav__logo-img {
  display: block;
  height: 36px;
  width: auto;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo:active {
  transform: scale(0.95);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: var(--text-label-md);
  letter-spacing: var(--text-label-md-tracking);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-align: center;
}

.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.btn--primary:hover {
  box-shadow: var(--shadow-ambient);
  transform: translateY(-1px);
}

.btn--primary.btn--lg {
  padding: 16px 32px;
}

.btn--primary.btn--lg:hover {
  transform: translateY(-4px);
}

.btn--secondary {
  padding: 16px 32px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: rgb(70 102 65 / 0.05);
}

.btn--sm {
  padding: 12px 24px;
}

/* ==========================================================================
   8. Hero section
   ========================================================================== */

.hero {
  padding-block: var(--space-section-gap);
}

.hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 768px) {
  .hero__layout {
    flex-direction: row;
  }
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background-color: rgb(195 200 194 / 0.3);
}

.hero__badge-text {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-primary);
  text-transform: uppercase;
}

.hero__heading {
  margin: 0;
  font: var(--text-display-mobile);
  letter-spacing: var(--text-display-mobile-tracking);
  color: var(--color-on-surface);
}

@media (min-width: 768px) {
  .hero__heading {
    font: var(--text-display);
    letter-spacing: var(--text-display-tracking);
  }
}

.hero__description {
  margin: 0;
  max-width: 32rem;
  font: var(--text-body-lg);
  color: var(--color-on-surface-variant);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
  }
}

.hero__actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero__actions .btn {
    width: auto;
  }
}

.hero__visual {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-ambient);
  background: radial-gradient(120% 120% at 15% 15%, var(--color-primary-fixed) 0%, var(--color-surface-container-low) 60%);
}

@media (min-width: 768px) {
  .hero__visual {
    min-height: 600px;
  }
}

/* Floating dashboard composition: a centerpiece phone mockup, four glass
   context cards, faint connecting lines, and a Luniar jersey tucked behind
   the phone -- illustrative chrome only, no photography. */
.hero-visual__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-visual__line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 0.4;
  stroke-linecap: round;
  opacity: 0.25;
}

.hero-jersey {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 2;
  width: 34%;
  max-width: 170px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.12));
  animation: hero-float-jersey 7s ease-in-out infinite;
}

.hero-jersey svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-jersey__body {
  fill: var(--color-surface-container-lowest);
  opacity: 0.9;
}

.hero-jersey__stripe {
  fill: var(--color-primary);
  opacity: 0.85;
}

.hero-jersey__crest {
  fill: var(--color-primary);
  opacity: 0.6;
}

.hero-phone {
  position: absolute;
  top: 50%;
  left: 48%;
  z-index: 3;
  width: clamp(180px, 44%, 220px);
  padding: 10px;
  background-color: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 34px;
  box-shadow: var(--shadow-ambient);
  transform: translate(-50%, -50%);
  animation: hero-float-phone 6s ease-in-out infinite;
}

.hero-phone__notch {
  width: 40px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: var(--radius-full);
  background-color: rgb(70 102 65 / 0.18);
}

.hero-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 18px;
  background-color: var(--color-surface-container-lowest);
  border-radius: 24px;
}

.hero-phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-phone__title {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-on-surface-variant);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-phone__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-phone__live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}

.hero-phone__stats {
  display: flex;
  gap: 10px;
}

.hero-phone__stat {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background-color: rgb(70 102 65 / 0.06);
  border-radius: var(--radius-lg);
}

.hero-phone__stat-value {
  margin: 0;
  font: var(--text-headline-sm);
  color: var(--color-on-surface);
}

.hero-phone__stat-label {
  margin: 2px 0 0;
  font: var(--text-label-sm);
  color: var(--color-on-surface-variant);
}

.hero-phone__chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  padding: 0 2px;
}

.hero-phone__chart span {
  display: block;
  flex: 1;
  height: var(--bar-height);
  border-radius: 3px;
  background-color: var(--color-primary);
  opacity: 0.85;
}

.hero-phone__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font: var(--text-label-md);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-on-surface);
  white-space: nowrap;
  background-color: rgb(70 102 65 / 0.06);
  border-radius: var(--radius-full);
}

.hero-phone__status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}

/* Below 1200px the visual box is too narrow for four labeled pills to sit
   around the phone without colliding, so they're compact icon-only circles
   by default and only expand into full labeled pills once there's room. */
.hero-float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-ambient);
  animation: hero-float 6s ease-in-out infinite;
}

.hero-float-card__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.hero-float-card__label {
  display: none;
  font: var(--text-label-md-bold);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-on-surface);
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .hero-float-card {
    width: auto;
    height: auto;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
  }

  .hero-float-card__label {
    display: inline;
  }
}

.hero-float-card--analytics {
  top: 10%;
  left: 4%;
  animation-delay: 0s;
}

.hero-float-card--community {
  top: 14%;
  right: 6%;
  animation-delay: 1.4s;
}

.hero-float-card--events {
  bottom: 16%;
  left: 2%;
  animation-delay: 0.7s;
}

.hero-float-card--apparel {
  bottom: 8%;
  right: 4%;
  animation-delay: 2.1s;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hero-float-phone {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes hero-float-jersey {
  0%, 100% {
    transform: rotate(-9deg) translateY(0);
  }
  50% {
    transform: rotate(-9deg) translateY(-6px);
  }
}

/* ==========================================================================
   9. Shared section heading
   ========================================================================== */

.section-heading {
  margin: 0 0 var(--space-sm);
  font: var(--text-display-mobile);
  letter-spacing: var(--text-display-mobile-tracking);
  color: var(--color-on-surface);
}

/* ==========================================================================
   10. Ecosystem section (2 business pillars, each with brand cards)
   ========================================================================== */

.ecosystem {
  padding-top: var(--space-section-gap);
  /* Bottom only (top stays the same Hero -> Ecosystem gap as before):
     tightened so "Virtual Run Events" -> "Powered by Trusted Partners"
     reads closer to the ~32px rhythm already used between the pillars
     inside this section, instead of the full section-level gap. */
  padding-bottom: var(--space-lg);
  background-color: var(--color-surface-container-low);
}

.ecosystem__intro {
  margin: 0 0 var(--space-lg);
  max-width: 640px;
  font: var(--text-body-lg);
  color: var(--color-on-surface-variant);
}

.pillar + .pillar {
  margin-top: var(--space-md);
}

.pillar__label {
  margin: 0 0 var(--space-sm);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Chapter-title treatment for the three business-pillar section headers
   (Sport Activities Platform / Our Virtual Run Events / Sport Apparel).
   Scoped to the <h3> so it doesn't touch the small "CV. Sehat Dari Sini"
   eyebrow label above "Our Ecosystem", which is a <p> sharing the base
   .pillar__label class above for its color/case/tracking only. Any future
   pillar heading automatically gets this same treatment just by using
   <h3 class="pillar__label">. */
h3.pillar__label {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Collapses with whatever margin-bottom precedes it (previous card,
     marquee-section, etc.) to land in the 32-40px range -- a tighter,
     more continuous scroll rhythm than the section-level gap. */
  margin: var(--space-md) 0 var(--space-xs);
  font: var(--text-label-md-bold);
  letter-spacing: 0.08em;
}

/* "Our Virtual Run Events" is the only h3.pillar__label directly preceded
   by a marquee-section -- this targets just that one heading's top gap
   (a bit more than the other two headers get) without touching its own
   margin-bottom, the other two pillar headings, or the marquee's own
   animation/layout. */
.marquee-section + h3.pillar__label {
  margin-top: 44px;
}

h3.pillar__label::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.pillar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
}

@media (min-width: 768px) {
  .pillar__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
}

.brand-card__category {
  margin: 0;
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-primary);
  text-transform: uppercase;
}

.brand-card__title {
  margin: 0;
  font: var(--text-headline-sm);
  color: var(--color-on-surface);
}

/* Brand logo images used in place of text titles (Pulsh, Luniar). The
   --sub modifier is used by Runiverse/Pallava, where the logo is the
   hero element of the card, so it renders larger than the standard size. */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.brand-card__description {
  margin: 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

.brand-card__cta {
  align-self: center;
  margin-top: var(--space-sm);
}

/* Pulsh ID — product-page style: Level-1 event-type tabs plus a 3-up grid
   of feature cards. Each card tells its step visually (a small icon flow)
   instead of a long bullet list, in the spirit of Stripe/Linear-style
   product pages. */

/* Shared tab component -- used for both Pulsh ID's event-type tabs
   (Virtual/Offline) and Luniar's sport-category tabs (Running/Padel/Gym),
   so both sections share one interaction pattern and visual style: a
   clean underline tab row, identical at every width (mobile keeps the
   same underline look, it just gains horizontal scroll + edge affordances
   once the row no longer fits). See assets/js/tabs.js for the scroll/
   snap/active-tab behavior, shared the same way. */
.tabs-wrap {
  position: relative;
  width: 100%;
}

.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-outline-variant);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

/* Edge fade + chevron affordances: only shown once the row actually
   overflows (mobile, or a section with many tabs) -- JS toggles
   `.is-visible` on whichever side still has more content, based on real
   scroll position. These rules only define the resting appearance. */
.tabs-fade {
  position: absolute;
  top: 0;
  bottom: var(--space-xs);
  width: 32px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: none;
}

.tabs-fade--start {
  left: 0;
  background: linear-gradient(to right, var(--color-surface-container-lowest), transparent);
}

.tabs-fade--end {
  right: 0;
  background: linear-gradient(to left, var(--color-surface-container-lowest), transparent);
}

.tabs-fade.is-visible {
  opacity: 1;
}

.tabs-nav {
  position: absolute;
  top: 0;
  bottom: var(--space-xs);
  margin: auto 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  box-shadow: var(--shadow-sm);
  color: var(--color-on-surface-variant);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.tabs-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tabs-nav .icon {
  width: 14px;
  height: 14px;
}

.tabs-nav--prev {
  left: 0;
}

.tabs-nav--next {
  right: 0;
}

.tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: var(--space-xs);
  margin-bottom: calc(var(--space-xs) * -1 - 1px);
  border-bottom: 2px solid transparent;
  font: var(--text-label-md-bold);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-on-surface-variant);
  background: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tab__icon {
  width: 16px;
  height: 16px;
  color: var(--color-on-surface-variant);
  transition: color var(--transition-fast);
}

.tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab--active .tab__icon {
  color: var(--color-primary);
}

.tab:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.tab__badge {
  display: inline-block;
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.tab__badge--soon {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface-variant);
}

/* Secondary tabs (pill style): Pulsh ID's "Running" sport indicator and
   Luniar's Performance/Classic fabric tabs share the same .tabs-wrap /
   .tabs / .tab scroll infrastructure as the primary tabs above -- a
   `--pill` modifier swaps the underline look for a filled pill, so the
   two sections' secondary tabs are otherwise pixel-identical (same
   scroll/swipe/fade/nav-arrow/snap behavior from assets/js/tabs.js). */
.tabs.tabs--pill {
  gap: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.tab.tab--pill {
  padding: 8px 16px;
  margin-bottom: 0;
  border-bottom: none;
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  transition: all var(--transition-fast);
}

.tab.tab--pill.tab--active {
  background-color: var(--color-primary-fixed);
  color: var(--color-on-primary-container);
  border-bottom-color: transparent;
}

/* Supported-sport row, sitting below the Virtual/Offline tabs (tabs ->
   sport tabs -> section header -> feature cards). Wraps the shared
   secondary (pill) tab component -- see .tabs--pill / .tab--pill above --
   so adding more sports later (Cycling, Walking, Hiking) is just another
   .tab.tab--pill button; the row scrolls instead of wrapping if it ever
   doesn't fit. No divider or extra bottom spacing here -- the Running
   pill itself already separates this row from the section header below,
   which follows immediately via the card's own flex gap. */
.pulsh__sport-row {
  margin-top: 12px;
}

/* Introduces the feature cards, matching Luniar's "Material
   Specifications / What's Inside" header exactly (same typography,
   spacing) -- see .luniar__spec-group-header/-title/-subtitle -- kept as
   its own Pulsh-specific rule rather than reusing those classes directly,
   so this section's markup doesn't take on a Luniar-prefixed class name. */
.pulsh__section-header {
  margin-bottom: var(--space-xs);
}

.pulsh__section-title {
  margin: 0;
  font: var(--text-label-md-bold);
  color: var(--color-on-surface);
}

.pulsh__section-subtitle {
  margin: 2px 0 0;
  font: var(--text-label-sm);
  color: var(--color-on-surface-variant);
}

.pulsh__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
  width: 100%;
  margin-top: var(--space-xs);
}

@media (min-width: 768px) {
  .pulsh__feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pulsh__feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile feature-card carousel (pulsh-carousel.js). Below 768px the same
   grid element becomes a single-row track that JS slides with transform;
   at 768px+ this is neutralized with !important so the grid above is
   guaranteed to render exactly as before regardless of what the script
   does. Same infinite-loop technique as the Luniar review carousel: 3
   clones are appended before and after the 3 real cards. */
.pulsh__carousel {
  width: 100%;
}

.pulsh__carousel-viewport {
  width: 100%;
  overflow: visible;
}

@media (max-width: 767px) {
  .pulsh__carousel-viewport {
    overflow: hidden;
  }

  .pulsh__feature-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 0;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .pulsh__feature-grid.no-transition {
    transition: none !important;
  }

  .feature-card {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (min-width: 768px) {
  /* !important here (not just source order) because .feature-card--clone
     and .pulsh__carousel-controls are single-class selectors -- the same
     specificity as the unrelated, later-defined .feature-card and
     .pulsh__carousel-controls base rules below, which would otherwise win
     the cascade by position alone and silently show the clones/controls
     on desktop. */
  .pulsh__feature-grid {
    transform: none !important;
  }

  .feature-card--clone {
    display: none !important;
  }

  .pulsh__carousel-controls {
    display: none !important;
  }
}

.pulsh__carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-sm);
}

.pulsh__carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pulsh__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-outline-variant);
  transition: all var(--transition-fast);
}

.pulsh__carousel-dot:hover {
  background-color: var(--color-primary-container);
}

.pulsh__carousel-dot.is-active {
  width: 22px;
  background-color: var(--color-primary);
}

.pulsh__carousel-arrows {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.pulsh__carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
  transition: all var(--transition-fast);
}

.pulsh__carousel-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.pulsh__carousel-arrow:active {
  transform: scale(0.95);
}

.pulsh__carousel-arrow .icon {
  width: 18px;
  height: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  min-width: 0;
  background-color: var(--color-surface-container-low);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 16px 56px rgba(139, 174, 131, 0.18);
}

/* main.js adds .reveal for the sitewide scroll-in-view fade-up; its own
   transition shorthand would otherwise replace (not merge with) the one
   above, silently dropping the box-shadow transition on hover. Re-declaring
   all three here, at higher specificity, keeps both animations working. */
.feature-card.reveal {
  transition: opacity 600ms ease, transform var(--transition-base), box-shadow var(--transition-base);
}

/* pulsh-carousel.js always prepends exactly 3 clone slides before the 3
   real cards (its infinite-loop buffer), so the real Submission/Distribution
   cards sit at position 5/6 among all track children, not 2/3. */
.feature-card:nth-child(5) {
  transition-delay: 80ms;
}

.feature-card:nth-child(6) {
  transition-delay: 160ms;
}


.feature-card__illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-fixed) 0%, var(--color-surface-container-lowest) 100%);
}

.feature-card__number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font: var(--text-label-sm);
  font-weight: 700;
}

.feature-card__flow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card__flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.feature-card__flow-icon .icon {
  width: 20px;
  height: 20px;
}

.feature-card:hover .feature-card__flow-icon {
  transform: scale(1.08);
}

.feature-card__flow-arrow {
  flex-shrink: 0;
  color: var(--color-on-surface-variant);
  font-size: 14px;
  line-height: 1;
}

.feature-card__title {
  margin: 0;
  font: var(--text-headline-sm);
  color: var(--color-on-surface);
}

.feature-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.feature-card__list li {
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
  padding-left: 22px;
  position: relative;
}

.feature-card__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-card__list-soon {
  opacity: 0.75;
}

.feature-card__badges,
.feature-card__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.feature-badge,
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-on-surface-variant);
}

.feature-badge--logo img {
  display: block;
  height: 14px;
  width: auto;
}

.feature-badge--disabled {
  opacity: 0.8;
}

.feature-badge__soon {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface-variant);
}

.feature-pill {
  color: var(--color-on-surface);
}

.feature-pill__icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* ==========================================================================
   11. Site footer
   ========================================================================== */

.site-footer {
  width: 100%;
  padding-block: var(--space-section-gap);
  background-color: var(--color-surface-container-low);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer__tagline {
  margin: 8px 0 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
  opacity: 0.8;
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgb(195 200 189 / 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__copyright {
  margin: 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

/* ==========================================================================
   12. Ecosystem — flagship / powered-by hierarchy
   ========================================================================== */

.brand-card--featured {
  width: 100%;
  padding: 40px;
  margin-bottom: var(--space-xs);
}

/* Positioning context for .pulsh__decoration below -- scoped to this one
   modifier (not the shared .brand-card--featured) so the "Virtual Run
   Events" accordion card, which also uses .brand-card--featured, is
   unaffected. No overflow:hidden here: the decoration is sized and placed
   to stay within the card's own box, so nothing needs clipping. z-index:0
   turns this into its own stacking context, so the decoration's
   z-index:-1 stays contained behind this card's content instead of
   escaping to paint behind unrelated page sections. */
.brand-card--pulsh {
  position: relative;
  z-index: 0;
}

/* No sports-technology photography exists for the project, so the header
   area gets a faint wireframe "ecosystem" diagram instead -- a handful of
   real product-icon glyphs (hub, route, analytics, shipping, medal,
   payment) linked by thin lines, echoing Luniar's single-icon decoration
   but built from several nodes since this section is about a platform,
   not one object. z-index:-1 keeps it behind all normal-flow content
   without needing to touch every sibling's own stacking context. */
.pulsh__decoration {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: 24px;
  width: 380px;
  height: 260px;
  opacity: 0.08;
  pointer-events: none;
}

.pulsh__decoration-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 0.6;
}

.pulsh__decoration-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.pulsh__decoration-icon--hub {
  top: 42%;
  left: 48%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/hub.svg");
  mask-image: url("../icons/hub.svg");
}

.pulsh__decoration-icon--pin {
  top: 16%;
  left: 18%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/location_on.svg");
  mask-image: url("../icons/location_on.svg");
}

.pulsh__decoration-icon--chart {
  top: 14%;
  left: 84%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/insights.svg");
  mask-image: url("../icons/insights.svg");
}

.pulsh__decoration-icon--shipping {
  top: 68%;
  left: 14%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/local_shipping.svg");
  mask-image: url("../icons/local_shipping.svg");
}

.pulsh__decoration-icon--medal {
  top: 88%;
  left: 46%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/workspace_premium.svg");
  mask-image: url("../icons/workspace_premium.svg");
}

.pulsh__decoration-icon--payment {
  top: 62%;
  left: 86%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../icons/credit_card.svg");
  mask-image: url("../icons/credit_card.svg");
}

/* "Our Virtual Run Events": same card, but content is just the pill row
   plus a collapsed-by-default expandable panel, so the standard 40px
   top/bottom padding reads as excess empty space -- compound selector
   (not source order) so this reliably wins over .brand-card--featured's
   padding regardless of where either rule sits in the file. */
.brand-card--featured.brand-accordion {
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand-card__category--flagship {
  display: inline-block;
  color: var(--color-on-primary);
  background-color: var(--color-primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pillar__powered-by {
  margin: 0 0 4px;
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-on-surface-variant);
}


.brand-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
  /* Net 24px above the visible pill row: the -4px/-2px used to just cancel
     the padding above (no heading sat between the marquee and the pills);
     now that the heading has moved above the card entirely, 20px + the 4px
     padding gives the same 24px gap the marquee-to-subtitle spacing uses. */
  margin: 20px -2px 0;
}

.brand-toggle-row::-webkit-scrollbar {
  display: none;
}

.brand-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.brand-toggle__logo {
  display: block;
  height: 24px;
  width: auto;
}

.brand-toggle:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.brand-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.brand-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
  background-color: var(--color-primary-fixed);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

.brand-accordion__panels {
  display: block;
  width: 100%;
}

.brand-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: height var(--transition-base), opacity var(--transition-base),
    transform var(--transition-base);
}

.brand-panel--expanded {
  opacity: 1;
  transform: translateY(0);
}

.brand-panel__inner {
  padding-top: var(--space-gutter);
}

/* Brand profile cards (Runiverse/Pallava): a two-panel company-profile
   layout — a dark photo panel carrying the brand mark (left on desktop,
   top on mobile) beside a plain white content panel: name, handle,
   inline KPI stats, a one-line tagline, and two ghost CTAs. */
.brand-card--sub {
  padding: 0;
  gap: 0;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-card__photo {
  position: relative;
  flex: 0 0 34%;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

/* Brand illustration backgrounds. A very subtle dark gradient is layered
   on top (painted first in the list) purely so the white logo mark stays
   legible regardless of which part of the image `cover` crops into view;
   it's not meant to be a visible tint on its own. */
.brand-card__photo--runiverse {
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.32), transparent 55%),
    url("../background/background-runiverse.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-card__photo--pallava {
  background-image: linear-gradient(to top, rgb(0 0 0 / 0.32), transparent 55%),
    url("../background/background-pallava.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-card__photo-logo {
  position: relative;
  width: auto;
  height: 40px;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.35));
}

.brand-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-sm);
  width: 100%;
}

.brand-card__title--sub {
  margin: 0;
  font: var(--text-headline-sm);
  color: var(--color-on-surface);
}

.brand-card__instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 0;
  font: var(--text-label-md);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.brand-card__instagram .icon {
  width: 16px;
  height: 16px;
}

.brand-card__instagram-arrow {
  font-size: 0.9em;
}

.brand-card__instagram:hover,
.brand-card__instagram:focus-visible {
  color: var(--color-primary-dark);
  cursor: pointer;
}

.brand-card__instagram:hover .brand-card__instagram-handle,
.brand-card__instagram:focus-visible .brand-card__instagram-handle {
  text-decoration: underline;
}

.brand-card__divider {
  width: 100%;
  height: 1px;
  margin: 2px 0;
  border: none;
  background-color: var(--color-outline-variant);
}

.kpi-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-sm);
}

@media (min-width: 768px) {
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kpi__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.kpi__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  /* All four stats share one brand-green accent (same token as buttons,
     active tabs, and section headers) so they read as one cohesive
     component rather than four differently-colored elements. The
     per-stat --followers/--posts/--runners/--events modifier classes
     stay in the markup as semantic hooks but no longer carry color. */
  color: var(--color-primary);
}

.kpi__value {
  font: var(--text-headline-sm);
  color: var(--color-on-surface);
}

.kpi__label {
  margin: 0;
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-on-surface-variant);
}

.brand-card__tagline-text {
  margin: 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

/* ==========================================================================
   13. Marquee — reusable "powered by" / "trusted by" logo strip, used
   under both the Pulsh and Luniar cards. One component, two content sets.
   ========================================================================== */

.marquee-section {
  margin-top: var(--space-md);
}

.marquee-section__title {
  margin: 0;
  font: var(--text-label-md-bold);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-on-surface);
  text-transform: uppercase;
}

.marquee-section__subtitle {
  margin: 4px 0 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

.marquee {
  margin-top: var(--space-sm);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Spacing lives on each item (margin-right), not as a flex `gap` on the
   track. A shared `gap` splits unevenly across the -50% loop seam (it sits
   "between" items, not inside either set) and produces a visible half-gap
   jump once per cycle — per-item margin makes every item, including the
   last one in each duplicated set, carry its own trailing space, so the
   two halves tile exactly and the loop is seamless. */
.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: var(--space-margin-desktop);
}

.marquee__logo {
  display: block;
  height: 32px;
  width: auto;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   13b. Luniar — premium product-page card (header, fabric specs, reviews, CTAs)
   ========================================================================== */

.brand-card--luniar {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  width: 100%;
  padding: 40px 40px 20px;
  gap: var(--space-md);
}

/* No apparel photography exists for the project, so the header's decorative
   image is a large, near-invisible tint of the same "clothing hanger" glyph
   used in the fabric specs below — on-brand and never competes with content. */
.luniar__decoration {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  background-color: var(--color-on-surface);
  opacity: 0.06;
  -webkit-mask-image: url("../icons/checkroom.svg");
  mask-image: url("../icons/checkroom.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.luniar__header {
  position: relative;
  z-index: 1;
}

/* Sport-category tabs (Running/Padel/Gym) now use the shared .tabs-wrap /
   .tabs / .tab component defined above alongside Pulsh ID's event-type
   tabs -- see that block for the underline style, scroll/fade/nav
   affordances, and shared assets/js/tabs.js behavior. */

/* Fabric sub-tabs (Performance/Classic) now use the shared .tabs-wrap /
   .tabs.tabs--pill / .tab.tab--pill component -- see that block, near
   Pulsh ID's event-type tabs, for the pill style shared with the
   "Running" sport tab. This wrapper only supplies the spacing before
   .luniar__fabric-panels below it. */
.luniar__fabric-tabs-wrap {
  margin-bottom: var(--space-sm);
}

.luniar__fabric-panels {
  position: relative;
  z-index: 1;
}

.luniar__fabric-content {
  transition: opacity 220ms ease, transform 220ms ease;
}

.luniar__fabric-content.is-hidden {
  display: none;
}

.luniar__fabric-content.is-fading-out,
.luniar__fabric-content.is-fading-in {
  opacity: 0;
  transform: translateY(6px);
}

.luniar__spec-group-header {
  margin-bottom: var(--space-xs);
}

.luniar__spec-group-title {
  margin: 0;
  font: var(--text-label-md-bold);
  color: var(--color-on-surface);
}

.luniar__spec-group-subtitle {
  margin: 2px 0 0;
  font: var(--text-label-sm);
  color: var(--color-on-surface-variant);
}

.luniar__spec-divider {
  height: 1px;
  margin: var(--space-sm) 0;
  background-color: var(--color-outline-variant);
  opacity: 0.5;
}

/* Temporary feature flag: Performance Benefits is hidden site-wide (both the
   Performance and Classic fabric panels) while the content is reworked.
   Remove this rule to bring the section back — the markup is untouched. */
.luniar__spec-group--perf-benefits,
.luniar__spec-divider--perf-benefits {
  display: none;
}

.luniar__section {
  position: relative;
  z-index: 1;
}

.luniar__eyebrow {
  margin: 0 0 var(--space-sm);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-tracking);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Grid (not flex-wrap) guarantees an exact column count per breakpoint
   regardless of individual chip label length -- 4 up on desktop, 2 up on
   tablet and mobile alike. Chips stretch to fill their cell; border-radius:
   full still renders as a clean stadium shape since it's capped by the
   box's own (fixed) height, not distorted by the wider width. */
.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1023px) {
  .spec-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
  background-color: var(--color-surface-container-low);
  border-radius: var(--radius-full);
}

.spec__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.spec__label {
  font: var(--text-label-md);
  color: var(--color-on-surface);
}

/* Testimonial carousel: shows N cards at once (--visible-count, set per
   breakpoint below) and steps by exactly one card. Track/dots markup is
   rendered entirely by review-carousel.js from a plain data array, so
   growing the review list never requires touching this CSS or the HTML. */
.review-carousel {
  --visible-count: 3;
  position: relative;
}

@media (max-width: 1023px) {
  .review-carousel {
    --visible-count: 2;
  }
}

@media (max-width: 767px) {
  .review-carousel {
    --visible-count: 1;
  }
}

.review-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.review-carousel__header .luniar__eyebrow {
  margin: 0;
}

.review-carousel__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.review-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
  transition: all var(--transition-fast);
}

.review-carousel__arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.review-carousel__arrow:active {
  transform: scale(0.95);
}

.review-carousel__arrow .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .review-carousel__arrows {
    display: none;
  }
}

.review-carousel__viewport {
  overflow: hidden;
}

.review-carousel__track {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: var(--space-sm);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  /* JS drives transform: translateX() for stepping/dragging; this is a
     hint only, not a substitute for real GPU-accelerated animation work. */
  will-change: transform;
}

.review-carousel__track.no-transition {
  transition: none !important;
}

.review-carousel__slide {
  flex: 0 0 calc((100% - (var(--visible-count) - 1) * var(--space-sm)) / var(--visible-count));
  display: flex;
  min-width: 0;
}

.review-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Pulling the dots up slightly (32px -> 24px from the review card) is
     what actually balances the rhythm: the CTA buttons below are pinned
     to their own position (.luniar__actions' -12px pull), so shrinking
     the gap above the dots grows the gap below them instead, without
     moving the buttons at all -- 24px above, ~28px below. */
  margin-top: var(--space-sm);
}

.review-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-outline-variant);
  transition: all var(--transition-fast);
}

.review-carousel__dot:hover {
  background-color: var(--color-primary-container);
}

.review-carousel__dot.is-active {
  width: 22px;
  background-color: var(--color-primary);
}

.review-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  width: 100%;
  padding: 28px;
  background-color: var(--color-surface-container-lowest);
  border: 1px solid rgb(195 200 189 / 0.4);
  border-radius: 20px;
  box-shadow: var(--shadow-ambient);
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__stars .icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-fixed);
}

.review-card__avatar .icon {
  width: 16px;
  height: 16px;
  color: var(--color-on-primary-container);
}

.review-card__username {
  font: var(--text-label-md-bold);
  color: var(--color-on-surface);
}

.review-card__ig {
  width: 14px;
  height: 14px;
  color: var(--color-on-surface-variant);
}

.review-card__text {
  margin: 0;
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

/* CTA row deliberately mirrors the header's Contact button (.nav__cta,
   which is plain .btn.btn--primary with no size modifier) rather than its
   own oversized treatment: same 12px/24px padding, same 600-weight 14px
   label, same full pill radius -- so it reads as the same control
   language, not a bigger, bespoke button. */
.luniar__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 18px;
  /* The parent's flex `gap` (--space-md, 32px) separates every section
     equally; a small -4px trim brings the buttons to ~28px from the
     review carousel's dots (balanced against the ~24px above the dots)
     without touching the shared gap used between the other sections. */
  margin-top: -4px;
}

.luniar__cta {
  flex: 0 0 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 10px (not the Contact button's 12px) vertical: the 2px transparent
     border below adds 4px of height the Contact button doesn't have, so
     this compensates to land on the same 44px total. */
  padding: 10px 24px;
  /* Transparent border on every variant (not just --secondary, which
     paints it visibly) so the box model -- and therefore the rendered
     height -- is identical whether or not a border is actually visible. */
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.luniar__cta:active {
  transform: scale(0.95);
}

.luniar__cta--primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.luniar__cta--primary:hover {
  box-shadow: var(--shadow-ambient);
  transform: translateY(-1px);
}

.luniar__cta--secondary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.luniar__cta--secondary:hover {
  background-color: rgb(70 102 65 / 0.05);
}

.luniar__cta .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.luniar__cta-text {
  display: flex;
  min-width: 0;
}

.luniar__cta-text strong {
  display: block;
  max-width: 100%;
  font: var(--text-label-md);
  letter-spacing: var(--text-label-md-tracking);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   13c. Trusted partners — slow infinite logo slider. Deliberately distinct
   from the brand marquees above: much slower, far more generous spacing,
   and grayscale-by-default with a per-logo color reveal on hover, so it
   reads as a calm enterprise "logo cloud" rather than another marquee.
   ========================================================================== */

.trusted-partners {
  padding-block: var(--space-section-gap);
}

.trusted-partners__header {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.trusted-partners__title {
  margin: 0 0 var(--space-xs);
  font: var(--text-display-mobile);
  letter-spacing: var(--text-display-mobile-tracking);
  color: var(--color-on-surface);
}

@media (min-width: 768px) {
  .trusted-partners__title {
    font: var(--text-display);
    letter-spacing: var(--text-display-tracking);
  }
}

.trusted-partners__subtitle {
  margin: 0;
  font: var(--text-body-lg);
  color: var(--color-on-surface-variant);
}

.partner-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.partner-slider__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partner-slider-scroll 30s linear infinite;
}

.partner-slider:hover .partner-slider__track {
  animation-play-state: paused;
}

/* Spacing lives on each item (margin-right), not a flex `gap` on the
   track -- the same seamless-loop technique the brand marquees use, just
   with a much wider margin for a calmer, more spacious feel. */
.partner-slider__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 96px;
}

.partner-slider__logo {
  display: block;
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.partner-slider__item:hover .partner-slider__logo {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1023px) {
  .partner-slider__logo {
    height: 28px;
  }

  .partner-slider__item {
    margin-right: 72px;
  }
}

@keyframes partner-slider-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   15. Contact CTA band
   ========================================================================== */

.contact-band {
  padding-block: var(--space-section-gap);
  background-color: var(--color-primary);
}

.contact-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.contact-band__heading {
  margin: 0;
  max-width: 720px;
  font: var(--text-display-mobile);
  letter-spacing: var(--text-display-mobile-tracking);
  color: var(--color-on-primary);
}

.contact-band__text {
  margin: 0 0 8px;
  max-width: 560px;
  font: var(--text-body-lg);
  color: var(--color-on-primary);
  opacity: 0.85;
}

.btn--on-primary {
  background-color: var(--color-on-primary);
  color: var(--color-primary);
}

.btn--on-primary:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ==========================================================================
   15b. Partnership inquiry form — a white card floating on the contact
   band's green background, keeping the section's existing color/heading
   treatment while giving the form itself full-contrast, easy-to-read
   fields instead of light-on-green inputs.
   ========================================================================== */

.contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-toggle__icon {
  width: 18px;
  height: 18px;
  display: none;
}

/* The ARIA state doubles as the single source of truth for the icon's
   visibility -- no separate JS-managed class needed just for this. */
.contact-toggle[aria-expanded="true"] .contact-toggle__icon {
  display: inline-block;
}

/* Collapsible wrapper: height starts at 0 and is driven to an explicit
   px value by JS (then released back to 'auto' once expanded, so the
   form's own dynamic content -- validation errors, the status message --
   can change height afterwards without needing to re-measure). */
.contact-collapsible {
  width: 100%;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
}

.contact-collapsible.is-expanded {
  opacity: 1;
}

.contact-form-card {
  width: 100%;
  max-width: 900px;
  margin-top: var(--space-md);
  margin-inline: auto;
  padding: var(--space-lg);
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.contact-form__label {
  font: var(--text-label-md-bold);
  letter-spacing: var(--text-label-md-tracking);
  color: var(--color-on-surface);
}

.contact-form__required {
  color: var(--color-error);
}

.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  font: var(--text-body-md);
  color: var(--color-on-surface);
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__input::placeholder {
  color: var(--color-on-surface-variant);
  opacity: 0.7;
}

.contact-form__input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(70 102 65 / 0.15);
}

.contact-form__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__hint {
  margin: 0;
  font: var(--text-label-sm);
  color: var(--color-on-surface-variant);
}

.contact-form__error {
  margin: 0;
  font: var(--text-label-sm);
  color: var(--color-error);
  min-height: 16px;
}

.contact-form__error:empty {
  display: none;
}

.contact-form__status {
  margin: 0 0 var(--space-sm);
  padding: 12px 16px;
  font: var(--text-body-md);
  border-radius: var(--radius-lg);
}

.contact-form__status[hidden] {
  display: none;
}

.contact-form__status--success {
  background-color: var(--color-primary-fixed);
  color: var(--color-on-primary-container);
}

.contact-form__status--error {
  background-color: rgb(186 26 26 / 0.08);
  color: var(--color-error);
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.contact-form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid rgb(255 255 255 / 0.4);
  border-top-color: var(--color-on-primary);
  animation: contact-form-spin 700ms linear infinite;
}

.contact-form__submit.is-loading .contact-form__spinner {
  display: inline-block;
}

@keyframes contact-form-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1024px) {
  #contact-form-submit {
    display: flex;
    width: fit-content;
    margin-top: var(--space-sm);
    margin-inline: auto;
    padding: 12px 40px;
    font-size: 18px;
    line-height: 20px;
  }
}

/* ==========================================================================
   16. Scroll-reveal (progressive enhancement — see main.js)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   17. Mobile-only overrides (767px and below)
   Desktop (min-width: 768px) rules above are untouched by everything in
   this section — every rule here lives inside the same max-width: 767px
   boundary the rest of the site already uses for its mobile styles.
   ========================================================================== */

@media (max-width: 767px) {
  /* --- Nav: the "Sehat Dari Sini" wordmark is a very wide/short logo
     (~8.5:1), so it can't safely hit a flat 30px height next to the
     Contact button + hamburger without either overflowing or being
     squeezed out of ratio by the flex layout. max-height + max-width
     with width/height both auto lets the browser pick whichever limit
     is tighter while always preserving the aspect ratio. --- */
  .nav__logo-img {
    height: auto;
    width: auto;
    max-height: 22px;
    max-width: 180px;
  }

  /* --- Hero: image below headline (already the DOM/column order below
     768px), text centered, actions full-width and stacked --- */
  .hero {
    padding-block: 48px;
  }

  .hero__layout {
    gap: 32px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 4px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__heading {
    font-size: 38px;
    line-height: 44px;
  }

  /* Hidden below 768px so mobile visitors reach the headline/CTA without
     scrolling past a large decorative illustration; content expands to
     fill the freed width via .hero__content's flex:1. */
  .hero__visual {
    display: none;
  }

  /* --- Heading hierarchy: section titles read clearly smaller than H1 --- */
  .section-heading,
  .contact-band__heading {
    font-size: 28px;
    line-height: 34px;
  }

  /* --- Ecosystem: restore flagship-vs-secondary contrast lost when every
     card becomes full-width, and compress list-heavy cards into chip rows --- */
  .ecosystem {
    padding-top: var(--space-section-gap-mobile);
    padding-bottom: var(--space-md);
  }

  .brand-logo {
    height: 34px;
  }

  .brand-card--sub {
    flex-direction: column;
  }

  .brand-card__photo {
    flex: 0 0 auto;
    min-height: 130px;
    padding: var(--space-xs);
  }

  .brand-card__photo-logo {
    height: 32px;
  }

  .brand-card__body {
    padding: var(--space-sm);
  }

  .kpi-row {
    gap: 8px;
  }

  .kpi__icon {
    width: 16px;
    height: 16px;
  }

  .kpi__value {
    font-size: 20px;
    line-height: 26px;
  }

  .marquee__item {
    margin-right: 40px;
  }

  .marquee__logo {
    height: 26px;
  }

  .ecosystem__intro {
    margin-bottom: var(--space-md);
  }

  .brand-card {
    padding: 24px;
    gap: 10px;
  }

  .brand-card--featured {
    padding: 24px;
    margin-bottom: 20px;
  }

  .brand-card--featured.brand-accordion {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .feature-card {
    padding: var(--space-xs);
  }

  .feature-card__illustration {
    min-height: 80px;
    padding: var(--space-sm) var(--space-xs);
  }

  .feature-card__flow-icon {
    width: 36px;
    height: 36px;
  }

  .feature-card__flow-icon .icon {
    width: 17px;
    height: 17px;
  }

  .brand-card__title--sub {
    font-size: 18px;
    line-height: 24px;
  }

  /* --- Luniar product-page card: tighter vertical rhythm, single-row
     CTAs --- */
  .brand-card--luniar {
    padding: 24px;
    gap: var(--space-sm);
  }

  .luniar__decoration {
    display: none;
  }

  .pulsh__decoration {
    display: none;
  }

  /* Tabs keep the exact same underline style, spacing, and sizing as
     desktop -- only the scroll edge affordances below are mobile-only,
     since that's the only thing that actually changes once the row can
     overflow. Resting appearance/position is defined in the base rule;
     JS toggles `.is-visible` based on scroll position. */
  .tabs-fade,
  .tabs-nav {
    display: flex;
  }

  .luniar__spec-group-header {
    margin-bottom: 12px;
  }

  .luniar__spec-divider {
    margin: var(--space-xs) 0;
  }

  .spec {
    padding: 8px 14px;
  }

  .review-card {
    padding: 24px;
  }

  /* Purchase Jersey / Create Your Custom: one row, each ~48% width (equal
     flex-grow/shrink from a zero basis), matching the Contact button's
     padding/weight language from the base rule. Unlike the previous pass,
     labels are allowed to wrap to a second line instead of ellipsis-
     truncating -- "Create Your Custom" reliably needs it at these widths,
     "Purchase Jersey" may or may not depending on the exact viewport, and
     either is fine since .luniar__actions defaults to align-items:stretch,
     so a one-line button next to a two-line one still matches height. */
  .luniar__actions {
    gap: 12px;
    /* Mobile's parent flex gap is smaller (--space-sm, 24px) than
       desktop's (--space-md, 32px), so matching desktop's ~28px gap to
       the dots needs a small positive nudge here instead of a trim. */
    margin-top: 4px;
  }

  .luniar__cta {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 14px 18px;
    gap: 6px;
  }

  .luniar__cta .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .luniar__cta-text strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    text-align: center;
    /* At the narrowest required widths a single word ("Purchase") can be
       wider than the ~48%-share button itself; without this, that word
       would silently spill past the pill's edge instead of wrapping. */
    overflow-wrap: break-word;
  }

  /* --- Trusted partners: still a slider (never stacked vertically), just
     smaller logos and tighter item spacing to suit the narrower viewport --- */
  .trusted-partners {
    padding-block: var(--space-section-gap-mobile);
  }

  .partner-slider__logo {
    height: 24px;
  }

  .partner-slider__item {
    margin-right: 48px;
  }

  /* --- Contact CTA band: the final conversion moment before the footer --- */
  .contact-band {
    padding-block: var(--space-section-gap-mobile);
  }

  .contact-band__inner {
    gap: 20px;
  }

  .contact-band__inner .btn {
    width: 100%;
  }

  .contact-form-card {
    padding: var(--space-sm);
  }

  /* --- Footer: centered, tighter rhythm, larger tap targets --- */
  .site-footer {
    padding-block: var(--space-section-gap-mobile);
  }

  .footer__brand-logo {
    height: 34px;
  }

  .footer__bottom {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
  }

  /* --- Global touch targets: every button reaches the 48px minimum
     regardless of variant (primary/secondary/sm/lg all share .btn) --- */
  .btn {
    min-height: 48px;
  }
}

/* Narrowest phones (≤399px): the logo's own space budget next to the
   Contact button + hamburger shrinks further still. */
@media (max-width: 399px) {
  .nav__logo-img {
    max-width: 125px;
  }
}
