.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  font-size: 0.78rem;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.language-switch a[aria-current="page"] {
  border-color: var(--border);
  color: var(--accent);
}
.language-switch a:hover { background: var(--surface2); }
html[lang="ar"] body,
html[lang="ar"] :is(h1, h2, h3, .brand) {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
html[lang="ar"] :is(h1, h2, h3, p, span, small, a, button, summary) {
  letter-spacing: normal;
}
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.4; }
html[lang="ar"] p { line-height: 1.8; }
html[lang="ar"] .brand { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] :is(.activity-toggle, .task-category, .task-board-count, .task-board-footer > span:last-child) {
  margin-left: 0;
  margin-inline-start: auto;
}
html[lang="ar"] .mobile-menu nav { right: auto; inset-inline-end: 0; }
html[lang="ar"] :is(.timeline-time, .week-strip b) { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .balance-phone text { direction: ltr; }
html[lang="ar"] .balance-phone text:nth-of-type(2) { font-size: 4.5px; }
@media (max-width: 900px) {
  .header-inner { column-gap: 10px; }
  .language-switch { font-size: 0.72rem; }
}
@media (max-width: 640px) {
  .header-inner .language-switch { order: 4; flex-basis: 100%; justify-content: center; }
  .language-switch a { padding-block: 4px; }
  html[lang="ar"] .header-cta { margin-left: 0; margin-inline-start: auto; }
  html[lang="ar"] .balance-card { text-align: start; }
  html[lang="ar"] .balance-card-copy h2 { line-height: 1.5; }
}
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Product palette. Pillar tints are adjusted for readable text on dark surfaces. */
:root {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1b1b1d;
  --surface2: #242426;
  --ink: #f2f1ee;
  --muted: #b3b3b6;
  --accent: #f49a50;
  --accent-on: #1c1206;
  --sport: #f49a50;
  --sport-bg: #271a10;
  --nutrition: #72d3a8;
  --nutrition-bg: #102019;
  --tasks: #a5b6ff;
  --tasks-bg: #171b2e;
  --border: #38383a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Hanken, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  top: 90px;
  right: 0;
  width: min(680px, 70%);
  height: 700px;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, #f49a5008, transparent 67%);
  z-index: -1;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
button:not(:disabled),
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
summary {
  touch-action: manipulation;
}
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: var(--accent-on);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: Space, sans-serif;
  font-weight: 700;
  text-wrap: balance;
}
:where(h1, h2, h3, h4, p, a, button, summary, small, span) {
  overflow-wrap: anywhere;
}
:where(
    .hero,
    .feature-grid,
    .sport-card,
    .tasks-card,
    .community-grid,
    .faq,
    .install,
    .approach
  )
  > * {
  min-width: 0;
}
p {
  line-height: 1.65;
  text-wrap: pretty;
}
em {
  font-style: normal;
  color: var(--accent);
}
.wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 30;
  max-width: calc(100% - 40px);
  padding: 16px 24px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(calc(-100% - 30px));
}
.skip-link:focus {
  transform: translateY(0);
}
.sport {
  --pillar: var(--sport);
  --pillar-bg: var(--sport-bg);
}
.nutrition {
  --pillar: var(--nutrition);
  --pillar-bg: var(--nutrition-bg);
}
.tasks {
  --pillar: var(--tasks);
  --pillar-bg: var(--tasks-bg);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-index {
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  min-height: 29px;
  margin-inline-end: 3px;
  border: 1px solid #f49a5030;
  border-radius: 50%;
  background: #f49a5007;
  letter-spacing: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 56px;
  padding: 16px 23px;
  color: var(--accent-on);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  transition:
    background 0.2s,
    transform 0.25s var(--ease),
    translate 0.45s var(--ease),
    box-shadow 0.25s;
}
.button .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease);
}
.button:hover {
  background: #ffb474;
  border-color: #ffb474;
  box-shadow: 0 8px 30px #f49a501a;
}
.button:hover .icon {
  transform: translate(2px, -2px);
}
.button[href="#features"]:hover .icon {
  transform: translateY(3px);
}
.button:active {
  transform: scale(0.98);
}
.button-small {
  min-height: 44px;
  padding: 10px 17px;
  gap: 22px;
  font-size: 0.8rem;
  border-radius: 9px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 0.83rem;
  font-weight: 600;
}
.text-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}
.text-link:hover {
  color: var(--accent);
}
.text-link:hover .icon {
  transform: translateY(3px);
}
.text-link[href="#install"]:hover .icon {
  transform: translate(2px, -2px);
}

/* Navigation stays quiet; the orange progress line connects it to the page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #141414ed;
  border-bottom: 1px solid #ffffff09;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 88px;
  padding-block: 18px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: Space, sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.07em;
  white-space: nowrap;
}
.brand-fit {
  color: var(--muted);
}
.brand-dot {
  color: var(--accent);
}
.brand-icon {
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-on);
  margin-right: 10px;
  border-radius: 10px;
  transform: rotate(-5deg);
}
.brand-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.81rem;
  color: var(--muted);
  transition: color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current] {
  color: var(--ink);
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current]::after {
  transform: scaleX(1);
}
.mobile-menu {
  display: none;
}
.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  opacity: 0.75;
}

/* Shared styling for the illustrative day preview. */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 65px;
  padding-block: 80px 92px;
}
.hero-copy {
  min-width: 0;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 0.66rem;
}
.hero .status-dot {
  box-shadow: 0 0 0 4px #f49a5010;
  margin-right: 3px;
}
h1 {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 40px);
  font-size: clamp(3.75rem, 5.9vw, 5.45rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin-block: 24px 25px;
}
.hero-spark {
  position: absolute;
  width: 40px;
  height: 40px;
  right: -34px;
  bottom: 10px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  transform: rotate(12deg);
}
.intro {
  font-size: 1.13rem;
  color: var(--muted);
  line-height: 1.6;
}
.pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.pillar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  min-height: 36px;
  background: var(--pillar-bg);
  color: var(--pillar);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.69rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.pillar-links .icon {
  width: 15px;
  height: 15px;
}
.pillar-links a:hover {
  border-color: var(--pillar);
  transform: translateY(-2px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 31px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 22px;
}
.note-line {
  width: 20px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
}
.hero-visual {
  position: relative;
  padding: 0 12px;
  min-width: 0;
  isolation: isolate;
}
.orbit {
  position: absolute;
  inset: 45px 0;
  z-index: -1;
  border: 1px solid #f49a5013;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-two {
  inset: 0 25px;
  border-color: #ffffff06;
}
.day-preview {
  position: relative;
  padding: 23px 24px 14px;
  background: var(--surface);
  border: 1px solid #48413a;
  border-radius: 22px;
  box-shadow:
    0 30px 80px #0005,
    inset 0 1px #ffffff06;
  transform: rotate(-1deg);
  transition: border-color 0.3s;
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-brand {
  font:
    700 1.02rem Space,
    sans-serif;
  letter-spacing: -0.04em;
}
.preview-brand > span {
  color: var(--accent);
}
.preview-tag {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.49rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.preview-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  background: var(--sport-bg);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
}
.preview-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  gap: 12px;
}
.preview-greeting p {
  color: var(--muted);
  font-size: 0.65rem;
}
.preview-greeting h2 {
  font-size: 1.65rem;
  letter-spacing: -0.065em;
  margin-top: 3px;
}
.preview-sun {
  width: 36px;
  height: 36px;
  color: var(--accent);
  stroke-width: 1.3;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(1.65rem, 100%), 1fr));
  gap: 7px;
  margin-block: 22px 24px;
}
.week-strip > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 9px 2px 11px;
  font-size: 0.57rem;
  color: var(--muted);
  border-radius: 8px;
  position: relative;
}
.week-strip b {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.week-strip .selected {
  background: var(--accent);
  color: var(--accent-on);
}
.week-strip .selected b {
  color: var(--accent-on);
}
.week-strip i {
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-on);
}
.preview-agenda-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-agenda-heading > span:first-child {
  font-weight: 600;
  font-size: 0.7rem;
}
.preview-agenda-heading > span:last-child {
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.07em;
}
.day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border-top: 1px solid #ffffff0b;
  padding: 16px 0;
}
.timeline-time {
  align-self: flex-start;
  padding-top: 10px;
  font-size: 0.53rem;
  color: var(--muted);
  width: 29px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.day-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 39px;
  color: var(--pillar);
  background: var(--pillar-bg);
  border: 1px solid #ffffff08;
  border-radius: 10px;
  flex-shrink: 0;
}
.day-icon .icon {
  width: 19px;
  height: 19px;
}
.day-row-copy {
  min-width: 0;
}
.row-label {
  display: block;
  color: var(--pillar);
  font-size: 0.46rem;
  letter-spacing: 0.09em;
  margin-bottom: 5px;
  font-weight: 700;
}
.day-row h3 {
  font-size: 0.87rem;
  letter-spacing: -0.025em;
}
.day-row p {
  color: var(--muted);
  font-size: 0.59rem;
  margin-top: 4px;
}
.activity-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  flex-shrink: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  position: relative;
  padding: 0;
  color: var(--bg);
}
.activity-toggle::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid #7c7c80;
  border-radius: 50%;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.activity-toggle .icon {
  position: relative;
  width: 13px;
  height: 13px;
  opacity: 0;
  stroke-width: 2.5;
}
.activity-toggle[aria-pressed="true"]::before {
  background: var(--pillar);
  border-color: var(--pillar);
}
.activity-toggle[aria-pressed="true"] .icon {
  opacity: 1;
}
.activity-toggle:hover::before {
  border-color: var(--pillar);
}
.daily-balance {
  padding: 14px;
  border-radius: 9px;
  background: var(--surface2);
  margin-top: 6px;
}
.daily-balance > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.62rem;
}
.daily-balance strong {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
}
.balance-track {
  height: 4px;
  margin-top: 11px;
  background: #ffffff12;
  border-radius: 8px;
  overflow: hidden;
}
.balance-track > span {
  display: block;
  width: calc(100% / 3);
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.55s var(--ease);
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.51rem;
  min-height: 30px;
}
.reset-preview {
  padding: 7px 5px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.58rem;
}
.floating-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  z-index: 2;
  padding: 13px 17px;
  background: #242323;
  border: 1px solid #44403b;
  border-radius: 13px;
  box-shadow: 0 15px 35px #0004;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.65;
  pointer-events: none;
}
.floating-note > span {
  min-width: 0;
}
.floating-note strong {
  color: var(--ink);
  font-weight: 600;
}
.note-top {
  margin-left: auto;
  margin-bottom: -9px;
  transform: rotate(4deg);
}
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--pillar-bg, var(--sport-bg));
  color: var(--pillar, var(--accent));
  flex-shrink: 0;
}
.mini-icon .icon {
  width: 20px;
  height: 20px;
}
.note-bottom {
  margin-top: -4px;
  margin-left: -16px;
  transform: rotate(2deg);
}
.note-bottom > .icon {
  color: var(--accent);
  width: 23px;
  height: 23px;
  margin-left: 20px;
}
.note-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-on);
  border-radius: 50%;
}
.note-check .icon {
  width: 18px;
  height: 18px;
}

.connection-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-block: 1px solid var(--border);
  padding-block: 24px;
}
.connection-strip > span {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  line-height: 1.8;
}
.connection-strip strong {
  font-weight: 600;
  color: var(--ink);
}
.connection-strip > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  font-family: Space, sans-serif;
  font-size: 1.27rem;
  letter-spacing: -0.04em;
}
.connection-strip i {
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
}
.connection-strip .icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
}
.connection-strip .strip-end {
  color: var(--muted);
  font:
    400 0.76rem Hanken,
    sans-serif;
  letter-spacing: 0;
}
.section {
  padding-block: 104px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}
h2 {
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 1.19;
  letter-spacing: -0.055em;
}
.section-heading h2 {
  margin-top: 15px;
}
h2 > span {
  color: var(--muted);
}
.section-heading > p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 5px;
  max-width: 310px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid #f49a5040;
}

/* Each pillar has its own content-driven layout rather than a repeated tile. */
.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}
.feature-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  scroll-margin-top: 112px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  box-shadow: inset 0 1px #ffffff06, 0 12px 32px #00000012;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 22px auto;
  height: 1px;
  background: linear-gradient(90deg, var(--pillar), transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}
.feature-card:target {
  border-color: var(--pillar);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pillar) 7%, transparent);
}
.feature-copy {
  padding: 31px 32px 27px;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pillar, var(--accent));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.feature-card h3 {
  font-size: clamp(1.8rem, 2.55vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin-top: 22px;
}
.feature-card h3 em {
  color: var(--pillar);
}
.feature-copy > p:not(.card-label):not(.interaction-note) {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 15px;
  max-width: 420px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}
.card-tags > span {
  padding: 6px 11px;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  font-size: 0.61rem;
  color: var(--muted);
}
.sport-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.sport-card .feature-copy {
  padding-right: 20px;
}
.sport-card h3 {
  margin-top: 38px;
}
.sport-card .feature-copy > p:not(.card-label) {
  font-size: 0.85rem;
}
.workout-visual {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 424px;
  margin: 12px 12px 12px 0;
  overflow: hidden;
  border-radius: 14px;
  background: #172526;
}
.workout-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 54% center;
  transition: transform 1s var(--ease);
}
.workout-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b100ff5, #0b100f22 85%);
}
.workout-overlay {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 120px 19px 22px;
  z-index: 1;
}
.workout-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.46rem;
  letter-spacing: 0.07em;
  color: var(--ink);
  background: #141414d9;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  padding: 6px 7px;
}
.workout-chip .status-dot {
  width: 4px;
  height: 4px;
}
.workout-overlay h4 {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-top: 13px;
}
.workout-overlay > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: #dededb;
  font-size: 0.58rem;
}
.workout-overlay > div > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.workout-overlay .icon {
  width: 12px;
  height: 12px;
}
.workout-overlay > div > span + span {
  border-left: 1px solid #ffffff40;
  padding-left: 8px;
}
.image-corner {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  color: var(--ink);
}
.image-corner .icon {
  width: 19px;
  height: 19px;
}
.nutrition-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--surface) 50%, #17221c);
}
.nutrition-card .feature-copy {
  padding-bottom: 0;
}
.nutrition-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 28px 26px 12px;
  margin-top: auto;
}
.macro-ring {
  width: 9.7rem;
  max-width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    var(--nutrition) 0% 29%,
    var(--surface) 29% 30%,
    var(--accent) 30% 74%,
    var(--surface) 74% 75%,
    var(--tasks) 75% 99%,
    var(--surface) 99% 100%
  );
  padding: 8px;
}
.macro-ring > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
}
.macro-ring .icon {
  width: 22px;
  height: 22px;
  color: var(--nutrition);
  margin-bottom: 6px;
}
.macro-ring strong {
  font-family: Space, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.04em;
}
.macro-ring span {
  font-size: 0.57rem;
  color: var(--muted);
  margin-top: 4px;
}
.macro-legend {
  display: grid;
  gap: 12px;
  min-width: 108px;
}
.macro-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  color: var(--muted);
}
.macro-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.protein {
  background: var(--nutrition);
}
.carbs {
  background: var(--accent);
}
.fats {
  background: var(--tasks);
}
.macro-legend b {
  color: var(--ink);
  margin-left: auto;
  padding-left: 12px;
  font-weight: 600;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}
.macro-legend small {
  color: var(--muted);
  font-size: 0.53rem;
  margin-top: 1px;
}
.nutrition-card > .card-tags {
  margin: 14px 32px 27px;
}
.tasks-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(110deg, var(--surface) 50%, #1b1c25);
  padding: 5px;
}
.tasks-card .feature-copy {
  padding: 27px 30px;
}
.tasks-card h3 {
  margin-top: 23px;
}
.interaction-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tasks);
  font-size: 0.68rem;
  margin-top: 20px;
}
.interaction-note .icon {
  width: 15px;
  height: 15px;
}
.task-board {
  background: #151517;
  border: 1px solid #ffffff10;
  border-radius: 13px;
  margin: 26px 27px 26px 6px;
  padding: 19px 20px 11px;
}
.task-board-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.69rem;
  font-weight: 600;
}
.task-board-title > .icon {
  width: 15px;
  height: 15px;
  color: var(--tasks);
}
.task-board-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 400;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  position: relative;
  border-top: 1px solid #ffffff0c;
}
.task-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #7c7c80;
  border-radius: 6px;
  flex-shrink: 0;
  color: #141414;
  transition: background 0.2s;
}
.task-check .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
  stroke-width: 2.4;
}
.task-item.is-complete .task-check {
  background: var(--tasks);
  border-color: var(--tasks);
}
.task-item.is-complete .task-check .icon {
  opacity: 1;
}
.task-item > span:nth-child(2) {
  font-size: 0.72rem;
  min-width: 0;
}
.task-item small {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  margin-top: 4px;
}
.task-category {
  font-size: 0.5rem;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--pillar);
  background: var(--pillar-bg);
  margin-left: auto;
}
.task-item.is-complete > span:nth-child(2) {
  color: var(--muted);
}
.task-item.is-complete > span:nth-child(2)::first-line {
  text-decoration: line-through;
  text-decoration-color: #b3b3b670;
}
.task-item button {
  position: absolute;
  inset: 3px -6px;
  width: calc(100% + 12px);
  background: none;
  border: 0;
  border-radius: 6px;
}
.task-item:has(button:hover) {
  background: #ffffff04;
}
.task-board-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.52rem;
  padding-top: 12px;
  border-top: 1px solid #ffffff0c;
}
.task-board-footer .status-dot {
  width: 4px;
  height: 4px;
  background: var(--tasks);
}
.task-board-footer > span:last-child {
  margin-left: auto;
  font-size: 0.47rem;
}

/* Community shifts the rhythm with one tall visual and two compact stories. */
.community {
  padding-top: 0;
}
.community-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.community-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #202022, var(--surface) 70%);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff05;
}
.community-card h3 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.community-card p:not(.card-label) {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 14px;
}
.connection-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.people-visual {
  position: relative;
  height: 277px;
  min-height: 277px;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #f49a5015, transparent 70%);
}
.people-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 150px;
  border: 1px solid #f49a5026;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
}
.people-visual :is(.person, .people-center, .people-bubble) {
  z-index: 2;
}
.people-share {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 29px;
  border: 1px solid #f49a5045;
  border-radius: 10px 10px 10px 3px;
  background: #302820;
  color: #f6b17a;
  box-shadow: 0 4px 14px #0003;
  opacity: 0;
  offset-rotate: 0deg;
  pointer-events: none;
}
.people-share .icon { width: 18px; height: 18px; }
.share-like {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #35252a;
  border-color: #e8a1aa40;
  color: #e8a1aa;
}
.share-like .icon { width: 15px; height: 15px; fill: currentColor; }
.share-photo {
  width: 38px;
  height: 32px;
  padding: 3px;
  border-color: #b8c9dc50;
  border-radius: 6px;
  background: #eee4d8;
}
.share-photo svg { display: block; width: 100%; height: 100%; }
.share-reply { color: #b8c7b9; background: #26332d; border-color: #b8c7b940; }
.share-food { color: #a9d2a8; background: #26332d; border-color: #a9d2a840; }
.share-workout { color: #c8bbdf; background: #2f2938; border-color: #c8bbdf40; }
.people-orbit-two {
  width: 360px;
  height: 240px;
  border-color: #f49a5015;
  transform: translate(-50%, -50%) rotate(20deg);
}
.person {
  position: absolute;
  display: grid;
  place-items: center;
  font-family: Space, sans-serif;
  border-radius: 50%;
  border: 5px solid var(--surface);
  font-size: 1rem;
  box-shadow: 0 5px 20px #0002;
}
.person-one {
  top: 34px;
  left: calc(50% - 125px);
  width: 51px;
  height: 51px;
  background: #e8bd9a;
  color: #45250d;
  transform: rotate(-10deg);
}
.person-two {
  top: 46px;
  left: calc(50% + 65px);
  width: 63px;
  height: 63px;
  background: #b8c7b9;
  color: #203b29;
  transform: rotate(9deg);
}
.person-three {
  bottom: 53px;
  left: calc(50% - 165px);
  width: 68px;
  height: 68px;
  background: #c1b9d1;
  color: #372747;
  transform: rotate(7deg);
}
.person-four {
  bottom: 43px;
  left: calc(50% + 108px);
  width: 47px;
  height: 47px;
  background: #b8c9dc;
  color: #243c56;
}
.people-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid #f49a5050;
  background: var(--sport-bg);
  border-radius: 24px;
  transform: translate(-50%, -50%) rotate(-8deg);
}
.people-center .icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.people-bubble {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 30px);
  font-size: 0.64rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  transform: translateX(-50%) rotate(-3deg);
}
.people-bubble .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.community-copy {
  padding: 25px 33px 32px;
  flex: 0 0 auto;
}
.community-copy h3 {
  margin-top: 14px;
  font-size: 2.1rem;
}
.card-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.card-footnote .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.event-card {
  position: relative;
  padding: 29px 30px 24px;
}
.event-card > .mini-icon {
  position: absolute;
  right: 29px;
  top: 26px;
  background: var(--sport-bg);
}
.event-card > .card-label,
.coach-card .card-label {
  max-width: calc(100% - 45px);
}
.event-card h3 {
  margin-top: 15px;
  padding-right: 45px;
  font-size: 1.65rem;
}
.event-card p:not(.card-label) {
  max-width: 330px;
  font-size: 0.81rem;
}
.event-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 19px;
  margin-top: 21px;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 43px;
  padding: 7px 2px;
  background: var(--sport-bg);
  border: 1px solid #f49a5022;
  color: var(--accent);
  border-radius: 8px;
  font-size: 0.45rem;
  letter-spacing: 0.06em;
}
.event-date span {
  font-family: Space, sans-serif;
  font-size: 1rem;
}
.event-preview > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-preview strong {
  font-size: 0.75rem;
  font-weight: 600;
}
.event-preview > div > span {
  color: var(--muted);
  font-size: 0.63rem;
}
.event-preview > .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-left: auto;
}
.coach-card {
  padding: 29px 30px;
}
.coach-card > div:first-child {
  position: relative;
}
.coach-card .mini-icon {
  position: absolute;
  right: 0;
  top: -3px;
  background: var(--tasks-bg);
  color: var(--tasks);
}
.coach-card .card-label {
  color: var(--tasks);
}
.coach-card h3 {
  font-size: 1.65rem;
  margin-top: 15px;
}
.coach-card p:not(.card-label) {
  font-size: 0.81rem;
  max-width: 350px;
}
.coach-preview {
  margin-top: 22px;
  padding: 16px;
  background: #151517;
  border: 1px solid #ffffff0c;
  border-radius: 10px;
}
.coach-preview > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}
.coach-avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 42px;
  color: var(--tasks);
  background: var(--tasks-bg);
  border: 1px solid #a5b6ff25;
  border-radius: 12px;
  font:
    700 1.1rem Space,
    sans-serif;
}
.coach-preview strong {
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
}
.coach-preview > div:first-child > div > span {
  display: block;
  font-size: 0.54rem;
  color: var(--muted);
  margin-top: 5px;
}
.coach-preview > div > .icon {
  width: 24px;
  height: 24px;
  color: var(--tasks);
  margin-left: auto;
}
.coach-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid #ffffff10;
}
.coach-plan > span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.56rem;
}
.coach-plan .icon {
  width: 12px;
  height: 12px;
  color: var(--tasks);
}

.approach-section {
  position: relative;
  border-block: 1px solid var(--border);
  background: radial-gradient(ellipse at 12% 100%, #f49a500d, transparent 65%), #181715;
  overflow: hidden;
}
.approach {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 48px;
  padding-block: 72px 78px;
  position: relative;
}
.approach-marker > .icon {
  width: 54px;
  height: 54px;
  color: var(--accent);
  stroke-width: 1.1;
  transform: rotate(12deg);
  margin-bottom: 24px;
}
.approach-marker .eyebrow {
  font-size: 0.59rem;
}
.approach h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.approach p:not(.eyebrow) {
  max-width: 580px;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 22px;
}
.approach .text-link {
  color: var(--accent);
  margin-top: 19px;
}
.approach-word {
  position: absolute;
  bottom: -24px;
  left: -10px;
  font:
    700 8rem Space,
    sans-serif;
  letter-spacing: -0.08em;
  color: #f49a5006;
  pointer-events: none;
}
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}
.faq h2 {
  margin-top: 15px;
}
.faq > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 20px;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}
.faq details[open] {
  border-bottom-color: #f49a5060;
  background: linear-gradient(90deg, #f49a5007, transparent);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  list-style: none;
  padding: 22px 0;
  min-height: 72px;
  font-size: 0.91rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid #f49a5030;
  border-radius: 50%;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq summary:hover {
  color: var(--accent);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 23px;
  padding-inline-end: 38px;
}
.faq details p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* Availability is explicit; these store cards are not fake download links. */
.install {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  border: 1px solid #544032;
  border-radius: 25px;
  background: #1f1b18;
  margin-bottom: 64px;
  padding: 60px;
  overflow: hidden;
}
.install-content {
  position: relative;
  z-index: 1;
}
.install .eyebrow {
  color: var(--accent);
  font-size: 0.6rem;
}
.install h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-top: 20px;
}
.install-content > p:not(.eyebrow):not(.availability) {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 20px;
}
.store-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}
.store-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #56504a;
  border-radius: 10px;
  background: #141414;
  padding: 12px 17px;
  min-width: 158px;
}
.store-button > .icon {
  width: 27px;
  height: 29px;
}
.store-button small {
  display: block;
  font-size: 0.43rem;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.store-button strong {
  display: block;
  margin-top: 3px;
  font-size: 1.01rem;
  font-weight: 600;
}
.availability {
  color: var(--muted);
  font-size: 0.62rem;
  margin-top: 15px;
}
.install-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.install-orbit {
  position: absolute;
  width: 285px;
  height: 285px;
  border-radius: 50%;
  border: 1px solid #f49a5022;
}
.install-orbit.second {
  width: 390px;
  height: 390px;
  border-color: #f49a5011;
}
.install-app {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  width: 144px;
  height: 156px;
  border-radius: 33px;
  background: var(--accent);
  color: var(--accent-on);
  transform: rotate(-12deg);
  box-shadow:
    12px 25px 60px #0006,
    inset 0 2px 0 #ffffff30;
}
.install-app > .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.7;
}
.install-app > span {
  font:
    700 1.3rem Space,
    sans-serif;
  letter-spacing: -0.06em;
}
.install-app > span > span {
  opacity: 0.5;
}
.install-art-tag {
  position: absolute;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  transform: rotate(-5deg);
}
.install-art-tag .icon {
  width: 17px;
  height: 17px;
}
footer {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 36px;
  border-top: 1px solid var(--border);
}
footer .brand {
  font-size: 1.4rem;
}
footer .brand-icon {
  width: 27px;
  height: 29px;
  border-radius: 8px;
  margin-right: 7px;
}
footer .brand-icon .icon {
  width: 20px;
  height: 20px;
}
footer p {
  color: var(--muted);
  font-size: 0.66rem;
  margin-top: 9px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 24px;
  margin-left: auto;
}
footer nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.69rem;
  color: var(--muted);
}
footer nav a:hover {
  color: var(--accent);
}
footer small {
  color: var(--muted);
  font-size: 0.63rem;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  padding: 9px 10px;
  min-height: 36px;
  font-size: 0.6rem;
  color: var(--muted);
}
.motion-toggle .icon {
  width: 13px;
  height: 13px;
}
.motion-toggle:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Motion is finite, interruptible, and never required to reveal content. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sport-card:hover .workout-visual img {
    transform: scale(1.045);
  }
  .feature-card:hover {
    border-color: #535355;
  }
  .install:hover .install-app {
    transform: rotate(-6deg) translateY(-5px);
  }
  .install-app {
    transition: transform 0.6s var(--ease);
  }
}
@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sun-arrive {
  from {
    transform: rotate(-80deg) scale(0.7);
  }
  to {
    transform: rotate(0) scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  :where(html:not(.motion-paused)) .hero-enter:not([data-phrase-reveal]) {
    animation: hero-arrive 0.85s var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 180ms;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 240ms;
  }
  .hero-copy > :nth-child(6) {
    animation-delay: 300ms;
  }
  .hero-visual.hero-enter {
    animation-delay: 180ms;
    animation-duration: 1.1s;
  }
  html:not(.motion-paused) .preview-sun {
    animation: sun-arrive 1.3s var(--ease) 0.2s both;
  }
}
.motion-paused {
  scroll-behavior: auto;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1500px) {
  .hero {
    gap: 100px;
    padding-block: 96px 110px;
  }
}
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 32px;
    padding-block: 63px 72px;
  }
  h1 {
    font-size: clamp(3.3rem, 6.2vw, 4.5rem);
  }
  .hero-spark {
    width: 28px;
    height: 28px;
    right: -32px;
  }
  .day-preview {
    padding: 20px 17px 12px;
  }
  .note-bottom {
    margin-left: -9px;
  }
  .day-row {
    gap: 7px;
  }
  .day-row h3 {
    font-size: 0.79rem;
  }
  .day-row p {
    font-size: 0.53rem;
  }
  .timeline-time {
    width: 24px;
    font-size: 0.49rem;
  }
  .day-icon {
    width: 30px;
    height: 35px;
  }
  .floating-note {
    padding: 11px 13px;
    font-size: 0.58rem;
  }
  .section {
    padding-block: 84px;
  }
  .community {
    padding-top: 0;
  }
  .section-heading > p {
    font-size: 0.76rem;
  }
  .connection-strip > div {
    gap: 22px;
    font-size: 1.1rem;
  }
  .feature-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
  }
  .sport-card {
    grid-template-columns: 1fr;
  }
  .sport-card .feature-copy {
    padding-right: 28px;
  }
  .sport-card h3 {
    margin-top: 20px;
  }
  .sport-card h3 br {
    display: none;
  }
  .workout-visual {
    min-height: 196px;
    margin: 0 12px 12px;
  }
  .workout-visual img {
    object-position: 50% 48%;
  }
  .workout-overlay {
    margin: 120px 18px 18px;
  }
  .workout-overlay h4 br {
    display: none;
  }
  .workout-overlay h4 {
    font-size: 1.4rem;
  }
  .feature-copy {
    padding: 27px 28px 24px;
  }
  .nutrition-visual {
    flex-direction: column;
    gap: 22px;
    padding-top: 24px;
  }
  .macro-ring {
    width: 10.75rem;
  }
  .macro-legend {
    width: 100%;
    max-width: 180px;
    gap: 10px;
  }
  .macro-legend small {
    text-align: center;
  }
  .nutrition-card > .card-tags {
    margin-inline: 28px;
  }
  .task-board {
    margin-right: 20px;
    padding-inline: 15px;
  }
  .tasks-card .feature-copy {
    padding-inline: 23px;
  }
  .task-board-footer > span:last-child {
    display: none;
  }
  .community-grid {
    gap: 16px;
  }
  .community-copy {
    padding-inline: 28px;
  }
  .community-copy h3 {
    font-size: 1.9rem;
  }
  .event-card,
  .coach-card {
    padding: 26px;
  }
  .faq {
    gap: 55px;
  }
  .install {
    padding: 44px;
  }
  footer {
    gap: 25px;
  }
  footer nav {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header-inner {
    min-height: 78px;
    gap: 15px;
    padding-block: 15px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .desktop-nav {
    gap: 18px;
  }
  .desktop-nav a {
    font-size: 0.72rem;
  }
  .hero {
    gap: 25px;
  }
  h1 {
    font-size: clamp(3.1rem, 6.6vw, 3.8rem);
    letter-spacing: -0.065em;
  }
  .hero-spark {
    display: none;
  }
  .hero .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
  .intro {
    font-size: 0.98rem;
  }
  .pillar-links {
    gap: 5px;
  }
  .pillar-links a {
    font-size: 0.6rem;
    padding-inline: 8px;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 23px;
  }
  .hero-actions .button {
    font-size: 0.82rem;
    min-height: 51px;
    gap: 18px;
    padding-inline: 16px;
  }
  .hero-actions .text-link {
    font-size: 0.7rem;
  }
  .hero-note {
    font-size: 0.65rem;
  }
  .hero-visual {
    padding: 0;
  }
  .floating-note {
    font-size: 0.53rem;
    gap: 8px;
    padding: 9px 11px;
  }
  .floating-note .mini-icon {
    width: 28px;
    height: 30px;
    border-radius: 8px;
  }
  .note-bottom {
    margin-left: 0;
  }
  .day-preview {
    padding: 18px 13px 10px;
    border-radius: 16px;
  }
  .preview-greeting h2 {
    font-size: 1.3rem;
  }
  .preview-greeting p {
    font-size: 0.55rem;
  }
  .preview-greeting {
    margin-top: 21px;
  }
  .preview-sun {
    width: 26px;
    height: 26px;
  }
  .week-strip {
    gap: 3px;
    margin-block: 17px 20px;
  }
  .day-row {
    gap: 7px;
  }
  .timeline-time {
    display: none;
  }
  .day-row h3 {
    font-size: 0.77rem;
  }
  .day-row p {
    font-size: 0.52rem;
  }
  .preview-agenda-heading > span:first-child {
    font-size: 0.62rem;
  }
  .preview-agenda-heading > span:last-child {
    font-size: 0.43rem;
  }
  .row-label {
    font-size: 0.42rem;
  }
  .connection-strip {
    gap: 20px;
  }
  .connection-strip > div {
    font-size: 0.95rem;
    gap: 18px;
  }
  .connection-strip .strip-end {
    display: none;
  }
  .section-heading {
    gap: 25px;
  }
  .section-heading > p {
    max-width: 180px;
    flex-shrink: 1;
  }
  .section-heading > p br {
    display: none;
  }
  h2 {
    font-size: 2rem;
  }
  .feature-copy {
    padding: 24px;
  }
  .feature-card h3 {
    font-size: 1.8rem;
  }
  .card-label {
    font-size: 0.53rem;
  }
  .tasks-card {
    grid-template-columns: 0.9fr 1fr;
  }
  .tasks-card .feature-copy {
    padding-inline: 18px;
  }
  .task-board {
    margin: 18px 12px 18px 0;
    padding-inline: 13px;
  }
  .task-board-title {
    font-size: 0.59rem;
    gap: 5px;
  }
  .task-item > span:nth-child(2) {
    font-size: 0.64rem;
  }
  .task-category {
    display: none;
  }
  .task-item small {
    font-size: 0.53rem;
  }
  .task-board-title > .icon {
    width: 13px;
    height: 13px;
  }
  .task-board-count {
    font-size: 0.5rem;
  }
  .community-copy {
    padding-inline: 25px;
  }
  .community-copy h3 {
    font-size: 1.7rem;
  }
  .people-visual {
    height: 290px;
  }
  .event-card,
  .coach-card {
    padding: 24px;
  }
  .event-card h3,
  .coach-card h3 {
    font-size: 1.5rem;
  }
  .event-card > .mini-icon,
  .coach-card .mini-icon {
    width: 30px;
    height: 32px;
  }
  .event-card > .mini-icon {
    right: 23px;
  }
  .coach-plan {
    gap: 9px;
  }
  .coach-plan > span {
    font-size: 0.51rem;
  }
  .approach {
    grid-template-columns: 0.35fr 1fr;
    gap: 25px;
    padding-block: 60px;
  }
  .approach h2 {
    font-size: 2rem;
  }
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
  }
  .faq summary {
    font-size: 0.82rem;
  }
  .install {
    padding: 36px;
    grid-template-columns: 1.6fr 1fr;
  }
  .install h2 {
    font-size: 2rem;
  }
  .install-art {
    min-height: 270px;
  }
  .install-app {
    width: 115px;
    height: 127px;
    border-radius: 29px;
  }
  .install-app > .icon {
    width: 47px;
    height: 47px;
  }
  .install-app > span {
    font-size: 1.1rem;
  }
  .install-orbit {
    width: 215px;
    height: 215px;
  }
  .install-orbit.second {
    width: 305px;
    height: 305px;
  }
  .store-button {
    min-width: 143px;
    padding: 10px 12px;
  }
  .store-options {
    gap: 9px;
  }
  footer {
    flex-wrap: wrap;
    gap: 20px;
  }
  footer nav {
    gap: 18px;
  }
  footer small {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 100px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 76px;
    gap: 11px;
    padding-block: 15px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand-icon {
    width: 29px;
    height: 32px;
    border-radius: 9px;
    margin-right: 8px;
  }
  .desktop-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
    font-size: 0.71rem;
    padding: 10px 12px;
    gap: 13px;
    min-height: 42px;
  }
  .header-cta .icon {
    width: 16px;
    height: 16px;
  }
  .mobile-menu {
    display: block;
    position: static;
  }
  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu summary .icon {
    width: 19px;
    height: 19px;
  }
  .mobile-menu[open] summary {
    border-color: var(--accent);
    color: var(--accent);
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    width: min(285px, calc(100vw - 40px));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    background: var(--surface);
    box-shadow: 0 20px 50px #0008;
  }
  .mobile-menu nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 12px;
    font-size: 0.85rem;
    border-radius: 7px;
  }
  .mobile-menu nav a:hover {
    background: var(--surface2);
  }
  .mobile-menu nav a > span {
    color: var(--accent);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 40px 45px;
  }
  .hero .eyebrow {
    font-size: 0.59rem;
    letter-spacing: 0.14em;
  }
  h1 {
    font-size: clamp(3.6rem, 12.8vw, 5.3rem);
    margin-block: 22px;
    letter-spacing: -0.067em;
  }
  .hero-spark {
    display: block;
    width: 28px;
    height: 28px;
    right: -38px;
    bottom: 9px;
  }
  .intro {
    font-size: 1.02rem;
    line-height: 1.65;
  }
  .pillar-links {
    gap: 7px;
    margin-top: 22px;
  }
  .pillar-links a {
    min-height: 42px;
    font-size: 0.65rem;
    padding: 9px 10px;
  }
  .pillar-links .icon {
    width: 15px;
    height: 15px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 8px 20px;
  }
  .hero-actions .button {
    font-size: 0.85rem;
    min-height: 53px;
    padding-inline: 17px;
    gap: 21px;
  }
  .hero-actions .text-link {
    font-size: 0.72rem;
    gap: 8px;
  }
  .hero-note {
    font-size: 0.69rem;
    margin-top: 17px;
  }
  .hero-visual {
    width: min(455px, 100%);
    margin-inline: auto;
    padding: 0 8px;
  }
  .day-preview {
    transform: none;
    padding: 21px 18px 11px;
    border-radius: 20px;
  }
  .preview-brand {
    font-size: 1rem;
  }
  .preview-tag {
    font-size: 0.47rem;
  }
  .preview-greeting {
    margin-top: 23px;
  }
  .preview-greeting h2 {
    font-size: 1.6rem;
  }
  .preview-greeting p {
    font-size: 0.6rem;
  }
  .preview-sun {
    width: 32px;
    height: 32px;
  }
  .week-strip {
    gap: 5px;
    margin-block: 20px 22px;
  }
  .week-strip > span {
    padding-block: 9px 12px;
    font-size: 0.58rem;
  }
  .week-strip b {
    font-size: 0.77rem;
  }
  .preview-agenda-heading {
    margin-bottom: 10px;
  }
  .preview-agenda-heading > span:first-child {
    font-size: 0.66rem;
  }
  .preview-agenda-heading > span:last-child {
    font-size: 0.45rem;
  }
  .day-row {
    gap: 9px;
    padding-block: 16px;
  }
  .day-icon {
    width: 34px;
    height: 39px;
  }
  .day-icon .icon {
    width: 20px;
    height: 20px;
  }
  .day-row h3 {
    font-size: 0.85rem;
  }
  .day-row p {
    font-size: 0.57rem;
  }
  .row-label {
    font-size: 0.43rem;
  }
  .activity-toggle {
    width: 32px;
    min-height: 38px;
    margin-right: -5px;
  }
  .preview-footer {
    font-size: 0.51rem;
  }
  .reset-preview {
    min-height: 30px;
  }
  .floating-note {
    font-size: 0.58rem;
    padding: 10px 13px;
  }
  .floating-note .mini-icon {
    width: 29px;
    height: 33px;
  }
  .note-bottom > .icon {
    margin-left: 16px;
  }
  .orbit {
    inset: 45px -2px;
  }
  .orbit-two {
    inset: 15px 25px;
  }
  .connection-strip {
    align-items: center;
    padding-block: 20px;
    gap: 20px;
  }
  .connection-strip > span {
    font-size: 0.44rem;
    letter-spacing: 0.06em;
    flex-shrink: 0;
  }
  .connection-strip > div {
    gap: 11px;
    flex-wrap: wrap;
    justify-content: end;
    font-size: 0.76rem;
  }
  .connection-strip i {
    font-size: 0.7rem;
  }
  .connection-strip .icon {
    display: none;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .eyebrow {
    font-size: 0.59rem;
    letter-spacing: 0.12em;
  }
  h2 {
    font-size: clamp(1.9rem, 7.9vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.055em;
  }
  .section-heading > p {
    max-width: none;
    font-size: 0.88rem;
    margin-top: 18px;
  }
  .section-heading > p br {
    display: block;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .feature-card {
    border-radius: 18px;
    scroll-margin-top: 96px;
  }
  .feature-copy {
    padding: 26px;
  }
  .card-label {
    font-size: 0.58rem;
  }
  .mini-icon {
    width: 35px;
    height: 37px;
  }
  .feature-card h3 {
    font-size: 2.15rem;
    margin-top: 23px;
  }
  .sport-card h3 br {
    display: block;
  }
  .sport-card .feature-copy {
    padding: 26px;
  }
  .feature-copy > p:not(.card-label):not(.interaction-note),
  .sport-card .feature-copy > p:not(.card-label) {
    font-size: 0.95rem;
    margin-top: 17px;
  }
  .card-tags {
    margin-top: 22px;
  }
  .card-tags > span {
    font-size: 0.65rem;
  }
  .workout-visual {
    min-height: 245px;
  }
  .workout-overlay {
    margin: 120px 20px 23px;
  }
  .workout-chip {
    font-size: 0.53rem;
  }
  .workout-overlay h4 {
    font-size: 1.9rem;
    margin-top: 17px;
  }
  .workout-overlay h4 br {
    display: block;
  }
  .workout-overlay > div {
    font-size: 0.68rem;
  }
  .nutrition-visual {
    flex-direction: row;
    gap: 27px;
    padding: 28px 25px 10px;
  }
  .macro-ring {
    width: 9.55rem;
  }
  .macro-legend {
    width: auto;
    max-width: none;
    min-width: 97px;
  }
  .macro-legend > span {
    font-size: 0.65rem;
  }
  .macro-legend b {
    font-size: 0.65rem;
    padding-left: 5px;
  }
  .macro-legend small {
    text-align: left;
  }
  .nutrition-card > .card-tags {
    margin: 19px 26px 26px;
  }
  .tasks-card {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
  .tasks-card .feature-copy {
    padding: 26px 26px 0;
  }
  .interaction-note {
    font-size: 0.7rem;
    margin-top: 22px;
  }
  .task-board {
    margin: 25px 13px 13px;
    padding: 18px 16px 12px;
  }
  .task-board-title {
    font-size: 0.67rem;
  }
  .task-board-count {
    font-size: 0.58rem;
  }
  .task-item > span:nth-child(2) {
    font-size: 0.73rem;
  }
  .task-item small {
    font-size: 0.58rem;
  }
  .task-category {
    display: block;
    font-size: 0.48rem;
    padding-inline: 6px;
  }
  .task-board-footer {
    font-size: 0.53rem;
  }
  .community {
    padding-top: 0;
  }
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .community-card {
    border-radius: 18px;
  }
  .connection-card {
    grid-row: auto;
  }
  .people-visual {
    height: 252px;
  }
  .people-orbit-two {
    width: 310px;
    height: 215px;
  }
  .person-three {
    left: calc(50% - 147px);
  }
  .person-four {
    left: calc(50% + 98px);
  }
  .community-copy {
    padding: 23px 26px 27px;
  }
  .community-copy h3 {
    font-size: 1.95rem;
  }
  .community-card p:not(.card-label),
  .event-card p:not(.card-label),
  .coach-card p:not(.card-label) {
    font-size: 0.94rem;
  }
  .card-footnote {
    font-size: 0.66rem;
    line-height: 1.5;
    margin-top: 23px;
  }
  .event-card,
  .coach-card {
    padding: 27px 26px;
  }
  .event-card h3,
  .coach-card h3 {
    font-size: 1.85rem;
    margin-top: 19px;
  }
  .event-card > .mini-icon {
    right: 26px;
    top: 23px;
  }
  .event-preview {
    margin-top: 25px;
    padding-top: 22px;
  }
  .event-preview strong {
    font-size: 0.84rem;
  }
  .event-preview > div > span {
    font-size: 0.69rem;
  }
  .coach-preview {
    padding: 17px;
    margin-top: 25px;
  }
  .coach-preview strong {
    font-size: 0.8rem;
  }
  .coach-preview > div:first-child > div > span {
    font-size: 0.58rem;
  }
  .coach-plan {
    gap: 17px;
  }
  .coach-plan > span {
    font-size: 0.59rem;
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 47px 50px;
  }
  .approach-marker {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .approach-marker > .icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
  }
  .approach h2 {
    font-size: clamp(1.9rem, 7.6vw, 2.5rem);
  }
  .approach p:not(.eyebrow) {
    font-size: 0.96rem;
    margin-top: 23px;
  }
  .approach .text-link {
    font-size: 0.8rem;
  }
  .approach-word {
    font-size: 6rem;
    bottom: -16px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq summary {
    font-size: 0.86rem;
    min-height: 77px;
    padding-block: 23px;
  }
  .faq details p {
    font-size: 0.88rem;
  }
  .faq details > div {
    padding-right: 12px;
  }
  .install {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 32px 26px 18px;
    border-radius: 20px;
    margin-bottom: 42px;
  }
  .install h2 {
    font-size: clamp(1.85rem, 7.7vw, 2.65rem);
  }
  .install .eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }
  .install-content > p:not(.eyebrow):not(.availability) {
    font-size: 0.9rem;
  }
  .store-options {
    gap: 10px;
  }
  .store-button {
    min-width: 0;
    padding: 11px 12px;
    gap: 8px;
  }
  .store-button > .icon {
    width: 24px;
    height: 26px;
  }
  .store-button strong {
    font-size: 0.94rem;
  }
  .store-button small {
    font-size: 0.4rem;
  }
  .availability {
    font-size: 0.57rem;
  }
  .install-art {
    min-height: 250px;
    margin-top: 20px;
  }
  .install-app {
    width: 122px;
    height: 133px;
  }
  .install-art-tag {
    bottom: 5px;
  }
  .install-orbit {
    width: 220px;
    height: 220px;
  }
  .install-orbit.second {
    width: 295px;
    height: 295px;
  }
  footer {
    gap: 23px 15px;
    padding-block: 28px;
  }
  footer > div {
    width: 100%;
  }
  footer .brand {
    font-size: 1.5rem;
  }
  footer p {
    font-size: 0.7rem;
  }
  footer nav {
    margin-left: 0;
    gap: 20px;
  }
  footer nav a {
    font-size: 0.74rem;
  }
  footer small {
    margin-left: auto;
    font-size: 0.6rem;
  }
  .motion-toggle {
    width: 100%;
    min-height: 40px;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    font-size: 1.32rem;
  }
  .brand-icon {
    width: 27px;
    height: 30px;
    margin-right: 6px;
  }
  .header-cta {
    gap: 9px;
    font-size: 0.65rem;
    padding-inline: 10px;
  }
  .mobile-menu summary {
    width: 39px;
  }
  h1 {
    font-size: clamp(3rem, 12.7vw, 3.6rem);
  }
  .hero-spark {
    width: 24px;
    height: 24px;
    right: -30px;
  }
  .hero-actions {
    gap: 5px 14px;
  }
  .hero-actions .button {
    gap: 15px;
    font-size: 0.78rem;
    padding-inline: 14px;
  }
  .hero-actions .text-link {
    font-size: 0.66rem;
    gap: 5px;
  }
  .pillar-links {
    gap: 5px;
  }
  .pillar-links a {
    font-size: 0.6rem;
    padding-inline: 8px;
  }
  .hero-visual {
    padding-inline: 4px;
  }
  .day-preview {
    padding-inline: 13px;
  }
  .day-row {
    gap: 7px;
  }
  .day-row h3 {
    font-size: 0.77rem;
  }
  .day-row p {
    font-size: 0.52rem;
  }
  .day-icon {
    width: 30px;
  }
  .preview-greeting h2 {
    font-size: 1.4rem;
  }
  .feature-copy,
  .sport-card .feature-copy {
    padding-inline: 23px;
  }
  .feature-card h3 {
    font-size: 1.95rem;
  }
  .nutrition-visual {
    gap: 20px;
    padding-inline: 19px;
  }
  .macro-ring {
    width: 8rem;
    padding: 6px;
  }
  .macro-ring strong {
    font-size: 0.88rem;
  }
  .macro-legend {
    min-width: 85px;
  }
  .macro-legend > span,
  .macro-legend b {
    font-size: 0.59rem;
  }
  .task-category {
    display: none;
  }
  .connection-strip {
    gap: 12px;
  }
  .connection-strip > div {
    font-size: 0.68rem;
    gap: 8px;
  }
  .community-copy,
  .event-card,
  .coach-card {
    padding-inline: 23px;
  }
  .coach-plan {
    gap: 10px;
  }
  .coach-plan > span {
    font-size: 0.53rem;
  }
  .people-visual {
    height: 237px;
  }
  .person-three {
    left: calc(50% - 130px);
    width: 57px;
    height: 57px;
  }
  .person-four {
    left: calc(50% + 85px);
  }
  .person-one {
    left: calc(50% - 110px);
  }
  .person-two {
    left: calc(50% + 57px);
  }
  .install {
    padding-inline: 22px;
  }
  .store-options {
    gap: 8px;
  }
  .store-button {
    padding-inline: 10px;
  }
  .store-button strong {
    font-size: 0.85rem;
  }
  .store-button > .icon {
    width: 21px;
  }
  .store-button small {
    font-size: 0.36rem;
  }
  footer nav {
    gap: 16px;
  }
}
@media (forced-colors: active) {
  .day-preview,
  .feature-card,
  .community-card,
  .task-board,
  .install,
  .floating-note {
    border: 1px solid CanvasText;
  }
  .button,
  .store-button,
  .brand-icon,
  .mini-icon,
  .day-icon,
  .task-check,
  .activity-toggle::before {
    border: 1px solid ButtonText;
  }
  .activity-toggle[aria-pressed="true"]::before,
  .task-item.is-complete .task-check,
  .week-strip .selected {
    background: Highlight;
  }
  .activity-toggle[aria-pressed="true"] .icon,
  .task-item.is-complete .task-check .icon {
    color: HighlightText;
  }
  .balance-track {
    border: 1px solid CanvasText;
  }
  .balance-track > span {
    background: Highlight;
  }
}
/* The opening makes the three pillars feel like parts of one physical balance. */
.balance-hero {
  position: relative;
  isolation: isolate;
  padding-block: 32px 64px;
}
.balance-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5% 0 15%;
  background:
    radial-gradient(ellipse at 18% 30%, #f49a500a, transparent 42%),
    radial-gradient(ellipse at 82% 30%, #a5b6ff09, transparent 42%),
    radial-gradient(ellipse at 50% 46%, #72d3a808, transparent 42%);
  pointer-events: none;
}
.balance-eyebrow {
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 7px 14px;
  border: 1px solid #ffffff10;
  border-radius: 30px;
  background: #ffffff03;
}
.balance-stage {
  max-width: 1080px;
  margin: 32px auto 0;
}
.balance-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  padding-inline: 17px;
}
.balance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 23px 17px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 70% 0, color-mix(in srgb, var(--pillar) 12%, transparent), transparent 65%),
    linear-gradient(145deg, color-mix(in srgb, var(--pillar) 9%, #1b1b1d), var(--pillar-bg));
  border: 1px solid color-mix(in srgb, var(--pillar) 27%, #252525);
  border-radius: 19px;
  box-shadow: 0 18px 38px #0004, inset 0 1px #ffffff0d;
  transform-origin: 50% 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
/* Where each card sits on the beam (--arm), how it wobbles, and its arrival order. */
.balance-card.sport {
  --arm: -1;
  --wob: 1;
  --i: 0;
}
.balance-card.nutrition {
  --arm: 0;
  --wob: -0.7;
  --i: 1;
}
.balance-card.tasks {
  --arm: 1;
  --wob: 0.85;
  --i: 2;
}
[dir="rtl"] .balance-card.sport {
  --arm: 1;
}
[dir="rtl"] .balance-card.tasks {
  --arm: -1;
}
.balance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pillar);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.balance-card-top .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--pillar) 20%, transparent);
  border-radius: 50%;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.balance-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 145px;
  margin: 2px -10px 0;
  color: var(--pillar);
}
.pillar-art {
  display: block;
  width: 100%;
  max-width: 270px;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  overflow: visible;
}
.balance-card-copy {
  padding-bottom: 19px;
}
.balance-card-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
}
.balance-card-copy h2 span {
  color: var(--pillar);
}
.balance-card.tasks h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.06em;
}
.balance-card-copy > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.balance-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--pillar) 15%, transparent);
  color: var(--pillar);
  font-size: 0.62rem;
}
.balance-card-foot .icon {
  width: 15px;
  height: 15px;
}
.balance-support {
  position: relative;
  height: 129px;
  margin: 21px 25px 0;
  isolation: isolate;
  pointer-events: none;
}
.balance-light {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 48px;
  overflow: visible;
}
.phone-projection {
  opacity: .8;
}
.balance-beam {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 5px;
  border: 1px solid #655951;
  border-radius: 5px;
  background: linear-gradient(90deg, #f49a5066, #72d3a866, #a5b6ff66);
  box-shadow: 0 4px 12px #0004;
  transform-origin: center;
}
.beam-point {
  position: absolute;
  bottom: 4px;
  left: 16.667%;
  width: 1px;
  height: 22px;
  background: var(--pillar);
  opacity: 0.5;
}
.beam-point::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pillar);
}
.beam-point.nutrition {
  left: 50%;
}
.beam-point.tasks {
  left: 83.333%;
}
.balance-phone {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 62px;
  height: 109px;
  overflow: visible;
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 9px #0008) drop-shadow(0 0 12px #72d3a818);
}
.balance-ground {
  position: absolute;
  top: 119px;
  left: calc(50% - 110px);
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #72d3a844, transparent);
}
.balance-ground::before {
  content: "";
  position: absolute;
  inset: -9px 25%;
  background: radial-gradient(ellipse, #72d3a81c, transparent 70%);
}
.balance-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.68rem;
}
.balance-caption strong {
  color: var(--ink);
  font-weight: 400;
}
.balance-indicator {
  position: relative;
  width: 29px;
  height: 12px;
  border: 1px solid #65786d;
  border-radius: 8px;
  background: #72d3a80a;
}
.balance-indicator::before,
.balance-indicator::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: #65786d;
}
.balance-indicator::before { left: 9px; }
.balance-indicator::after { right: 9px; }
.balance-indicator i {
  position: absolute;
  top: 3px;
  left: 11px;
  width: 5px;
  height: 4px;
  border-radius: 3px;
  background: var(--nutrition);
}
.balance-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  margin-inline-start: 7px;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  background: #ffffff03;
  color: var(--muted);
  font: inherit;
  font-size: 0.62rem;
  transition: color 0.2s;
}
.balance-replay:hover { color: var(--accent); }
.balance-replay .icon { width: 12px; height: 12px; }
.balance-copy {
  margin-top: 22px;
  text-align: center;
}
.balance-copy h1 {
  width: auto;
  max-width: 100%;
  margin: 0 0 15px;
  font-size: clamp(2.7rem, 4.5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.balance-copy .intro {
  font-size: 0.98rem;
}
.balance-copy .hero-actions {
  justify-content: center;
  gap: 26px;
  margin-top: 21px;
}
.balanced-day-demo {
  margin-top: 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(110deg, #202023, var(--surface));
  transition: border-color 0.25s, box-shadow 0.25s;
}
.balanced-day-demo:hover,
.balanced-day-demo[open] {
  border-color: #a5b6ff60;
}
.balanced-day-demo[open] {
  box-shadow: 0 18px 48px #0002;
}
.balanced-day-demo > summary > .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  color: var(--tasks);
  border: 1px solid #a5b6ff33;
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.balanced-day-demo > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 18px 26px;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.balanced-day-demo > summary::-webkit-details-marker { display: none; }
.balanced-day-demo[open] > summary > .icon { transform: rotate(45deg); }
.balanced-day-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  padding: 15px 35px 35px;
}
.balanced-day-copy h3 {
  margin-block: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}
.balanced-day-copy > p:not(.eyebrow) { color: var(--muted); }
.balanced-day-content .day-preview { transform: none; }

/* The balance itself is live: see "Live balance" near the end of this file. */
@media (hover: hover) {
  .balance-card:hover {
    border-color: var(--pillar);
    box-shadow: 0 18px 40px #0004, 0 0 28px color-mix(in srgb, var(--pillar) 7%, transparent);
  }
  .balance-card:hover .balance-card-top .icon {
    background: color-mix(in srgb, var(--pillar) 12%, transparent);
  }
}
@media (max-width: 820px) {
  .balance-hero { padding-block: 28px 48px; }
  .balance-stage { margin-top: 38px; }
  .balance-cards { gap: 14px; padding-inline: 10px; }
  .balance-card { padding: 16px 16px 14px; border-radius: 15px; }
  .balance-card-art { height: 120px; }
  .balance-card-copy h2 { font-size: 1.9rem; }
  .balance-card.tasks h2 { font-size: 1.45rem; }
  .balance-card-copy > p { font-size: 0.75rem; }
  .balance-card-foot { align-items: flex-start; font-size: 0.57rem; line-height: 1.5; }
  .balance-copy h1 { font-size: clamp(2.6rem, 5.8vw, 3.6rem); }
  .balanced-day-content { gap: 25px; padding-inline: 24px; }
}
@media (min-width: 641px) and (max-height: 800px) {
  .balance-hero { padding-block: 23px 44px; }
  .balance-stage { margin-top: 39px; }
  .balance-card-art { height: 104px; }
  .balance-card-copy { padding-bottom: 16px; }
  .balance-support { height: 101px; }
  .balance-light { height: 38px; }
  .balance-phone { top: 6px; width: 50px; height: 88px; }
  .balance-ground { top: 94px; }
  .balance-copy { margin-top: 10px; }
  .balance-copy h1 { font-size: clamp(2.5rem, 4vw, 3.3rem); margin-bottom: 12px; }
  .balance-copy .intro { font-size: 0.9rem; }
  .balance-copy .hero-actions { margin-top: 17px; }
}
@media (max-width: 640px) {
  .balance-hero { padding-top: 23px; }
  .balance-eyebrow { font-size: 0.49rem; letter-spacing: 0.12em; gap: 7px; }
  .balance-stage { max-width: 410px; margin-top: 25px; }
  .balance-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-inline: 15px; }
  .balance-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 97px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 2px;
    padding: 13px 14px 15px 19px;
    border-radius: 13px;
  }
  .balance-card-top { grid-column: 1; font-size: 0.49rem; letter-spacing: 0.12em; }
  .balance-card-top > .icon { display: none; }
  .balance-card-art { grid-column: 2; grid-row: 1 / 3; height: 76px; margin: 0 -5px; }
  .balance-card-copy { grid-column: 1; margin-top: 7px; padding-bottom: 0; }
  .balance-card-copy h2 { font-size: 1.8rem; }
  .balance-card.tasks h2 { font-size: 1.28rem; }
  .balance-card-copy > p { margin-top: 4px; font-size: 0.7rem; }
  .balance-card-foot { display: none; }
  .balance-support { height: 119px; margin: 15px 20px 0; }
  .balance-light { height: 50px; }
  .balance-phone { top: 16px; width: 55px; height: 97px; }
  .balance-ground { top: 113px; width: 160px; left: calc(50% - 80px); }
  .beam-point { height: 16px; }
  .beam-point.sport { left: 10%; }
  .beam-point.tasks { left: 90%; }
  .balance-caption { gap: 6px; font-size: 0.6rem; }
  .balance-replay { margin-inline-start: 0; font-size: 0.62rem; }
  .balance-copy { margin-top: 18px; }
  .balance-copy h1 { font-size: clamp(2rem, 8.7vw, 3rem); margin-bottom: 14px; }
  .balance-copy .intro { font-size: 0.85rem; padding-inline: 10px; }
  .balance-copy .hero-actions { gap: 18px; margin-top: 18px; }
  .balance-copy .hero-actions .button { font-size: 0.8rem; }
  .balance-copy .hero-actions .text-link { font-size: 0.72rem; }
  .balanced-day-demo > summary { padding-inline: 20px; font-size: 0.82rem; }
  .balanced-day-content { grid-template-columns: minmax(0, 1fr); padding: 5px 15px 15px; }
  .balanced-day-copy { padding: 10px; }
  .balanced-day-copy > p:not(.eyebrow) { font-size: 0.9rem; }
}
@media (max-width: 370px) {
  .balance-cards { padding-inline: 10px; }
  .balance-card { grid-template-columns: minmax(0, 1fr) 76px; padding-left: 15px; }
  .balance-card.tasks h2 { font-size: 1.16rem; }
  .balance-card-copy > p { font-size: 0.64rem; }
  .balance-caption { column-gap: 5px; }
  .balance-replay { margin-top: -4px; }
}
@media (forced-colors: active) {
  .balance-card, .balance-beam, .balance-indicator, .balanced-day-demo {
    border: 1px solid CanvasText;
  }
  .balance-card-art { forced-color-adjust: none; }
  .balance-phone { forced-color-adjust: none; filter: none; }
  .balance-light { display: none; }
  .beam-point, .beam-point::before, .balance-ground, .balance-indicator i { background: CanvasText; }
}

.language-switch select {
  min-height: 44px;
  max-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff04;
  color: var(--text, #fff);
  font: inherit;
  cursor: pointer;
}
.language-switch select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.language-switch select option { background: var(--surface); color: var(--ink); }

/* Shared metallic logo with transparent negative space. */
.brand-logo {
  display: block;
  width: 78px;
  height: 64px;
  object-fit: contain;
}
.header-inner { padding-block: 10px; }
footer .brand-logo { width: 72px; height: 59px; }

/* Platform cards have their own space beneath the introduction and app art. */
.app-download-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 12px 44px;
  padding: clamp(24px, 4vw, 58px);
  background:
    radial-gradient(ellipse at 85% 0, #b1456712, transparent 55%),
    linear-gradient(135deg, #211c1a, #191819 70%);
  isolation: isolate;
}
.app-download-panel .install-content { padding-block: 12px; }
.app-download-panel .install-art { min-height: 255px; margin-top: 0; }
.app-download-panel .install-orbit {
  width: 205px;
  height: 205px;
  border-color: #c36a882c;
}
.app-download-panel .install-orbit.second {
  width: 280px;
  height: 280px;
  border-color: #c36a8814;
}
.app-download-panel .install-orbit::after {
  content: "";
  position: absolute;
  inset: 23px auto auto 25px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #efafc7;
  box-shadow: 0 0 12px #efafc766;
}
.install-emblem {
  position: relative;
  display: block;
  width: 140px;
  aspect-ratio: 1;
  transform: rotate(-10deg);
  filter: drop-shadow(10px 22px 24px #0006);
}
.install-emblem img {
  object-fit: contain;
  background: #2a2a2c;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #ffffff1c;
  border-radius: 30px;
}
.install-satellite {
  position: absolute;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid color-mix(in srgb, var(--satellite-color) 35%, transparent);
  border-radius: 12px;
  background: #211f21;
  color: var(--satellite-color);
  box-shadow: 0 5px 16px #0004;
}
.install-satellite .icon { width: 18px; height: 18px; }
.satellite-sport { --satellite-color: var(--sport); top: 26px; left: calc(50% - 95px); }
.satellite-nutrition { --satellite-color: var(--nutrition); top: 58px; right: calc(50% - 127px); }
.satellite-tasks { --satellite-color: var(--tasks); bottom: 33px; left: calc(50% - 106px); }
.app-download-panel .install-art-tag { bottom: -2px; color: #ecabc2; }
.app-download-panel .store-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 20px;
  margin-top: 24px;
}
.store-card {
  --store-tint: #c7cbf4;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c7cbf433;
  border-radius: 20px;
  background: linear-gradient(125deg, #282830, #1c1d23 75%);
  box-shadow: inset 0 1px #ffffff08, 0 10px 28px #0002;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.store-card-android {
  --store-tint: #97ddb4;
  border-color: #97ddb433;
  background: linear-gradient(125deg, #202c25, #19231e 75%);
}
.store-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0, transparent 85px, #ffffff08 86px 87px, transparent 88px 113px, #ffffff05 114px 115px, transparent 116px 141px, #ffffff04 142px 143px, transparent 144px);
  pointer-events: none;
}
.store-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #ffffff08 48%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  opacity: 0;
  pointer-events: none;
}
.store-card-top,
.store-card-body,
.store-card-bottom { position: relative; z-index: 1; }
.store-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 24px 0;
}
.store-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--store-tint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.store-platform .icon { width: 17px; height: 19px; flex-shrink: 0; }
.store-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff14;
  border-radius: 30px;
  padding: 5px 9px;
  color: var(--ink);
  background: #ffffff05;
  font-size: 0.65rem;
}
.store-status i {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--store-tint);
}
.store-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 24px 30px;
}
/* The iPhone card uses LooL Fit's own icon; the Android artwork is credited below. */
.store-app-icon-frame {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px #0003);
}
.store-app-texture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color-scheme: only light;
}
.store-app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #0003);
}
.store-card-ios .store-app-icon-frame {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 8px;
  border: 1px solid #c7cbf426;
  border-radius: 20px;
  background: #2a2a2c;
}
.store-card-ios .store-app-icon-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 5px);
  width: 54px;
  height: 34px;
  transform: translateX(-50%);
  background: url("assets/loolfit-sprout.svg?v=2") center / contain no-repeat;
  pointer-events: none;
}
.store-card-android .store-app-icon-frame {
  width: 90px;
  height: 90px;
}
.store-card-android .store-app-texture {
  height: auto;
  aspect-ratio: 152 / 113;
  background: url("assets/android-logo.svg") center / contain no-repeat;
}
.store-card-android .store-app-icon {
  /* These coordinates match the eye positions in android-logo.svg. */
  position: absolute;
  left: calc(100% * 32 / 152);
  top: calc(100% * 34 / 113);
  width: calc(100% * 88 / 152);
  height: auto;
}
.store-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.17;
  letter-spacing: -0.045em;
}
.store-card-body p { margin-top: 8px; color: #c0c1c5; font-size: 0.76rem; }
.store-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #00000020;
  border-top: 1px solid #ffffff0d;
}
.store-card .store-button {
  min-width: 0;
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: none;
}
.store-card .store-button > .icon { width: 25px; height: 28px; flex-shrink: 0; }
.store-card .store-button small { color: #c0c1c5; font-size: 0.51rem; letter-spacing: 0.05em; }
.store-card .store-button strong { margin-top: 2px; font-size: 1.05rem; }
.store-link-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c0c1c5;
  font-size: 0.64rem;
}
.store-link-note .icon { width: 12px; height: 12px; flex-shrink: 0; }
.app-download-panel > .availability {
  grid-column: 1 / -1;
  margin-top: 10px;
  text-align: center;
  font-size: 0.68rem;
}
footer.wrap { flex-wrap: wrap; }
footer .platform-credits {
  flex: 0 0 100%;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
footer .platform-credits p {
  max-width: 100ch;
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
footer .platform-credits a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Each decorative sequence is finite; the observer replays it on a new arrival. */
@keyframes app-emblem-float {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  35% { transform: translateY(-12px) rotate(-5deg); }
  70% { transform: translateY(-4px) rotate(-12deg); }
}
@keyframes satellite-arrive {
  0% { opacity: 0.25; translate: 0 12px; scale: 0.8; }
  45% { opacity: 1; translate: 0 -6px; scale: 1.05; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes orbit-turn { to { rotate: 360deg; } }
@keyframes store-sheen {
  0% { background-position: 150% 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { background-position: -50% 0; opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .is-in-view .install-emblem { animation: app-emblem-float 4.6s var(--ease); }
  html:not(.motion-paused) .is-in-view .install-orbit { animation: orbit-turn 4.6s var(--ease); }
  html:not(.motion-paused) .is-in-view .install-orbit.second { animation-direction: reverse; }
  html:not(.motion-paused) .is-in-view .install-satellite { animation: satellite-arrive 1.6s var(--ease) both; }
  html:not(.motion-paused) .is-in-view .satellite-nutrition { animation-delay: 120ms; }
  html:not(.motion-paused) .is-in-view .satellite-tasks { animation-delay: 240ms; }
  html:not(.motion-paused) .store-card.is-in-view::after { animation: store-sheen 1.5s ease-out 220ms; }
  html:not(.motion-paused) .store-card.is-in-view .store-app-icon-frame { animation: satellite-arrive 1.1s var(--ease); }
  html:not(.motion-paused) .store-card.is-in-view .store-status i { animation: satellite-arrive 1.8s var(--ease); }
  html:not(.motion-paused) .connection-card.is-in-view .person { animation: satellite-arrive 1.4s var(--ease) both; }
  html:not(.motion-paused) .connection-card.is-in-view .person-two { animation-delay: 100ms; }
  html:not(.motion-paused) .connection-card.is-in-view .person-three { animation-delay: 200ms; }
  html:not(.motion-paused) .connection-card.is-in-view .person-four { animation-delay: 300ms; }
  html:not(.motion-paused) .event-card.is-in-view .mini-icon .icon,
  html:not(.motion-paused) .connection-strip.is-in-view > div > .icon { animation: orbit-turn 1.6s var(--ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .store-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--store-tint) 50%, transparent);
    box-shadow: 0 16px 34px #0003;
  }
  html:not(.motion-paused) .brand:hover .brand-logo { translate: 0 -2px; }
}
@media (max-width: 900px) {
  .app-download-panel { gap: 12px 20px; }
  .store-card-top { padding: 18px 18px 0; }
  .store-card-body { padding: 24px 18px; gap: 14px; }
  .store-app-icon-frame { width: 60px; height: 60px; }
  .store-card-bottom { padding: 16px 18px; }
}
@media (max-width: 640px) {
  .brand-logo { width: 66px; height: 54px; }
  .header-inner { padding-block: 8px; }
  .header-inner .language-switch { order: 0; flex-basis: auto; margin-inline-start: auto; }
  .header-inner .header-cta { display: none; }
  .header-inner .language-switch select { min-height: 42px; }
  .app-download-panel { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .app-download-panel .install-content { padding-block: 0; }
  .app-download-panel .install-art { min-height: 225px; margin-top: 15px; }
  .app-download-panel .install-orbit { width: 180px; height: 180px; }
  .app-download-panel .install-orbit.second { width: 250px; height: 250px; }
  .install-emblem { width: 123px; }
  .install-emblem img { border-radius: 27px; }
  .satellite-nutrition { right: calc(50% - 112px); }
  .app-download-panel .store-options { grid-template-columns: minmax(0, 1fr); margin-top: 22px; gap: 16px; }
  .store-card-top { padding: 19px 18px 0; }
  .store-card h3 { font-size: 1.65rem; }
  .store-card-body { padding-block: 25px; gap: 16px; }
  .store-app-icon-frame { width: 64px; height: 64px; }
  .app-download-panel > .availability { font-size: 0.65rem; line-height: 1.7; }
}
@media (forced-colors: active) {
  .store-card, .install-satellite, .install-emblem img { border: 1px solid CanvasText; }
  .store-card::before, .store-card::after { display: none; }
  .store-app-icon-frame, .brand-logo, .install-emblem img { forced-color-adjust: none; }
  .store-status i { background: CanvasText; }
}

/* ==========================================================================
   Motion layer
   Everything below is progressive: without JavaScript, with reduced motion,
   or in a browser that lacks a feature, the page shows its finished state.
   ========================================================================== */
@property --sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
:root {
  --dir: 1;
  --spring: cubic-bezier(0.3, 1.35, 0.5, 1);
  --spring-soft: cubic-bezier(0.22, 1.2, 0.36, 1);
}
[dir="rtl"] {
  --dir: -1;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.068 3.6%, 0.239 7.1%, 0.46 10.7%, 0.689 14.3%, 0.894 17.9%, 1.055 21.4%, 1.164 25%, 1.221 28.6%, 1.233 32.1%, 1.212 35.7%, 1.169 39.3%, 1.116 42.9%, 1.063 46.4%, 1.017 50%, 0.981 53.6%, 0.958 57.1%, 0.947 60.7%, 0.946 64.3%, 0.952 67.9%, 0.963 71.4%, 0.975 75%, 0.987 78.6%, 0.998 82.1%, 1.006 85.7%, 1.01 89.3%, 1.013 92.9%, 1.012 96.4%, 1);
    --spring-soft: linear(0, 0.06 4.2%, 0.202 8.3%, 0.38 12.5%, 0.561 16.7%, 0.723 20.8%, 0.856 25%, 0.955 29.2%, 1.023 33.3%, 1.062 37.5%, 1.081 41.7%, 1.083 45.8%, 1.075 50%, 1.062 54.2%, 1.047 58.3%, 1.032 62.5%, 1.019 66.7%, 1.009 70.8%, 1.002 75%, 0.997 79.2%, 0.994 83.3%, 0.993 87.5%, 0.993 91.7%, 0.994 95.8%, 1);
  }
}

/* Scroll arrivals. The head script adds .anim only when the page can also reveal
   them, and removes it again if the page script never starts. */
html.anim:not(.motion-paused) [data-reveal]:not(.is-in):not([data-reveal] [data-reveal]) {
  opacity: 0;
}
@media print {
  html.anim [data-reveal] {
    opacity: 1 !important;
  }
}
/* Headline words are wrapped only while they arrive, then the markup is restored. */
.w {
  display: inline-block;
  /* Wrappers are direct children of the heading; keep its own colour. */
  color: inherit;
  clip-path: inset(-0.2em -0.14em -0.3em);
}
.w > span {
  display: inline-block;
}

/* ----- Live balance: app.js runs a small spring and publishes its state as
   --tilt (degrees), --sway (angular speed) and --level (1 = perfectly level). ----- */
.balance-hero {
  --tilt: 0;
  --sway: 0;
  --level: 1;
  --reach: min(6px, 0.55vw);
}
.balance-hero::before {
  inset: -3% 0 20%;
  background:
    radial-gradient(38% 48% at calc(18% + var(--tilt) * 1.4%) 32%, #f49a5019, transparent 70%),
    radial-gradient(38% 48% at calc(82% + var(--tilt) * 1.4%) 32%, #a5b6ff17, transparent 70%),
    radial-gradient(34% 44% at 50% 52%, #72d3a813, transparent 70%);
}
.balance-card {
  --lean: 0.8;
  translate: 0 calc(var(--tilt) * var(--arm) * var(--reach));
  rotate: calc((var(--tilt) * var(--lean) + var(--sway) * var(--wob)) * 1deg);
}
.balance-beam {
  rotate: calc(var(--tilt) * 1deg);
}
.balance-indicator i {
  translate: calc(var(--tilt) * 3.3px) 0;
}
.phone-projection {
  opacity: calc(0.28 + var(--level) * 0.52);
}
.phone-screen-light {
  opacity: calc(0.45 + var(--level) * 0.55);
}
.pillar-art {
  rotate: calc(var(--sway) * var(--wob) * -1.6deg);
  translate: 0 calc(max(var(--sway), var(--sway) * -1) * -5px);
}
@media (max-width: 640px) {
  /* Stacked cards lean against each other instead of riding the beam. */
  .balance-hero { --reach: 1px; }
  .balance-card.sport { --lean: -0.5; }
  .balance-card.nutrition { --lean: 0.45; }
  .balance-card.tasks { --lean: -0.4; }
}

/* ----- Opening: plain CSS, so it starts with the first paint. ----- */
@keyframes card-arrive {
  from {
    opacity: 0;
    transform: perspective(1100px) translateY(72px) rotateX(-24deg) scale(0.9);
  }
}
@keyframes beam-draw {
  from { opacity: 0; scale: 0 1; }
}
@keyframes phone-rise {
  from { opacity: 0; translate: 0 26px; scale: 0.8; }
}
@keyframes soft-in {
  from { opacity: 0; }
}
@keyframes drop-in {
  from { opacity: 0; translate: 0 -12px; }
}
@keyframes rise-in {
  from { opacity: 0; translate: 0 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .balance-eyebrow { animation: drop-in 0.7s var(--ease) both; }
  .balance-card {
    animation: card-arrive 1.15s var(--spring-soft) both;
    animation-delay: calc(120ms + var(--i) * 110ms);
  }
  .balance-beam { animation: beam-draw 0.9s var(--ease) 0.4s both; }
  .balance-phone { animation: phone-rise 0.95s var(--spring-soft) 0.6s both; }
  .balance-light { animation: soft-in 1.2s ease-out 0.95s both; }
  .balance-ground { animation: soft-in 1s ease-out 0.8s both; }
  .balance-caption { animation: rise-in 0.7s var(--ease) 1.05s both; }
}

/* ----- Pointer: cards turn toward the cursor and catch its light. ----- */
:is(.balance-card, .feature-card, .community-card, .store-card, .story-panel) {
  position: relative;
}
.spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--pillar, var(--store-tint, var(--accent))) 11%, transparent),
    transparent 62%
  );
  transition: opacity 0.45s ease;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--pillar, var(--store-tint, var(--accent))) 80%, #fff),
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.is-lit > .spot {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .balance-card {
    transform: perspective(900px) rotateX(calc(var(--ry, 0) * -4deg)) rotateY(calc(var(--rx, 0) * 5deg));
    transition: transform 0.6s var(--ease), border-color 0.25s, box-shadow 0.25s;
  }
  .balance-card.is-lit {
    transition-duration: 0.14s, 0.25s, 0.25s;
  }
  .balance-card-art {
    translate: calc(var(--rx, 0) * 7px) calc(var(--ry, 0) * 5px);
    transition: translate 0.6s var(--ease);
  }
  .balance-card.is-lit .balance-card-art {
    transition-duration: 0.14s;
  }
  :is(.feature-card, .community-card) {
    transition: border-color 0.3s, box-shadow 0.3s, translate 0.5s var(--ease);
  }
  html:not(.motion-paused) :is(.feature-card, .community-card):hover {
    translate: 0 -4px;
    box-shadow: inset 0 1px #ffffff08, 0 22px 44px #00000038;
  }
}

/* Buttons lean toward the cursor (--bx/--by come from app.js) and catch a sheen. */
.button,
.story-pill {
  translate: var(--bx, 0px) var(--by, 0px);
}
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, #ffffff66 50%, transparent 68%);
  translate: -130% 0;
  transition: translate 0.75s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .button:hover::before {
    translate: 130% 0;
  }
}

/* ----- Header settles into a denser bar once the page moves. ----- */
.site-header {
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
  background: #121213f5;
  border-bottom-color: #ffffff14;
  box-shadow: 0 12px 34px #00000059;
}
.site-header .brand-logo {
  transform-origin: 0 50%;
  transition: translate 0.3s var(--ease), scale 0.45s var(--ease);
}
[dir="rtl"] .site-header .brand-logo {
  transform-origin: 100% 50%;
}
.site-header.is-scrolled .brand-logo {
  scale: 0.86;
}

/* ----- Arrivals that play once, when their card is revealed. ----- */
@keyframes photo-open {
  from { clip-path: inset(16% 12% 16% 12% round 14px); }
  to { clip-path: inset(0 round 14px); }
}
@keyframes slide-in {
  from { opacity: 0; translate: calc(26px * var(--dir)) 0; }
}
@keyframes ring-sweep {
  from { --sweep: 0%; }
  to { --sweep: 100%; }
}
@keyframes breathe {
  0%, 100% { letter-spacing: -0.08em; }
  45% { letter-spacing: -0.035em; }
}
.macro-ring {
  --sweep: 100%;
  background: conic-gradient(
    from -45deg,
    var(--nutrition) 0% min(29%, var(--sweep)),
    var(--surface) min(29%, var(--sweep)) min(30%, var(--sweep)),
    var(--accent) min(30%, var(--sweep)) min(74%, var(--sweep)),
    var(--surface) min(74%, var(--sweep)) min(75%, var(--sweep)),
    var(--tasks) min(75%, var(--sweep)) min(99%, var(--sweep)),
    var(--surface) min(99%, var(--sweep)) var(--sweep),
    #ffffff12 var(--sweep) 100%
  );
}
.workout-overlay > :nth-child(2),
.task-board > :nth-child(3) { --n: 1; }
.workout-overlay > :nth-child(3),
.task-board > :nth-child(4) { --n: 2; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .sport-card.is-in .workout-visual {
    animation: photo-open 1.3s var(--ease) both;
  }
  html:not(.motion-paused) .sport-card.is-in .workout-overlay > * {
    animation: rise-in 0.8s var(--ease) both;
    animation-delay: calc(420ms + var(--n, 0) * 90ms);
  }
  html:not(.motion-paused) .tasks-card.is-in .task-item {
    animation: slide-in 0.8s var(--spring-soft) both;
    animation-delay: calc(260ms + var(--n, 0) * 110ms);
  }
  html:not(.motion-paused) .nutrition-card.is-in-view .macro-ring {
    animation: ring-sweep 1.5s var(--ease) both;
  }
  html:not(.motion-paused) .approach-section.is-in-view .approach-word {
    animation: breathe 4.8s ease-in-out both;
  }
}
/* A completed check draws itself. The stroke is inherited by the referenced icon. */
:is(.task-check, .activity-toggle) .icon {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.4s var(--ease), opacity 0.15s;
}
.task-item.is-complete .task-check .icon,
.activity-toggle[aria-pressed="true"] .icon {
  stroke-dashoffset: 0;
}
.approach {
  isolation: isolate;
}
.approach-word {
  z-index: -1;
  bottom: -0.2em;
  font-size: clamp(6rem, 13vw, 11rem);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px #f49a502b;
}
/* Outlining joined Arabic letters draws their overlaps; keep the quiet fill there. */
html[lang="ar"] .approach-word {
  color: #f49a500d;
  -webkit-text-stroke: 0;
}

/* ----- Scroll-linked details, where the browser can drive them itself. ----- */
@keyframes drift-y {
  from { translate: 0 -5%; }
  to { translate: 0 5%; }
}
@keyframes drift-x {
  from { translate: -6% 0; }
  to { translate: 9% 0; }
}
@keyframes word-light {
  from { opacity: 0.3; }
}
@keyframes turn-quarter {
  to { rotate: 110deg; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .workout-visual img {
      scale: 1.14;
      animation: drift-y linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    .approach-word {
      animation: drift-x linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    html:not(.motion-paused) .approach-section.is-in-view .approach-word {
      animation: drift-x linear both, breathe 4.8s ease-in-out both;
      animation-timeline: view(), auto;
      animation-range: cover, normal;
    }
    .approach-marker > .icon {
      animation: turn-quarter linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    .connection-strip > div > :is(span:not(.strip-end), i) {
      animation: word-light linear both;
      animation-timeline: view();
      animation-range: cover 6% cover 20%;
    }
    .connection-strip > div > :is(:nth-child(3), :nth-child(4)) {
      animation-range: cover 13% cover 27%;
    }
    .connection-strip > div > :nth-child(5) {
      animation-range: cover 20% cover 34%;
    }
  }
}

/* ----- FAQ answers open and close with their real height. ----- */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details {
      interpolate-size: allow-keywords;
    }
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
    }
    .faq details[open]::details-content {
      block-size: auto;
    }
    html.motion-paused .faq details::details-content {
      transition: none;
    }
  }
}

/* ----- The story: links, hero pill, and the two-circles teaser. ----- */
.story-eyes {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  margin-inline-end: 8px;
}
.story-eyes i {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2.5px solid #d9d5ce;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c0592f;
}
.story-eyes i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px;
  border-radius: 50%;
  background: #e6e3dd;
  translate: 0 1px;
  transition: translate 0.3s var(--ease);
}
a:hover > .story-eyes i::after {
  translate: calc(1.5px * var(--dir)) 0;
}
.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 22px;
  padding-block: 8px;
  padding-inline: 13px 16px;
  border: 1px solid #ffffff17;
  border-radius: 999px;
  background: #ffffff05;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.25s, border-color 0.25s, background 0.25s, translate 0.45s var(--ease);
}
.story-pill .story-eyes {
  margin: 0;
}
.story-pill .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: translate 0.3s var(--ease);
}
.story-pill:hover {
  color: var(--ink);
  border-color: #f49a5066;
  background: #f49a500d;
}
.story-pill:hover .icon {
  translate: calc(4px * var(--dir)) 0;
}
[dir="rtl"] :is(.story-pill, .story-actions) .icon:not(.story-note .icon) {
  scale: -1 1;
}
.story-teaser {
  padding-bottom: 104px;
  scroll-margin-top: 112px;
}
.story-panel {
  --pillar: #f4ca7c;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 28px clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid #3b332c;
  border-radius: 25px;
  background: #111112;
  box-shadow: inset 0 1px #ffffff08, 0 24px 60px #0000004d;
}
.story-panel::before,
.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.story-panel::before {
  background:
    radial-gradient(52% 72% at 76% 46%, #f49a5021, transparent 68%),
    radial-gradient(40% 60% at 4% 110%, #f49a5014, transparent 62%),
    radial-gradient(40% 60% at 100% -10%, #a5b6ff12, transparent 62%);
}
.story-panel::after {
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.story-copy .eyebrow {
  color: var(--accent);
}
.story-copy h2 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.story-copy > p:not(.eyebrow) {
  max-width: 30em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}
.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}
.story-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}
.story-note .icon {
  width: 16px;
  height: 16px;
  color: var(--pillar);
}
.story-art {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  padding-block: 12px;
  direction: ltr;
}
.story-mark {
  display: block;
  width: min(100%, 540px);
  height: auto;
  overflow: visible;
  fill: none;
}
.story-mark .mark-rim,
.hero-mark-lool .mark-rim {
  stroke: #c0592f;
  stroke-width: 63;
}
.story-mark .mark-metal {
  stroke: url(#mark-silver);
  stroke-width: 56;
}
.hero-mark-lool .mark-metal {
  stroke: url(#hero-silver);
  stroke-width: 56;
}
.mark-letter path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark-ring,
.mark-people circle,
.mark-pupil {
  transform-box: fill-box;
  transform-origin: center;
}
.mark-track {
  stroke: #29292b;
  stroke-width: 22;
  opacity: 0;
}
.mark-inside {
  opacity: 0;
}
.mark-ring-a .mark-inside circle {
  stroke-width: 22;
}
.mark-people circle {
  stroke: #141414;
  stroke-width: 2.5;
  scale: 0;
  transition: scale 0.55s var(--spring-soft);
}
.mark-people circle:nth-child(2) { transition-delay: 40ms; }
.mark-people circle:nth-child(3) { transition-delay: 80ms; }
.mark-people circle:nth-child(4) { transition-delay: 120ms; }
.mark-people circle:nth-child(5) { transition-delay: 160ms; }
.mark-people circle:nth-child(6) { transition-delay: 200ms; }
.mark-people circle:nth-child(7) { transition-delay: 240ms; }
.mark-people circle:nth-child(8) { transition-delay: 280ms; }
.mark-pupil-rim {
  fill: #c0592f;
}
.mark-pupil-fill {
  fill: #e6e3dd;
}
.mark-pupil {
  translate: 0 9px;
  transition: translate 0.28s var(--ease);
}
.mark-ring :is(.mark-rim, .mark-metal),
.mark-track,
.mark-inside {
  transition: stroke-width 0.7s var(--ease), opacity 0.5s ease;
}
/* Open: each O thins into the dial the story steps inside. */
.story-panel:is(:focus-within, .is-open) .mark-ring .mark-rim {
  stroke-width: 29;
  opacity: 0;
}
.story-panel:is(:focus-within, .is-open) .mark-ring .mark-metal {
  stroke-width: 22;
  opacity: 0;
}
.story-panel:is(:focus-within, .is-open) :is(.mark-track, .mark-inside) {
  opacity: 1;
}
.story-panel:is(:focus-within, .is-open) .mark-people circle {
  scale: 1;
}
@media (hover: hover) {
  .story-panel:hover .mark-ring .mark-rim {
    stroke-width: 29;
    opacity: 0;
  }
  .story-panel:hover .mark-ring .mark-metal {
    stroke-width: 22;
    opacity: 0;
  }
  .story-panel:hover :is(.mark-track, .mark-inside) {
    opacity: 1;
  }
  .story-panel:hover .mark-people circle {
    scale: 1;
  }
}
.story-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(18px, 5vw, 54px);
}
.story-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story-label i {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}
.story-label-a {
  --c: var(--sport);
}
.story-label-b {
  --c: #f4ca7c;
}
@keyframes letter-in {
  from { opacity: 0; translate: calc(var(--from) * 1px) 0; }
}
@keyframes ring-pop {
  from { opacity: 0; scale: 0.55; }
}
@keyframes blink {
  0%, 100% { scale: 1 1; }
  50% { scale: 1 0.1; }
}
.mark-letter-a { --from: 120; }
.mark-letter-b { --from: -120; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .story-panel.is-in .mark-letter {
    animation: letter-in 1s var(--spring-soft) 0.35s both;
  }
  html:not(.motion-paused) .story-panel.is-in .mark-ring {
    animation: ring-pop 0.95s var(--spring) 0.2s both;
  }
  html:not(.motion-paused) .story-panel.is-in .mark-ring-b {
    animation-delay: 0.32s;
  }
  html:not(.motion-paused) .story-panel.is-in-view .mark-pupil {
    animation: blink 0.26s ease-in-out 1.5s 2;
  }
  html:not(.motion-paused) .story-panel.is-in .story-label {
    animation: rise-in 0.7s var(--ease) 0.8s both;
  }
  html:not(.motion-paused) .story-panel.is-in .story-label-b {
    animation-delay: 0.92s;
  }
}
@media (max-width: 1150px) {
  .story-teaser { padding-bottom: 84px; }
}
@media (max-width: 900px) {
  /* The link shares the row with three others; the hero pill and menu carry it. */
  .desktop-nav .nav-story { display: none; }
}
@media (max-width: 820px) {
  .story-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 26px 34px;
    border-radius: 20px;
  }
  .story-art { order: -1; }
  .story-mark { width: min(100%, 420px); }
  .story-copy h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
}
@media (max-width: 640px) {
  .story-teaser { padding-bottom: 64px; scroll-margin-top: 96px; }
  .story-pill { margin-top: 16px; font-size: 0.74rem; }
  .story-copy > p:not(.eyebrow) { font-size: 0.94rem; }
  .story-actions .button { width: 100%; justify-content: space-between; }
}
@media (forced-colors: active) {
  .spot { display: none; }
  .story-panel, .story-pill { border: 1px solid CanvasText; }
  .story-mark, .story-eyes { forced-color-adjust: none; }
}

/* ----- Page-to-page transitions. The header logo travels between pages; arriving
   from the story, that page closes like an iris onto this one. The opt-in itself
   (@view-transition) is inline in each page's head. ----- */
.site-header .brand-logo {
  view-transition-name: brand-logo;
}
::view-transition-group(brand-logo),
::view-transition-group(lool-mark) {
  animation-duration: 0.65s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) {
  animation-duration: 0.3s;
}
::view-transition-new(root) {
  animation-duration: 0.45s;
}
@keyframes iris-close {
  from { clip-path: circle(125vmax at 50% 42%); }
  to { clip-path: circle(0 at 50% 42%); }
}
html:active-view-transition-type(from-story)::view-transition-old(root) {
  z-index: 1;
  mix-blend-mode: normal;
  animation: iris-close 0.7s cubic-bezier(0.6, 0, 0.3, 1) both;
}
html:active-view-transition-type(from-story)::view-transition-new(root) {
  mix-blend-mode: normal;
  animation: none;
}

/* ==========================================================================
   The face, the continuous balance, sound, and the story played in place
   ========================================================================== */
/* ----- The logo as a face: it leans with the beam and watches the heavy side. ----- */
.hero-mark {
  width: min(50vw, 230px);
  margin: 0 auto 20px;
  direction: ltr;
  rotate: calc(var(--tilt) * 1.5deg);
  translate: calc(var(--tilt) * 2.5px) 0;
}
.hero-mark-lool {
  display: block;
  width: 91%;
  height: auto;
  margin-left: 5%;
  overflow: visible;
  fill: none;
}
.hero-mark .mark-pupil {
  translate: calc(var(--tilt) * 7px) calc(9px + (1 - var(--level)) * 9px);
  transition: none;
}
.hero-mark-fit {
  display: block;
  aspect-ratio: 1385 / 671;
  overflow: hidden;
  transform-origin: 50% 0;
  rotate: calc(var(--sway) * 2.5deg);
}
.hero-mark-fit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
@keyframes blink-loop {
  0%, 93%, 100% { scale: 1 1; }
  96.5% { scale: 1 0.1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: drop-in 0.8s var(--spring-soft) both; }
  html:not(.motion-paused) .hero-mark .mark-pupil { animation: blink-loop 4.6s ease-in-out 2s infinite; }
}
/* The steeper tilt needs a little more headroom above the cards. */
.balance-stage {
  margin-top: 52px;
}
@media (max-width: 640px) {
  .hero-mark { width: min(44vw, 170px); margin-bottom: 14px; }
  .balance-stage { margin-top: 30px; }
}
@media (forced-colors: active) {
  .hero-mark { forced-color-adjust: none; }
}

/* ----- A second, quieter button style. ----- */
.button-ghost {
  background: #ffffff06;
  color: var(--ink);
  border-color: #6a6a6e;
}
.button-ghost:hover {
  background: #ffffff10;
  border-color: var(--accent);
  box-shadow: none;
}
.button-ghost .icon {
  color: var(--accent);
}
.button-ghost:hover .icon {
  transform: translateY(2px);
}
.hero-actions .button-ghost {
  gap: 18px;
}

/* ----- Sound toggle, always at the top right. ----- */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff04;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.sound-toggle .icon {
  width: 20px;
  height: 20px;
}
.sound-toggle:hover {
  background: var(--surface2);
}
.sound-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: #f49a5080;
}
.sound-toggle[aria-pressed="true"] .icon {
  color: var(--accent);
}
.sound-toggle[aria-pressed="true"] .spk-off,
.sound-toggle[aria-pressed="false"] .spk-on {
  display: none;
}
@keyframes sound-wait {
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Sound is on but the browser is still waiting for a first click or key press. */
  html:not(.motion-paused) .sound-toggle.is-waiting .spk-on { animation: sound-wait 1.4s ease-in-out infinite; }
}
@media (max-width: 1150px) {
  .sound-toggle { padding: 8px; }
  .sound-toggle [data-sound-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .sound-toggle { min-width: 42px; min-height: 42px; border-radius: 9px; }
}
@media (forced-colors: active) {
  .sound-toggle { border: 1px solid ButtonText; }
}

/* ----- The story, played in place. The page's own scroll drives it; when it ends
   the pinned frame lets go and the rest of the page carries on. ----- */
.story-teaser.has-player {
  padding-bottom: 0;
  /* Cancels the page's header offset: a link to the story lands on its first frame. */
  scroll-margin-top: -112px;
}
@media (max-width: 640px) {
  .story-teaser.has-player { scroll-margin-top: -100px; }
}
.story-teaser.has-player > .wrap {
  display: none;
}
.story-player {
  position: relative;
  background: #111112;
  border-block: 1px solid #262628;
}
.story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.story-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111112;
  color-scheme: dark;
  /* Scrolling and taps belong to this page; the frame only shows. */
  pointer-events: none;
}
