/* Home page (index.html, en/index.html). Shared tokens and components live in styles.css. */
/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 20px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--secondary); font-size: 14px; font-weight: 500; }
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.hero .alt-cta { margin-top: 14px; font-size: 15px; color: var(--secondary); }
.hero .alt-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero .alt-cta a:hover { text-decoration: underline; }
.beta { margin-top: 24px; padding: 16px; max-width: 520px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.beta-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.beta-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #11632922; }
.beta-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius-md); background: #111; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.15; }
.store:hover { background: #2A2A2A; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: grid; }
.store small { font-size: 12px; font-weight: 500; opacity: .75; }
.store.soon { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); }
.store.soon:hover { background: var(--raised); }
.beta .form-note { margin: 12px 0 0; }
@media (max-width: 380px) { .beta-links { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hero { padding: 32px 0 64px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Live demo: the real "log a set" flow of the app ---------- */
.demo { display: grid; justify-items: center; gap: 18px; }
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: 6% -14% 2%; border-radius: 48px; background: radial-gradient(60% 60% at 50% 40%, var(--accent-soft), transparent 70%); }
.phone { position: relative; width: 300px; max-width: 100%; border-radius: 44px; padding: 11px; background: #0D0D0D; box-shadow: 0 40px 80px -30px rgba(17,17,17,.45), 0 0 0 1px #2A2A2A inset; }
.screen { position: relative; height: 520px; border-radius: 34px; background: #fff; overflow: hidden; font-size: 12.5px; }
.statusbar { display: flex; justify-content: space-between; padding: 11px 22px 2px; font-size: 12px; font-weight: 600; }
.notch { width: 86px; height: 22px; border-radius: 999px; background: #0D0D0D; margin: -2px auto 0; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.appbar .saved { color: var(--muted); font-size: 11.5px; }
.appbar .finish { background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: 11.5px; }
.timer { padding: 0 14px 10px; }
.timer b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer span { display: block; color: var(--muted); font-size: 11.5px; }
.timer span span { display: inline; }
.ex { margin: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 11px; }
.ex-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ex-head b { font-size: 13.5px; }
.ex-head span, .ex-sub { color: var(--muted); font-size: 11px; }
.ex-sub { margin: -2px 0 8px; }
.sets { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sets th { color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-align: left; padding: 2px 4px 6px; }
.sets td { padding: 4px; transition: background-color .35s; }
.sets tr.done td, .phone[data-step="3"] .r4 td, .phone[data-step="4"] .r4 td { background: var(--accent-tint); }
.sets tr.done td:first-child, .phone[data-step="3"] .r4 td:first-child, .phone[data-step="4"] .r4 td:first-child { border-radius: 10px 0 0 10px; }
.sets tr.done td:last-child, .phone[data-step="3"] .r4 td:last-child, .phone[data-step="4"] .r4 td:last-child { border-radius: 0 10px 10px 0; }
.sets .n { width: 24px; color: var(--muted); font-weight: 600; text-align: center; }
.sets .prev { color: var(--faint); font-size: 10.5px; }
.cell { position: relative; display: inline-grid; min-width: 42px; height: 26px; place-items: center; padding: 0 6px; border-radius: 8px; background: var(--surface); font-weight: 600; }
.cell .v { grid-area: 1 / 1; transition: opacity .25s; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.done .check { background: var(--accent); border-color: var(--accent); }
.check svg { width: 14px; height: 14px; color: #fff; transition: opacity .3s; }
.r4 .check svg, .r4 .v.on { opacity: 0; }
.phone[data-step="3"] .r4 td { transition-delay: .7s; }
.phone[data-step="3"] .r4 .check, .phone[data-step="4"] .r4 .check { background: var(--accent); border-color: var(--accent); }
.phone[data-step="3"] .r4 .check { transition-delay: .7s; }
.phone[data-step="3"] .r4 .check svg, .phone[data-step="4"] .r4 .check svg,
.phone[data-step="3"] .r4 .v.on, .phone[data-step="4"] .r4 .v.on { opacity: 1; }
.phone[data-step="3"] .r4 .v.off, .phone[data-step="4"] .r4 .v.off { opacity: 0; }
.phone[data-step="3"] .r4 .check svg, .phone[data-step="3"] .r4 .v { transition-delay: .7s; }
.rest {
  position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; justify-content: space-between;
  background: var(--text); color: #fff; border-radius: var(--radius-md); padding: 10px 14px;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.phone[data-step="4"] .rest { transform: none; }
.rest b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rest span { font-size: 11px; opacity: .7; display: block; }
.rest .pill { background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; opacity: 1; }
/* The set picker sheet, as in the app */
.scrim { position: absolute; inset: 0; background: rgba(17,17,17,.36); opacity: 0; transition: opacity .3s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 16px; background: #fff;
  border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.phone[data-step="1"] .sheet { transform: none; transition-delay: .7s; }
.phone[data-step="1"] .scrim { opacity: 1; transition-delay: .7s; }
.phone[data-step="2"] .sheet { transform: none; }
.phone[data-step="2"] .scrim { opacity: 1; }
.phone[data-step="3"] .sheet { transform: translateY(105%); transition-delay: .55s; }
.phone[data-step="3"] .scrim { opacity: 0; transition-delay: .55s; }
.grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 10px; }
.sheet h4 { margin: 0; font-size: 14px; }
.sheet .hint { color: var(--muted); font-size: 11px; margin: 2px 0 10px; }
.wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wheel { position: relative; height: 96px; overflow: hidden; border-radius: 12px; }
.wheel::before { content: ""; position: absolute; left: 0; right: 0; top: 32px; height: 32px; border-radius: 10px; background: var(--raised); }
.wheel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, #fff); pointer-events: none; }
.wheel ol { position: relative; list-style: none; margin: 0; padding: 32px 0; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.wheel li { height: 32px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wheel .unit { position: absolute; right: 12px; top: 40px; font-size: 10px; color: var(--muted); font-weight: 600; z-index: 1; }
.kg ol { transform: translateY(-64px); }   /* 60 in the middle */
.phone[data-step="2"] .kg ol, .phone[data-step="3"] .kg ol, .phone[data-step="4"] .kg ol { transform: translateY(-96px); } /* 62,5 */
.phone[data-step="2"] .kg ol { transition-delay: .35s; }
.reps ol { transform: translateY(-64px); } /* 8 */
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.sheet-actions span { display: grid; place-items: center; min-height: 38px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.sheet-actions .ghost { background: var(--surface); }
.sheet-actions .primary { background: var(--accent); color: #fff; }
/* Touch indicator */
.touch { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(43,80,255,.28); border: 2px solid rgba(43,80,255,.7); opacity: 0; pointer-events: none; }
.phone[data-step="1"] .touch { left: 58%; top: 56.5%; animation: tap 1s .1s both; }
.phone[data-step="2"] .touch { left: 28%; top: 79%; animation: swipe 1.2s .1s both; }
.phone[data-step="3"] .touch { left: 66%; top: 93%; animation: tap .8s .05s both; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes swipe { 0% { opacity: 0; transform: translateY(18px); } 20% { opacity: 1; } 80% { opacity: 1; transform: translateY(-22px); } 100% { opacity: 0; transform: translateY(-26px); } }
.no-anim, .no-anim * { transition: none !important; animation: none !important; }
.pr {
  position: absolute; right: -14px; top: 16%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -20px rgba(17,17,17,.3); padding: 9px 13px; font-size: 12.5px;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s, transform .35s;
}
.pr b { display: block; font-size: 18px; color: var(--accent); }
.phone[data-step="4"] ~ .pr { opacity: 1; transform: none; transition-delay: .4s; }
@media (max-width: 420px) { .pr { right: 0; } }
/* Step captions + controls */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; max-width: 400px; }
.steps button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--secondary); font: 500 13px/1 Roboto, system-ui, sans-serif; cursor: pointer;
}
.steps button b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 11px; }
.steps button[aria-current="step"] { background: var(--text); color: #fff; }
.steps button[aria-current="step"] b { background: var(--accent); color: #fff; }
.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.demo-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 13px/1 Roboto, system-ui, sans-serif; color: var(--secondary); cursor: pointer; }
.demo-controls svg { width: 14px; height: 14px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: how; margin: 0; padding: 0; }
.how li { list-style: none; background: #fff; border-radius: var(--radius-xl); padding: 22px; }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.how h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.how p { margin: 0; color: var(--secondary); font-size: 15px; }
.how-extra { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--secondary); font-size: 15px; }
.how-extra span { display: inline-flex; gap: 8px; align-items: center; }
.how-extra svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 980px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; } }

/* ---------- Ways to train ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; display: grid; gap: 14px; align-content: start; }
.way h3 { font-size: 20px; font-weight: 600; }
.way p { margin: 0; color: var(--secondary); }
.plans { display: grid; gap: 8px; }
.plan { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-md); padding: 10px 12px; }
.plan .tag { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--accent); background: #fff; }
.plan b { display: block; font-size: 15px; }
.plan span { color: var(--muted); font-size: 13px; }
.plan .meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Progress ---------- */
.progress-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border-radius: var(--radius-md); padding: 14px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.chart-title b { font-size: 15px; }
.chart-title span { color: var(--muted); font-size: 13px; }
.chart { width: 100%; height: auto; }
.record { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--accent-soft); }
.record svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.record b { color: var(--text); }
.record span { color: var(--secondary); font-size: 14px; }

/* ---------- Data: where it lives ---------- */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.data-card { background: var(--surface); border-radius: var(--radius-xl); padding: 22px; display: grid; gap: 10px; align-content: start; }
.data-card .icon { background: #fff; }
.data-card h3 { font-size: 17px; font-weight: 600; }
.data-card p { margin: 0; color: var(--secondary); font-size: 15px; }
.data-note { margin: 20px 0 0; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); color: var(--secondary); font-size: 15px; }
.data-note b { color: var(--text); }
.data-note a { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ + closing ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { margin: 0 0 20px; color: var(--secondary); max-width: 64ch; }
.cta { padding: 96px 0; }
.cta .wrap { display: grid; justify-items: center; text-align: center; }
.cta h2 { max-width: 20ch; }
.cta .lead { margin: 16px auto 28px; }
.cta .signup, .cta .signup-done { text-align: left; width: 100%; }
