/*
  Цвета страницы /app. Меняйте только этот блок.

  Тёмная тема кабинета (web/src/index.css, .dark):
    canvas #0c121b, surface #141c28, ink #e7e5e4, muted #b7b3ae,
    line #2a3548, primary #7c9cff, primary-ink #06101e, positive #34d399.

  Светлая тема кабинета:
    canvas #f5f6f8, surface #ffffff, ink #1c1917, muted #57534e,
    line #e4e4e7, primary #2563eb, primary-ink #ffffff, positive #059669.

  Hex из брифа, если нужна более контрастная витрина:
    фон #0A0E17 / #0F172A, акцент #10B981, золото #D4AF37.
  --gold объявлен и в правилах ниже не используется.
*/

:root {
  --bg: #0c121b;
  --surface: #141c28;
  --ink: #e7e5e4;
  --muted: #b7b3ae;
  --line: #2a3548;
  --accent: #10b981;
  --accent-ink: #06281c;
  --cta: #7c9cff;
  --cta-ink: #06101e;
  --gold: #d4af37;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 42% at 100% -8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    radial-gradient(ellipse 46% 36% at 0% 12%, color-mix(in srgb, var(--cta) 16%, transparent), transparent 52%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mark {
  display: grid;
  width: 42px;
  height: 32px;
  place-items: center;
  color: var(--cta-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background:
    radial-gradient(circle at 0 50%, transparent 5px, var(--cta) 5.5px) left center / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 5px, var(--cta) 5.5px) right center / 51% 100% no-repeat;
}

.bar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  order: 3;
}

.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.bar-nav a:hover {
  color: var(--ink);
}

.bar-cta {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 240ms cubic-bezier(0.4, 0, 0.2, 1), border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, white 14%, var(--cta));
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-quiet:hover {
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  border-color: color-mix(in srgb, var(--cta) 55%, var(--line));
}

.btn-build {
  flex-direction: column;
  gap: 1px;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

a.btn.btn-build {
  min-height: 48px;
}

.btn-build small {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.78;
}

.btn-build:hover {
  background: color-mix(in srgb, white 12%, var(--accent));
}

.hero {
  padding: 8px 0 8px;
}

.reel {
  height: calc(5 * 100vh);
}

.reel-sticky {
  position: sticky;
  top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 8px;
  height: calc(100dvh - 80px);
  min-height: 0;
  overflow: hidden;
}

.reel-left {
  width: min(100%, 40rem);
  min-width: 0;
  justify-self: start;
}

.reel-sticky > .stage {
  justify-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.reel-copy {
  --kick-fs: 14px;
  --kick-lh: 1.25;
  --kick-mb: 6px;
  --title-fs: 1.35rem;
  --title-lh: 1.15;
  --title-lines: 2;
  --lede-fs: 0.95rem;
  --lede-lh: 1.45;
  --lede-lines: 2;
  --lede-mt: 6px;
  --title-mt: 18px;
  position: relative;
  width: 100%;
  height: calc(
    var(--title-mt) +
    var(--title-lines) * var(--title-fs) * var(--title-lh) + var(--lede-mt) +
    var(--lede-lines) * var(--lede-fs) * var(--lede-lh) + 2px
  );
}

.reel-panel,
.reel-panel.is-on,
.reel-panel:not(.is-on) {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  opacity: 0;
}

.reel-panel.is-on {
  opacity: 1;
  transform: none;
}

.reel-panel:not(.is-on) {
  visibility: hidden;
}

.reel-panel[hidden] {
  display: none;
}

.reel-panel .kicker {
  flex: 0 0 auto;
  margin: 0 0 var(--kick-mb);
  font-size: var(--kick-fs);
  line-height: var(--kick-lh);
}

.reel-panel h1,
.reel-panel h2 {
  flex: 0 0 auto;
  max-width: 100%;
  margin: var(--title-mt) 0 0;
  font-size: var(--title-fs);
  line-height: var(--title-lh);
}

.reel-panel .lede {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  margin: var(--lede-mt) 0 0;
  overflow: visible;
  font-size: var(--lede-fs);
  line-height: var(--lede-lh);
  -webkit-line-clamp: unset;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.actions > .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.lede {
  max-width: 42rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.proof li {
  padding: 16px 18px;
}

.proof li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.proof li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.num {
  display: block;
  color: var(--cta);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.num.quiet {
  color: var(--ink);
  font-size: 1.2rem;
  max-width: 12ch;
}

.lbl {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 36px 0;
  scroll-margin-top: 120px;
}

.section h2 {
  max-width: 20ch;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section-lead {
  max-width: 42rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.bento {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 22px;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.idx {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.scheme {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 72%, var(--surface));
  border: 1px solid var(--line);
}

.scheme img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.scheme-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.month span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.month .coupon {
  background: var(--accent);
}

.month .amort {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.month .offer {
  border-radius: 3px;
  background: var(--cta);
}

.month .mature {
  background: var(--ink);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.swatch.amort {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.swatch.offer {
  border-radius: 2px;
  background: var(--cta);
}

.swatch.mature {
  background: var(--ink);
}

.year {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 72px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.year li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.year i {
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 4px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--accent) 35%, var(--line));
  font-style: normal;
}

.year .m i {
  height: 32px;
}

.year .l i {
  height: 52px;
  background: var(--accent);
}

.pf {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.bars {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  font-style: normal;
}

.bars i:nth-child(1) {
  width: 78%;
}

.bars i:nth-child(2) {
  width: 52%;
  background: var(--cta);
}

.bars i:nth-child(3) {
  width: 30%;
  background: color-mix(in srgb, var(--ink) 55%, var(--line));
}

.scheme-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modes li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.modes + .scheme-label {
  margin-top: 16px;
}

.glyphs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  color: var(--accent);
}

.glyphs svg {
  display: block;
  width: 100%;
  height: 48px;
}

.chart-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chart-names li {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
  color: var(--ink);
  font-size: 13px;
}

.chart-board {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chart-tile {
  margin: 0;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.chart-tile svg {
  display: block;
  width: 100%;
  height: 88px;
}

.chart-tile figcaption {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.paywall .kicker {
  color: var(--cta);
}

.paywall .ticks li::before {
  background: var(--cta);
}

.pay-features {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pay-features li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.pay-features b,
.pay-features span {
  display: block;
}

.pay-features b {
  font-weight: 600;
  font-size: 14px;
}

.pay-features span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.plan-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.plan-plate {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.plan-plate b {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.plan-on {
  border-color: var(--cta);
  background: color-mix(in srgb, var(--cta) 16%, var(--surface));
}

.trust {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.em-line {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.help-side {
  display: grid;
  gap: 16px;
}

.analytics p + p {
  margin-top: 10px;
}

.analytics .chart-names {
  margin-top: 16px;
}

.plan-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.help-grid article h3,
.plan-grid article h3 {
  font-size: 1.15rem;
}

.ticks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 18px;
  color: var(--ink);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.plan-prem .ticks li::before {
  background: var(--cta);
}

.price {
  margin-top: 16px;
  color: var(--ink);
  font-size: 15px;
}

.faq {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  max-width: 46rem;
  color: var(--muted);
}

.end {
  padding-top: 8px;
  padding-bottom: 8px;
}

.section.end {
  padding-top: 8px;
  padding-bottom: 8px;
}

.end-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--surface);
}

.end-card h2 {
  max-width: 18ch;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer .brand {
  color: var(--ink);
}

.footer p {
  margin: 8px 0 0;
}

.footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.disclaimer {
  max-width: 46rem;
  margin: 22px 0 0;
}

.hold-name small {
  color: var(--muted);
  font-size: calc(13 * var(--pt));
}

.horizon {
  margin: calc(8 * var(--pt)) 0 0;
  padding: 0;
  list-style: none;
}

.horizon li {
  display: grid;
  grid-template-columns: calc(72 * var(--pt)) minmax(0, 1fr) auto auto;
  gap: calc(8 * var(--pt));
  align-items: center;
  margin-top: calc(8 * var(--pt));
  color: var(--ink);
  font-size: calc(15 * var(--pt));
}

.horizon small {
  min-width: calc(52 * var(--pt));
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  text-align: right;
}

.horizon i {
  display: block;
  height: calc(6 * var(--pt));
  border-radius: 999px;
  background: var(--cta);
}

.horizon .h28 { width: 28%; opacity: 0.55; }
.horizon .h47 { width: 47%; }
.horizon .h25 { width: 25%; opacity: 0.4; }

.screen-kicker-2 { margin: calc(4 * var(--pt)) 0 0; }

.books {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pt));
  margin: 0;
  padding: 0;
  list-style: none;
}

.books li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: calc(6 * var(--pt));
  flex: none;
  min-height: 0;
  margin-top: 0;
  padding: calc(12 * var(--pt));
  border: 1px solid var(--line);
  border-radius: calc(12 * var(--pt));
  color: var(--ink);
  font-size: calc(16 * var(--pt));
}

.books li > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(2 * var(--pt));
  min-width: 0;
}

.books small {
  display: block;
}

.books .track {
  grid-column: 1 / -1;
  display: block;
  height: calc(5 * var(--pt));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}

.books .track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cta);
}

.books .full { width: 100%; }
.books .p52 { width: 51.6%; }
.books .p34 { width: 33.9%; background: color-mix(in srgb, var(--cta) 70%, white); }
.books .p14 { width: 14.5%; background: color-mix(in srgb, var(--ink) 45%, var(--line)); }

.books .book-main {
  border-color: color-mix(in srgb, var(--cta) 55%, var(--line));
  background: color-mix(in srgb, var(--cta) 16%, transparent);
}

.phone-wrap.is-kept {
  display: none;
}

.pixel-stage {
  container-type: size;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.pixel-shot {
  width: min(100cqw, calc((100cqh - 16px) * 1187 / 2513));
  height: auto;
  max-height: 100%;
  filter: drop-shadow(0 22px 36px rgb(0 0 0 / 42%));
}

.pixel-shot[hidden] {
  display: none;
}

.phone-wrap {
  container-type: size;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.phone {
  position: relative;
  /* Кадр Screeny: 1350×2760, стекло 1206×2622 со сдвигом 72×69.
     1pt iPhone 17 Pro = 1/402 ширины стекла = 0.2222% ширины кадра. */
  container-type: inline-size;
  container-name: handset;
  --pt: 0.22222cqw;
  width: min(100cqw, calc((100cqh - 16px) * 1350 / 2760));
  aspect-ratio: 1350 / 2760;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 22px 36px rgb(0 0 0 / 42%));
}

.phone-glass {
  position: absolute;
  left: 5.333333%;
  top: 2.5%;
  width: 89.333333%;
  height: 95%;
  display: flex;
  flex-direction: column;
  /* Под статус-баром и вплотную к бокам. Снизу только зона home indicator:
     её заливает фон экрана, подписи не уходят в скругление. */
  padding: calc(59 * var(--pt)) 0 calc(20 * var(--pt));
  --app-bg: #121212;
  border-radius: calc(55 * var(--pt));
  background: #0c121b;
  overflow: hidden;
  z-index: 1;
}

.phone-bezel {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.status {
  position: absolute;
  z-index: 2;
  top: calc(21.5 * var(--pt));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(22 * var(--pt));
  padding: 0 calc(27 * var(--pt)) 0 calc(29 * var(--pt));
  color: #f5f5f7;
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.status-time {
  font-variant-numeric: tabular-nums;
}

.status-right {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  height: calc(13 * var(--pt));
}

.status-cell,
.status-wifi,
.status-bat {
  display: block;
  height: calc(12 * var(--pt));
  width: auto;
}

.status-bat {
  height: calc(13 * var(--pt));
}

.phone-deck {
  position: relative;
  flex: 1;
  min-height: 0;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pt));
  overflow: hidden;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.phone-screen.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.phone-screen[hidden] {
  display: none;
}

.phone-screen img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.screen-kicker {
  margin: 0;
  color: var(--accent);
  font-size: calc(13 * var(--pt));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.screen-title {
  margin: calc(2 * var(--pt)) 0 calc(10 * var(--pt));
  color: var(--ink);
  font-size: calc(28 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.screen-foot {
  margin: calc(12 * var(--pt)) 0 0;
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  line-height: 1.3;
}

.screen-sum {
  margin: 0 0 calc(8 * var(--pt));
  color: var(--ink);
  font-size: calc(28 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.screen-sum span {
  display: block;
  margin-top: calc(2 * var(--pt));
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  font-weight: 500;
  letter-spacing: 0;
}

.screen-chart {
  display: block;
  width: 100%;
  height: calc(148 * var(--pt));
  margin-top: calc(4 * var(--pt));
}

.screen-list li,
.screen-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.holdings {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holdings li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: calc(8 * var(--pt));
  align-items: center;
  padding: calc(11 * var(--pt)) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: calc(15 * var(--pt));
}

.hold-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}

.hold-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.hold-track .w46 { width: 46%; }
.hold-track .w33 { width: 33%; background: var(--cta); }
.hold-track .w21 { width: 21%; background: color-mix(in srgb, var(--ink) 55%, var(--line)); }

.screen-list,
.screen-stats {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.screen-list li,
.screen-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.screen-list b,
.screen-stats b,
.holdings b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: calc(3 * var(--pt));
  margin: 0;
}

.cal span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: calc(5 * var(--pt));
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
  font-size: calc(10 * var(--pt));
  font-weight: 600;
  line-height: 1;
}

.cal .wd {
  aspect-ratio: auto;
  height: calc(18 * var(--pt));
  background: transparent;
  color: var(--ink);
  font-size: calc(13 * var(--pt));
  font-weight: 650;
}

.cal .pad {
  background: transparent;
}

.cal .coupon,
.cal .amort,
.cal .offer,
.cal .mature {
  color: #06101e;
}

.cal .coupon { background: var(--accent); }
.cal .amort {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.cal .offer { background: var(--cta); }
.cal .mature { background: var(--ink); color: var(--bg); }

.phone-screen .bars {
  margin-top: 12px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: calc(8 * var(--pt)) minmax(0, 1fr) auto;
  gap: calc(10 * var(--pt));
  align-items: center;
  padding: calc(9 * var(--pt)) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: calc(17 * var(--pt));
}

.ev {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.ev small,
.books small {
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.cal-label {
  margin: calc(14 * var(--pt)) 0 calc(6 * var(--pt));
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}

.phone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--pt)) calc(12 * var(--pt));
  margin: calc(10 * var(--pt)) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: calc(12 * var(--pt));
}

.phone-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bond-meta {
  margin: calc(14 * var(--pt)) 0 0;
  padding: 0;
  list-style: none;
}

.bond-meta li {
  display: flex;
  justify-content: space-between;
  gap: calc(10 * var(--pt));
  padding: calc(10 * var(--pt)) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: calc(15 * var(--pt));
}

.bond-meta span {
  color: var(--muted);
}

.bond-meta b {
  font-weight: 600;
}

.when {
  color: var(--ink);
  font-size: calc(15 * var(--pt));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dot {
  width: calc(8 * var(--pt));
  height: calc(8 * var(--pt));
  border-radius: 50%;
  background: var(--accent);
}

.dot.amort {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.dot.offer {
  border-radius: 2px;
  background: var(--cta);
}

.dot.mature {
  background: var(--ink);
}

.phone-glass::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(20 * var(--pt));
  background: var(--app-bg);
  pointer-events: none;
}

.gesture {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(8 * var(--pt));
  width: calc(134 * var(--pt));
  height: calc(5 * var(--pt));
  margin: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  transform: translateX(-50%);
}

.year-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(8 * var(--pt));
  padding: calc(12 * var(--pt)) calc(14 * var(--pt));
  border-radius: calc(14 * var(--pt));
  background: color-mix(in srgb, var(--accent) 16%, #101820);
  color: var(--ink);
}

.year-card span {
  color: var(--ink);
  font-size: calc(14 * var(--pt));
  font-weight: 650;
}

.year-card b {
  font-size: calc(22 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pay-flow {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pt));
}

.pay-month {
  padding: calc(8 * var(--pt)) calc(10 * var(--pt));
  border-radius: calc(12 * var(--pt));
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.pay-month header,
.pay-month p {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--pt));
  margin: 0;
}

.pay-month header {
  justify-content: space-between;
}

.pay-month header {
  color: var(--ink);
  font-size: calc(15 * var(--pt));
  font-weight: 650;
}

.pay-month header b {
  color: var(--accent);
  font-weight: 700;
}

.pay-month p {
  margin-top: calc(8 * var(--pt));
  color: var(--ink);
  font-size: calc(14 * var(--pt));
}

.pay-month p span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pay-month p small {
  color: var(--muted);
  font-size: calc(11 * var(--pt));
  font-weight: 500;
}

.pay-month p b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.bond-face {
  display: flex;
  flex-direction: column;
}

.bond-pair {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: calc(8 * var(--pt));
}

.bond-pair div {
  padding: calc(10 * var(--pt)) calc(12 * var(--pt));
  border-radius: calc(12 * var(--pt));
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.bond-pair b {
  display: block;
  color: var(--ink);
  font-size: calc(22 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.bond-pair b.yield {
  color: var(--cta);
}

.bond-pair span,
.sheet-label {
  display: block;
  margin-top: calc(3 * var(--pt));
  color: var(--muted);
  font-size: calc(12 * var(--pt));
}

.sheet-label {
  margin: 0 0 calc(8 * var(--pt));
}

.bond-sheet {
  padding: calc(12 * var(--pt));
}

.sheet-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(8 * var(--pt));
  margin: calc(8 * var(--pt)) 0 0;
  color: var(--ink);
  font-size: calc(15 * var(--pt));
}

.sheet-row b {
  font-weight: 700;
}

.sheet-row span {
  color: var(--muted);
  font-size: calc(12 * var(--pt));
  text-align: right;
}

.info-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(8 * var(--pt));
}

.info-tiles div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(4 * var(--pt));
  min-width: 0;
  min-height: calc(64 * var(--pt));
  padding: calc(10 * var(--pt));
  border-radius: calc(12 * var(--pt));
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.info-tiles span {
  color: var(--muted);
  font-size: calc(12 * var(--pt));
}

.info-tiles b {
  color: var(--ink);
  font-size: calc(14 * var(--pt));
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.chart-grow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: calc(6 * var(--pt));
  height: calc(148 * var(--pt));
  padding-top: calc(4 * var(--pt));
}

.chart-grow .col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: end;
  justify-items: center;
  height: 100%;
  min-width: 0;
}

.chart-grow i {
  display: block;
  align-self: end;
  width: 70%;
  border-radius: calc(4 * var(--pt)) calc(4 * var(--pt)) 0 0;
  background: var(--cta);
}

.chart-grow .c12 { height: 33%; opacity: 0.55; }
.chart-grow .c28 { height: 78%; }
.chart-grow .c18 { height: 50%; opacity: 0.75; }
.chart-grow .c36 { height: 100%; }
.chart-grow .c22 { height: 61%; opacity: 0.85; }
.chart-grow .c31 { height: 86%; }

.chart-grow b,
.vbars b {
  margin-top: calc(4 * var(--pt));
  color: var(--ink);
  font-size: calc(11 * var(--pt));
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.chart-grow span,
.vbars span {
  color: var(--muted);
  font-size: calc(11 * var(--pt));
}

.cumul {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 96;
}

.mix {
  display: flex;
  height: calc(10 * var(--pt));
  overflow: hidden;
  border-radius: 999px;
}

.mix i {
  display: block;
  height: 100%;
}

.mix .m46,
.mix .m52 { background: var(--accent); }
.mix .m33,
.mix .m34 { background: var(--cta); }
.mix .m21,
.mix .m14 { background: color-mix(in srgb, var(--ink) 45%, var(--line)); }
.mix .m46 { width: 46%; }
.mix .m33 { width: 33%; }
.mix .m21 { width: 21%; }
.mix .m52 { width: 51.6%; }
.mix .m34 { width: 33.9%; }
.mix .m14 { width: 14.5%; }

.vbars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: calc(10 * var(--pt));
  height: calc(128 * var(--pt));
}

.vbars div {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: end;
  justify-items: center;
  height: 100%;
}

.vbars i {
  display: block;
  align-self: end;
  width: 46%;
  border-radius: calc(6 * var(--pt)) calc(6 * var(--pt)) 0 0;
}

.vbars .v46 { height: 100%; background: var(--accent); }
.vbars .v33 { height: 72%; background: var(--cta); }
.vbars .v21 { height: 46%; background: color-mix(in srgb, var(--ink) 45%, var(--line)); }

.story {
  display: none;
}

.story-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.story-line [data-story-name] {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.story-line [data-story-hint] {
  color: var(--muted);
  font-size: 13px;
}

.story-segs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.story-seg {
  position: relative;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.story-seg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.story-seg.is-done::before,
.story-seg.is-on::before {
  background: var(--cta);
}

.story-seg:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.plates {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.plate-glide {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 16px;
  background: var(--cta);
  pointer-events: none;
}

.plate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.plate-ix {
  color: var(--cta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plate-ico {
  width: 22px;
  height: 22px;
}

.plate-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.plate-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.plate.is-covered .plate-label small {
  color: color-mix(in srgb, var(--cta-ink) 72%, transparent);
}

.plate.is-covered,
.plate.is-covered .plate-ix {
  color: var(--cta-ink);
}

.plate.is-covered {
  background: var(--cta);
}

.bond-sheet {
  border-radius: calc(16 * var(--pt));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cta) 42%, var(--line));
  background: color-mix(in srgb, var(--cta) 14%, #101820);
}

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(76 * var(--pt));
}

.bond-rest {
  padding: calc(12 * var(--pt));
  border-top: 1px solid color-mix(in srgb, var(--cta) 35%, var(--line));
}

.bond-meter {
  height: calc(8 * var(--pt));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  overflow: hidden;
}

.bond-meter i {
  display: block;
  width: 52.1%;
  height: 100%;
  border-radius: inherit;
  background: var(--cta);
}

.bond-rest p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(8 * var(--pt));
  margin: calc(10 * var(--pt)) 0 0;
}

.bond-rest b {
  color: var(--ink);
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bond-rest span {
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  text-align: right;
}

.ticket-main {
  padding: calc(14 * var(--pt)) calc(10 * var(--pt)) calc(14 * var(--pt)) calc(14 * var(--pt));
}

.bond-name {
  margin: calc(4 * var(--pt)) 0 0;
  color: var(--ink);
  font-size: calc(28 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bond-sub {
  margin: calc(6 * var(--pt)) 0 0;
  color: var(--muted);
  font-size: calc(13 * var(--pt));
}

.bond-yield {
  margin: calc(12 * var(--pt)) 0 0;
  color: var(--cta);
  font-size: calc(28 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bond-yield span {
  display: block;
  margin-top: calc(4 * var(--pt));
  color: var(--muted);
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.bond-date {
  margin: calc(8 * var(--pt)) 0 0;
  color: var(--ink);
  font-size: calc(15 * var(--pt));
}

.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: calc(8 * var(--pt)) calc(4 * var(--pt));
  border-left: 1px dashed color-mix(in srgb, var(--cta) 65%, white);
  background: color-mix(in srgb, var(--cta) 22%, #101820);
  text-align: center;
}

.ticket-stub b {
  color: var(--ink);
  font-size: calc(17 * var(--pt));
  line-height: 1.1;
}

.ticket-stub span {
  color: var(--muted);
  font-size: calc(11 * var(--pt));
}

.ticket-stub i {
  width: 62%;
  margin: 7px 0;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}

.caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

figure {
  margin: 0;
}

@media (max-width: 899px) {
  h1 {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }

  .kicker {
    margin-bottom: 6px;
  }

  .lede {
    margin-top: 6px;
  }

  .reel-sticky {
    align-items: stretch;
    align-content: stretch;
    gap: 8px;
    height: calc(100dvh - 80px);
    overflow: hidden;
  }

  .stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .rail {
    width: 100%;
    gap: 10px;
  }

  .plates {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .plate {
    width: auto;
    min-height: 44px;
    padding: 10px;
    font-size: 13px;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .plate-ix {
    display: none;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 0;
    border-top: 0;
    gap: 8px;
  }

  .actions > .btn {
    width: auto;
    flex: 1 1 9rem;
    min-height: 44px;
    font-size: 13px;
  }

  .phone-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }
}
@media (min-width: 720px) {
  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .lede {
    margin-top: 16px;
    font-size: 1.05rem;
  }
}

@media (max-width: 390px) {
  .hero .actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .hero .actions > .btn {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 739px) {
  .bar-inner {
    row-gap: 0;
    padding-block: 0;
  }

  .brand {
    margin-right: auto;
  }

  .bar-nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 8px 16px;
  }

  .bar-nav .nav-rest {
    display: none;
  }

  .bar-cta {
    margin-left: 0;
  }

  .plates {
    display: none;
  }

  .story {
    display: grid;
    gap: 2px;
  }
}

@media (min-width: 740px) {
  .bar-nav {
    display: flex;
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .reel-sticky {
    top: 64px;
    grid-template-columns: minmax(11.5rem, 16rem) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px 20px;
    height: calc(100dvh - 108px);
    overflow: hidden;
  }

  .reel-sticky > .reel-left {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .reel-copy {
    --kick-mb: 8px;
    --title-fs: 1.7rem;
    --title-lines: 3;
    --lede-fs: 1rem;
    --lede-lh: 1.4;
    --lede-mt: 8px;
  }

  .stage {
    display: contents;
  }

  .rail {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: auto;
    gap: 10px;
  }

  .phone-wrap,
  .pixel-stage {
    grid-column: 2;
    grid-row: 1 / -1;
    height: auto;
    align-self: stretch;
  }

  .plates {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .plate {
    width: 100%;
    min-height: 44px;
    grid-template-columns: 22px 20px minmax(0, 1fr);
  }

  .plate-ix {
    display: block;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions > .btn {
    width: 100%;
    flex: none;
  }

  .phone {
    width: min(100cqw, 520px, calc((100cqh - 16px) * 1350 / 2760));
  }
}

@media (min-width: 800px) {
  .bar-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .proof {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof li {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .proof li:last-child {
    border-right: 0;
  }

  .help-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .chart-board,
  .paywall {
    grid-template-columns: 1fr 1.15fr;
  }

  .chart-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .pay-features {
    columns: 2;
    column-gap: 22px;
  }

  .pay-features li {
    break-inside: avoid;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .wrap {
    width: min(1320px, calc(100% - 48px));
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
  }

  .hero {
    padding-top: 0;
  }

  .reel-sticky {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 16px 40px;
    height: calc(100dvh - 108px);
  }

  .reel-sticky > .reel-left {
    align-self: start;
    justify-self: stretch;
    width: 100%;
    min-width: 16rem;
    max-width: 22rem;
  }

  .rail {
    width: auto;
    max-width: 16rem;
  }

  .phone {
    width: min(100cqw, 520px, calc((100cqh - 16px) * 1350 / 2760));
  }

  .reel-copy {
    --kick-fs: 15px;
    --kick-mb: 8px;
    --title-fs: 2.05rem;
    --title-lh: 1.12;
    --title-lines: 3;
    --lede-fs: 1.05rem;
    --lede-lh: 1.35;
    --lede-mt: 8px;
  }

  .plate {
    min-height: clamp(44px, 4.8dvh, 56px);
    font-size: clamp(15px, 1.7dvh, 18px);
  }

  .plate-label small {
    font-size: clamp(11px, 1.25dvh, 14px);
  }

  .reel-left {
    width: 100%;
    max-width: 22rem;
    justify-self: stretch;
    margin-top: 0;
    padding-top: 4px;
    padding-right: 8px;
  }

  .section {
    padding: 48px 0;
  }

  .bento {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .card-pay {
    grid-row: span 2;
  }

  .card-charts {
    grid-column: 1 / -1;
  }

  .end-card {
    padding: 20px 24px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .motion .card.rise.is-in:hover,
  .motion .btn:hover {
    transform: translateY(-2px);
  }
}

/* Появление: только opacity и сдвиг. Без скрипта и при reduced motion текст виден сразу. */
.motion .rise {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.motion .rise.is-in {
  opacity: 1;
  transform: none;
}

.motion .hero-copy .rise:nth-child(2) {
  transition-delay: 70ms;
}

.motion .hero-copy .rise:nth-child(3) {
  transition-delay: 140ms;
}

.motion .hero-copy .rise:nth-child(4) {
  transition-delay: 210ms;
}

.motion .phone-wrap {
  transition-delay: 120ms;
}

.motion .proof {
  transition-delay: 240ms;
}

.motion [data-stagger] > .rise:nth-child(2) {
  transition-delay: 70ms;
}

.motion [data-stagger] > .rise:nth-child(3) {
  transition-delay: 140ms;
}

.motion [data-stagger] > .rise:nth-child(4) {
  transition-delay: 210ms;
}

.motion [data-stagger] > .rise:nth-child(5) {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reel-panel,
  .phone-screen,
  .plate-glide {
    transition: none;
  }

  .motion .rise,
  .motion .rise.is-in,
  .motion .card.rise.is-in:hover,
  .motion .btn:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Плотность внутри стекла: узкий макет по умолчанию, полный от 280px ширины телефона. */
.phone-screen {
  gap: 6px;
  justify-content: flex-start;
  font-size: 12px;
  line-height: 1.25;
}

.phone-screen > * {
  flex-shrink: 0;
}

#screen-bond,
#screen-many {
  gap: 3px;
}

#screen-many .books {
  gap: 3px;
}

#screen-bond .metric {
  padding: 3px 6px;
}

#screen-bond .pair {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

#screen-bond .pair div {
  padding: 4px 6px;
}

#screen-bond .pair span {
  white-space: nowrap;
}

#screen-bond .dock {
  display: none;
}

#screen-many .all-books {
  padding: 6px 8px;
}

#screen-many .books li {
  padding: 3px 6px;
}

.phone-screen .app-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Старые иконки фейкового экрана. Новые экраны живут в .app-canvas
   и задают размер сами: правило ниже их не трогает. */
.phone-screen .legacy-ico {
  display: block;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: none;
}

.phone-screen .back {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex-basis: 18px;
}

.phone-screen .year-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}

.phone-screen .year-card span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.phone-screen .year-card b {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.phone-screen .pay-month {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.phone-screen .pay-month header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.phone-screen .pay-month header b {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.phone-screen .ev-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kind kind"
    "name name"
    "when sum";
  gap: 1px 8px;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.phone-screen .ev-card p,
.phone-screen .ev-card strong,
.phone-screen .ev-card small {
  min-width: 0;
}

.phone-screen .ev-card p {
  display: flex;
  grid-area: kind;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}

.phone-screen .ev-card em {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.phone-screen .ev-card strong {
  grid-area: name;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.phone-screen .ev-card small {
  grid-area: when;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.phone-screen .ev-card > b {
  grid-area: sum;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.phone-screen .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  max-width: 8px;
  max-height: 8px;
  margin: 0;
  flex: 0 0 8px;
  vertical-align: middle;
}

.phone-screen .dot.coupon { background: var(--accent); }

.phone-screen .dot.amort {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.phone-screen .dot.offer {
  border-radius: 2px;
  background: var(--cta);
}

.phone-screen .days,
.phone-screen .legend,
.phone-screen .hy,
.phone-screen .wide-only {
  display: none;
}

.phone-screen .days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px 4px;
}

.phone-screen .days span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 16px;
  aspect-ratio: auto;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.phone-screen .days .wd {
  min-height: 14px;
  color: var(--ink);
}

.phone-screen .days .pad { background: transparent; }

.phone-screen .days .mark {
  color: var(--ink);
  font-weight: 700;
}

.phone-screen .days i {
  display: block;
  width: 4px;
  height: 4px;
  max-width: 4px;
  max-height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-screen .days .amort i {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.phone-screen .days .offer i {
  border-radius: 1px;
  background: var(--cta);
}

.phone-screen .legend {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.phone-screen .legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.phone-screen .legend .dot { margin: 0; }

.phone-screen .dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.phone-screen .dock span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
}

.phone-screen .dock small {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen .dock .is-on { color: var(--accent); }

.phone-screen .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-screen .pair div {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.phone-screen .pair b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.phone-screen .pair div:last-child b { color: var(--accent); }

.phone-screen .pair span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.phone-screen .seg {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
}

.phone-screen .seg span {
  flex: 0 0 auto;
  padding: 2px 0 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-screen .seg .is-on {
  border-bottom-color: var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.phone-screen .metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.phone-screen .metric > span,
.phone-screen .metric small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.phone-screen .metric > b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.phone-screen .metric.yield {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.phone-screen .metric.yield > b {
  color: var(--accent);
  font-size: 20px;
}

.phone-screen .metric .tax { color: var(--ink); }

.phone-screen .metric.price p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 0;
}

.phone-screen .metric.price b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.phone-screen .facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-screen .facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.phone-screen .facts span { color: var(--muted); }

.phone-screen .facts b {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.phone-screen .screen-title {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.phone-screen .flow-range,
.phone-screen .flow-unit,
.phone-screen .book-sum {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.phone-screen .bigsum {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.phone-screen .flow {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 4px;
  align-items: start;
}

.phone-screen .flow-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
  min-height: 80px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.phone-screen .flow-plot { min-width: 0; }

.phone-screen .flow-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  height: 80px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to top, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.phone-screen .flow-cols .col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80px;
  min-height: 80px;
}

.phone-screen .flow-cols i {
  display: block;
  width: 62%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--cta) 70%, var(--accent)), var(--accent));
}

.phone-screen .b12 { height: calc(12 / 36 * 100%); }
.phone-screen .b28 { height: calc(28 / 36 * 100%); }
.phone-screen .b18 { height: calc(18 / 36 * 100%); }
.phone-screen .b36 { height: calc(36 / 36 * 100%); }
.phone-screen .b22 { height: calc(22 / 36 * 100%); }
.phone-screen .b31 { height: calc(31 / 36 * 100%); }

.phone-screen .flow-x {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.phone-screen .cumul {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.phone-screen .cumul b { font-weight: 700; }

.phone-screen .chart-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  height: auto;
  margin: 0;
  overflow: visible;
  white-space: normal;
}

.phone-screen .chart-nav b,
.phone-screen .chart-nav span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 22px;
}

.phone-screen .chart-nav b {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.phone-screen .lock-line {
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.phone-screen .lock {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  flex: 0 0 12px;
}

.phone-screen .holdings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-screen .holdings li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name share"
    "meta meta";
  gap: 1px 8px;
  align-items: center;
  padding: 6px 0 6px 8px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--accent);
  font-size: 12px;
}

.phone-screen .holdings li.wide-only { display: none; }

.phone-screen .hn {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen .hs {
  grid-area: share;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.phone-screen .hm {
  grid-area: meta;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.phone-screen .sectors {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-screen .all-books {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.phone-screen .all-books p { margin: 0; }

.phone-screen .all-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.phone-screen .all-head b {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.phone-screen .all-meta,
.phone-screen .all-yield {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.phone-screen .books {
  gap: 6px;
}

.phone-screen .books li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 6px 8px;
  font-size: 12px;
}

.phone-screen .books li.is-open {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.phone-screen .avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.phone-screen .books li:nth-child(2) .avatar {
  background: color-mix(in srgb, var(--cta) 24%, transparent);
  color: var(--cta);
}

.phone-screen .books li:nth-child(3) .avatar {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink);
}

.phone-screen .books li > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.phone-screen .books strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.phone-screen .books strong em {
  margin-left: 6px;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.phone-screen .books li > span b {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.phone-screen .books small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

@container handset (min-width: 280px) {
  .phone-screen {
    gap: 8px;
    font-size: 13px;
  }

  .phone-screen .app-title { font-size: 24px; }

  .phone-screen .year-card b { font-size: 26px; }

  .phone-screen .screen-title { font-size: 16px; }

  .phone-screen .bigsum { font-size: 24px; }

  .phone-screen .pair b { font-size: 18px; }

  .phone-screen .metric > b { font-size: 20px; }

  .phone-screen .metric.yield > b { font-size: 26px; }

  .phone-screen .all-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .phone-screen .dock small { display: block; max-width: 100%; }

  .phone-screen .ev-card {
    grid-template-areas:
      "kind kind"
      "name sum"
      "when when";
  }

  .phone-screen .flow-y,
  .phone-screen .flow-cols,
  .phone-screen .flow-cols .col {
    height: 180px;
    min-height: 80px;
  }

  #screen-bond .dock {
    display: grid;
  }

  .phone-screen .holdings li {
    grid-template-areas:
      "name share"
      "meta yield";
  }

  .phone-screen .hy {
    display: block;
    grid-area: yield;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
  }

  .phone-screen .wide-only { display: block; }

  .phone-screen .days.wide-only { display: grid; }

  .phone-screen .legend.wide-only { display: flex; }

  .phone-screen .holdings li.wide-only { display: grid; }

  .phone-screen .sectors.wide-only {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .phone-screen .sectors li {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 6px 7px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
  }

  .phone-screen .sectors b {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
  }

  .phone-screen .sectors span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
  }

  .phone-screen .lock-line { display: flex; }

  .phone-screen .all-yield { display: block; }
}

/* Экраны Android внутри стекла. Снаружи страницы цвета остаются в :root.
   Здесь — тёмная схема приложения из ui/theme/Theme.kt. Кадр телефона не меняется. */
html.is-instant {
  scroll-behavior: auto !important;
}

.phone-deck {
  overflow: hidden;
}

.phone-screen {
  display: block;
  gap: 0;
  padding: 0;
  background: transparent;
}

.phone-screen[hidden] {
  display: block;
}

.phone-screen .app-fit {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phone-screen .app-canvas {
  --ap-bg: #121212;
  --ap-surface: #1e1e1e;
  --ap-on: #e1e1e1;
  --ap-muted: #c5c5c5;
  --ap-primary: #7c9cff;
  --ap-on-primary: #001a3a;
  --ap-primary-c: #1a3a5c;
  --ap-on-primary-c: #d6e2ff;
  --ap-secondary: #6ee7b7;
  --ap-secondary-c: #005140;
  --ap-on-secondary-c: #8cf5d3;
  --ap-tertiary: #b8c5d1;
  --ap-high: #2d2d2d;
  --ap-outline: #404040;
  --ap-up: #4caf50;
  --ap-error: #ffb4ab;
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  /* Высоту и scale выставляет promo.js по ширине стекла: 390 * scale = ширина deck. */
  height: 780px;
  transform: scale(0.8);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ap-bg);
  color: var(--ap-on);
  font-family: Roboto, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.phone-screen .app-canvas p,
.phone-screen .app-canvas b {
  margin: 0;
  letter-spacing: 0;
}

.phone-glass .phone-screen .app-canvas svg {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: none;
  align-self: center;
}

.phone-glass .phone-screen .app-canvas svg.i-20 {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
}

.phone-glass .phone-screen .app-canvas svg.i-18 {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.phone-glass .phone-screen .app-canvas svg.i-16 {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.ap-bar {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 4px 0 16px;
  background: var(--ap-surface);
  color: var(--ap-on);
}

.ap-bar-back {
  padding-left: 0;
}

.ap-title {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.ap-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ap-on);
}

.ap-drop {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding-left: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.ap-drop span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-bar-text {
  min-width: 0;
  padding: 8px 0;
}

.ap-bar-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.ap-bar-sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ap-scroll {
  transition: none;
}

.ap-nav {
  flex: none;
  display: flex;
  align-items: center;
  height: 80px;
  background: var(--ap-surface);
  border-top: 1px solid var(--ap-high);
}

.ap-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ap-muted);
}

.ap-pill {
  width: 56px;
  height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.ap-item.is-on {
  color: var(--ap-on-secondary-c);
}

.ap-item.is-on .ap-pill {
  background: var(--ap-secondary-c);
}

.ap-label {
  width: 100%;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.03em;
  text-align: center;
}

.ap-pad {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.ap-pad-fab {
  padding-bottom: 88px;
}

.ap-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--ap-primary);
  color: var(--ap-on-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.ap-fab-icon {
  width: 56px;
  padding: 0;
  justify-content: center;
  background: var(--ap-primary-c);
  color: var(--ap-on-primary-c);
}

.ap-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #1a1a1a;
}

.ap-tile-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ap-primary);
}

.ap-tile-sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-tile svg {
  margin-left: auto;
  color: var(--ap-muted);
}

.ap-profit {
  padding: 16px;
  border-radius: 12px;
  background: var(--ap-primary-c);
  color: var(--ap-on-primary-c);
  text-align: center;
}

.ap-profit p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.ap-profit b {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.ap-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ap-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--ap-primary-c);
  color: var(--ap-on-primary-c);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.ap-mhead b {
  white-space: nowrap;
}

.ap-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ap-pay-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.ap-pay-date {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-pay-amt {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ap-primary);
  white-space: nowrap;
}

.ap-hr {
  height: 1px;
  background: var(--ap-high);
}

.ap-bondhead {
  flex: none;
  padding: 12px 16px 8px;
}

.ap-bondrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ap-right {
  text-align: right;
}

.ap-face,
.ap-cpn {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.ap-cpn {
  color: var(--ap-primary);
}

.ap-face-k {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ap-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ap-secondary-c);
  color: var(--ap-on-secondary-c);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.ap-tabs {
  flex: none;
  display: flex;
  height: 48px;
  background: var(--ap-surface);
}

.ap-tab {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--ap-muted);
  border-bottom: 2px solid transparent;
}

.ap-tab.is-on {
  color: var(--ap-primary);
  font-weight: 600;
  border-bottom-color: var(--ap-primary);
}

.ap-panel {
  padding: 16px;
  border-radius: 12px;
  background: var(--ap-surface);
}

.ap-panel-high {
  background: var(--ap-high);
}

.ap-h {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.ap-h-lg {
  font-size: 24px;
  line-height: 32px;
}

.ap-h-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-h-row svg {
  color: var(--ap-primary);
}

.ap-sub {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ap-muted);
}

.ap-hold {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.ap-hold b {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--ap-primary);
}

.ap-hold span,
.ap-note {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-note {
  margin-top: 2px;
}

.ap-warn {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-tertiary);
}

.ap-yield {
  margin-top: 12px;
}

.ap-k {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ap-muted);
}

.ap-k svg {
  color: var(--ap-primary);
}

.ap-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: var(--ap-primary);
}

.ap-date {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.ap-line span {
  color: var(--ap-muted);
}

.ap-line b {
  font-weight: 600;
  text-align: right;
}

.ap-up {
  color: var(--ap-up);
}

.ap-panel .ap-hr {
  margin: 12px 0;
  background: var(--ap-outline);
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ap-cell {
  padding: 12px;
  border-radius: 12px;
  background: var(--ap-surface);
}

.ap-cell svg {
  color: var(--ap-primary);
}

.ap-cell p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-cell b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.ap-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ap-outline);
  font-size: 14px;
  line-height: 20px;
}

.ap-kv span {
  color: var(--ap-muted);
}

.ap-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ap-spread svg {
  color: var(--ap-muted);
}

.ap-sim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ap-ctabs {
  flex: none;
  display: flex;
  align-items: stretch;
  height: 48px;
  padding: 0 8px;
  background: var(--ap-surface);
  overflow: hidden;
}

.ap-ctab {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0 10px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ap-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.ap-ctab.is-on {
  color: var(--ap-primary);
  font-weight: 700;
  border-bottom-color: var(--ap-primary);
}

.ap-dots {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 22px;
  background: var(--ap-bg);
}

.ap-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(64, 64, 64, 0.9);
}

.ap-dots i.is-on {
  width: 8px;
  height: 8px;
  background: var(--ap-primary);
}

.ap-dates {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ap-dates span {
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  background: #1a1a1a;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.ap-reset {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ap-primary);
}

.ap-btitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.ap-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 188px;
}

.ap-bcol {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ap-bval,
.ap-blab {
  flex: none;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

.ap-blab {
  font-size: 12px;
  line-height: 16px;
}

.ap-btrack {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ap-btrack i {
  display: block;
  width: 22px;
  max-width: 70%;
  border-radius: 4px 4px 0 0;
  background: var(--ap-primary);
}

.ap-btrack i.h100 { height: 100%; }
.ap-btrack i.h57 { height: 57%; }
.ap-btrack i.h37 { height: 37%; }
.ap-btrack i.h27 { height: 27%; }
.ap-btrack i.h18 { height: 18%; }
.ap-btrack i.c100 { height: 100%; }
.ap-btrack i.c90 { height: 90%; }
.ap-btrack i.c76 { height: 76%; }
.ap-btrack i.c69 { height: 69%; }
.ap-btrack i.c59 { height: 59%; }
.ap-btrack i.c38 { height: 38%; }

.ap-bars-line .ap-btrack i {
  width: 18px;
  background: var(--ap-primary-c);
  position: relative;
}

.ap-bars-line .ap-btrack i::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ap-primary);
}

.ap-mrow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.ap-mrow b {
  font-weight: 500;
  color: var(--ap-primary);
  white-space: nowrap;
}

.ap-hrow {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 18px;
}

.ap-hname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-htrack {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #363636;
  overflow: hidden;
}

.ap-htrack i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ap-primary);
}

.ap-htrack i.w100 { width: 100%; }
.ap-htrack i.w85 { width: 85%; }
.ap-htrack i.w77 { width: 77%; }
.ap-htrack i.w24 { width: 24%; }
.ap-htrack i.w22 { width: 22%; }
.ap-htrack i.w20 { width: 20%; }
.ap-htrack i.w18 { width: 18%; }
.ap-htrack i.w16 { width: 16%; }

.ap-hrow b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ap-sum {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--ap-high);
}

.ap-sum-row {
  display: flex;
  align-items: center;
}

.ap-sum-col {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ap-sum-col p {
  font-size: 11px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-sum-col b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.ap-sum-col small {
  display: block;
  font-size: 11px;
  line-height: 14px;
  color: var(--ap-muted);
}

.ap-sum-div {
  width: 1px;
  height: 28px;
  flex: none;
  background: rgba(64, 64, 64, 0.8);
}

.ap-cover {
  margin-top: 8px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-shorts {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ap-short {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
}

.ap-short-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.ap-short span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
}

.ap-short-tools {
  background: var(--ap-secondary-c);
  color: var(--ap-on-secondary-c);
}

.ap-short-charts {
  background: var(--ap-primary-c);
  color: var(--ap-on-primary-c);
}

.ap-short-charts .ap-short-h {
  font-size: 16px;
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--ap-outline);
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
}

.ap-chip.is-on {
  border-color: transparent;
  background: var(--ap-primary-c);
  color: var(--ap-on-primary-c);
}

.ap-issuer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ap-issuer b {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.ap-issuer span {
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
  white-space: nowrap;
}

.ap-issuer span.is-large {
  color: var(--ap-tertiary);
}

.ap-bcard {
  border-radius: 12px;
  background: var(--ap-high);
  overflow: hidden;
}

.ap-bmain {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px 14px;
}

.ap-btext {
  flex: 1;
  min-width: 0;
}

.ap-bname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.ap-bqty {
  font-size: 14px;
  line-height: 20px;
}

.ap-bshare {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

.ap-bshare.is-large {
  color: var(--ap-tertiary);
}

.ap-by {
  flex: none;
  text-align: right;
}

.ap-by p {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ap-secondary);
}

.ap-by small,
.ap-by-none small {
  display: block;
  font-size: 11px;
  line-height: 14px;
  color: var(--ap-muted);
  white-space: nowrap;
}

.ap-by-none p {
  color: var(--ap-muted);
  font-weight: 500;
}

.ap-bacts {
  display: flex;
  flex: none;
  color: var(--ap-muted);
}

.ap-bacts svg {
  margin: 9px 6px;
}

.ap-bacts .ap-danger {
  color: var(--ap-error);
}

.ap-pbar {
  height: 3px;
  margin: 0 14px 10px;
  border-radius: 2px;
  background: rgba(225, 225, 225, 0.12);
  overflow: hidden;
}

.ap-pbar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ap-primary);
}

.ap-pbar i.is-large {
  background: var(--ap-tertiary);
}

.ap-pbar i.w24 { width: 24%; }
.ap-pbar i.w22 { width: 22%; }
.ap-pbar i.w20 { width: 20%; }
.ap-pbar i.w18 { width: 18%; }
.ap-pbar i.w16 { width: 16%; }

.ap-plist {
  gap: 12px;
  padding-bottom: 320px;
}

.ap-pcard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--ap-surface);
}

.ap-pcard.is-on {
  background: var(--ap-primary-c);
}

.ap-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
}

.ap-pcard.is-on .ap-circle {
  border-color: var(--ap-primary);
}

.c-all { background: rgba(255, 107, 53, 0.2); color: #ffb089; }
.c-iis { background: rgba(124, 156, 255, 0.22); color: #d6e2ff; }
.c-bro { background: rgba(110, 231, 183, 0.18); color: #8cf5d3; }
.c-res { background: rgba(184, 197, 209, 0.16); color: #d6e2ff; }

.ap-pbody {
  flex: 1;
  min-width: 0;
}

.ap-prow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-pname {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.ap-end {
  margin-left: auto;
  flex: none;
  color: var(--ap-primary);
}

.ap-pcard:not(.is-on) .ap-end {
  color: var(--ap-muted);
}

.ap-pdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  flex: none;
}

.ap-pcount {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ap-muted);
}

.ap-pcount svg {
  color: var(--ap-muted);
}

.ap-psum {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.ap-plines {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ap-muted);
}

/* Макет 390px заполняет стекло: scale = ширина стекла / 390, origin сверху слева.
   Шапка и нижняя навигация стоят, сдвигается только середина. */
.phone-deck {
  width: 100%;
  margin: 0;
  padding: 0;
}

.phone-deck > .phone-screen {
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #121212;
}

#screen-bond,
#screen-charts,
#screen-book,
#screen-many {
  background: #f8f6f4;
}

.phone-screen > .mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  margin: 0;
  max-height: none;
  min-height: 0;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-screen > .mock > header,
.phone-screen > .mock > nav {
  flex: none;
  position: relative;
  z-index: 2;
}

.phone-screen .mock-shift-clip {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.phone-screen .mock-shift {
  transition: none;
}

.phone-screen .mock-pay-body > .mock-shift {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-screen .mock-book-body > .mock-shift {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-screen .mock-shift .mock-bond-scroll,
.phone-screen .mock-shift .mock-many-scroll {
  overflow: visible;
  height: auto;
  max-height: none;
  flex: none;
}

/* Кадры внутри стекла: один экран — одно число и одна картинка. */
.phone-deck > .phone-screen.shot {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: max(8px, calc(10 * var(--pt)));
  padding: max(6px, calc(8 * var(--pt))) max(14px, calc(18 * var(--pt))) max(18px, calc(22 * var(--pt)));
  background: #121212;
  color: var(--ink);
  overflow: hidden;
}

.phone-deck > .phone-screen.shot[hidden] {
  display: flex;
}

#screen-issue {
  justify-content: center;
}

.phone-deck > .phone-screen.shot > .shot-flow,
.phone-deck > .phone-screen.shot > .shot-cal,
.phone-deck > .phone-screen.shot > .shot-ring,
.phone-deck > .phone-screen.shot > .shot-goals {
  flex: 1 1 auto;
  min-height: 0;
}

html.motion .phone-screen.shot {
  transition: opacity 240ms ease;
}

.shot p,
.shot dl,
.shot ul {
  margin: 0;
}

.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shot-kicker,
.shot-note,
.shot-chip,
.shot-foot {
  margin: 0;
  color: var(--muted);
  font-size: max(11px, calc(13 * var(--pt)));
  font-weight: 650;
  line-height: 1.25;
}

.shot-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 0.45em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  font-size: max(10px, calc(11 * var(--pt)));
  font-weight: 700;
  line-height: 1.6;
}

.shot-sum {
  display: flex;
  flex-direction: column;
  gap: max(2px, calc(3 * var(--pt)));
}

.shot-sumline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-sum b {
  color: var(--accent);
  font-size: clamp(22px, calc(40 * var(--pt)), 44px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.shot-sum > span:not(.shot-sumline),
.shot-foot {
  color: var(--muted);
  font-size: max(12px, calc(14 * var(--pt)));
  font-weight: 550;
  line-height: 1.3;
}

.shot-sum-yield b {
  font-size: clamp(32px, calc(52 * var(--pt)), 56px);
}

.shot-cal {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(6, minmax(0, 1fr));
  gap: max(3px, calc(4 * var(--pt)));
  min-height: 0;
}

.shot-cal span {
  display: grid;
  place-items: center;
  border-radius: max(6px, calc(8 * var(--pt)));
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  font-size: max(11px, calc(14 * var(--pt)));
  font-weight: 650;
  line-height: 1;
}

.shot-cal span:nth-child(-n + 7) {
  background: transparent;
  color: var(--muted);
  font-size: max(10px, calc(11 * var(--pt)));
  font-weight: 700;
}

.shot-cal span:empty {
  background: transparent;
}

.shot-cal .is-pay {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.shot-flow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: max(4px, calc(6 * var(--pt)));
}

.shot-cols {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.shot-cols i {
  display: block;
  height: var(--h);
  margin-inline: 18%;
  border-radius: max(3px, calc(4 * var(--pt))) max(3px, calc(4 * var(--pt))) 0 0;
  background: var(--cta);
  transform-origin: bottom center;
}

.shot-cols i.is-peak {
  background: var(--accent);
}

.shot-cols i.is-empty {
  height: 2px;
  margin-bottom: -1px;
  border-radius: 0;
  background: var(--line);
}

.shot-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: max(11px, calc(12 * var(--pt)));
  font-weight: 650;
  line-height: 1.2;
}

.shot-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shot-key i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cta);
}

.shot-key i.is-peak {
  background: var(--accent);
}

.shot-foot .shot-chip {
  margin-right: 0.35em;
}

.shot-rows {
  display: flex;
  flex-direction: column;
}

.shot-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: max(7px, calc(9 * var(--pt))) 0;
  border-top: 1px solid var(--line);
}

.shot-rows dt {
  color: var(--muted);
  font-size: max(12px, calc(14 * var(--pt)));
}

.shot-rows dd {
  margin: 0;
  color: var(--ink);
  font-size: max(13px, calc(16 * var(--pt)));
  font-weight: 720;
  text-align: right;
}

.shot-share p {
  display: flex;
  justify-content: space-between;
  margin-bottom: max(6px, calc(8 * var(--pt)));
  color: var(--muted);
  font-size: max(12px, calc(14 * var(--pt)));
}

.shot-share b {
  color: var(--accent);
}

.shot-track {
  display: block;
  height: max(8px, calc(10 * var(--pt)));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}

.shot-track i {
  display: block;
  width: var(--h);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
}

.shot-ring {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
}

.shot-ring svg {
  width: min(78%, max(150px, calc(190 * var(--pt))));
  height: auto;
  max-height: 100%;
}

.shot-ring-track,
.shot-arc {
  fill: none;
  stroke-width: 12;
}

.shot-ring-track {
  stroke: color-mix(in srgb, var(--ink) 8%, transparent);
}

.shot-arc {
  --c: 289.03;
  stroke-dasharray: var(--len) var(--c);
  transform-origin: 60px 60px;
  transform: rotate(var(--rot));
}

.shot-arc.a1 { --len: 78.62; --rot: -90deg; stroke: #10b981; }
.shot-arc.a2 { --len: 52.41; --rot: 11.95deg; stroke: #7c9cff; }
.shot-arc.a3 { --len: 54.59; --rot: 81.23deg; stroke: #34d399; }
.shot-arc.a4 { --len: 32.76; --rot: 153.23deg; stroke: #93c5fd; }
.shot-arc.a5 { --len: 54.59; --rot: 198.03deg; stroke: #e7e5e4; }

.shot-ring p {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.shot-ring b {
  color: var(--ink);
  font-size: max(22px, calc(28 * var(--pt)));
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shot-ring span {
  color: var(--muted);
  font-size: max(11px, calc(12 * var(--pt)));
  font-weight: 650;
}

.shot-legend {
  display: flex;
  flex-direction: column;
  gap: max(4px, calc(5 * var(--pt)));
  padding: 0;
  list-style: none;
}

.shot-legend li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: max(12px, calc(14 * var(--pt)));
}

.shot-legend i {
  width: max(8px, calc(9 * var(--pt)));
  height: max(8px, calc(9 * var(--pt)));
  border-radius: 50%;
}

.shot-legend .c1 { background: #10b981; }
.shot-legend .c2 { background: #7c9cff; }
.shot-legend .c3 { background: #34d399; }
.shot-legend .c4 { background: #93c5fd; }
.shot-legend .c5 { background: #e7e5e4; }

.shot-legend b {
  color: var(--muted);
  font-weight: 700;
}

.shot-goals {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: max(8px, calc(10 * var(--pt)));
  min-height: 0;
  padding: 0;
  list-style: none;
}

.shot-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "mark name sum"
    "bar bar bar";
  gap: max(2px, calc(3 * var(--pt))) max(8px, calc(10 * var(--pt)));
  align-items: center;
  padding: max(8px, calc(10 * var(--pt)));
  border-radius: max(12px, calc(14 * var(--pt)));
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.shot-card > i {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: max(28px, calc(34 * var(--pt)));
  height: max(28px, calc(34 * var(--pt)));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  font-style: normal;
  font-size: max(13px, calc(15 * var(--pt)));
  font-weight: 760;
}

.shot-card:nth-child(2) > i {
  background: color-mix(in srgb, var(--cta) 22%, transparent);
  color: var(--cta);
}

.shot-card:nth-child(3) > i {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}

.shot-card > span:not(.shot-track) {
  grid-area: name;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shot-card strong {
  color: var(--ink);
  font-size: max(13px, calc(15 * var(--pt)));
  font-weight: 720;
}

.shot-card em {
  color: var(--accent);
  font-style: normal;
  font-size: max(11px, calc(12 * var(--pt)));
  font-weight: 700;
}

.shot-card small {
  color: var(--muted);
  font-size: max(11px, calc(12 * var(--pt)));
}

.shot-card > b {
  grid-area: sum;
  color: var(--ink);
  font-size: max(13px, calc(16 * var(--pt)));
  font-weight: 760;
  letter-spacing: -0.03em;
}

.shot-card > .shot-track {
  grid-area: bar;
}

html.motion .shot-cols i:not(.is-empty),
html.motion .shot-track i {
  transform: scaleY(0);
}

html.motion .shot-track i {
  transform: scaleX(0);
}

html.motion .is-play .shot-cols i:not(.is-empty) {
  transform: scaleY(1);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d) * 28ms);
}

html.motion .is-play .shot-track i {
  transform: scaleX(1);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

html.motion .shot-cal .is-pay {
  transform: scale(0.86);
}

html.motion .is-play .shot-cal .is-pay {
  transform: none;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.motion .shot-arc {
  --c: 289.03;
  stroke-dasharray: 0 var(--c);
}

html.motion .is-play .shot-arc {
  --c: 289.03;
  stroke-dasharray: var(--len) var(--c);
  transition: stroke-dasharray 340ms ease;
}

html.motion .is-play .shot-arc.a2 { transition-delay: 60ms; }
html.motion .is-play .shot-arc.a3 { transition-delay: 120ms; }
html.motion .is-play .shot-arc.a4 { transition-delay: 180ms; }
html.motion .is-play .shot-arc.a5 { transition-delay: 240ms; }

html.motion .shot-card {
  opacity: 0;
  transform: translateY(8px);
}

html.motion .is-play .shot-card {
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d) * 70ms);
}

/* Первый экран: текст без снимков. */
.hero-copy {
  max-width: 40rem;
  padding-top: 18px;
}

.hero-copy h1 {
  max-width: 16em;
  font-size: clamp(1.7rem, 6.2vw, 2.15rem);
  line-height: 1.12;
}

.hero-more {
  max-width: 38rem;
  margin: 14px 0 0;
  color: var(--muted);
}

.hero-more strong {
  color: var(--accent);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 18px;
}

.hero-cta {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
}

.hero-store {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 3px;
}

.hero-store:hover {
  color: var(--ink);
}

.plan-enter {
  margin: 14px 0 0;
}

.plan-enter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (min-width: 740px) {
  .hero-copy {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 3.4vw, 3rem);
  }

  .hero-more {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: flex-start;
    max-width: 22rem;
  }

  .hero-cta {
    width: auto;
    min-width: 16rem;
  }
}

