/* Верни landing on the design kit (assets/kit, from the design-taste-frontend skill).
   Order in index.html: legacy catalog CSS, site.css, then the kit, then this file.
   Palette and type as `start.mjs css --page software --palette card-pastels --type manrope` printed them. */
:root {
  --p-bg: #f7f7f5; --p-surface: #ebebe8; --p-ink: #000000; --p-muted: #666662;
  --p-accent: #d0106f; --p-accent-ink: #ffffff; --p-action: #d0106f; --p-action-ink: #ffffff;
  --p-inv-bg: #000000; --p-inv-surface: #010101; --p-inv-ink: #f7f7f5; --p-inv-muted: #828280;
  --p-inv-accent: #d0106f; --p-inv-accent-ink: #ffffff; --p-inv-action: #d0106f; --p-inv-action-ink: #ffffff;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-text: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  --ly-scale: 0.97;
}

/* ---------- which page shows ----------
   Desktop and Android (html.web-only): this landing, the old .shell hidden.
   iPhone (html.app-context): the old page until site.js has moved the catalog into #vCatalogSlot
   (html.v-catalog-moved); a script failure therefore keeps the old catalog working. */
[data-k-page] { display: none; }
html.web-only body > [data-k-page], html.app-context.v-catalog-moved body > [data-k-page] { display: revert; }
html.web-only body > header.nav, html.app-context.v-catalog-moved body > header.nav { display: block; }
html.web-only body > main[data-k-page], html.app-context.v-catalog-moved body > main[data-k-page] { display: block; }
html.web-only body > nav.actionbar, html.app-context.v-catalog-moved body > nav.actionbar { display: flex; }
html.web-only body > .shell, html.app-context.v-catalog-moved body > .shell { display: none !important; }
html.web-only [data-app-only], html.app-context [data-web-only] { display: none !important; }

/* the legacy catalog CSS styles bare elements; keep it off the landing */
html.web-only, html.app-context.v-catalog-moved { background: var(--p-bg); color: var(--p-ink); scroll-padding-top: 0; scroll-behavior: auto; }
html.web-only body, html.app-context.v-catalog-moved body { background: var(--p-bg); color: var(--p-ink); font-family: var(--font-text); }
[data-k-page] a:visited { color: inherit; }
[data-k-page] a { -webkit-tap-highlight-color: transparent; }
:where(html.web-only, html.v-catalog-moved) footer { display: block; justify-content: normal; gap: normal; width: auto; margin: 0; padding: 0; color: inherit; font-size: inherit; }
:where(html.web-only, html.v-catalog-moved) footer a { color: inherit; }
[data-k-page] a:focus-visible, [data-k-page] button:focus-visible { outline: 2px solid var(--p-action); outline-offset: 3px; }

.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.k-logo { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.muted-lead { color: var(--p-ink); font-size: var(--t-lead); line-height: 1.5; }

/* ---------- hero: one iPhone on a soft stage, two notifications over its edges ---------- */
.k-stage { display: grid; place-items: center; border-radius: var(--r-lg, 28px); background: radial-gradient(120% 90% at 50% 0%, #e6eef7 0%, var(--p-surface, #efefec) 70%); overflow: hidden; container-type: size; }
.k-phone { height: 88cqh; aspect-ratio: 9 / 19; background: #111; border-radius: 7.5cqh; padding: 1.2cqh; box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 40px 80px -30px rgb(0 0 0 / .45); container-type: inline-size; }
.k-phone__screen { height: 100%; border-radius: 6.4cqh; overflow: hidden; background: linear-gradient(180deg, #cfe0f1 0%, #ead9e6 55%, #f4e3d6 100%); padding: 4cqw 6cqw 5cqw; display: flex; flex-direction: column; }
.k-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 0 3cqw; font: 600 5cqw/1 var(--font-text); color: #000; }
.k-phone__bar i { width: 22cqw; height: 6.5cqw; border-radius: 99px; background: #111; margin-right: 24cqw; }
.k-phone__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6cqw 5cqw; margin-top: 10cqw; }
.k-app { display: grid; justify-items: center; gap: 1.8cqw; min-width: 0; }
.k-app__ic { position: relative; width: 100%; aspect-ratio: 1; }
.k-app img { width: 100%; height: 100%; border-radius: 23%; object-fit: cover; display: block; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.k-app small { font: 500 3.1cqw/1.2 var(--font-text); color: #1a1a1a; max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.k-app.is-loading img { filter: grayscale(.6) brightness(.75); }
.k-app__ring { position: absolute; inset: 26%; border-radius: 50%; background: conic-gradient(#fff 0 72%, rgb(255 255 255 / .35) 72% 100%); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
.k-phone__dots { display: flex; justify-content: center; gap: 2cqw; margin-top: auto; padding-bottom: 4cqw; }
.k-phone__dots i { width: 2cqw; height: 2cqw; border-radius: 50%; background: rgb(0 0 0 / .25); }
.k-phone__dots i.is-on { background: rgb(0 0 0 / .7); }
.k-phone__dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5cqw; padding: 4cqw; border-radius: 9cqw; background: rgb(255 255 255 / .45); }
.k-phone__dock img { width: 100%; aspect-ratio: 1; border-radius: 23%; object-fit: cover; display: block; }
.k-push { position: absolute; display: flex; align-items: center; gap: 12px; width: min(330px, 62cqw); padding: 14px 16px; border-radius: 20px; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(0 0 0 / .35); color: #000; }
.k-push > img { width: 40px; height: 40px; border-radius: 22%; object-fit: cover; flex: none; }
.k-push span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.k-push b { font: 600 15px/1.25 var(--font-text); }
.k-push small { font: 400 14px/1.3 var(--font-text); color: var(--p-muted); }
.k-push em { align-self: start; font: 400 13px/1.3 var(--font-text); font-style: normal; color: var(--p-muted); }
.k-push--top { top: 3cqh; left: 4cqw; }
.k-push--bottom { bottom: 16cqh; right: 4cqw; }
.k-push__bar { display: block; height: 5px; margin-top: 6px; border-radius: 99px; background: var(--p-surface, #eee); overflow: hidden; }
.k-push__bar i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--p-accent); }
.hero-facts dd { font-size: 16px; }
@media (min-width: 1024px) { .hero-split > .hero-copy > .hero-facts { padding-top: var(--s-5); border-top: 1px solid rgb(0 0 0 / .1); } }
/* legacy mini.css greys and shrinks .hero-copy > p; the kit's lead is ink at its own size */
main[data-k-page] .hero-copy > p.hero__lead { color: var(--ink, #000); max-width: 42ch; font-size: var(--ly-lead, 20px); line-height: 1.5; margin: var(--s-5) 0 0; }
@media (max-width: 639px) {
  .hero-split > .k-stage { flex: 1 1 0; min-height: 240px; }
  .hero .btn-row > .btn--secondary { display: none; }
  .k-push { width: 76cqw; padding: 10px 12px; gap: 10px; }
  .k-push > img { width: 32px; height: 32px; }
  .k-push--top { top: 2cqh; left: 3cqw; }
  .k-push--bottom { bottom: 8cqh; right: 3cqw; }
}

/* ---------- app-frame (sections-library.md, app-frame: the whole page CSS of the recipe) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
/* real app icons in the fragments' avatar slots */
.ui .k-ico { background: #fff; padding: 0; overflow: hidden; }
.ui .k-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- ways ---------- */
#start .panel { --p-h: 250px; }
.k-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-5); min-height: 44px; }
.k-qr-panel { display: grid; place-items: center; background: var(--p-surface); }
.k-qr { background: #fff; padding: 16px; border-radius: var(--r-md); }
.k-qr svg { width: 200px; height: 200px; display: block; }
@media (max-width: 639px) { #start .panel { --p-h: 220px; } .k-qr svg { width: 160px; height: 160px; } }

/* ---------- facts, safety, prices ---------- */
.k-facts { margin-top: var(--s-7); }
.k-fact-line { margin-top: var(--s-3); font-size: 16px; line-height: 1.5; }
.k-rows { margin-top: var(--s-7); display: grid; }
.k-rows li { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line, rgb(255 255 255 / .14)); }
.k-rows b { font-weight: 500; font-size: var(--t-card); }
.k-rows span { font-size: 16px; line-height: 1.5; }
.k-diagram-frame { min-height: 600px; }
.k-diagram-frame .dg { width: 100%; height: 100%; min-height: 600px; }
.k-plans { margin-top: var(--s-7); }
.k-plans .card--plan { display: grid; align-content: start; gap: var(--s-3); }
.k-plans .price { font: var(--display-weight) var(--t-h2)/1 var(--font-display); letter-spacing: var(--display-tracking); margin-top: var(--s-2); }
.k-plan-line { font-size: 16px; line-height: 1.5; }
.k-plan-save { font-size: 16px; line-height: 1.5; color: var(--p-accent); }
.k-plans .btn { margin-top: var(--s-4); }
@media (max-width: 639px) { .k-diagram-frame, .k-diagram-frame .dg { min-height: 360px; } }

/* ---------- iPhone: the embedded catalog ---------- */
html.app-context #online { height: auto; min-height: 100svh; }
#online .v-catalog { margin-top: var(--s-6); }

/* statement: the one thing Верни is for, lit word by word */
#zachem .mo-wh__text { max-width: 30ch; font: var(--display-weight) var(--t-h2)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }

/* signed-in state */
[data-v-auth].is-authed { font-weight: 500; }


/* prices: each pack shows how many apps it brings back, as their real icons */
.k-pack { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center; height: 120px; margin-top: var(--s-3); padding: 10px; border-radius: var(--r-md); background: var(--p-bg); }
.k-pack img { width: 36px; height: 36px; border-radius: 22%; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
/* FAQ: the apps people bring back, as a still home-screen row */
.k-home { display: grid; grid-template-columns: repeat(4, 56px); gap: 16px; margin-top: var(--s-7); }
.k-home img { width: 56px; height: 56px; border-radius: 22%; object-fit: cover; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
/* facts: the balance as the cabinet shows it */
.k-balance { padding: 24px; display: grid; gap: 4px; align-content: start; }
.k-balance__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--u-line, rgb(0 0 0 / .08)); }
.k-balance__head b { font: var(--display-weight) 32px/1 var(--font-display); letter-spacing: -0.02em; }
.k-balance__head span { font-size: 13px; color: var(--p-muted); }
.k-balance__row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--u-line, rgb(0 0 0 / .08)); font-size: 14px; }
.k-balance__row img { width: 32px; height: 32px; border-radius: 22%; object-fit: cover; }
.k-balance__row small { display: block; font-size: 12px; color: var(--p-muted); }
.k-balance__row em { font-style: normal; font-weight: 500; }
.k-balance__row em.is-back { color: var(--p-accent); }
#facts .frame { min-height: 360px; }
.k-facts__nums { display: grid; gap: var(--s-5); }
.k-facts__nums > div { border-top: 1px solid var(--line, rgb(0 0 0 / .12)); padding-top: var(--s-4); }
/* Manrope's Cyrillic sits higher than the kit's line box for the close's name */
.close__word { line-height: 1.12; }
/* phone: one pack a row, its icons in a band beside the name and price */
@media (max-width: 639px) {
  .k-plans > .card--plan { grid-template-columns: 1fr auto; column-gap: var(--s-4); padding: 16px 20px; }
  .k-plans > .card--plan > :is(.badge, .k-pack, .btn) { grid-column: 1 / -1; }
  .k-plans .k-pack { height: 64px; padding: 8px; gap: 6px; }
  .k-plans .k-pack img { width: 22px; height: 22px; }
  .k-plans .price { font-size: 32px; margin-top: 0; }
  .k-plans .btn { width: 100%; margin-top: var(--s-2); }
}

/* phone: the questions take their two screens; the home-screen row closes them at the foot */
@media (max-width: 639px) {
  #faq > .wrap { display: flex; flex-direction: column; }
  #faq > .wrap > .grid { display: flex; flex-direction: column; flex: 1; }
  #faq > .wrap > .grid > .span-6:first-child { display: contents; }
  #faq .faq { order: 2; }
  #faq .k-home { order: 3; margin-top: auto; padding-top: var(--s-7); }
}
/* the hero's words break between words only («прило-жений» reads badly) */
.hero h1 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }

/* the balance mock fills its frame */
.k-balance { width: 100%; justify-content: stretch; padding: 32px 40px; }
.k-balance > * { width: 100%; }
/* the statement: the one idea of its screen, set large and centred in it */
#zachem .mo-wh__text { max-width: 28ch; font-size: clamp(32px, 3.8vw, 60px); line-height: 1.12; }
/* the featured badge sits in the card's corner, so every card's name, icons and price share their lines */
.k-plans .card--plan { position: relative; }
.k-plans .card--plan > .badge { position: absolute; top: var(--s-5); right: var(--s-5); margin: 0; }
/* the Mac install command, as the guide gives it */
.k-cmd { margin-top: var(--s-3); font-size: 14px; color: var(--p-muted); }
.k-cmd code { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: #111; color: #f7f7f5; font: 400 13px/1.5 var(--font-mono); word-break: break-all; }
