/* Monzo-style top test (white bar + Personal/Business switch + inset hero card).
   Only active with ?hero=monzo (html.mz). Shared by / and /business/. */
.mzbar, .mz-seals, .mz-tc, .mzv { display: none; }
html.mz body { background: #fff; }
html.mz .mzbar { display: flex; position: sticky; top: 0; z-index: 60; align-items: center; gap: 20px; height: 76px; padding: 0 clamp(16px, 2.2vw, 32px); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: box-shadow .3s; }
html.mz.mz-scrolled .mzbar { box-shadow: 0 1px 0 rgba(11,11,12,.08); }
.mzbar .mzlogo svg { height: 24px; width: auto; fill: #0b0b0c; display: block; }
.mzseg { position: relative; display: flex; padding: 4px; border-radius: 99px; background: #ededea; }
.mzseg a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: 15px; font-weight: 500; color: #4a4a4f; transition: color .3s; }
.mzseg a svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mzseg a.on { color: #0b0b0c; background: #fff; box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }
.mzbtn { margin-left: auto; display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 99px; background: #0b0b0c; color: #fff; font-size: 15px; font-weight: 500; }
.mzalt { margin-left: auto; font-size: 15px; font-weight: 500; color: #0b0b0c; }
.mzalt + .mzbtn { margin-left: 0; }
html.mz .mz-tc { display: block; text-align: right; font-size: 13px; color: rgba(11,11,12,.6); margin: 10px clamp(18px, 2.4vw, 30px) 0; }
html.mz .mz-seals { display: flex; position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); bottom: clamp(24px, 4vh, 44px); gap: 12px; }
.mz-seal { width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #fff; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.mz-seal img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.mz-seal svg { width: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mz-seal small { font-size: 11.5px; line-height: 1.2; font-weight: 500; opacity: .92; }
.mz-seal--o { background: linear-gradient(160deg, rgba(255,122,61,.85), rgba(247,80,15,.85)); border-color: rgba(255,255,255,.35); }

/* ---------- / (personal homepage) ---------- */
html.mz .m-strip, html.mz .m-nav { display: none; }
html.mz .m-hero { margin: 0 clamp(12px, 1.8vw, 24px); min-height: 0; height: calc(100svh - 104px); max-height: 900px; border-radius: clamp(28px, 3.4vw, 48px); overflow: hidden; isolation: isolate; }
html.mz .m-hero__bg { display: none; }
html.mz .m-hero__stage { position: absolute; inset: 0; width: auto; aspect-ratio: auto; z-index: 0; }
html.mz .m-hero__card { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
html.mz .m-hero__card::after { background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(0,0,0,.45)); }
html.mz .m-hero__card .m-rec { display: none; }
html.mz .m-hero__bal { display: none; }
html.mz .m-hero__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; max-width: none; padding: 0 clamp(24px, 5vw, 72px) clamp(32px, 6vh, 72px); z-index: 2; }
html.mz .m-hero__copy { max-width: 760px; }
html.mz .m-hero__h { font-size: clamp(48px, 6vw, 92px); }
html.mz .m-hero__note { top: clamp(20px, 3vw, 40px); bottom: auto; right: clamp(20px, 3vw, 40px); left: auto; width: 340px; max-width: calc(100% - 40px); }
@media (min-width: 900px) {
  html.mz .m-hero__vid { display: none; }
  html.mz .mzv { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- /business ---------- */
html.mz .topbar, html.mz .nav { display: none !important; }
/* The hero fills the screen but grows with its text: a longer language must never run into the press row or out of the photo. */
html.mz .hero { margin: 0 clamp(12px, 1.8vw, 24px); min-height: min(calc(100svh - 104px), 900px); border-radius: clamp(28px, 3.4vw, 48px); align-items: flex-end; }
html.mz .hero__content--v2 { padding-top: 48px; padding-bottom: clamp(32px, 6vh, 72px); padding-left: clamp(24px, 5vw, 72px); margin: 0; max-width: 820px; }
html.mz .hero__art { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
html.mz .hero__art .ring, html.mz .hero__art .hcard--rec, html.mz .hero__art .hcard--hrs, html.mz .hero__art .hcard--chk { display: none; }
html.mz .hero__art .hcard--pay { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); left: auto; bottom: auto; transform: none; animation: none; opacity: 1; }
html.mz .press { margin-top: 24px; }

@media (max-width: 760px) {
  html.mz .mzbar { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
  html.mz .mzseg { order: 3; width: 100%; }
  html.mz .mzseg a { flex: 1; justify-content: center; }
  html.mz .mzbtn { height: 40px; padding: 0 16px; font-size: 14px; }
  html.mz .m-hero { height: calc(100svh - 150px); min-height: 520px; }
  html.mz .hero { min-height: clamp(520px, calc(100svh - 150px), 900px); }
  html.mz .mz-seals { display: none; }
  html.mz .mz-tc { text-align: left; }
  html.mz .m-hero__note { left: 14px; right: 14px; width: auto; top: 14px; }
  html.mz .hero__content--v2 { padding-left: 22px; padding-right: 22px; }
  html.mz .hero__art .hcard--pay { top: 14px; right: 14px; }
}
html.mz .m-hero__copy { flex: none; }
html.mz .m-hero__in { align-items: flex-start; }
.mz-seal--zero { gap: 2px; }
.mz-seal--zero b { font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
@media (max-width: 640px) { html.mz .m-hero__h, .m-hero__h { font-size: clamp(30px, 9vw, 42px); line-height: 1; } }

/* ======================================================================
   Phone layout, Monzo-style, in shift's colours and type (≤640px, html.mz).
   Full-bleed hero with rounded foot, heavy left-aligned headlines,
   full-width pill buttons, sections as rounded panels on white.
   Desktop is untouched: every rule sits in this media query.
   ====================================================================== */
@media (max-width: 640px) {
  html.mz { --mz-r: 28px; --mz-gap: 12px; --mz-tint: #fbefe8; --mz-grey: var(--paper-2); }
  html.mz body { background: #fff; }

  /* Top bar: one line — logo, Individual/Business switch, pill button */
  html.mz .mzbar { flex-wrap: nowrap; height: 60px; padding: 0 14px; gap: 10px; }
  html.mz .mzbar .mzlogo svg { height: 20px; }
  html.mz .mzseg { order: 0; width: auto; padding: 3px; margin: 0 auto; }
  html.mz .mzseg a { flex: none; padding: 7px 12px; font-size: 13px; }
  html.mz .mzseg a svg { display: none; }
  html.mz .mzbtn { margin-left: 0; height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  html.mz .mzalt { display: none; }

  /* Hero: edge to edge, rounded only at the foot */
  html.mz .m-hero, html.mz .hero { margin: 0; border-radius: 0 0 var(--mz-r) var(--mz-r); }
  html.mz .m-hero { height: calc(100svh - 60px); min-height: 560px; max-height: 780px; }
  html.mz .hero { min-height: clamp(560px, calc(100svh - 60px), 780px); }
  html.mz .m-hero__h, html.mz .hero__title { font-weight: 700; font-size: clamp(36px, 10.6vw, 44px); line-height: 1.04; letter-spacing: -0.035em; }
  html.mz .m-hero__p, html.mz .hero__sub { font-size: 17px; line-height: 1.42; opacity: .94; }
  html.mz .m-hero__in, html.mz .hero__content--v2 { padding: 0 20px 118px; width: 100%; max-width: none; }
  html.mz .hero__title, html.mz .hero__sub, html.mz .m-hero__copy { max-width: none; }
  html.mz .m-hero__ctas, html.mz .hero__ctas { flex-direction: row; }
  html.mz .m-hero__ctas .btn, html.mz .hero__ctas .hbtn { height: 50px; padding: 0 24px; border-radius: 99px; font-weight: 600; font-size: 16px; width: auto; }
  html.mz .hero__proof { display: none; }
  html.mz .mz-seals { display: flex; position: absolute; left: 20px; right: auto; bottom: 24px; gap: 8px; }
  html.mz .mz-seal { width: 74px; height: 74px; gap: 3px; }
  html.mz .mz-seal img { height: 12px; }
  html.mz .mz-seal svg { width: 18px; }
  html.mz .mz-seal small { font-size: 9px; }
  html.mz .mz-seal--zero b { font-size: 20px; }
  html.mz .mz-tc { text-align: center; font-size: 12.5px; margin: 12px 24px 0; }

  /* Type: heavy headlines, quiet ledes */
  html.mz .m-h2, html.mz main section h2, html.mz .m-final__h { font-weight: 700; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
  html.mz .m-lede, html.mz .estimate__head p { font-size: 17.5px; line-height: 1.45; margin-top: 12px; }
  html.mz .m-head, html.mz .section-head { margin-bottom: 24px; }
  html.mz main section h3 { font-weight: 700; letter-spacing: -0.025em; }

  /* Buttons: pills, full width outside the hero */
  html.mz main .btn, html.mz main .hbtn { border-radius: 99px; font-weight: 600; }
  html.mz main section:not(.m-hero):not(.hero) .btn--lg,
  html.mz .m-way .btn, html.mz .section-head__ctas a, html.mz .final__in .btn { width: 100%; justify-content: center; height: 52px; font-size: 16px; }
  html.mz .section-head__ctas { flex-direction: column; gap: 10px; width: 100%; }
  html.mz .final__in .btn--split { justify-content: center; }

  /* Sections become rounded panels on the white page */
  html.mz .m-ways, html.mz .m-app, html.mz .m-final, html.mz .globe, html.mz .privacy, html.mz .final {
    margin: var(--mz-gap) var(--mz-gap) 0; border-radius: var(--mz-r); overflow: hidden; isolation: isolate;
  }
  html.mz .m-ways { padding: 40px 0 20px; background: var(--mz-grey); }
  html.mz .m-app { padding: 44px 0 0; }
  html.mz .m-how, html.mz .m-reel, html.mz .m-trust { padding-top: 48px; padding-bottom: 32px; }
  html.mz .m-final { min-height: 0; padding: 56px 0 40px; margin-bottom: var(--mz-gap); }
  html.mz .final { margin-bottom: var(--mz-gap); }
  html.mz .m-final__in, html.mz .final__in { text-align: left; align-items: stretch; }
  html.mz .m-final__in .m-final__biz { align-self: center; }

  /* Homepage: trust stats as a soft panel */
  html.mz .m-trust__grid { background: var(--mz-grey); border-radius: 24px; padding: 22px 12px; row-gap: 22px; }
  html.mz .m-stat b { font-weight: 700; }

  /* Carousels: big rounded cards with a peek of the next */
  html.mz .m-clip { width: 72vw; border-radius: 24px; }
  html.mz .m-clip figcaption b { font-weight: 700; font-size: 19px; }

  /* Steps: Monzo "Step 1" cards — tinted, orange label, bold title */
  html.mz .m-steps { gap: 10px; }
  html.mz .m-step { flex: 0 0 82%; background: var(--mz-tint); border-radius: 24px; padding: 14px 14px 22px; scroll-snap-align: start; }
  html.mz .m-step__media { border-radius: 16px; overflow: hidden; }
  html.mz .m-step h3 { font-size: 22px; margin: 8px 0 6px; }
  html.mz .m-step__n, html.mz .m-step > span:first-child { color: var(--orange); font-weight: 600; }
  html.mz .m-step p { font-size: 15.5px; }

  /* Business: bento cards as stacked rounded panels */
  html.mz .value { padding-top: 48px; }
  html.mz .bento { gap: var(--mz-gap); }
  html.mz .bento .card { border-radius: var(--mz-r); }
  html.mz .card__txt h3 { font-size: 24px; }

  /* Business: calculator and FAQ in Monzo's soft panels */
  html.mz .calc__in { border-radius: var(--mz-r); }
  html.mz .calc__out { border-radius: var(--mz-r); }
  html.mz .faq summary { font-weight: 600; }
  html.mz .trust__card { border-radius: 20px; }

  /* Footer: rounded top, like the hero's foot turned over */
  html.mz .m-foot, html.mz .foot { border-radius: var(--mz-r) var(--mz-r) 0 0; }
}
/* Individual pages (/ and /personal/): no press seal on the phone hero */
@media (max-width: 640px) {
  html.mz .m-hero .mz-seals { display: none; }
  html.mz .m-hero__in { padding-bottom: 30px; }
}
/* Business phone hero, closer to Monzo: wider margins, a long pill button, no seals.
   (Phones show no seals on any page.) */
@media (max-width: 640px) {
  html.mz .hero__content--v2 { padding: 0 28px 40px; }
  html.mz .hero__title { font-size: clamp(34px, 10vw, 42px); }
  html.mz .hero__sub { margin-top: 16px; }
  html.mz .hero__ctas { margin-top: 26px; }
  html.mz .hero__ctas .hbtn { min-width: 72%; height: 54px; justify-content: center; gap: 12px; font-size: 17px; }
  html.mz .hero .mz-seals { display: none; }
}
/* Line breaks on phones: headlines split into even lines, paragraphs avoid a
   lone last word, long German compounds hyphenate instead of overflowing. */
@media (max-width: 640px) {
  html.mz h1, html.mz h2, html.mz h3, html.mz .m-h2, html.mz .m-final__h, html.mz summary, html.mz figcaption b { text-wrap: balance; }
  html.mz p, html.mz li, html.mz .m-lede, html.mz .hero__sub, html.mz .m-hero__p { text-wrap: pretty; }
  html.mz:lang(de) h1, html.mz:lang(de) h2, html.mz:lang(de) h3, html.mz:lang(de) p { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
/* Phones, countries with a language picker: the bar is too full for one row,
   so the Individual/Business switch takes a second row of its own. */
@media (max-width: 640px) {
  html.mz .mzbar:has(.langpick) { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  html.mz .mzbar:has(.langpick) .mzseg { order: 3; width: 100%; margin: 0; }
  html.mz .mzbar:has(.langpick) .mzseg a { flex: 1; justify-content: center; }
  html.mz .mzbar:has(.langpick) .langpick { margin-left: auto; }
  html.mz:has(.mzbar .langpick) .m-hero { height: calc(100svh - 108px); }
  html.mz:has(.mzbar .langpick) .hero { min-height: clamp(560px, calc(100svh - 108px), 780px); }
}
/* TRY: business phone hero placed as monzo.com places its own (measured on a 390px screen):
   copy block high on the photo, 40px sides, ~30px between headline, text and button,
   a 48px button ~264px wide, nothing in the corners. */
@media (max-width: 640px) {
  html.mz .hero { align-items: stretch; }
  html.mz .hero__content--v2 { padding: 76px 40px 30px; }
  html.mz .hero__title { font-size: 40px; line-height: 1.2; letter-spacing: -0.03em; }
  html.mz .hero__sub { margin-top: 30px; font-size: 19px; line-height: 1.4; color: #fff; opacity: 1; }
  html.mz .hero__ctas { margin-top: 30px; }
  html.mz .hero__ctas .hbtn { min-width: 0; width: 264px; height: 48px; font-size: 16px; }
  html.mz .hero__art .hcard--pay { display: none; }
  html.mz .hero__scrim { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%); }
}
/* Business phone hero: three badges along the foot of the card, as monzo.com
   lines up its own — each its own shape: a white press seal, a dark ticket, an orange shield block. */
@media (max-width: 640px) {
  html.mz .hero .mz-seals { display: flex; position: absolute; z-index: 3; left: 40px; right: 40px; bottom: 30px; justify-content: space-between; align-items: center; gap: 10px; }
  html.mz .hero .mz-seal { width: auto; height: auto; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

  /* Forbes: white round seal with a fine inner ring */
  html.mz .hero .mz-seal:first-child { width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--ink); gap: 4px;
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(11,11,12,.2), 0 6px 18px -6px rgba(0,0,0,.45); }
  html.mz .hero .mz-seal:first-child img { height: 15px; filter: none; }
  html.mz .hero .mz-seal:first-child small { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.6); }

  /* €0: dark ticket with a white rule, number left, words right */
  html.mz .hero .mz-seal--zero { flex-direction: row; gap: 8px; padding: 9px 12px 9px 10px; border-radius: 10px; background: #0b0b0c; color: #fff; text-align: left;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 6px 18px -6px rgba(0,0,0,.5); }
  html.mz .hero .mz-seal--zero b { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
  html.mz .hero .mz-seal--zero small { font-size: 8.5px; line-height: 1.25; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: 1; }

  /* GDPR: orange shield block, icon on top, words below */
  html.mz .hero .mz-seal--o { width: 62px; height: 74px; gap: 4px; border-radius: 14px 14px 31px 31px; background: linear-gradient(170deg, var(--orange-2), var(--orange));
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 0 6px 18px -6px rgba(247,80,15,.6); }
  html.mz .hero .mz-seal--o svg { width: 20px; stroke-width: 2; }
  html.mz .hero .mz-seal--o small { font-size: 7.5px; line-height: 1.25; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 1; }
}
/* Business phone hero: instead of the three badges, the existing "Featured in" press row,
   set along the foot of the card where monzo.com puts its badges, always at least 28px below the button. */
@media (max-width: 640px) {
  html.mz .hero .mz-seals { display: none; }
  html.mz .hero__ctas { margin-bottom: 28px; }
  html.mz .hero__proof { display: flex; align-self: stretch; margin: auto 0 0; padding-top: 18px;
    flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 14px; column-gap: 10px; border-top: 1px solid rgba(255,255,255,.18); }
  html.mz .hero__proof span { flex: 0 0 100%; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
  html.mz .hero__proof img { opacity: .9; }
  html.mz .hero__proof .pf-forbes { height: 17px; } html.mz .hero__proof .pf-bi { height: 10px; }
  html.mz .hero__proof .pf-fc { height: 13px; } html.mz .hero__proof .pf-hb { height: 14px; }
}
@media (max-width: 640px) {
  html.mz .hero__proof { column-gap: 4px; }
  html.mz .hero__proof .pf-forbes { height: 14px; } html.mz .hero__proof .pf-bi { height: 8px; }
  html.mz .hero__proof .pf-fc { height: 10.5px; } html.mz .hero__proof .pf-hb { height: 11.5px; }
}
/* Phones: three logos only, one clean row */
@media (max-width: 640px) {
  html.mz .hero__proof .pf-hb { display: none; }
  html.mz .hero__proof .pf-forbes { height: 16px; } html.mz .hero__proof .pf-bi { height: 9.5px; } html.mz .hero__proof .pf-fc { height: 12.5px; }
}

/* Georgian and Russian run longest: smaller hero text on phones, so the button shows without scrolling on most of them. */
@media (max-width: 640px) {
  html.mz:lang(ka) .hero__content--v2, html.mz:lang(ru) .hero__content--v2 { padding-top: 48px; }
  html.mz:lang(ka) .hero__title, html.mz:lang(ru) .hero__title { font-size: 32px; }
  html.mz:lang(ka) .hero__sub, html.mz:lang(ru) .hero__sub { margin-top: 20px; font-size: 17px; }
}

/* A muted background video never shows the browser's own play button (iOS draws one
   over a video it will not autoplay, e.g. in Low Power Mode). */
video:not([controls])::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video:not([controls])::-webkit-media-controls { display: none !important; }

/* Stills mode (stills.js): the videos are hidden and an <img> of each still takes its place.
   :where() keeps these at zero weight, so each class's own rules (hidden panes, desktop-only) win. */
html.stills video[data-frozen] { display: none !important; }
:where(.still-img) { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.card--photo) .still-img { position: absolute; inset: 0; z-index: -2; }
