/* deck.lifeos.life: the lifeos.life/next/ look. White page, Inter at opsz, black headline with a grey
   continuation, the orange block with the phone bleeding out of it. */
@font-face { font-family: "InterSite"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-cyrillic-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "InterSite"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-cyrillic-opsz-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "InterSite"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "InterSite"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1c1c1e; --ink-2: #48484d; --muted: #6c6c72; --surface: #f7f7f9; --pill: #f1f1f4;
  --accent: #131314; --accent-hover: #2c2c2e; --line: rgba(28, 28, 30, 0.12);
  --gap: 16px; --radius: 28px; --side: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #ffffff; color: var(--ink);
  font: 400 18px/1.5 "InterSite", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto; font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.008em; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.top img { border-radius: 14px; }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pill); }
.lang > * { display: flex; align-items: center; justify-content: center; min-width: 52px; height: 40px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.lang [aria-current] { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 19, 20, 0.12); }
@media (hover: hover) { .lang a:hover { color: var(--ink); } }

/* type */
.h1, .h2, .h3, .num, .huge { font-weight: 500; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.038em; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 21em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -0.025em; }
.dim { display: block; color: var(--muted); text-wrap: balance; }
p, li, td, th { text-wrap: pretty; }
.ink2 { color: var(--ink-2); }
.muted { color: var(--muted); }
.strong, strong { font-size: inherit; font-weight: 500; color: var(--ink); }
.small { font-size: 15px; }
.claim { font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; max-width: 34em; }
.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); max-width: 30em; }
.huge { font-size: clamp(56px, 10vw, 136px); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.num { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; white-space: nowrap; }

/* sections */
.sec { padding: clamp(48px, 6.5vw, 96px) 0; }
.sec > .wrap { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.hero { padding-top: clamp(24px, 3vw, 40px); }
.hero .h1 { font-size: clamp(42px, 4.5vw, 66px); }
@media (min-width: 900px) { .hero .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 10px 18px; border-radius: 999px; background: var(--pill); font-size: 16px; line-height: 1.35; }
.pills li.dark { background: var(--accent); color: #ffffff; }
.card .pills li { background: #ffffff; }

.cards { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .cards.c2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* a figure never leaves its card: it scales with the card, not with the window */
.cards .card, .cost .card, .card.x { container-type: inline-size; }
.cards .num { font-size: clamp(36px, 17cqw, 68px); }

.dots { display: flex; flex-direction: column; gap: 10px; }
.dots li { position: relative; padding-left: 24px; }
.dots li::before { content: ""; position: absolute; left: 0; top: calc(0.75em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.line { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .2s, transform .2s; }
.btn.quiet { background: var(--pill); color: var(--ink); }
@media (hover: hover) { .btn:hover { background: var(--accent-hover); } .btn.quiet:hover { background: #e6e6ea; } }
.btn:active { transform: scale(.98); }

/* the orange block of the site: the interface sits on it and bleeds out */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.split > .text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stage { position: relative; container-type: inline-size; width: 100%; max-width: 480px; aspect-ratio: 662 / 1103; margin: 0 auto; }
.stage .lava {
  position: absolute; left: 1.36%; top: 14.6%; width: 97.88%; height: 71.8%; border-radius: 7.2cqw; overflow: hidden;
  background:
    radial-gradient(52% 40% at 12% 2%, #f1ece7 0, #f1ece700 100%),
    radial-gradient(38% 22% at 52% 0%, #e1cbb8 0, #e1cbb800 100%),
    radial-gradient(50% 30% at 90% 6%, #d7cbc4 0, #d7cbc400 100%),
    radial-gradient(40% 26% at 90% 24%, #d8b6a2 0, #d8b6a200 100%),
    radial-gradient(60% 22% at 5% 92%, #e24800 0, #e2480000 100%),
    radial-gradient(50% 25% at 97% 98%, #e33900 0, #e3390000 100%),
    linear-gradient(#f1ece7 0, #ebdbcb 20%, #e7b377 40%, #e38a28 55%, #df6f12 70%, #df5806 85%, #e04400 100%);
}
.stage .lava::after { content: ""; position: absolute; inset: 0; background: url("img/grain.png"); opacity: 0.09; }
.stage .phone { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; -webkit-mask-image: linear-gradient(#000 95.2%, transparent); mask-image: linear-gradient(#000 95.2%, transparent); }
.stage.cover { max-width: 560px; aspect-ratio: 800 / 1103; }
.stage.cover .lava { left: 8%; width: 90%; border-radius: 6cqw; }
.stage.cover .phone { left: 15.38%; width: 82.75%; }
.chips li { position: absolute; display: flex; align-items: center; height: 2.3em; padding: 0 0.95em; border-radius: 999px; background: #ffffff; font-size: max(11px, 3cqw); font-weight: 500; white-space: nowrap; box-shadow: 0 2px 6px rgba(19, 19, 20, 0.1), 0 10px 24px rgba(19, 19, 20, 0.16); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 64px; }
  .split.flip > .text { order: 2; }
  .split.flip > .stage { order: 1; }
}
.has-stage { padding: clamp(24px, 4vw, 56px) 0; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }

.cost { display: grid; gap: 24px; align-items: end; }
.cost .num { font-size: clamp(34px, 12.5cqw, 104px); }
.note { max-width: 28em; }
@media (min-width: 900px) { .cost { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.cols { display: grid; gap: 32px; align-items: center; }
.cols .who, .cols .text { display: flex; flex-direction: column; gap: 28px; }
.who > div { display: flex; flex-direction: column; gap: 8px; max-width: 34em; }
.card.x { justify-content: flex-end; min-height: 320px; }
.card.x .num { font-size: clamp(96px, 40cqw, 220px); line-height: 1; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; } .card.x { min-height: 440px; } }

.chart { display: grid; gap: 32px; align-items: end; }
.chart > div:first-child { display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
.chart .huge { font-size: clamp(44px, 15cqw, 136px); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); grid-template-rows: minmax(0, 1fr); height: 280px; }
.bar { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
/* chart colours are the v6 status-info pair (D-556) */
.bar .col { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; }
.bar i { display: block; flex: none; height: calc((100% - 32px) * var(--r)); border-radius: 20px; background: #ddedff; }
.bar.last i { background: #006bba; }
.bar span.v { line-height: 24px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.bar span { text-align: center; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .chart { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; } .bars { height: 360px; } }

.figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
table { width: 100%; border-collapse: collapse; }
caption { padding-bottom: 14px; text-align: left; font-weight: 500; }
th, td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
thead th { color: var(--muted); }
tr > :last-child { text-align: right; padding-left: 16px; white-space: nowrap; }
.assume { max-width: 40em; }

.rows { display: flex; flex-direction: column; gap: var(--gap); }
.card.row > div { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .card.row { display: grid; grid-template-columns: 420px 1fr; gap: 48px; } }

.proof { width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(19, 19, 20, 0.08), 0 24px 56px rgba(19, 19, 20, 0.14); }
.intro { max-width: 40em; }
br.pbr { display: none; }
@media (max-width: 599px) { br.pbr { display: inline; } .sep { display: none; } }
@media (max-width: 359px) { .h2 { font-size: 27px; } } /* 320: the longest Russian word fits the column */
.shot { width: 100%; max-width: 480px; margin: 0 auto; }
.shot figcaption { margin-top: 14px; text-align: center; }
@media (min-width: 900px) { .cols.crew { align-items: start; } }

/* rhythm: the revenue figure and the cost drop sit on dark cards (bands stay light, D-360), the waves step up */
.s-revenue .figure, .s-tests .card:nth-child(2) { --ink: #ffffff; --ink-2: #d1d1d6; --muted: #a1a1a8; color: var(--ink); background: #131314; }
.s-revenue .figure { padding: clamp(24px, 2.8vw, 40px); border-radius: var(--radius); container-type: inline-size; }
.s-revenue .figure .huge { font-size: min(clamp(56px, 10vw, 136px), 17.5cqw); }
@media (min-width: 960px) {
  .s-waves .cards.c3 { align-items: end; }
  .s-waves .card:nth-child(1) { min-height: 360px; }
  .s-waves .card:nth-child(2) { min-height: 440px; }
  .s-waves .card:nth-child(3) { min-height: 520px; }
}

.qr { display: none; align-items: center; gap: 24px; width: fit-content; font-weight: 500; text-underline-offset: 5px; }
.qr img { width: 168px; height: 168px; border-radius: 16px; border: 1px solid var(--line); }
@media (min-width: 900px) { .qr { display: flex; } }

.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 32px; padding-bottom: 40px; border-top: 0; color: var(--muted); font-size: 14px; }
.legal p:last-child { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal button, .legal a { min-height: 32px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* one button per row on narrow screens, the phone PDF first */
@media (max-width: 759px) {
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .pdf-phone { order: 2; }
  .actions .pdf-wide { order: 3; }
}

@media (max-width: 599px) {
  :root { --side: 20px; --radius: 24px; }
  body { font-size: 17px; }
  .pills li { padding: 8px 14px; font-size: 15px; }
}
