/* FinSight site. The look is the app's look C «Поле» (indigo field, amber context line,
   Commissioner + Golos Text) laid out on Monzo's structure from Refero Styles: a tinted canvas,
   white cards with generous radii, a carousel hero card, a big link list. Every colour is a
   token in :root, redefined for dark («Нічне поле»). */

@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;

  --canvas: #EEF0F8;          /* Monzo's tinted canvas, tinted towards the app's indigo */
  --card: #FFFFFF;
  --inset: #F4F5F9;           /* the app's action card fill: demo rows inside a card */
  --ink: #111218;
  --muted: #5D6070;
  --faint: #676A7B;          /* the app's faint, darkened to 4.5:1 on the inset */
  --line: #E2E4EE;
  --indigo: #3A3FCF;          /* text and links */
  --indigo-fill: #3A3FCF;     /* under white */
  --indigo-hover: #2F34B8;
  --amber: #FFC861;
  --amber-ink: #8F5A00;
  --field-top: #3238C4;
  --field-bottom: #2B2FA8;
  --band: #1C1F7C;            /* the privacy band: the night field, in both themes */
  --band-card: rgb(0 0 0 / 0.24);  /* the ledger panel on the band */
  --band-line: rgb(255 255 255 / 0.14);
  --on-field: #FFFFFF;
  --on-field-2: rgb(255 255 255 / 0.86);
  --on-field-glass: rgb(255 255 255 / 0.16);
  --toggle: rgb(17 18 24 / 0.06);
  --sheet: #FFFFFF;           /* the app's sheet, drawn in a card (the edit sheet) */
  --pill: #F1F2F6;            /* the app's pill fill: a sheet's ✕ */
  --positive: #2E7244;
  /* The App Store plate: white on the field in both themes, so Apple's black badge keeps its ground. */
  --plate: #FFFFFF;
  --plate-hover: #EEF0F8;
  --plate-ink: #111218;
  --plate-muted: #5D6070;

  --c-groceries: #4A9A4E;
  --c-shopping: #8756B1;
  --c-coffee: #8A5A3C;
  --c-travel: #2F8FA0;
  --c-dining: #D0702F;

  --font-display: "Commissioner", "Golos Text", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Golos Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-hero: clamp(32px, 5vw, 64px);
  --r-card: clamp(28px, 4vw, 48px);
  --r-inset: 24px;
  --gutter: 16px;
  --column: 42rem;
  --wide: 1200px;
  --pad: clamp(22px, 3.4vw, 48px); /* the inner left edge of every box, so text lines up */
  --lang-on: var(--card);     /* the current segment of the language switcher */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-over: cubic-bezier(0.34, 1.2, 0.64, 1); /* a slight overshoot: the Apple Pay banner only */
  --ease-fade: cubic-bezier(0.4, 0, 0.2, 1);     /* every opacity fade and colour change */
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0E0F17;
    --card: #181A27;
    --inset: #0E0F17;
    --ink: #ECEDF5;
    --muted: #A3A6B8;
    --faint: #878A9C;
    --line: #23253A;
    --indigo: #A9ACFF;
    --indigo-fill: #3A3FCF;
    --indigo-hover: #4A50E0;
    --amber-ink: #FFC861;
    --field-top: #252A9E;
    --field-bottom: #1C1F7C;
    --on-field-glass: rgb(255 255 255 / 0.14);
    --toggle: rgb(255 255 255 / 0.08);
    --sheet: #0E0F17;
    --pill: #1D1F2E;
    --lang-on: rgb(255 255 255 / 0.18);
    --positive: #6FD08F;

    --c-groceries: #6CC070;
    --c-shopping: #9A68C8;
    --c-coffee: #C9926C;
    --c-travel: #5CC3D4;
    --c-dining: #F0955A;
  }
}

/* ───────────── base ───────────── */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

::selection { background: rgb(58 63 207 / 0.24); background: color-mix(in srgb, var(--indigo) 24%, transparent); }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 8px;
}

a {
  color: var(--indigo);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(127 129 230 / 0.6);
  text-decoration-color: color-mix(in srgb, var(--indigo) 45%, transparent);
}

@media (hover: hover) {
  a:hover { text-decoration-color: currentColor; }
}

/* An address never breaks in the middle. */
a[href^="mailto:"] { white-space: nowrap; }

img { max-width: 100%; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.top,
.foot,
.wide {
  max-width: calc(var(--wide) + 2 * var(--gutter));
}

.wide {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ───────────── header ───────────── */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.pages {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 4px;
  margin-left: -12px;
}

.pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 150ms var(--ease-fade);
}

@media (hover: hover) {
  .pages a:hover { color: var(--ink); }
}

.pages a[aria-current="page"] { color: var(--ink); }

/* On a phone the home page leaves Privacy and Support to the footer: the hero starts higher. */
@media (max-width: 719.98px) {
  .home .pages { display: none; }
}

/* Language: Monzo's pill toggle, the same place on every page. */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--toggle);
}

.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.lang a {
  min-height: 44px;
  margin: -3px 0;
  color: var(--muted);
}

@media (hover: hover) {
  .lang a:hover { color: var(--ink); }
}

.lang span {
  color: var(--ink);
  background: var(--lang-on);
}

/* At 320–370 px the brand and the switcher share the first row, the pages the second. */
@media (max-width: 379.98px) {
  .top { column-gap: 4px; }
  .brand { gap: 7px; font-size: 20px; }
  .brand img { width: 28px; height: 28px; }
  .lang { padding: 2px; }
  .lang a, .lang span { padding: 0 9px; font-size: 14px; }
  .lang a { margin: -2px 0; }
}

@media (min-width: 720px) {
  .top { padding-top: 20px; padding-bottom: 20px; }
  .pages { order: 0; flex-basis: auto; margin: 0 8px 0 0; }
}

/* ───────────── text pages (privacy, support) ───────────── */

main {
  flex: 1 0 auto;
  padding-top: 8px;
  padding-bottom: 64px;
}

/* The document sits on one white sheet over the tinted canvas. */
body:not(.home) main.wrap {
  max-width: calc(var(--column) + 80px);
}

body:not(.home) main.wrap {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px 20px 36px;
  margin: 8px auto 64px;
  width: calc(100% - 2 * var(--gutter));
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(28px, 9vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
}

h2 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 40px 0 10px;
  scroll-margin-top: 24px;
}

/* The app's section mark: a short amber line under a section title. */
body:not(.home) h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
  margin-top: 8px;
}

p, ul { margin: 0 0 14px; }

ul { padding-left: 1.25em; }
li { margin-bottom: 6px; padding-left: 2px; }
li::marker { color: var(--faint); }

strong { font-weight: 600; }

code {
  font-family: var(--font-code);
  font-size: 0.88em;
  padding: 0.1em 0.25em;
  border-radius: 6px;
  background: var(--inset);
  white-space: nowrap;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
  margin-bottom: 0;
}

.meta {
  font-size: 15px;
  color: var(--muted);
}

.cell {
  background: var(--inset);
  border-radius: var(--r-inset);
  padding: 18px 20px;
  margin: 24px 0 0;
}

.cell p:last-child { margin-bottom: 0; }

/* The one primary action of a page: an indigo pill. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--indigo-fill);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

@media (hover: hover) {
  .button:hover { background: var(--indigo-hover); }
}

.actions { margin: 28px 0 0; }

@media (min-width: 720px) {
  main { padding-bottom: 96px; }
  body:not(.home) main.wrap { padding: 48px 40px 56px; margin-bottom: 96px; }
  h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
  .lead { font-size: 20px; }
}

/* The section list beside the sheet, on wide screens only. */
.doc { flex: 1 0 auto; }
.toc { display: none; }

@media (min-width: 1100px) {
  .doc {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, calc(var(--column) + 80px)) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
    width: 100%;
    max-width: calc(var(--wide) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  body:not(.home) .doc > main.wrap { grid-column: 2; grid-row: 1; width: auto; margin: 8px 0 96px; }

  .toc {
    display: block;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    /* room for the links' focus ring (2 px at 3 px), which the scrolling box would clip */
    padding: 32px 6px;
    margin: 0 -6px;
  }

  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc li { margin: 0; padding: 0; }

  .toc a {
    display: block;
    padding: 7px 0 7px 14px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  }

  .toc a[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--amber);
  }
}

@media (min-width: 1100px) and (hover: hover) {
  .toc a:hover { color: var(--ink); }
}

/* ───────────── home ───────────── */

.home main { padding-top: 0; display: flex; flex-direction: column; gap: 24px; }

/* Hero: Monzo's rounded carousel card, filled with the app's field. */
.hero {
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  background: linear-gradient(165deg, var(--field-top), var(--field-bottom));
  color: var(--on-field);
}

/* The slides sit side by side in a row that scrolls sideways and snaps: a phone swipes it
   natively, and without JavaScript every slide is still there. The copy of all three shares
   one row (subgrid), so the text is top-aligned and nothing jumps between slides. */
.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: auto 1fr;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar { display: none; }

.slide {
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  padding: 36px var(--pad) 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide .copy { min-width: 0; padding-bottom: 32px; }

/* Room under the text for the App Store plate, and the dots and arrows under it (site.js measures
   and places both; --reserve is that room). */
.has-controls .slide .copy { padding-bottom: var(--reserve, 196px); }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The visually hidden h1 takes the body's size, so it adds no size of its own to the page. */
h1.vh { font-size: inherit; }

/* Two lines set by hand (<br>) on every slide; the size follows the window's height too, so the
   plate stays in the first screen of a short laptop. */
.hero h2 {
  color: var(--on-field);
  font-weight: 800;
  font-size: clamp(38px, min(10vw, 8vh), 72px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: wrap;
}

.hero .sub {
  margin: 18px 0 0;
  color: var(--on-field-2);
  font-size: 17px;
  line-height: 1.45;
  max-width: 30ch;
}

/* The App Store plate: Apple's badge as Apple ships it, 44 px high (the guidelines ask for 40 at
   least), 11 px clear round it (a quarter of its height), and the release beside it; the whole
   plate is the link. In the hero it sits under the copy of the tallest slide (site.js), outside
   the slides, so it never moves when the slide changes; without JavaScript it follows the slides. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 22px 11px 11px;
  border-radius: 22px;
  background: var(--plate);
  color: var(--plate-ink);
  text-decoration: none;
  text-align: left;
  transition: background-color 150ms var(--ease-fade);
}

@media (hover: hover) {
  .store:hover { background: var(--plate-hover); }
}

.store img { display: block; flex: none; width: auto; height: 44px; max-width: none; }
.store span { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.store small { font-size: 15px; line-height: 1.2; font-weight: 400; color: var(--plate-muted); }
.store b { font-family: var(--font-display); font-size: 17px; line-height: 1.2; font-weight: 800; letter-spacing: -0.005em; }

/* Below 400 px the row tightens (288 px with the release beside the badge, in a 299 px column at
   375); below 364 px the release goes under the badge. The badge keeps 11 px clear on every side. */
@media (max-width: 399.98px) {
  .store { gap: 12px; padding-right: 16px; }
}

@media (max-width: 363.98px) {
  .store { flex-direction: column; align-items: flex-start; gap: 11px; }
}

.hero .store { margin: 0 var(--pad) 32px; }
.has-controls .store { position: absolute; top: var(--plate-top, auto); left: var(--pad); margin: 0; }

/* A live phone (assets/phone.css, phone.js) shown from the top: the figure is the crop window
   (--crop device points of the 864) and the cut dissolves over --fade instead of ending hard.
   The phones are as wide as the box lets them be, so the app's text stays readable on a phone. */
.shot.phone { display: flex; justify-content: center; min-width: 0; }
.shot.phone .fs-phone {
  --crop: 560;
  --fade: 88px;
  aspect-ratio: 410 / var(--crop);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
}
/* The hero's phone: on a phone it reaches 8 px from the card's edges. */
.slide .shot.phone { margin: 0 calc(8px - var(--pad)); }

/* Dots and arrows right under the button, above the phone: the top is set by site.js. */
.controls {
  position: absolute;
  top: var(--controls-top, auto);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.controls > * { pointer-events: auto; }

.dots { display: flex; margin-left: -12px; }

.dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.45);
  transition: width 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

/* The current dot widens into a pill. */
.dots button[aria-current="true"]::after { width: 24px; background: #FFFFFF; }

.arrows { display: flex; gap: 8px; }

.arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.9);
  background: transparent;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

@media (hover: hover) {
  .arrows button:hover { background: var(--on-field-glass); }
}

.hero :focus-visible,
.band :focus-visible { outline-color: var(--amber); }

/* Pressed: every pill, arrow, question and link row gives a little. */
.button:active,
.arrows button:active,
.tries button:active { transform: scale(0.97); }

/* Cards */
.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px var(--pad);
  min-width: 0;
  scroll-margin-top: 16px;
  display: flex;
  flex-direction: column;
}


.card h2,
.links h2,
.band h2,
.closing h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.card > p,
.card .copy > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  max-width: 34ch;
}

/* Cards side by side are as tall as each other; the drawing sits on the bottom edge. */
.card > .demo { margin-top: auto; }
.card > p:has(+ .demo) { margin-bottom: 24px; }
.grid2 .card > p { max-width: 40ch; }

/* A footnote under a card's copy. */
.card .copy > p.note { margin-top: 16px; max-width: 44ch; font-size: 15px; line-height: 1.45; }

/* monobank: the app's import notice fills to its first month, then today's rows of the card land
   at the top of the day as its total ticks. The markup is the last moment. */
.imp { display: grid; gap: 2px; margin: 10px 0 8px; padding: 14px 16px 16px; border-radius: 18px; background: var(--card); }
.imp b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.imp small { font-size: 14px; line-height: 1.3; color: var(--muted); }
.imp .track { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.imp .track i { display: block; width: 33.333%; height: 100%; border-radius: 3px; background: var(--indigo-fill); transform-origin: left center; }

/* Apple Pay: the Wallet card meets the reader, the automation's banner drops in its place, and
   the payment lands at the top of yesterday. The markup is the last moment: banner and row. */
.pay-top { display: grid; margin: 10px 0 4px; }
.pay-top > * { grid-area: 1 / 1; }
.tap { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 72px; visibility: hidden; }
.wallet {
  position: relative;
  z-index: 1;
  flex: none;
  width: 104px;
  height: 66px;
  padding: 9px 11px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* a card in ink with its last digits (the Apple Pay guide's «Картка ••4417»), the same in both themes */
  background: #111218;
  color: #FFFFFF;
}
.wallet svg { display: block; }
.wallet b { font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: 0.02em; }
.reader { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--indigo); box-shadow: inset 0 0 0 1px var(--line); }
.reader > span { grid-area: 1 / 1; display: grid; }
.reader .ok { color: var(--positive); opacity: 0; }
.banner { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.banner img { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.banner div { min-width: 0; }
.banner b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.banner span { display: block; font-size: 14px; line-height: 1.3; color: var(--muted); }

/* Another currency: the top of the app's edit sheet for that payment, risen from the card's bottom
   edge like the phones. */
#currencies { padding-bottom: 0; overflow: hidden; }
.demo.edit { padding: 14px 0 0; overflow: hidden; }
#currencies .demo.edit { border-radius: var(--r-inset) var(--r-inset) 0 0; }
.edit .sheet { padding: 6px 18px 2px; border-radius: 22px 22px 0 0; background: var(--sheet); color: var(--ink); }
.edit .grab { display: block; width: 36px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: var(--line); }
.edit p { margin: 0; }
.sh-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.sh-head b { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.sh-x { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); color: var(--ink); }
.edit .sh-paid { margin-top: 14px; font-size: 15px; line-height: 1.3; color: var(--muted); }
.sh-paid b { font-weight: 600; color: var(--ink); }
.edit .sh-amt { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.2; white-space: nowrap; }
.sh-amt .fx { justify-items: start; vertical-align: top; }
.sh-amt .apx, .sh-amt .sign { font-weight: 700; font-size: 30px; }
.sh-amt .apx { margin-right: 6px; color: var(--muted); }
.sh-amt .sign { color: var(--faint); }
.sh-amt .sign.trail { margin-left: 0.2em; }
.edit .sh-est { margin-top: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.3; color: var(--muted); }
/* A row: glyph, label, value at the right; where the value does not fit beside the label it moves
   under it, still at the right (the app stacks its rows the same way at large text sizes). */
.sh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.25; }
.sh-row > svg { flex: none; color: var(--muted); }
.sh-row > span:first-of-type { flex: 1 0 auto; white-space: nowrap; }
.sh-row .v { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.sh-row .v i { display: flex; color: var(--faint); }
.sh-row .glyph { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgb(127 127 127 / 0.14); background: color-mix(in srgb, var(--k) 16%, transparent); color: var(--k); }
.sh-row .glyph svg { width: 15px; height: 15px; }
.sh-row:last-child { border-bottom: 0; }

/* Expense rows drawn as the app draws them. */
.demo {
  margin-top: 24px;
  background: var(--inset);
  border-radius: var(--r-inset);
  padding: 8px 18px;
}

.demo .day {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.demo .day span:last-child { color: var(--indigo); }

.row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0 12px;
  align-items: center;
  padding: 11px 0;
}

.row + .row { border-top: 1px solid var(--line); }

.row .glyph {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(127 127 127 / 0.14);
  background: color-mix(in srgb, var(--k) 16%, transparent);
  color: var(--k);
}

.row .glyph svg { display: block; }
.row b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
/* The second line: the detail never breaks inside; where the pill does not fit beside it, the pill
   goes under it (the app's ViewThatFits, ExpenseRow.secondLine). */
.row b + small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.row small .dt { white-space: nowrap; }
/* A row fits a 375 px phone with its detail on one line (the narrowest iPhone on iOS 26); narrower
   than that, the name and the detail wrap rather than push the amount out of the drawing. */
@media (max-width: 399.98px) {
  .row { column-gap: 10px; }
}
@media (max-width: 374.98px) {
  .row b, .row small .dt { white-space: normal; }
}
.row .tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: rgb(58 63 207 / 0.12); background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo); font-weight: 600; font-size: 13px; white-space: nowrap; }
/* «Pending», a bank hold: the app's grey pill. */
.row .tag.wait { background: var(--line); color: var(--muted); }
.row .amt { text-align: right; font-weight: 600; font-size: 16px; white-space: nowrap; }
.row .amt small { color: var(--faint); font-weight: 400; font-size: 13px; }

/* A big card: copy beside a phone that rises from the card's bottom edge. */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 0;
  overflow: hidden;
}

.split .shot.phone { margin: 0 calc(8px - var(--pad)); }
/* The report is cut in the gap under a whole highlight, never through a figure: the fade is set in
   the phone's own points (--fp of the --crop), so it falls in that gap at every width. On a phone it
   ends under the largest category's bar, beside the copy under the biggest purchase. */
.split .shot.phone .fs-phone { --crop: 490; --fp: 32; --fade: calc(100% * var(--fp) / var(--crop)); max-width: 400px; }

.phonecard { overflow: hidden; display: flex; flex-direction: column; }
/* The phone stands on the card itself, cut under the categories' shares; the hint under it says
   what a pointer or a finger does there. */
.phonecard .shot.phone { margin: 28px calc(8px - var(--pad)) 0; }
.phonecard .shot.phone .fs-phone { --crop: 462; --fp: 16; --fade: calc(100% * var(--fp) / var(--crop)); max-width: 360px; }
.phonecard .hint { max-width: none; margin: 12px 0 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--muted); }
.hint .by-touch { display: none; }
@media (hover: none) {
  .hint .by-pointer { display: none; }
  .hint .by-touch { display: inline; }
}

/* Search: the app's answer card, drawn; a question above it is a button that asks it (site.js shows
   them: without JavaScript there is no question to press). */
.asks { display: flex; flex-direction: column; }
.asks > .demo { margin-top: auto; }
.asks > p:has(+ .tries[hidden]) { margin-bottom: 24px; }
.ask { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.field-q { background: linear-gradient(165deg, var(--field-top), var(--field-bottom)); border-radius: 18px; padding: 14px; }
.field-q .q { display: flex; align-items: center; gap: 8px; background: rgb(255 255 255 / 0.16); color: #FFFFFF; border-radius: 16px; padding: 10px 14px; font-size: 16px; line-height: 1.35; min-height: 44px; }
.field-q .q svg { flex: none; width: 18px; height: 18px; }
.answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: 18px; padding: 14px 16px; }
.answer b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
/* The shown answer and every other possible one share one grid cell (the others hidden), so the card
   keeps the tallest answer's height and nothing moves when a question is tapped. */
.answer > div { display: grid; min-width: 0; }
.answer > div > div { grid-area: 1 / 1; align-self: center; }
.answer .sz { visibility: hidden; }
.answer small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.answer .go { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo-fill); color: #FFFFFF; display: grid; place-items: center; }
.tries { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tries li { margin: 0; padding: 0; }
.tries button {
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--inset);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease-fade), transform 160ms var(--ease-out);
}
.tries button::before { content: "“"; color: var(--faint); }
.tries button::after { content: "”"; color: var(--faint); }
:lang(uk) .tries button::before { content: "«"; }
:lang(uk) .tries button::after { content: "»"; }

@media (hover: hover) {
  .tries button:hover { background: var(--line); }
}

/* The question asked last. */
.tries button[aria-pressed="true"] { background: var(--indigo-fill); color: #FFFFFF; }
@media (max-width: 719.98px) { .tries button { font-size: 15px; padding-inline: 14px; } }
.tries button[aria-pressed="true"]::before,
.tries button[aria-pressed="true"]::after { color: rgb(255 255 255 / 0.7); }

/* On a phone the search field keeps one line, as an iOS field does. */
@media (max-width: 719.98px) {
  .field-q .q .typed { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* The privacy band: the one dark block on the page, the night field in both themes. */
.band {
  background: var(--band);
  color: #FFFFFF;
  border-radius: var(--r-card);
  padding: 36px var(--pad);
  scroll-margin-top: 16px;
}

.band h2 { color: #FFFFFF; max-width: 24ch; }

/* What happens to the data, as a ledger: one panel, a row per fact. */
.ledger {
  max-width: 640px;
  margin: 28px 0 0;
  padding: 4px 20px;
  border-radius: var(--r-inset);
  background: var(--band-card);
}

.ledger div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 24px;
  padding: 14px 0;
  font-size: 17px;
  line-height: 1.4;
}

.ledger div + div { border-top: 1px solid var(--band-line); }
.ledger dt { color: var(--on-field-2); }
.ledger dd { margin: 0; font-weight: 600; color: #FFFFFF; }

.band .more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration-color: rgb(255 255 255 / 0.5);
}

/* On a phone every row of the ledger stacks alike, the fact under its label. */
@media (max-width: 719.98px) {
  .ledger div { flex-direction: column; gap: 2px; }
}

/* On a wide screen the heading and the link on the left, the ledger on the right. The left column
   never breaks a hand-set line of the heading: below about 1220 px the ledger gives way instead. */
@media (min-width: 1100px) {
  .band { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 540px); grid-template-rows: auto 1fr; column-gap: 72px; align-items: start; }
  .band h2 { grid-column: 1; grid-row: 1; max-width: none; }
  .band .more { grid-column: 1; grid-row: 2; align-self: end; }
  .ledger { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
}

/* Monzo's big link list. */
.links { padding: 16px 0 0; }

.links ul { list-style: none; margin: 12px 0 0; padding: 0; }
.links li { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }

/* A row in ink with an indigo chevron; hover changes colour only. */
.links a {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  min-height: 72px;
  padding: 10px 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  transform-origin: left center;
  transition: color 150ms var(--ease-fade), transform 160ms var(--ease-out);
}

.links a:active { transform: scale(0.97); }

/* A chevron at the row's end. */
.links a::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin: 0 6px 0 auto;
  border-top: 2.5px solid var(--indigo);
  border-right: 2.5px solid var(--indigo);
  border-radius: 1px;
  transform: rotate(45deg);
}

.links a span {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 26ch;
}

@media (hover: hover) {
  .links a:hover { color: var(--indigo); }
}

.closing {
  text-align: center;
  padding: 40px 16px 0;
}

.closing > img { width: 80px; height: 80px; border-radius: 18px; display: block; margin: 0 auto 18px; }
/* The hero's size: two lines set by hand, the page's bookend. */
.closing h2 { font-size: clamp(38px, min(10vw, 8vh), 72px); line-height: 1; letter-spacing: -0.015em; }
.closing p { margin: 20px 0 0; font-size: 19px; color: var(--muted); text-wrap: balance; }
.closing .store { margin-top: 28px; }

@media (min-width: 720px) {
  .home main { gap: 32px; }
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: clamp(32px, 5vw, 80px); padding: 64px var(--pad) 0; min-height: 560px; }
  .slide .copy { grid-column: 1; grid-row: 1; padding-bottom: 64px; }
  .slide .shot.phone { grid-column: 2; grid-row: 1 / -1; align-self: end; margin: 0; }
  .slide .shot.phone .fs-phone { --crop: 600; max-width: 380px; }
  .hero .sub { font-size: 19px; }
  .controls { right: auto; justify-content: flex-start; gap: 20px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 24px; }
  /* Three feature cards (monobank, Apple Pay, another currency): the third spans the row, its copy on
     the left and the edit sheet rising from the card's bottom edge on the right. */
  .grid2 > .card:nth-child(3):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px; }
  .grid2 > .card:nth-child(3):last-child > h2 { grid-column: 1; grid-row: 1; }
  .grid2 > .card:nth-child(3):last-child > p { grid-column: 1; grid-row: 2; align-self: start; margin-bottom: 44px; }
  .grid2 > .card:nth-child(3):last-child > .demo { grid-column: 2; grid-row: 1 / -1; align-self: end; margin-top: 0; }
  .card { padding: 44px var(--pad); }
  .split { grid-template-columns: 1fr 0.85fr; gap: 32px; padding-bottom: 0; }
  .split .copy { align-self: center; padding-bottom: 44px; }
  .split .shot.phone { align-self: end; margin: 0; }
  .split .shot.phone .fs-phone { --crop: 626; max-width: 360px; }
  .phonecard .shot.phone { margin: 28px 0 0; }
  .band { padding: 56px var(--pad); }
  .links { padding: 24px 0 0; }
  .links a { font-size: 28px; }
  /* Columns: every note starts at the same x. */
  .links a { display: grid; grid-template-columns: 13em minmax(0, 1fr) auto; column-gap: 24px; }
  .links a span { max-width: none; }
  .closing { padding-top: 56px; }
}

@media (max-width: 719.98px) {
  .links a span { display: none; }
}

/* Reduced motion: things change by fading, not by moving or growing. */
@media (prefers-reduced-motion: reduce) {
  .dots button::after { transition: background-color 300ms var(--ease-fade); }
  .button:active, .arrows button:active, .tries button:active, .links a:active { transform: none; opacity: 0.8; }
}

/* ───────────── motion ─────────────
   The markup is always the final state: without JavaScript, for crawlers and for VoiceOver every
   figure is real. site.js rewinds a [data-play] block (.is-armed) and plays it (.is-playing) when
   it enters the view. Only opacity and transform move; every fade eases (--ease-fade), every move
   settles (--ease-quart), and only the Apple Pay banner overshoots. Reduced motion fades instead. */

/* The currency row's amount: euros first, then ≈ hryvnias in the same place. */
.fx { display: inline-grid; justify-items: end; overflow: hidden; }
.fx > span { grid-area: 1 / 1; }
.fx-from { visibility: hidden; }
[data-play="fx"].is-armed .fx-from,
[data-play="fx"].is-playing .fx-from { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  /* Cards and link rows rise in turn. */
  .is-armed.rv,
  .is-armed .rv { opacity: 0; transform: translateY(20px); }
  .is-playing.rv,
  .is-playing .rv {
    transition: opacity 760ms var(--ease-fade), transform 760ms var(--ease-quart);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  /* monobank: the notice fills to its first month (0–1.4 s), then today's rows land 70 ms apart
     at the top of the day as its total ticks. */
  [data-play="mono"].is-armed .track i { transform: scaleX(0); }
  [data-play="mono"].is-playing .track i { transition: transform 1400ms var(--ease-quart); }
  [data-play="mono"].is-armed .row.new { opacity: 0; transform: translateY(-12px); }
  [data-play="mono"].is-playing .row.new {
    transition: opacity 450ms var(--ease-fade), transform 600ms var(--ease-quart);
    transition-delay: calc(1400ms + var(--i, 0) * 70ms);
  }

  /* Apple Pay: the card glides to the reader (0.2–0.9 s), the reader answers, the banner drops
     in its place (1.3 s), the payment lands at the top of the day (1.75 s) as the total ticks. */
  [data-play="pay"].is-armed .tap,
  [data-play="pay"].is-playing .tap { visibility: visible; }
  [data-play="pay"].is-playing .tap { opacity: 0; transition: opacity 300ms var(--ease-fade) 1300ms; }
  [data-play="pay"].is-playing .wallet { transform: translateX(46px); transition: transform 700ms var(--ease-quart) 200ms; }
  [data-play="pay"].is-playing .reader .waves { opacity: 0; transition: opacity 200ms var(--ease-fade) 850ms; }
  [data-play="pay"].is-playing .reader .ok { opacity: 1; transform: scale(1); transition: opacity 200ms var(--ease-fade) 850ms, transform 400ms var(--ease-quart) 850ms; }
  [data-play="pay"].is-armed .reader .ok { transform: scale(0.5); }
  [data-play="pay"].is-armed .banner { opacity: 0; transform: translateY(-18px) scale(0.96); }
  [data-play="pay"].is-playing .banner { transition: opacity 300ms var(--ease-fade) 1300ms, transform 600ms var(--ease-over) 1300ms; }
  [data-play="pay"].is-armed .row.new { opacity: 0; transform: translateY(-12px); }
  [data-play="pay"].is-playing .row.new { transition: opacity 450ms var(--ease-fade) 1750ms, transform 600ms var(--ease-quart) 1750ms; }
  [data-play="pay"].is-armed .tag { opacity: 0; transform: scale(0.6); }
  [data-play="pay"].is-playing .tag { transition: opacity 300ms var(--ease-fade) 2250ms, transform 500ms var(--ease-quart) 2250ms; }

  /* The edit sheet's line about the rate comes once the amount has turned into hryvnias. */
  [data-play="fx"].is-armed .sh-est { opacity: 0; transform: translateY(6px); }
  [data-play="fx"].is-playing .sh-est { transition: opacity 400ms var(--ease-fade) 1500ms, transform 500ms var(--ease-quart) 1500ms; }

  /* € → ≈ ₴ */
  [data-play="fx"].is-armed .fx-to { opacity: 0; transform: translateY(70%); }
  [data-play="fx"].is-playing .fx-from {
    opacity: 0;
    transform: translateY(-70%);
    transition: opacity 350ms var(--ease-fade) 600ms, transform 500ms var(--ease-quart) 600ms;
  }
  [data-play="fx"].is-playing .fx-to { transition: opacity 400ms var(--ease-fade) 700ms, transform 600ms var(--ease-quart) 700ms; }

  /* Search: the question types itself, a short indigo beam, then the answer rises. A question
     above it asks again the same way (site.js). */
  .typed.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: -0.2em;
    background: currentColor;
    animation: caret 900ms steps(1) infinite;
  }
  .field-q { position: relative; }
  .field-q::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -7px;
    height: 2px;
    border-radius: 1px;
    background: var(--indigo);
    opacity: 0;
    transform-origin: left center;
  }
  [data-play="ask"].is-beam .field-q::after { animation: beam 700ms var(--ease-quart); }
  [data-play="ask"].is-armed .answer { opacity: 0; transform: translateY(14px) scale(0.98); }
  [data-play="ask"].is-playing .answer { transition: opacity 450ms var(--ease-fade), transform 600ms var(--ease-quart); }
}

@media (prefers-reduced-motion: reduce) {
  .is-armed.rv,
  .is-armed .rv,
  [data-play="mono"].is-armed .row.new,
  [data-play="pay"].is-armed .banner,
  [data-play="pay"].is-armed .row.new,
  [data-play="fx"].is-armed .sh-est,
  [data-play="fx"].is-armed .fx-to,
  [data-play="ask"].is-armed .answer { opacity: 0; }
  .is-playing.rv,
  .is-playing .rv,
  [data-play="mono"].is-playing .row.new,
  [data-play="pay"].is-playing .banner,
  [data-play="pay"].is-playing .row.new,
  [data-play="fx"].is-playing .sh-est,
  [data-play="fx"].is-playing .fx-to,
  [data-play="ask"].is-playing .answer { transition: opacity 400ms var(--ease-fade); }
  [data-play="fx"].is-armed .fx-from { opacity: 1; }
  [data-play="fx"].is-playing .fx-from { opacity: 0; transition: opacity 400ms var(--ease-fade); }

  /* Apple Pay: the tap's last moment holds still (the card at the reader, the ✓), then fades
     into the banner, and the payment fades in at the top of the day. */
  [data-play="pay"].is-armed .tap,
  [data-play="pay"].is-playing .tap { visibility: visible; }
  [data-play="pay"] .tap .wallet { transform: translateX(46px); }
  [data-play="pay"] .tap .reader .waves { opacity: 0; }
  [data-play="pay"] .tap .reader .ok { opacity: 1; }
  [data-play="pay"].is-playing .tap { opacity: 0; transition: opacity 400ms var(--ease-fade) 1300ms; }
  [data-play="pay"].is-playing .banner { transition-delay: 1300ms; }
  [data-play="pay"].is-playing .row.new { transition-delay: 1700ms; }

  /* monobank: the notice holds its first month; the rows fade in. */
  [data-play="mono"].is-playing .row.new { transition-delay: 600ms; }

  /* Search: a question asked from the buttons cross-fades its answer in 300 ms. */
  .ask .answer { transition: opacity 150ms var(--ease-fade); }
  [data-play="ask"].is-swapping .answer { opacity: 0; }
}

@keyframes caret { 50% { opacity: 0; } }
@keyframes beam {
  0% { opacity: 1; transform: scaleX(0); }
  60% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* ───────────── footer ───────────── */

.foot {
  padding-bottom: 32px;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

/* The header's brand on the left, the pages and the address on the right; where they do not fit
   beside it (a phone), the nav goes under the brand. */
.foot-row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  margin-bottom: 12px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

@media (max-width: 719.98px) {
  .foot nav { column-gap: 16px; }
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

@media (hover: hover) {
  .foot nav a:hover { color: var(--indigo); }
}

.foot p { margin: 0; }

/* Apple's credit line, asked for wherever the App Store badge is used; on every page, so the footer
   stays the same everywhere. */
.foot .legal { margin-top: 8px; max-width: 72ch; }

/* ───────────── redirect page ───────────── */

body:not(.home) main.moved { margin-top: 48px; }
