@font-face { font-family: Archivo; font-weight: 500; font-display: swap; src: url(/fonts/Archivo_500Medium.ttf) format("truetype"); }
@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url(/fonts/Archivo_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(/fonts/Archivo_700Bold.ttf) format("truetype"); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/fonts/Archivo_800ExtraBold.ttf) format("truetype"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/IBMPlexMono_500Medium.ttf) format("truetype"); }

:root {
  --bg: #17171a; --bg-2: #1c1c20; --fg: #ececee; --dim: #9a9aa2; --surface: #232228; --surface-2: #2c2b32;
  --line: rgba(255, 255, 255, 0.08); --accent: #fb7a2e; --accent-2: #d9642a; --sun: #ffd166; --ok: #4ade80;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 500 17px/1.6 Archivo, system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; }

/* --- top bar --------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(23, 23, 26, 0.72); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; }
.mark .arc { transform-origin: 24px 24px; animation: mark-in 1.4s var(--ease) both; }
@keyframes mark-in { from { transform: rotate(-200deg); } to { transform: rotate(0); } }
.brand:hover .mark .arc { animation: mark-spin .9s var(--ease); }
@keyframes mark-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
nav.links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
nav.links a { color: var(--dim); text-decoration: none; transition: color .2s; }
nav.links a:hover { color: var(--fg); }
nav.links .lang { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--fg); }
@media (max-width: 720px) { nav.links .opt { display: none; } }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -200px -30% auto; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251, 122, 46, 0.22), transparent 70%) 70% 30% / 900px 700px no-repeat;
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: translateX(-4%) scale(1); } to { transform: translateX(4%) scale(1.08); } }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(251,122,46,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(251,122,46,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(251,122,46,0); } }
h1 { font-weight: 800; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; }
h1 .accent { color: var(--accent); display: inline-block; }
.lead { color: var(--dim); font-size: clamp(18px, 2.2vw, 21px); max-width: 32em; margin: 0 0 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: 15px; line-height: 1.2;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* phone frame */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 720 / 1472; border-radius: 42px; padding: 10px;
  background: linear-gradient(145deg, #3a3940, #1d1d21); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: var(--bg); }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }

.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.hero-stage .phone { --r: 3deg; }
.hero-stage { justify-content: flex-end; padding-right: 10px; }
.hero-stage .phone { max-width: 270px; }
.hero-stage .buddy-slot { position: absolute; left: -70px; bottom: 6px; z-index: 3; transform: scale(1.3); transform-origin: left bottom; }
@media (max-width: 900px) {
  .hero-stage { min-height: 0; padding-bottom: 150px; justify-content: center; padding-right: 0; }
  .hero-stage .phone { margin-left: 0; max-width: 250px; }
  .hero-stage .buddy-slot { left: 50%; bottom: 0; transform: translateX(-50%) scale(1.2); transform-origin: center bottom; }
}

/* --- the dumbbell buddy --------------------------------------------------- */
.buddy { position: relative; width: 240px; height: 150px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.buddy:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 20px; }
.buddy svg.body { position: absolute; left: 35px; bottom: 32px; width: 170px; height: 70px; overflow: visible; transform-origin: 50% 70%; animation: breathe 3.6s ease-in-out infinite; }
.buddy .shadow { position: absolute; left: 42px; bottom: 18px; width: 156px; height: 14px; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(2px); animation: shadow 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3px) scale(.985, 1.035); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.95); opacity: .7; } }
.buddy .face { display: none; }
.buddy[data-mood="asleep"] .face.asleep, .buddy[data-mood="awake"] .face.awake, .buddy[data-mood="pumped"] .face.pumped { display: inline; }
.buddy .z { position: absolute; top: 20px; font-weight: 800; color: var(--dim); opacity: 0; animation: zee 2.4s ease-out infinite; pointer-events: none; }
.buddy .z:nth-of-type(1) { left: 56px; font-size: 17px; }
.buddy .z:nth-of-type(2) { left: 72px; font-size: 22px; animation-delay: .8s; }
.buddy .z:nth-of-type(3) { left: 90px; font-size: 28px; animation-delay: 1.6s; }
.buddy:not([data-mood="asleep"]) .z { display: none; }
@keyframes zee { 0% { opacity: 0; transform: translate(0, 0) rotate(-12deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -52px) rotate(8deg); } }
.buddy[data-mood="awake"] svg.body { animation: hop .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-26px); } 100% { transform: translateY(0); } }
.buddy[data-mood="pumped"] svg.body { animation: pump 1.2s var(--ease) both; }
@keyframes pump {
  0% { transform: translateY(0) rotate(0) scale(1); }
  30% { transform: translateY(-52px) rotate(180deg) scale(1); }
  60% { transform: translateY(0) rotate(360deg) scale(1.14, 1.2); }
  80% { transform: translateY(0) rotate(360deg) scale(1.06, 1.1); }
  100% { transform: translateY(0) rotate(360deg) scale(1.04, 1.06); }
}
.buddy .spark { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; }
.buddy .spark.sun { background: var(--sun); width: 7px; height: 7px; margin: -3.5px; }
.buddy.burst .spark { animation: spark .8s var(--ease) .55s both; }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(1.2); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5); } }
.bubble {
  position: absolute; left: 150px; top: -34px; max-width: 220px; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--fg); color: #17171a; font-weight: 700; font-size: 14px; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transform-origin: 0 100%; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both;
}
.bubble.again { animation: none; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }
.buddy-hint { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* --- stats ----------------------------------------------------------------- */
.stats { padding: 40px 0 10px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border-radius: 24px; padding: 22px; }
.stat b { display: block; font-family: "Plex Mono", monospace; font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.stat span { color: var(--dim); font-size: 15px; }

/* --- feature rows ------------------------------------------------------------ */
section.block { padding: 90px 0; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.block p.sub { color: var(--dim); font-size: 19px; max-width: 34em; margin: 0 0 24px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.flip .copy { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature.flip .copy { order: 0; } }
.shots { position: relative; display: flex; justify-content: center; gap: 0; }
.shots .phone { max-width: 290px; }
.shots.duo .phone:nth-child(1) { --r: -4deg; margin-right: -60px; margin-top: 50px; z-index: 1; }
.shots.duo .phone:nth-child(2) { --r: 4deg; z-index: 2; }
@media (max-width: 520px) { .shots.duo .phone { max-width: 210px; } .shots.duo .phone:nth-child(1) { margin-right: -70px; } }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.ticks li { display: flex; gap: 12px; color: #cfcfd4; }
ul.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(251,122,46,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fb7a2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --- gallery ------------------------------------------------------------------ */
.gallery { padding: 70px 0 90px; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 22px 40px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: none; width: 240px; scroll-snap-align: center; transition: transform .5s var(--ease); }
.rail figure:hover { transform: translateY(-8px); }
.rail .phone { max-width: none; }
.rail figcaption { color: var(--dim); text-align: center; margin-top: 14px; font-weight: 600; font-size: 15px; }
@media (min-width: 1200px) { .rail { justify-content: center; } }

/* --- cards ----------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(251,122,46,.35); }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(251,122,46,.14); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }

/* --- offline demo ----------------------------------------------------------- */
.offline { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .offline { grid-template-columns: 1fr; } }
.sync { background: var(--surface); border-radius: 28px; padding: 26px; display: grid; gap: 12px; }
.sync .row { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 16px; padding: 14px 16px; font-family: "Plex Mono", monospace; }
.sync .row .st { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: queued 6s infinite; }
.sync .row:nth-child(2) .st { animation-delay: .25s; } .sync .row:nth-child(3) .st { animation-delay: .5s; }
@keyframes queued { 0%, 45% { background: var(--accent); box-shadow: 0 0 0 0 rgba(251,122,46,.5); } 50% { box-shadow: 0 0 0 8px rgba(251,122,46,0); } 55%, 100% { background: var(--ok); } }
.sync .signal { display: flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 600; font-size: 14px; }
.sync .signal i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: signal 6s infinite; }
@keyframes signal { 0%, 48% { background: #ef4444; } 52%, 100% { background: var(--ok); } }
.sync .signal .on { display: none; } .sync .signal .off { animation: show-off 6s infinite; } .sync .signal .on { animation: show-on 6s infinite; display: inline; }
@keyframes show-off { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; position: absolute; } }
@keyframes show-on { 0%, 48% { opacity: 0; position: absolute; } 52%, 100% { opacity: 1; position: static; } }

/* --- rest day --------------------------------------------------------------- */
.rest { text-align: center; }
.rest .buddy { margin: 90px auto 60px; transform: scale(1.7); }
@media (max-width: 560px) { .rest .buddy { transform: scale(1.35); margin: 70px auto 40px; } }
.rest p.sub { margin-left: auto; margin-right: auto; }

/* --- privacy promise ------------------------------------------------------------ */
.promise { background: linear-gradient(160deg, rgba(251,122,46,.12), rgba(251,122,46,0) 60%), var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.promise .cards { margin-top: 26px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .promise .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promise .cards { grid-template-columns: 1fr; } }
.promise .card { background: rgba(0,0,0,.18); }

/* --- faq -------------------------------------------------------------------- */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 500; font-size: 26px; color: var(--accent); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--dim); margin: 0 0 22px; }

/* --- final ---------------------------------------------------------------- */
.final { text-align: center; padding: 100px 0 120px; }
.final .stores { justify-content: center; margin-top: 26px; }
.final .buddy { margin: 0 auto 26px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .3s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(251,122,46,.7); }
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }

/* --- doc pages ----------------------------------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 22px 60px; }
.doc h1 { font-size: clamp(34px, 7vw, 48px); }
.doc h2 { font-size: 22px; font-weight: 700; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #cfcfd4; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--fg); font-weight: 700; }
.meta { color: var(--dim); font-size: 15px; }
mark.todo { background: #7c2d12; color: #ffd8c2; padding: 0 4px; border-radius: 4px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--dim); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- scroll reveal ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .buddy .z { display: none; }
}
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #cfcfd4; }
.doc th { color: var(--fg); font-weight: 700; }
.price-table { overflow-x: auto; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.price-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.price-table th, .price-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { color: var(--dim); font-weight: 600; font-size: 14px; }
.price-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.price-rules { margin: 20px 0 0; padding-left: 1.2em; color: var(--dim); display: grid; gap: 8px; max-width: 760px; }
.price-rules strong { color: var(--fg); }
