/* Qelvo site. Colors follow lib/app/brand.dart. */
:root {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --ink: #24124F;
  --muted: #5B5176;
  --line: #E3DCFA;
  --violet: #6D3BFF;
  --magenta: #C13BFF;
  --pink: #FF4D8D;
  --done: #128A5F;
  --done-bg: #E3F6EE;
  --chip: #EEE8FF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140A30;
    --surface: #1E1245;
    --ink: #F3EFFF;
    --muted: #B9AEDB;
    --line: #34265F;
    --violet: #9B7BFF;
    --magenta: #D27BFF;
    --pink: #FF7AAA;
    --done: #3FD39A;
    --done-bg: #143A31;
    --chip: #2A1B5A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: var(--violet); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.375rem; }
.brand img { width: 36px; height: 36px; }
.top .sections { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.top .sections a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top .sections a:hover { color: var(--ink); }
.langs { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); }
.sections + .langs { margin-left: 8px; }
.langs a { padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--violet), var(--magenta) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { margin: 24px 0 0; max-width: 34rem; font-size: 1.1875rem; color: var(--muted); }
.stores { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; padding: 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); line-height: 1.2;
}
.store small { font-size: 0.75rem; opacity: 0.8; }
.store strong { font-size: 1.0625rem; }
.stores-note { margin: 12px 0 0; font-size: 0.9375rem; color: var(--muted); }

/* The workout card: the one moving thing on the page. */
.set-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px -30px rgba(109, 59, 255, 0.45);
}
.set-card .ex-name { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.set-card .ex-meta { margin: 4px 0 18px; color: var(--muted); font-size: 0.9375rem; }
.sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.set {
  display: grid; grid-template-columns: 1fr auto 36px; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: var(--chip);
  font-variant-numeric: tabular-nums;
}
.set .label { font-weight: 700; }
.set .values { color: var(--muted); }
.set .tick {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
}
.set .tick svg { width: 18px; height: 18px; opacity: 0; transform: scale(0.4); }
.set.done { background: var(--done-bg); }
.set.done .tick { background: var(--done); border-color: var(--done); }
.set.done .tick svg { opacity: 1; transform: scale(1); }
.rest {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--bg);
  font-variant-numeric: tabular-nums;
}
.rest b { font-size: 1.25rem; }
.suggest { margin: 14px 0 0; font-size: 0.9375rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .set, .set .tick, .set .tick svg { transition: background-color .35s ease, border-color .35s ease, opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.4); }
}

/* Sections */
section { padding-block: 64px; }
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-lead { margin: 0 0 36px; max-width: 40rem; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--violet); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--violet); margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 1.1875rem; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.plan { border-radius: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--violet); }
.plan h3 { margin: 0; font-size: 1.5rem; }
.plan .price { margin: 6px 0 18px; color: var(--muted); }
.plan .price strong { color: var(--ink); font-size: 1.25rem; }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin-bottom: 6px; }
.plan li::marker { color: var(--violet); }
.plans-note { margin: 20px 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 46rem; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.support { background: var(--surface); border-block: 1px solid var(--line); }
.support p { margin: 0; max-width: 40rem; }
.support .mail { font-size: 1.375rem; font-weight: 800; }

footer { padding-block: 40px 56px; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer p { margin: 0; }

/* Legal pages */
.legal { padding-block: 24px 72px; }
.legal article { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; text-wrap: balance; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 10px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top .sections { display: none; }
  .sections + .langs { margin-left: auto; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .set { grid-template-columns: 1fr auto 32px; padding: 10px 12px; }
  section { padding-block: 48px; }
}
