/* Gym+ landing. Colours, type and the emblem come straight from the app:
   lib/theme/app_colors.dart (GymColors.dark), lib/theme/app_theme.dart and
   lib/venture/club_kit.dart (ClubPlate). Dark is the app's own identity. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+2264-2265, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+2264-2265, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* GymColors.dark */
  --page: #080a0a;
  --bg: #0d1010;
  --raised: #191d1d;
  --raised-2: #252b2a;
  --border: #343d39;
  --nav: #171c19;
  --text: #f2f3eb;
  --text-2: #afbab4;
  --text-3: #8a9790;
  --accent: #d7ff70;
  --accent-deep: #bfed47;
  --on-accent: #11160d;
  --accent-soft: rgba(215, 255, 112, .13);
  --muted: #2a332d;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Manrope", "Arial Narrow", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* AppBackground 'dots': border colour at 50%, radius 1.1, every 26 px */
  background-image: radial-gradient(circle, rgba(52, 61, 57, .5) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: 0 0;
  overflow-x: hidden;
}
:lang(ar), :lang(ja), :lang(ko), :lang(zh) { line-height: 1.7; }
/* Tracking breaks Arabic joining and does nothing for CJK. */
:lang(ar) .kicker, :lang(ar) .label, :lang(ar) .store-status,
:lang(ja) .kicker, :lang(ja) .label, :lang(ja) .store-status,
:lang(ko) .kicker, :lang(ko) .label, :lang(ko) .store-status,
:lang(zh) .kicker, :lang(zh) .label, :lang(zh) .store-status { letter-spacing: 0; font-size: 13px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 20;
  background: var(--accent); color: var(--on-accent); font-weight: 800;
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ClubLabel: 10 px, w800, letter spacing 1.15 — scaled up a notch for the web. */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .115em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.label {
  margin: 0;
  font-size: 12px; font-weight: 800; letter-spacing: .115em; text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 16, 16, .86);
  border-bottom: 1px solid rgba(52, 61, 57, .6);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top { background: rgba(13, 16, 16, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: block; flex: none; padding-block: 8px; }
.brand img { height: 30px; width: auto; }
.top nav { margin-inline-start: auto; }
.top nav ul { display: none; gap: 4px; }
@media (min-width: 820px) { .top nav ul { display: flex; } }
.top nav a {
  display: block; padding: 8px 12px; border-radius: 12px;
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 700;
}
.top nav a:hover { color: var(--text); background: var(--raised); }

/* language picker: a plain <details>, no script */
.lang { position: relative; margin-inline-start: auto; }
@media (min-width: 820px) { .lang { margin-inline-start: 0; } }
.lang summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--nav); color: var(--text); cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 800;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; flex: none; }
.lang summary::after {
  content: ""; width: 7px; height: 7px; margin-inline-start: 2px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-2px) rotate(45deg);
}
.lang[open] summary { border-color: var(--accent); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 11;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 560px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 8px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--nav); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.lang li a {
  display: block; padding: 9px 10px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lang li a:hover { background: var(--raised-2); }
.lang li a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 800; }

/* ---------- emblem: ClubPlate ---------- */
.plate { color: var(--accent); overflow: visible; }
.plate-ticks { transform-box: view-box; transform-origin: 50px 50px; }

/* Card mode: one entrance, then still. An eighth of a turn eased by 1-(1-v)^2
   (exactly cubic-bezier(1/3, 2/3, 2/3, 1)) over 2.6 s, while the cross breathes
   down to 0.84 and back (1 - .16 sin^2(pi v)). */
.plate--card .plate-ticks { animation: plate-settle 2.6s cubic-bezier(.3333, .6667, .6667, 1) both; }
.plate--card .plate-cross { animation: plate-breath 2.6s linear both; }
@keyframes plate-settle { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }
@keyframes plate-breath {
  0% { opacity: 1; } 12.5% { opacity: .977; } 25% { opacity: .92; } 37.5% { opacity: .863; }
  50% { opacity: .84; } 62.5% { opacity: .863; } 75% { opacity: .92; } 87.5% { opacity: .977; } 100% { opacity: 1; }
}

/* Backdrop mode: scenery behind reading material. Faded to .22, edge-faded by a
   radial mask (stops 0 / .58 / 1), one revolution every 90 s, and the cross
   glowing at .22 * (1 + .35 sin(9 turn)) — nine beats per turn, one every 10 s. */
.plate--backdrop {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 58%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 0, #000 58%, transparent 100%);
}
.plate--backdrop .plate-body { opacity: .22; }
.plate--backdrop .plate-ticks { animation: plate-turn 90s linear infinite; }
.plate--backdrop .plate-cross { opacity: .22; animation: plate-glow 10s ease-in-out infinite; }
@keyframes plate-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes plate-glow {
  0% { opacity: .22; } 25% { opacity: .297; } 50% { opacity: .22; } 75% { opacity: .143; } 100% { opacity: .22; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 28px 48px; overflow: hidden; }
@media (min-width: 1000px) { .hero { padding-block: 48px 72px; } }
.hero .wrap { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }

.hero-plate { width: 96px; height: 96px; margin-bottom: 26px; }

h1, h2, .display {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em; margin: 0; color: var(--text);
  overflow-wrap: anywhere;
}
:lang(ar) h1, :lang(ar) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh) h1, :lang(zh) h2,
:lang(ru) h1, :lang(ru) h2, :lang(uk) h1, :lang(uk) h2 {
  font-family: var(--sans); font-weight: 800; line-height: 1.12; letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(3.6rem, 15vw, 8.5rem); white-space: pre-line; }
:lang(ru) .hero h1, :lang(uk) .hero h1, :lang(ar) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh) .hero h1 {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
}
.hero .strap { margin-top: 18px; }
.lede { margin: 22px 0 0; max-width: 34em; font-size: 18px; color: var(--text-2); }
@media (min-width: 1000px) { .lede { font-size: 19px; } }

/* Right-hand stage: two real screens, the emblem turning behind them as scenery
   and the card emblem making its entrance in front. */
.hero-visual {
  position: relative; display: grid; place-items: center;
  min-height: 560px; isolation: isolate;
}
@media (min-width: 1000px) { .hero-visual { min-height: 700px; } }
.stage-backdrop {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 150%; max-width: 1000px; aspect-ratio: 1; height: auto;
  transform: translate(-50%, -50%);
}
.hero-visual .phone { position: absolute; }
.hero-visual .phone--front { width: min(62vw, 300px); z-index: 2; transform: translateX(18%) translateY(2%); }
.hero-visual .phone--back { width: min(52vw, 256px); z-index: 1; transform: translateX(-38%) translateY(-6%) rotate(-5deg); opacity: .96; }
[dir="rtl"] .hero-visual .phone--front { transform: translateX(-18%) translateY(2%); }
[dir="rtl"] .hero-visual .phone--back { transform: translateX(38%) translateY(-6%) rotate(5deg); }
@media (min-width: 1000px) {
  .hero-visual .phone--front { width: 316px; transform: translateX(22%) translateY(3%); }
  .hero-visual .phone--back { width: 276px; transform: translateX(-44%) translateY(-7%) rotate(-5deg); }
  [dir="rtl"] .hero-visual .phone--front { transform: translateX(-22%) translateY(3%); }
  [dir="rtl"] .hero-visual .phone--back { transform: translateX(44%) translateY(-7%) rotate(5deg); }
}
.stage-plate {
  position: absolute; z-index: 3; width: 112px; height: 112px;
  left: 50%; bottom: 4%; transform: translateX(-160%);
  padding: 12px; border-radius: 28px; background: var(--raised);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); box-sizing: content-box;
}
[dir="rtl"] .stage-plate { transform: translateX(60%); }
@media (min-width: 1000px) { .stage-plate { width: 132px; height: 132px; bottom: 6%; } }

/* ---------- store badges ----------
   Height 48 px on both (Apple minimum 40 px, Google 28 px; Google must not be
   smaller than the others). Clear space is a quarter of the height (12 px) on
   every side, kept as padding so nothing enters it. The status line sits
   outside that padding, never on the artwork. */
.stores { display: flex; flex-wrap: wrap; gap: 24px; margin: 34px 0 0; }
.store { display: flex; flex-direction: column; align-items: flex-start; }
.store-badge { display: block; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; }
.store-status {
  margin: 14px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .115em; text-transform: uppercase;
  color: var(--text-2);
}
.plan-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0;
  padding: 9px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none;
}
.plan-chip:hover { color: var(--accent); background: rgba(215, 255, 112, .2); }
.plan-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- phone frames ---------- */
.phone {
  position: relative; margin: 0; flex: none;
  width: 264px; padding: 9px;
  border-radius: 46px; background: #050606;
  border: 1px solid #2c3431;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .8);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top;
  border-radius: 37px; background: var(--bg);
}

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding-block: 64px; border-top: 1px solid rgba(52, 61, 57, .55); }
@media (min-width: 960px) { .section { padding-block: 96px; } }
.section h2 { font-size: clamp(2.5rem, 9vw, 4.5rem); max-width: 16ch; }
:lang(ru) .section h2, :lang(uk) .section h2, :lang(ar) .section h2, :lang(ja) .section h2, :lang(ko) .section h2, :lang(zh) .section h2 {
  font-size: clamp(1.9rem, 6vw, 3rem); max-width: 22ch;
}

.features { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
  position: relative; padding: 22px 22px 24px; border-radius: 22px;
  background: var(--raised);
}
.feature .num {
  display: block; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--accent);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.shots {
  display: flex; gap: 22px; margin-top: 40px;
  padding: 8px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.shots figure { flex: none; margin: 0; scroll-snap-align: center; }
.shots .phone { width: 244px; }
.shots figcaption { margin-top: 16px; text-align: center; }
@media (min-width: 1200px) { .shots { justify-content: flex-start; } }

/* ---------- price ---------- */
.price-card {
  position: relative; overflow: hidden; margin-top: 40px; max-width: 760px;
  padding: 28px 24px; border-radius: 26px; background: var(--raised);
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .price-card { padding: 40px 44px; } }
.price-card .plate { position: absolute; width: 260px; height: 260px; inset-inline-end: -80px; top: -80px; }
.price-card > * { position: relative; }
.trial { margin: 10px 0 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 12vw, 5rem); line-height: .95; color: var(--accent); }
:lang(ru) .trial, :lang(uk) .trial, :lang(ar) .trial, :lang(ja) .trial, :lang(ko) .trial, :lang(zh) .trial {
  font-family: var(--sans); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.1;
}
.price-then { margin: 12px 0 0; font-size: 18px; font-weight: 700; color: var(--text); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 0; }
.price .amount { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 12vw, 4.5rem); line-height: 1; color: var(--text); }
.price .per { font-size: 20px; font-weight: 800; color: var(--text); }
.price-once { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--text-2); }
.price-fine { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.price-fine a { font-weight: 700; }

/* ---------- footer ---------- */
.foot { padding-block: 48px 40px; border-top: 1px solid rgba(52, 61, 57, .55); background: var(--page); }
.foot .brand img { height: 26px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; }
.foot nav a { color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }
.foot .tm { margin: 28px 0 0; max-width: 60em; font-size: 13px; color: var(--text-3); }
.foot .copy { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--text-2); }

/* ---------- language gate (root fallback) ---------- */
.gate { padding-block: 40px 64px; text-align: center; }
.gate .hero-plate { margin-inline: auto; width: 128px; height: 128px; }
.gate .stacked { width: 150px; height: auto; margin: 0 auto 28px; }
.gate h1 { font-size: clamp(3rem, 12vw, 5.5rem); white-space: normal; }
.gate-list {
  display: grid; gap: 8px; max-width: 760px; margin: 36px auto 0;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.gate-list a {
  display: block; padding: 14px 16px; border-radius: 16px; background: var(--raised);
  color: var(--text); text-decoration: none; font-weight: 800; text-align: start;
}
.gate-list a:hover { background: var(--raised-2); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate--card .plate-ticks, .plate--card .plate-cross,
  .plate--backdrop .plate-ticks, .plate--backdrop .plate-cross { animation: none; }
}

/* ---------- coming soon, trainers, plans ---------- */
.intro { margin: 18px 0 0; max-width: 46em; font-size: 17px; color: var(--text-2); }
.soon {
  display: inline-block; vertical-align: middle; margin-inline-end: 6px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(215, 255, 112, .45);
  color: var(--accent); background: var(--accent-soft);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
:lang(ar) .soon, :lang(ja) .soon, :lang(ko) .soon, :lang(zh) .soon { letter-spacing: 0; font-size: 12px; }
.feature .soon { margin-bottom: 16px; }
@media (min-width: 1200px) { .features--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features--soon { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.features--soon .feature { background: transparent; border: 1px dashed var(--border); }
.section--coach { position: relative; overflow: hidden; }
.coach-backdrop { position: absolute; z-index: -1; width: 760px; height: 760px; inset-inline-end: -260px; top: -160px; }
.section--coach .wrap { position: relative; }

.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.plans .price-card { margin-top: 0; max-width: none; }
.price-card h3.label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.price-card h3.label .soon { margin: 0; }
.plan-hint { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.price-card--soon { background: transparent; border-style: dashed; }
.price-card--soon .price-then { font-size: 20px; }
.plan-includes { margin: 22px 0 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.ticks { display: grid; gap: 8px; margin: 12px 0 0; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .42em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong { font-weight: 800; }

@media (min-width: 1600px) {
  .hero h1 { font-size: 9.5rem; }
  .hero-visual { min-height: 780px; }
  .hero-visual .phone--front { width: 348px; }
  .hero-visual .phone--back { width: 300px; }
}
