/* Fives — site styles. Hand-written, no framework, no external requests.
   Tokens are BRAND.md §3. Numbers are the hero: tabular figures everywhere. */

:root {
  --ink: #0B0B0C;
  --surface: #161618;
  --surface2: #202024;
  --line: #2A2A2E;
  --text: #F4F4F5;
  --muted: #8E8E93;
  --accent: #E5322D;
  --accent-soft: rgba(229, 50, 45, 0.18);
  --good: #34C759;

  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left));
  --maxw: 1060px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 20;
  background: var(--accent); color: #fff;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}

.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- nav */

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.mark img, .mark svg { width: 24px; height: 24px; flex: none; }
.nav nav { display: flex; gap: 18px; }
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav nav a:hover { color: var(--text); }

/* -------------------------------------------------------------- sections */

section { padding-block: clamp(52px, 9vw, 92px); }
section + section { border-top: 1px solid var(--line); }

.section-title {
  font-size: clamp(1.7rem, 5.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 32px;
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(44px, 8vw, 84px) clamp(48px, 9vw, 88px); }

.hero__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; }
}

.hero h1 {
  font-size: clamp(2.6rem, 10.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 38ch;
  margin: 0 0 12px;
}
.hero__sub b { font-weight: 600; }

.hero__kicker {
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  max-width: 40ch;
  margin: 0 0 30px;
}

.hero__note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* -------------------------------------------------------- app store badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 12px;
  border: 1px solid #55545a;
  border-radius: 12px;
  background: #000;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.badge:hover { border-color: var(--text); background: #111; }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge__lines { display: block; line-height: 1.12; }
.badge__small { display: block; font-size: 11px; letter-spacing: .04em; color: #cfcdc6; }
.badge__big { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------------------------------------------------- set circles */

.circles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.circle--full { background: var(--accent); color: #fff; }
.circle--open {
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
}
.circle--part { border: 2px solid var(--accent); color: var(--text); }
.circle--empty { border: 2px solid var(--line); }

/* ------------------------------------------------------- hero lift card */

.hero__demo {
  display: grid;
  gap: 12px;
  width: min(370px, 100%);
  margin-inline: auto;
}

.lift {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 22px;
}
.lift__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.lift__name { font-weight: 700; font-size: 1.05rem; }
.lift__scheme { color: var(--muted); font-size: 14px; }
.lift__weight {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 18px;
}
.lift__weight span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.circles--lg { gap: 8px; }
.circles--lg .circle { width: 44px; height: 44px; font-size: 17px; }

.rest {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
}
.rest__label { color: var(--muted); font-size: 14px; }
.rest__time { font-size: 1.3rem; font-weight: 700; margin-right: auto; }
.rest__btn {
  font-size: 13px;
  font-weight: 600;
  background: rgba(244, 244, 245, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* -------------------------------------------------------------- schemes */

.schemes { display: grid; gap: 12px; }
@media (min-width: 560px) { .schemes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .schemes { grid-template-columns: repeat(3, 1fr); } }

.scheme {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scheme--custom {
  background: var(--surface2);
  border-style: dashed;
  border-color: #3a3a40;
}

.scheme__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.scheme__label {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
  white-space: nowrap;
}
.scheme__note { color: var(--muted); font-size: 14.5px; margin: 0; }
.schemes-note { color: var(--muted); font-size: 14.5px; margin: 24px 0 0; max-width: 62ch; }
.schemes-note b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- points */

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 4vw, 30px);
}
@media (min-width: 780px) { .points { grid-template-columns: repeat(3, 1fr); } }

.point { border-top: 2px solid var(--accent); padding-top: 18px; }
.point h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.point p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ----------------------------------------------------------- screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
@media (min-width: 760px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    gap: 18px;
  }
}
.shot { margin: 0; scroll-snap-align: center; }
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* -------------------------------------------------------------- pricing */

.pro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 34px);
  display: grid;
  gap: 26px;
}
@media (min-width: 780px) { .pro { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }

.pro__price {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.pro__once { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.pro__line { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; }
.pro__line strong { color: var(--text); font-weight: 600; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 26px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.features b { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------------ faq */

.qas { display: grid; gap: 26px; }
@media (min-width: 820px) { .qas { grid-template-columns: repeat(2, 1fr); gap: 30px 44px; } }

.qa h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 8px;
}
.qa p { margin: 0; color: var(--muted); font-size: 15.5px; }
.qa p + p { margin-top: 9px; }
.qa a { color: var(--text); }

/* --------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 36px 52px;
  color: var(--muted);
  font-size: 14px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: baseline;
  justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot__mark { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }

/* ------------------------------------------------------------ doc pages */

.doc { padding-block: clamp(40px, 7vw, 68px) clamp(48px, 9vw, 84px); }
.doc__back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.doc__back:hover { color: var(--text); }
.doc h1 {
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.doc__meta { color: var(--muted); font-size: 14.5px; margin: 0 0 36px; }
.doc__body { max-width: 66ch; }
.doc__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.doc__body p, .doc__body li { color: var(--muted); font-size: 16px; }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body ul { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.doc__body a { color: var(--text); }

/* ------------------------------------------------------------------- 404 */

.stop {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 9vw, 88px);
}
.stop__inner { width: min(560px, 100%); }
.stop__code {
  font-size: clamp(3.4rem, 16vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}
.stop__code span { color: var(--accent); }
.stop__note { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn--primary:hover { background: #ef433e; border-color: #ef433e; }
