/* gymamo.com — black ground, white ink, yellow accent (brand/BRAND.md). Layout after the user's Hevy reference: hero with a phone, alternating picture blocks. */
@font-face { font-family: Brand; font-weight: 400; font-display: swap; src: url(/fonts/sora-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Brand; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Brand; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Sora has no Cyrillic letters: Manrope fills them in on the Russian page. */
@font-face { font-family: Brand; font-weight: 400; font-display: swap; src: url(/fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Brand; font-weight: 600; font-display: swap; src: url(/fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Brand; font-weight: 700; font-display: swap; src: url(/fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-2: #1f1f1f;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #ffd60a;
  --on-accent: #0a0a0a;
  --line-input: #6b6b6b;

  --t-xl: clamp(34px, 4.3vw, 62px);
  --t-l: clamp(26px, 2.8vw, 42px);
  --t-m: clamp(17px, 1.2vw, 19px);
  --t-s: 16px;
  --t-xs: 14px;

  --m: clamp(16px, 4vw, 56px);
  --wrap: 960px; /* 20% slimmer than the first layout */
  --r: 28px;
  --gap: clamp(96px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--t-s)/1.55 Brand, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.03em; }
p { margin: 0; }
.y { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 9; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }
main > section { width: min(var(--wrap), 100% - 2 * var(--m)); margin: var(--gap) auto 0; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 var(--t-s)/1 Brand, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: #ffe14d; color: var(--on-accent); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.field {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-input); /* taste-skill-ignore: a real form field */ font: 400 var(--t-s)/1 Brand, system-ui, sans-serif;
  transition: border-color .18s;
}
.field::placeholder { color: #8f8f8f; }
.field:hover { border-color: #8f8f8f; }
.field:focus { outline: none; border-color: var(--accent); }
.join { max-width: 540px; }
.join-row { display: flex; gap: 10px; }
.status:not(:empty) { margin-top: 12px; font-weight: 600; }
.status.ok { color: var(--accent); }
.status.err { color: #ff8a8d; }
.note { margin-top: 12px; font-size: var(--t-xs); color: var(--muted); max-width: 52ch; }

/* ---------- top bar ---------- */
.top { width: min(var(--wrap), 100% - 2 * var(--m)); margin: 0 auto; display: flex; align-items: center; gap: 32px; padding: 20px 0; }
.top .mark img { width: 150px; }
.top-links { flex: 1; display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.top-links a { text-decoration: none; color: var(--muted); }
.top-links a:hover { color: var(--ink); }

/* ---------- the phone drawn around a screen ---------- */
.device {
  --w: 320px; position: relative; width: var(--w); max-width: 100%; flex: none;
  padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .17);
  background: #1c1c1e; outline: 1.5px solid #3a3a3c; outline-offset: -1.5px;
}
.device-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .135); background: var(--bg); aspect-ratio: 390 / 884; display: flex; flex-direction: column; }
.device-screen::before { /* the island */
  content: ''; position: absolute; z-index: 2; top: calc(var(--w) * .03); left: 50%; width: 30%; height: calc(var(--w) * .085);
  transform: translateX(-50%); border-radius: 99px; background: #000;
}
.device-bar { flex: none; height: calc(var(--w) * .115); padding: 0 calc(var(--w) * .1); display: flex; align-items: center; font: 600 calc(var(--w) * .042)/1 system-ui, -apple-system, sans-serif; color: var(--ink); }
.device-media { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; background: var(--bg); }

/* ---------- hero: the live demo in a phone ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; margin-top: clamp(24px, 4vw, 56px) !important; }
.hero h1 { font-size: var(--t-xl); line-height: 1.02; }
.lead { margin-top: 24px; font-size: var(--t-m); max-width: 36ch; }
.hero .join { margin-top: 32px; }
.badge { margin-top: 20px; font-weight: 600; color: var(--muted); }
.hero-pic { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.device-hero { --w: clamp(200px, 17.5vw, 238px); } /* 30% smaller; the app inside is scaled down to fit */
.demo-note { font-size: var(--t-xs); color: var(--muted); text-align: center; max-width: 34ch; }
.demo-note a { color: var(--ink); font-weight: 600; }

/* ---------- install: one compact yellow band ---------- */
.install {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; overflow: hidden;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; border-radius: var(--r); background: var(--accent); color: var(--on-accent);
}
.install h2 { font-size: var(--t-l); line-height: 1.05; }
.inst-steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }
.inst-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.inst-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--on-accent); color: var(--accent); font-weight: 700; font-size: 15px; }
.inst-note { margin: 20px 0 clamp(32px, 4vw, 56px); max-width: 52ch; }
.homescreen { margin: 0; align-self: end; }
.hs-phone { width: 270px; height: 250px; padding: 44px 22px 0; border-radius: 44px 44px 0 0; border: 10px solid #111; border-bottom: 0; background: #2a2a2e; }
.hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.hs-app { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hs-app i { width: 46px; height: 46px; border-radius: 12px; background: #45454b; }
.hs-us img { width: 46px; height: 46px; border-radius: 12px; outline: 3px solid var(--accent); outline-offset: 2px; }
.hs-us b { font: 600 11px/1 system-ui, -apple-system, sans-serif; color: #fff; }

/* ---------- the four blocks: picture panel + text, sides alternate ---------- */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.block.flip .block-side { order: 2; }
.block-pic { height: clamp(380px, 34vw, 460px); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 48px; }
.block-pic .device { --w: clamp(220px, 19vw, 250px); }
.block-pic.two .device { --w: clamp(170px, 14vw, 200px); }
.block-pic.two .device + .device { margin-top: 56px; }
.block h2 { font-size: var(--t-l); line-height: 1.05; }
.block-txt > p { margin-top: 18px; font-size: var(--t-m); max-width: 38ch; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: var(--t-m); }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks svg { width: 26px; height: 26px; flex: none; }
.checks circle { fill: var(--accent); }
.checks path { fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- waitlist panel, questions, footer ---------- */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; overflow: hidden; padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px) 0; border-radius: var(--r); background: var(--surface); }
.cta-txt { align-self: center; padding-bottom: clamp(40px, 5vw, 72px); }
.cta h2 { font-size: var(--t-l); line-height: 1.05; }
.cta-line { margin-top: 16px; font-size: var(--t-m); max-width: 36ch; }
.cta .join { margin-top: 28px; }
.cta-open { margin-top: 20px; font-weight: 600; }
.cta-pic { height: 380px; overflow: hidden; }
.cta-pic .device { --w: 260px; }
.faq { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.faq h2 { font-size: var(--t-l); line-height: 1.05; }
.faq-text { columns: 2; column-gap: 48px; }
.faq-text p { break-inside: avoid; margin-bottom: 22px; }
.ramp { display: flex; align-items: flex-end; gap: 6px; }
.ramp i { flex: 1; height: var(--h); background: var(--accent); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.ramp-foot { height: 40px; width: min(var(--wrap), 100% - 2 * var(--m)); margin: var(--gap) auto 0; }
.foot { width: min(var(--wrap), 100% - 2 * var(--m)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; padding: 24px 0 32px; font-size: var(--t-xs); color: var(--muted); }
.foot p:nth-child(3) { text-align: right; }
.foot-small { grid-column: 1 / -1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink); text-decoration: none; }

/* ---------- privacy page and the full-screen demo page ---------- */
.doc-top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); font-weight: 600; font-size: var(--t-xs); }
.doc-top .mark img { width: 160px; }
.doc-body { max-width: 68ch; margin: 0 auto; padding: 48px var(--m) 0; }
.doc-body h1 { font-size: var(--t-l); }
.doc-body .updated { margin-top: 12px; color: var(--muted); }
.doc-body h2 { font-size: var(--t-m); margin-top: 48px; }
.doc-body p, .doc-body ul { margin-top: 12px; }
.doc-body table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: var(--t-xs); }
.doc-body th, .doc-body td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #2a2a2a; }
.doc-body th { color: var(--muted); font-weight: 600; }
.doc-body code { font-size: 0.95em; white-space: nowrap; }
@media (max-width: 600px) {
  .doc-body thead { display: none; }
  .doc-body tr { display: block; padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
  .doc-body td { display: block; padding: 2px 0; border: 0; }
  .doc-body td:first-child { font-weight: 600; }
}
.try { min-height: 100svh; display: flex; flex-direction: column; }
.try-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--m); color: var(--muted); font-size: var(--t-xs); }
.try-top .mark img { width: 140px; }
.try-stage { flex: 1; display: grid; place-items: center; padding: 0 var(--m) 24px; }
.phone { height: min(844px, calc(100svh - 110px)); aspect-ratio: 390 / 844; max-width: 100%; padding: 10px; border-radius: 52px; background: #000; outline: 2px solid #3a3a3a; outline-offset: -2px; }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 42px; background: var(--bg); }

/* ---------- motion ---------- */
.js .rise { opacity: .5; transform: translateY(20px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .ramp i { transform: scaleY(0); transition: transform .9s var(--ease) calc(var(--i) * 30ms); }
.js .ramp.in i { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .ramp i { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 960px) {
  .top-links { display: none; }
  .top { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .block, .block.flip { grid-template-columns: 1fr; gap: 28px; }
  .block.flip .block-side { order: 0; }
  .faq { grid-template-columns: 1fr; }
  .faq-text { columns: 1; }
}
@media (max-width: 640px) {
  .top .mark img { width: 120px; }
  .join-row { flex-direction: column; }
  .join-row .btn { width: 100%; }
  .device-hero { --w: 210px; }
  .install { grid-template-columns: 1fr; padding-bottom: 0; }
  .inst-steps { flex-direction: column; }
  .inst-note { margin-bottom: 8px; }
  .homescreen { justify-self: center; }
  .hs-phone { width: 250px; height: 200px; }
  .block-pic { height: 400px; padding-top: 32px; }
  .block-pic .device { --w: 230px; }
  .block-pic.two .device { --w: 160px; }
  .block-pic.two .device + .device { margin-top: 40px; }
  .cta { grid-template-columns: 1fr; padding-bottom: 0; }
  .cta-txt { padding-bottom: 0; }
  .cta-pic { height: 260px; justify-self: center; }
  .cta-pic .device { --w: 220px; }
  .foot { grid-template-columns: 1fr; gap: 8px; }
  .foot p:nth-child(3) { text-align: left; }
}

/* the live demo keeps the app's real phone width (390) and is scaled to the drawn screen */
.device-screen .device-live { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.device-live iframe { position: absolute; left: 0; top: 0; width: 390px; border: 0; transform-origin: 0 0; background: var(--bg); }

/* install band, half size (the user found it too big) */
.install { gap: 24px; padding: 24px 32px 0; align-items: center; }
.install h2 { font-size: clamp(22px, 2vw, 28px); }
.inst-steps { margin-top: 14px; gap: 8px 20px; font-size: 15px; }
.inst-steps li::before { width: 24px; height: 24px; font-size: 13px; }
.inst-note { margin: 10px 0 24px; font-size: 14px; }
.homescreen { align-self: end; }
.hs-phone { width: 180px; height: 134px; padding: 26px 14px 0; border-radius: 30px 30px 0 0; border-width: 7px; }
.hs-grid { gap: 12px 10px; }
.hs-app { gap: 4px; }
.hs-app i, .hs-us img { width: 30px; height: 30px; border-radius: 8px; }
.hs-us img { outline-width: 2px; }
.hs-us b { font-size: 9px; }
@media (max-width: 640px) {
  .install { padding: 22px 20px 0; gap: 12px; }
  .hs-phone { width: 180px; height: 128px; }
}

/* readable pictures: one phone per panel at near its real size, cropped by the panel like a photo */
.block { grid-template-columns: 1.1fr .9fr; }
.block.flip { grid-template-columns: .9fr 1.1fr; }
.block-pic { height: clamp(400px, 38vw, 500px); }
.block-pic:not(.two) .device { --w: clamp(320px, 30vw, 400px); }
.block-pic img, .block-pic video, .cta-pic img { cursor: zoom-in; }
.zoom-hint { margin-top: 10px; font-size: var(--t-xs); color: var(--muted); text-align: center; }
/* the full-size view */
.zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.zoom::backdrop { background: rgba(0, 0, 0, .85); }
.zoom-body { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.zoom-body img, .zoom-body video { height: min(92vh, 1266px); width: auto; max-width: 92vw; object-fit: contain; border-radius: 28px; background: var(--bg); }
.zoom-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 22px; cursor: pointer; }
@media (max-width: 960px) {
  .block, .block.flip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .block-pic:not(.two) .device { --w: min(330px, 86vw); }
  .block-pic { height: 420px; }
}
/* two phones: big and overlapping, each partly shown */
.block-pic.two { justify-content: flex-start; padding-left: 24px; gap: 0; }
.block-pic.two .device { --w: clamp(280px, 25vw, 330px); }
.block-pic.two .device + .device { margin-left: -140px; margin-top: 90px; }
@media (max-width: 640px) {
  .block-pic.two { padding-left: 12px; }
  .block-pic.two .device { --w: 250px; }
  .block-pic.two .device + .device { margin-left: -130px; margin-top: 70px; }
}

/* design review fixes */
.block, .block.flip { grid-template-columns: 1fr 1fr; }
.block-pic { position: relative; height: 520px; }
.block-pic:not(.two) .device { --w: clamp(360px, 32vw, 430px); }
.block-pic.two .device { --w: clamp(300px, 26vw, 340px); }
.block-pic.two .device + .device { margin-left: -90px; }
.zoom-ico { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 16px; pointer-events: none; }
.block-txt > p { color: #a8a8a8; }
.checks li { align-items: flex-start; color: var(--ink); }
.checks svg { margin-top: 2px; }
@media (min-width: 961px) { .block h2 { font-size: clamp(36px, 3.6vw, 52px); } }
@media (max-width: 960px) {
  .block, .block.flip { grid-template-columns: 1fr; }
  .block .block-txt { order: -1; }
  .block.flip .block-side { order: 0; }
}
@media (max-width: 640px) {
  main > section.block { margin-top: 72px; }
  .block, .block.flip { gap: 24px; }
  .block-pic { height: 440px; }
  .block-pic:not(.two) .device { --w: min(340px, 88vw); }
  .block-pic.two .device { --w: 240px; }
  .block-pic.two .device + .device { margin-left: -110px; margin-top: 70px; }
  .checks { font-size: 17px; }
}
.block-side, .block-txt { min-width: 0; }

/* language switch: globe + the other language's name, also on phones */
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lang:hover { color: var(--accent); }
.lang svg, .foot-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.foot-links svg { vertical-align: -3px; }
@media (max-width: 640px) {
  .top { gap: 10px; }
  .lang { padding: 8px 10px; }
  .top .btn-sm { padding: 0 14px; font-size: 14px; }
}
