/* Traxout website. Tokens mirror the app (pilot_app/lib/theme/colors.dart)
   and the coach dashboard (gym_dashboard/src/styles.css). */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-700.woff2') format('woff2'); }
@font-face { font-family: 'SpaceGrotesk'; font-weight: 500; font-display: swap; src: url('/assets/fonts/SpaceGrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'SpaceGrotesk'; font-weight: 600; font-display: swap; src: url('/assets/fonts/SpaceGrotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'SpaceGrotesk'; font-weight: 700; font-display: swap; src: url('/assets/fonts/SpaceGrotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Heebo-400.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Heebo-500.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Heebo-700.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 800; font-display: swap; src: url('/assets/fonts/Heebo-800.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  /* Brand */
  --volt: #c6ff3a;
  --volt-deep: #9bd11f;
  --on-volt: #0b0f02;
  --violet: #7b61ff;
  --violet-light: #a996ff;

  /* Surfaces */
  --bg: #07080c;
  --card: #13161e;
  --elevated: #1a1e29;
  --highlight: #222735;

  /* Text */
  --ink: #f5f7fb;
  --ink-2: #a3aabb;
  --ink-3: #7c8396;

  /* Lines */
  --line: rgb(255 255 255 / 0.07);
  --line-strong: rgb(255 255 255 / 0.12);

  /* Semantic and muscle identity */
  --success: #2ee6a6;
  --danger: #ff4d5e;
  --gold: #ffd25e;
  --silver: #cbd5e5;
  --bronze: #e39c66;
  --m-chest: #c6ff3a;
  --m-back: #7b61ff;
  --m-legs: #38d9f5;
  --m-arms: #ff9f1c;
  --m-shoulders: #ff77b9;
  --m-core: #8a93a8;

  --font-sans: 'Inter', 'Heebo', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'SpaceGrotesk', 'Heebo', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-pop: 0 24px 60px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.06);
  --shadow-volt: 0 8px 24px -8px rgb(198 255 58 / 0.5);

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
html[data-i18n-pending] body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: 0; line-height: 1.12; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--volt); color: var(--on-volt); }

:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.text-volt { color: var(--volt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--volt); color: var(--on-volt); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--volt);
}
:lang(he) .eyebrow { letter-spacing: 0.02em; font-size: 14px; }
.eyebrow--violet { color: var(--violet-light); }

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--volt); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--volt { background: var(--volt); color: var(--on-volt); box-shadow: var(--shadow-volt); }
.btn--volt:hover { background: #d4ff66; box-shadow: 0 12px 32px -8px rgb(198 255 58 / 0.6); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgb(255 255 255 / 0.02); }
.btn--ghost:hover { border-color: rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.06); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--volt .icon { stroke-width: 2.4; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(7 8 12 / 0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgb(7 8 12 / 0.82); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__mark rect { fill: var(--card); stroke: var(--line-strong); stroke-width: 8; }
.brand__mark path { fill: none; stroke: var(--volt); stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ''; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--volt);
}
.nav__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang__btn {
  min-width: 38px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--highlight); color: var(--ink); }

.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent; cursor: pointer;
}
.menu-btn span {
  position: absolute; inset-inline-start: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; padding-block: 12px 20px; }
.mobile-menu a:not(.btn) {
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 22px; font-weight: 600; text-decoration: none;
}
.mobile-menu .btn { margin-top: 16px; }

@media (max-width: 960px) {
  .nav__links, .nav__hide-sm { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 480px) {
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 8px; }
  .nav__actions > .btn--volt { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) 40px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 420px at 72% 28%, rgb(198 255 58 / 0.10), transparent 70%),
    radial-gradient(520px 380px at 18% 8%, rgb(123 97 255 / 0.10), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(46px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em; margin-block: 22px 24px; }
:lang(he) .hero__title { font-size: clamp(44px, 7vw, 88px); line-height: 1.04; }
.hero__lead { max-width: 540px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); padding-block: 24px; }
.photo { position: relative; margin: 0; aspect-ratio: 2 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow-pop); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(7 8 12 / 0) 55%, rgb(7 8 12 / 0.85) 100%),
    linear-gradient(135deg, rgb(198 255 58 / 0.10), rgb(123 97 255 / 0.12));
  mix-blend-mode: normal;
}
.photo__corner { position: absolute; z-index: 1; width: 26px; height: 26px; border: 2px solid var(--volt); }
.photo__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.photo__corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.photo__corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.photo__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.photo__scan {
  position: absolute; z-index: 1; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--volt), transparent);
  box-shadow: 0 0 18px 2px rgb(198 255 58 / 0.45);
  opacity: .7; animation: scan 5.5s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 88%; } }

.float {
  position: absolute; z-index: 2;
  background: rgb(19 22 30 / 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
}
.float--summary { inset-inline-start: -56px; bottom: 64px; width: 248px; padding: 16px 18px; animation: bob 7s ease-in-out infinite; }
.float__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
:lang(he) .float__eyebrow { letter-spacing: 0; font-size: 12px; }
.float__title { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.float__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.float__stats b { display: block; font-size: 22px; line-height: 1.1; }
.float__stats div:nth-child(2) b { color: var(--volt); }
.float__stats span { font-size: 12px; color: var(--ink-2); }
.float--set {
  inset-inline-end: -28px; top: 64px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  animation: bob 6s ease-in-out -2s infinite;
}
.float__live { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgb(198 255 58 / 0.18); }
.float--pr {
  inset-inline-end: -12px; bottom: 8px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--violet-light);
  border-color: rgb(123 97 255 / 0.35); background: rgb(36 28 71 / 0.9);
  animation: bob 8s ease-in-out -4s infinite;
}
.float--pr .icon { width: 16px; height: 16px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.illus-note { position: relative; margin-top: 28px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(380px, 78%); margin-top: 8px; }
  .float--summary { inset-inline-start: -22%; }
  .float--set { inset-inline-end: -16%; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__visual { width: 74%; justify-self: end; margin-inline-end: 4%; }
  .float--summary { width: 210px; padding: 12px 14px; inset-inline-start: -30%; bottom: 48px; }
  .float__stats b { font-size: 19px; }
  .float--set { font-size: 12.5px; padding: 8px 12px; top: 40px; inset-inline-end: -8%; }
  .float--pr { font-size: 12px; inset-inline-end: -6%; }
}

/* ---------- Proof strip ---------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgb(19 22 30 / 0.5), rgb(19 22 30 / 0)); }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__item { padding: 32px 28px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.strip__item + .strip__item { border-inline-start: 1px solid var(--line); }
.strip__item:first-child { padding-inline-start: 0; }
.strip__k { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
@media (max-width: 820px) {
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { padding: 22px 0; }
  .strip__item + .strip__item { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { margin-top: 16px; }
.section__lead { margin-top: 20px; max-width: 580px; font-size: 18px; color: var(--ink-2); }
.section__lead a { color: var(--ink); text-underline-offset: 3px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section__head--split .section__lead { margin-top: 0; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; gap: 0; } .section__head--split .section__lead { margin-top: 20px; } }

/* ---------- Product showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.showcase__tabs { display: grid; gap: 4px; }
.tab {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  padding: 22px 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: transparent; text-align: start; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { background: rgb(255 255 255 / 0.03); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line-strong); }
.tab__num { font-size: 15px; font-weight: 600; color: var(--ink-3); padding-top: 3px; transition: color .2s; }
.tab[aria-selected="true"] .tab__num { color: var(--volt); }
.tab__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink-2); transition: color .2s; }
.tab[aria-selected="true"] .tab__title { color: var(--ink); }
.tab__text { display: block; margin-top: 6px; color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.tab[aria-selected="true"] .tab__text { color: var(--ink-2); }

.phone { justify-self: center; width: 100%; max-width: 360px; }
.phone__frame {
  position: relative; aspect-ratio: 9 / 18.5; padding: 44px 18px 22px;
  border-radius: 44px; background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 8px #0f1118, 0 0 0 9px var(--line-strong), 0 40px 80px -20px rgb(0 0 0 / 0.8), 0 0 120px -30px rgb(198 255 58 / 0.25);
  overflow: hidden;
}
.phone__notch { position: absolute; top: 12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; border-radius: 999px; background: #000; }
.phone__caption { margin-top: 28px; text-align: center; font-size: 12px; color: var(--ink-3); }

.screen { height: 100%; display: flex; flex-direction: column; gap: 12px; font-size: 13px; animation: screenIn .35s var(--ease); }
.screen[hidden] { display: none; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen__eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
:lang(he) .screen__eyebrow { letter-spacing: 0; font-size: 12px; }
.screen__title { margin-top: -8px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.screen__sub { margin-top: -6px; color: var(--ink-3); font-size: 12px; }
.screen__label { margin-top: 4px; font-weight: 600; font-size: 13px; color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; line-height: 1.1; }
.kpi small { font-size: 12px; color: var(--ink-3); margin-inline-start: 2px; font-weight: 500; }
.kpi span { font-size: 11px; color: var(--ink-3); }
.delta { display: inline-flex; gap: 6px; align-items: baseline; color: var(--ink-2); font-size: 12px; }
.delta .num { color: var(--volt); font-weight: 700; font-size: 14px; }

.ex { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ex__head, .ex--row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; }
.ex .muted { font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.sets { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.sets th { padding: 4px 0; text-align: start; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
:lang(he) .sets th { letter-spacing: 0; font-size: 11px; }
.sets td { padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.sets tr.is-live td { color: var(--volt); }

.bars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 74px 1fr 38px; align-items: center; gap: 10px; }
.bars i { height: 8px; border-radius: 999px; background: var(--highlight); position: relative; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: inherit; background: var(--c); }
.bars b { text-align: end; font-size: 13px; }
.insight { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #241c47, var(--card)); border: 1px solid rgb(123 97 255 / 0.3); }
.insight__k { font-size: 11px; font-weight: 600; color: var(--violet-light); margin-bottom: 4px; }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.chart i, .mini-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--highlight); }
.chart i.is-now, .mini-chart i.is-now { background: var(--volt); box-shadow: 0 0 24px -4px rgb(198 255 58 / 0.6); }
.records { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.records li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.records b { font-size: 16px; }
.records small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.streak { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; color: #ffb13d; background: linear-gradient(135deg, rgb(255 138 61 / 0.16), rgb(255 90 46 / 0.06)); border: 1px solid rgb(255 138 61 / 0.25); font-weight: 600; }
.streak .icon { width: 18px; height: 18px; }

.seg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 11.5px; }
.seg span { flex: 1; padding: 6px 4px; text-align: center; border-radius: 999px; color: var(--ink-3); white-space: nowrap; }
.seg .is-on { background: var(--highlight); color: var(--ink); font-weight: 600; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 24px 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.board li.is-you { border-color: rgb(123 97 255 / 0.5); background: linear-gradient(90deg, rgb(123 97 255 / 0.18), var(--card)); }
.rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: #111; }
.rank--1 { background: var(--gold); } .rank--2 { background: var(--silver); } .rank--3 { background: var(--bronze); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--highlight); color: var(--ink-2); font-size: 11px; font-weight: 700; flex: none; }
.avatar--you { background: var(--violet); color: #fff; }
.goal { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.goal__head { display: flex; justify-content: space-between; font-weight: 600; }
.goal__head b { color: var(--volt); }
.goal__bar { margin-top: 8px; height: 8px; border-radius: 999px; background: var(--highlight); overflow: hidden; }
.goal__bar i { display: block; height: 100%; width: var(--v); background: var(--volt); border-radius: inherit; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__tabs { grid-template-columns: repeat(2, 1fr); }
  .phone { grid-row: 1; max-width: 320px; }
}
@media (max-width: 560px) {
  .showcase__tabs { grid-template-columns: 1fr; }
  .tab { padding: 16px; grid-template-columns: 36px 1fr; }
  .tab__title { font-size: 19px; }
  .tab:not([aria-selected="true"]) .tab__text { display: none; }
}

/* ---------- How it works ---------- */
.how { background: var(--card); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding-block: 32px 8px; padding-inline-end: 40px; border-top: 1px solid var(--line-strong); }
.step::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 56px; height: 2px; background: var(--volt); }
.step__num { display: block; font-size: 15px; font-weight: 600; color: var(--volt); margin-bottom: 20px; }
.step h3 { font-size: 26px; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 340px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 12px; } .step { padding-inline-end: 0; } }

/* ---------- Athletes ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--line-strong); gap: 1px;
}
.cell { padding: clamp(24px, 3vw, 36px); background: var(--bg); display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.cell h3 { font-size: 21px; }
.cell p { color: var(--ink-2); font-size: 15px; }
.cell--wide { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #1c2410, var(--bg) 60%); }
.cell--wide h3 { font-size: clamp(26px, 3vw, 34px); max-width: 420px; }
.cell--wide p { max-width: 460px; font-size: 16px; }
.cell__icon { width: 28px; height: 28px; fill: none; stroke: var(--volt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; padding-bottom: 0; }
.cell:not(.cell--wide) h3 { margin-top: 28px; }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; margin-top: auto; padding-top: 32px; }
.athletes__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; grid-row: auto; }
  .cell { min-height: 0; }
  .mini-chart { height: 110px; }
  .athletes__cta .btn { width: 100%; }
}

/* ---------- Gym owners ---------- */
.gyms {
  position: relative;
  background:
    radial-gradient(700px 500px at 85% 20%, rgb(123 97 255 / 0.16), transparent 70%),
    linear-gradient(180deg, #0d0b1a, var(--bg));
  border-block: 1px solid rgb(123 97 255 / 0.18);
}
.gyms__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.gyms h2 { margin-top: 16px; }
.points { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
.points li { padding-block: 22px; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 20px; }
.points p { margin-top: 8px; color: var(--ink-2); max-width: 560px; }
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--violet-light); background: rgb(123 97 255 / 0.14); border: 1px solid rgb(123 97 255 / 0.35);
}

.tv { margin-top: 40px; padding: 18px; border-radius: var(--radius-md); background: #0b0c12; border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); }
.tv__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.tv__live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--volt); }
.tv__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tv__row { display: grid; grid-template-columns: 32px 88px 1fr 34px; gap: 12px; align-items: center; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tv__row .num { text-align: end; color: var(--ink-2); }
.tv__bar { height: 6px; border-radius: 999px; background: var(--highlight); overflow: hidden; }
.tv__bar i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--violet), var(--violet-light)); border-radius: inherit; }
[dir="rtl"] .tv__bar i { background: linear-gradient(270deg, var(--violet), var(--violet-light)); }
.tv__caption { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.lead-card {
  position: sticky; top: 96px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop);
}
.lead-card__title { font-size: 26px; }
.lead-card__sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.lead-card__alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lead-card__alt a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 920px) {
  .gyms__grid { grid-template-columns: 1fr; }
  .lead-card { position: static; }
}
@media (max-width: 420px) { .tv__row { grid-template-columns: 32px 1fr 1fr 34px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .signup__form input[type="email"] {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover, .signup__form input[type="email"]:hover { border-color: rgb(255 255 255 / 0.22); }
.field input:focus, .field textarea:focus, .signup__form input[type="email"]:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgb(198 255 58 / 0.18); }
.field input[aria-invalid="true"], .signup__form input[type="email"][aria-invalid="true"] { border-color: var(--danger); }
.field__err { min-height: 0; font-size: 13px; color: var(--danger); }
.field__err:empty { display: none; }
.form__status { min-height: 22px; font-size: 14px; color: var(--ink-2); }
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__status a { color: inherit; }
input::placeholder { color: var(--ink-3); }
[dir="rtl"] .signup__form input[type="email"]::placeholder { text-align: right; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section__head { position: sticky; top: 104px; margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-inline-end: 4px;
  border-inline-end: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease), border-color .2s;
}
.qa[open] summary::after { transform: rotate(225deg); border-color: var(--volt); }
.qa summary:hover { color: #fff; }
.qa p { padding-bottom: 22px; padding-inline-end: 40px; color: var(--ink-2); max-width: 640px; }
.qa a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq .section__head { position: static; margin-bottom: 32px; } .qa p { padding-inline-end: 0; } }

/* ---------- Final ---------- */
.final { position: relative; padding-block: var(--section-y); overflow: hidden; border-top: 1px solid var(--line); }
.final__pulse { position: absolute; inset-inline: 0; top: 50%; width: 100%; height: 200px; transform: translateY(-50%); opacity: .14; pointer-events: none; }
.final__pulse path { fill: none; stroke: var(--volt); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 0; }
.final__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.final__title { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.final__forms { display: grid; gap: 14px; }
.signup { padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-strong); }
.signup__k { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
:lang(he) .signup__k { letter-spacing: 0; font-size: 14px; }
.signup__form { display: flex; gap: 10px; margin-top: 14px; }
.signup__form input[type="email"] { flex: 1; min-width: 0; }
.signup__form .btn { flex: none; min-height: 48px; }
.signup .form__status { margin-top: 10px; }
.signup__fine { font-size: 13px; color: var(--ink-3); }
.signup__fine a { color: var(--ink-2); text-underline-offset: 3px; }
.gymlink {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 28px; border-radius: var(--radius-lg); text-decoration: none;
  background: linear-gradient(135deg, #241c47, var(--card)); border: 1px solid rgb(123 97 255 / 0.3);
  transition: border-color .2s, transform .2s var(--ease);
}
.gymlink:hover { border-color: rgb(169 150 255 / 0.6); transform: translateY(-2px); }
.gymlink .signup__k { color: var(--violet-light); }
.gymlink__t { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.gymlink .icon { width: 24px; height: 24px; color: var(--violet-light); }
@media (max-width: 920px) { .final__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .signup { padding: 22px; }
  .signup__form { flex-direction: column; }
  .gymlink { padding: 20px 22px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: #05060a; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .muted { margin-top: 14px; font-size: 14px; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer__col a { color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--ink); }
.footer__k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
:lang(he) .footer__k { letter-spacing: 0; font-size: 13px; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .photo__scan { display: none; }
}
