/*
 * Press 4 for the public site (24 Oct 2026).
 *
 * The site now speaks the same visual language as the e-mails and the deep pages: palette bands that tuck under
 * torn edges, loud type printed slightly out of register, facts as stickers, hard ink shadows, a little tilt.
 * Money follows the documents' rule (+ green, = black, − red, = black). Everything is self-hosted (CSP 'self').
 * Loaded after styles.css, which keeps the layout of the forms, registration and chat; this file re-skins them.
 */

/* ---------------------------------------------------------------- fonts */
/* Each role pairs a Latin face with a Cyrillic face of the same character, so Ukrainian and Russian keep the look. */
@font-face { font-family: "P4 Wide"; font-weight: 400 800; font-display: swap; src: url("/fonts/syne-lat.woff?v=d742b048e3") format("woff"); unicode-range: U+0000-024F, U+02C6-02DD, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "P4 Wide Cyr"; font-weight: 400 900; font-display: swap; src: url("/fonts/unbounded-cyr.woff?v=52cb7a5ad2") format("woff"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "P4 Cond"; font-weight: 400; font-display: swap; src: url("/fonts/anton-lat.woff?v=0bc4f71aa1") format("woff"); unicode-range: U+0000-024F, U+02C6-02DD, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "P4 Cond Cyr"; font-weight: 400 700; font-display: swap; src: url("/fonts/oswald-cyr.woff?v=3157109202") format("woff"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "P4 Body"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-lat.woff?v=8ea04d3117") format("woff"); unicode-range: U+0000-024F, U+02C6-02DD, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "P4 Body Cyr"; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-cyr.woff?v=95d7ab4360") format("woff"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "P4 Hand"; font-weight: 400; font-display: swap; src: url("/fonts/brush-lat.woff?v=d22dcfe3ac") format("woff"); unicode-range: U+0000-024F, U+02C6-02DD, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "P4 Hand Cyr"; font-weight: 400 700; font-display: swap; src: url("/fonts/caveat-cyr.woff?v=c3d15aaaba") format("woff"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "P4 Mono"; font-weight: 700; font-display: swap; src: url("/fonts/plexmono-bold.woff?v=ae511f6241") format("woff"); }

/* --------------------------------------------------------------- tokens */
:root {
  --ink: #172922;
  --cream: #fff1d6;
  --paper: #fff5df;
  --lemon: #f9f25d;
  --vermilion: #ff542e;
  --cobalt: #173ce8;
  --pink: #ffacd0;
  --mint: #c8f3aa;
  --lime: #d6f5a3;
  --gold: #ffd166;
  --forest: #143a2e;
  --plus: #0e7a3c;
  --minus: #c4232b;

  /* The legacy tokens styles.css uses, pointed at the press palette so every form and panel follows. */
  --bg: var(--cream);
  --bg-soft: #fffaf0;
  --surface: var(--paper);
  --surface-2: #fde9c2;
  --border: var(--ink);
  --border-bright: var(--ink);
  --text: var(--ink);
  --text-dim: #3f4f48;
  --accent: var(--ink);
  --accent-deep: var(--ink);
  --accent-ink: var(--paper);
  --blue: var(--cobalt);
  --green: var(--plus);
  --red: var(--minus);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 7px 8px 0 var(--ink);

  --font: "P4 Body", "P4 Body Cyr", system-ui, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Arabic", sans-serif;
  --font-display: "P4 Wide", "P4 Wide Cyr", var(--font);
  --font-cond: "P4 Cond", "P4 Cond Cyr", var(--font);
  --font-hand: "P4 Hand", "P4 Hand Cyr", cursive;
  --font-mono: "P4 Mono", ui-monospace, monospace;
  --font-seal: var(--font-display);
  --font-serif-italic: var(--font-hand);
  color-scheme: light;
}

/* The press look is printed paper in every light: the old dark default is gone. */
@media (prefers-color-scheme: dark) { :root { --bg: var(--cream); --text: var(--ink); } }

* { box-sizing: border-box; }
::selection { background: var(--lemon); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; color: inherit; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
.wrap { width: min(1220px, calc(100% - 64px)); max-width: 1220px; margin: 0 auto; padding: 0; }
.muted { color: var(--text-dim); }
.small, .p4-small { font-size: 0.9rem; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.mono, .p4-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* --------------------------------------------------------- shared press layer */
.p4-hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; }
.p4-kicker { display: inline-block; margin: 0 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; transform: rotate(calc(-1.5deg * var(--p4-tilt))); text-transform: none; }
/* Pop-art halftone and print grain; never under small text on its own. */
.p4-dots { background-image: radial-gradient(rgb(23 41 34 / .15) 1.2px, transparent 1.6px); background-size: 9px 9px; }
.p4-dots-light { background-image: radial-gradient(rgb(255 255 255 / .2) 1.4px, transparent 1.8px); background-size: 11px 11px; }
.p4-band { position: relative; }
/* Torn bottom edge; the next band tucks under it so the page reads as one printed sheet, not stacked boxes. */
.p4-torn-b { clip-path: var(--p4-edge, polygon(0 0,100% 0,100% calc(100% - 16px),96% 100%,91% calc(100% - 11px),85% 100%,78% calc(100% - 13px),71% 100%,63% calc(100% - 9px),55% 100%,47% calc(100% - 14px),39% 100%,31% calc(100% - 9px),23% 100%,15% calc(100% - 13px),8% 100%,0 calc(100% - 10px))); padding-bottom: calc(clamp(56px, 8vw, 104px) + 16px); margin-bottom: -16px; z-index: 1; }
.p4-torn-b + .p4-band, .p4-torn-b + div { position: relative; }
.p4-band-lemon { background-color: var(--lemon); }
.p4-band-cobalt { background-color: var(--cobalt); color: var(--paper); }
.p4-band-mint { background-color: var(--mint); }
.p4-band-pink { background-color: var(--pink); }
.p4-band-cream { background-color: var(--paper); }
#system { z-index: 6; } #mc-statement { z-index: 5; } #services { z-index: 4; } #support { z-index: 3; } #faq { z-index: 2; } #home-reviews-section { z-index: 1; }

.p4-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 48px); }
.p4-title { font-size: clamp(2rem, 4.4vw, 3.5rem); margin: 0 0 18px; text-shadow: var(--p4-title-shadow, 4px 4px 0 var(--p4-hl, var(--pink))); }
.p4-band-pink { --p4-hl: var(--paper); }
.p4-band-cobalt { --p4-hl: var(--ink); --p4-hl2: var(--lemon); }
.p4-title-cond { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.08; }
.p4-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 500; max-width: 620px; }
.p4-note { font-size: 0.95rem; margin-top: 22px; max-width: 520px; }

.p4-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.p4-split-start { align-items: start; }

/* Stickers: a palette colour, white rim, ink outline, hard shadow, a little crooked (the deep pages' fact sticker). */
.p4-sticker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border: 4px solid #fff; border-radius: var(--p4-sticker-radius); outline: 3px solid var(--ink); box-shadow: 5px 6px 0 3px var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--ink); letter-spacing: 0.02em; transform: rotate(calc(-2deg * var(--p4-sticker-turn))); }
.p4-sticker-lime { background: var(--lime); }
.p4-sticker-pink { background: var(--pink); }
.p4-sticker-yellow { background: var(--lemon); }
.p4-patch { display: inline-block; padding: 4px 18px 8px; clip-path: polygon(0 6%,100% 0,97% 100%,2% 94%); }
.p4-patch-pink { background: var(--pink); }
.p4-tape { position: absolute; z-index: 3; width: 112px; height: 30px; background: rgb(249 242 93 / .82); box-shadow: 0 1px 0 rgb(23 41 34 / .2); }

/* Plain underlined action, as in the e-mails ("SEND A REPLY ↗"). */
.p4-action { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; color: inherit; }
.p4-action:hover { text-decoration-thickness: 5px; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 12px; border: 3px solid var(--ink); font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; cursor: pointer; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: 7px 7px 0 var(--vermilion); }
.btn-ghost, .btn-secondary { background: var(--paper); color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: .88rem; box-shadow: 3px 3px 0 var(--ink); }
.p4-btn-big { padding: 17px 30px; font-size: 1.1rem; text-transform: uppercase; }
.p4-band-cobalt .btn-primary, .p4-btn-cream { background: var(--paper); color: var(--ink); }
.link-button { font-family: var(--font-display); font-weight: 800; }

/* ---------------------------------------------------------------- header */
/* The e-mail mast: lemon bar, MADHAV in the condensed face, CONNECT on a black tilted tape. */
header.top { position: sticky; top: 0; z-index: 60; background: var(--lemon); border-bottom: 4px solid var(--ink); backdrop-filter: none; }
header.top .inner { max-width: 1400px; width: min(1400px, calc(100% - 64px)); margin: 0 auto; padding: 10px 0; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; object-fit: contain; }
.brand-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-cond); font-weight: 400; font-size: 1.875rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-name span { display: inline-block; background: var(--ink); color: var(--lemon); font-family: var(--font-display); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; padding: 4px 9px; transform: rotate(-4deg); margin: 0; }
nav.links { display: flex; flex-wrap: nowrap; gap: 2px; margin-inline-start: auto; }
nav.links a { padding: 6px 10px; border-radius: 9px; color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 0.92rem; white-space: nowrap; text-decoration: none; border: 2px solid transparent; }
nav.links a:hover { background: var(--paper); border-color: var(--ink); text-decoration: none; }
nav.links a[href="#/join-delivery"] { background: var(--ink); color: var(--lemon); }
nav.links a[href="#/join-delivery"]:hover { background: var(--vermilion); color: var(--ink); }
.lang-btn { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-family: var(--font); font-weight: 800; font-size: .92rem; cursor: pointer; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }
.lang-btn:hover { background: var(--pink); }
.sign-in { display: flex; align-items: center; gap: 8px; padding: 7px 14px; margin-inline-start: 10px; border-radius: 10px; border: 3px solid var(--ink); background: var(--vermilion); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: .92rem; white-space: nowrap; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.sign-in:hover { text-decoration: none; }
.mc-menu { display: none; align-items: center; gap: 8px; }
.mc-menu-icon { display: none; }
@media (max-width: 1240px) {
  nav.links { display: none; }
  .mc-menu { display: block; margin-inline-start: auto; background: var(--ink); color: var(--lemon); border: 0; border-radius: 9px; padding: 9px 14px; font-family: var(--font-display); font-weight: 800; font-size: .86rem; cursor: pointer; }
  header.top .inner { position: relative; flex-wrap: nowrap; }
  .top .links.mc-open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 4px); left: -32px; right: -32px; padding: 10px 32px 16px; gap: 6px; background: var(--lemon); border-bottom: 4px solid var(--ink); }
  .top .links.mc-open a { font-size: 1.05rem; padding: 10px 12px; background: var(--paper); border-color: var(--ink); }
}
/* The same fold when the links do not fit at a wider width (home.js measures, so longer languages fold sooner). */
header.top.nav-tight nav.links { display: none; }
header.top.nav-tight .mc-menu { display: block; margin-inline-start: auto; background: var(--ink); color: var(--lemon); border: 0; border-radius: 9px; padding: 9px 14px; font-family: var(--font-display); font-weight: 800; font-size: .86rem; cursor: pointer; }
header.top.nav-tight .inner { position: relative; flex-wrap: nowrap; }
header.top.nav-tight .links.mc-open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 4px); left: -32px; right: -32px; padding: 10px 32px 16px; gap: 6px; background: var(--lemon); border-bottom: 4px solid var(--ink); }
header.top.nav-tight .links.mc-open a { font-size: 1.05rem; padding: 10px 12px; background: var(--paper); border-color: var(--ink); }

/* Language picker: a printed card. */
dialog.lang-dialog { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 9px 10px 0 var(--ink); }
dialog.lang-dialog::backdrop { background: rgb(23 41 34 / .55); backdrop-filter: none; }
.lang-head { border-bottom: 3px solid var(--ink); background: var(--lemon); }
.lang-head strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.lang-search { border: 3px solid var(--ink); background: #fff; color: var(--ink); }
.lang-group { color: var(--ink); font-family: var(--font-display); }
.lang-item { color: var(--ink); }
.lang-item:hover { background: var(--lime); }
.lang-item:is([aria-selected="true"], [aria-current="true"]) { background: var(--ink); color: var(--lemon); }
.lang-item:is([aria-selected="true"], [aria-current="true"]) .english { color: var(--lemon); opacity: .8; }
.lang-item .partial { border-color: var(--ink); color: var(--ink); }
.fallback-note { background: var(--pink); border-bottom: 3px solid var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.p4-hero { background-color: var(--vermilion); padding-top: clamp(40px, 6vw, 80px); z-index: 8; }
.p4-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.p4-hero .p4-kicker { color: var(--paper); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.p4-hero-title { margin: 0 0 22px; }
/* The headline printed big and out of register: cream letters, an ink offset, a thin ink stroke. */
.p4-hero-main { display: block; font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 9.4vw, 8.2rem); line-height: 1.02; padding-top: .06em; letter-spacing: 0.005em; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.p4-hero-title .p4-patch { margin-top: 14px; transform: rotate(calc(-2deg * var(--p4-tilt))); }
.p4-hero-title .p4-hand { display: block; color: var(--ink); font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; }
.p4-intro { position: relative; display: inline-block; max-width: 560px; background: var(--lime); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px 22px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); font-weight: 500; transform: rotate(calc(.6deg * var(--p4-tilt))); margin: 0 0 30px; }
.p4-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.p4-hero .p4-action { color: var(--ink); }

/* The motion loop as a taped photo. */
.p4-photo { position: relative; margin: 0; transform: rotate(calc(2.5deg * var(--p4-tilt))); transition: transform .4s; }
.p4-photo-frame { background: #fffdf7; border: 3px solid var(--ink); padding: 12px 12px 0; box-shadow: 10px 12px 0 var(--ink); }
.p4-photo video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cobalt); border: 2px solid var(--ink); }
.p4-photo-caption { font-family: var(--font-hand); font-size: clamp(1.3rem, 2.2vw, 1.7rem); padding: 10px 4px 14px; line-height: 1.15; }
.p4-photo-caption strong { font-weight: 400; background: var(--lemon); padding: 0 6px; }
.p4-tape-a { top: -14px; left: 22px; transform: rotate(calc(-9deg * var(--p4-tilt))); }
.p4-tape-b { top: -10px; right: 18%; transform: rotate(calc(7deg * var(--p4-tilt))); }
.p4-orbit-a { position: absolute; left: -22px; top: 36%; z-index: 4; transform: rotate(calc(-6deg * var(--p4-tilt))); animation: p4-bob 5s ease-in-out infinite; }
.p4-orbit-b { position: absolute; right: -18px; bottom: 26%; z-index: 4; transform: rotate(calc(5deg * var(--p4-tilt))); animation: p4-bob 5s ease-in-out 1.2s infinite; }
.p4-motion-toggle { position: absolute; left: 26px; bottom: 74px; z-index: 4; background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; padding: 7px 12px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; cursor: pointer; }
@keyframes p4-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* Ticker: ink band, cream condensed type, never stops reading as print. */
.p4-ticker { position: relative; z-index: 9; background: var(--ink); color: var(--paper); overflow: hidden; border-block: 4px solid var(--ink); transform: rotate(calc(-1.2deg * var(--p4-tilt))); margin: -6px -10px 0; }
.p4-ticker > div { display: flex; width: max-content; gap: 28px; padding: 12px 0; animation: p4-ticker 26s linear infinite; }
.p4-ticker span { font-family: var(--font-cond); font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: .02em; }
.p4-ticker b { color: var(--lemon); font-size: 1.6rem; }
@keyframes p4-ticker { to { transform: translateX(-50%); } }

.p4-platforms { background: var(--paper); padding: 40px 0 34px; position: relative; z-index: 7; }
.p4-platforms .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.p4-platforms-line { margin: 0; font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.p4-sticker-gold { background: var(--gold); }
.p4-platform-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.p4-platform-list .p4-sticker { font-size: 1.35rem; padding: 6px 20px; font-family: var(--font); font-weight: 900; }
.p4-platform-list li:nth-child(2) { transform: rotate(calc(2deg * var(--p4-tilt))); }

/* -------------------------------------------------------- why Madhav cards */
.p4-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.p4-card { position: relative; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 8px 8px 0 var(--ink); padding: 40px 26px 26px; transform: rotate(-1deg); }
.p4-card:nth-child(2) { transform: rotate(calc(1.2deg * var(--p4-tilt))) translateY(14px); }
.p4-card:nth-child(3) { transform: rotate(calc(-.6deg * var(--p4-tilt))); }
.p4-card h3 { font-family: var(--font); font-weight: 800; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.p4-card p { margin: 0 0 20px; font-weight: 500; }
.p4-num { position: absolute; top: -22px; left: 20px; display: inline-block; padding: 2px 14px; border: 4px solid #fff; outline: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 5px 0 3px var(--ink); font-family: var(--font-cond); font-size: 1.9rem; line-height: 1.1; transform: rotate(calc(-4deg * var(--p4-sticker-turn))); }

/* -------------------------------------------- the money: example statement */
/* The statement is drawn like the sealed documents: cream page, dark brand strip, one tilted title block, dashed rows. */
.p4-switches { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 14px; }
.p4-switch { position: relative; cursor: pointer; }
.p4-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.p4-switch span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 3px solid var(--paper); border-radius: 12px; font-family: var(--font); font-weight: 800; font-size: 1.02rem; color: var(--paper); }
.p4-switch span::before { content: ""; width: 16px; height: 16px; border: 3px solid currentColor; border-radius: 4px; }
.p4-switch input:checked + span { background: var(--lemon); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg); }
.p4-switch input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lemon); }
.p4-switch input:focus-visible + span { outline: 3px solid var(--lemon); outline-offset: 3px; }
.p4-band-cobalt .p4-small { color: var(--paper); opacity: .9; }

.p4-doc { position: relative; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); padding: 0 26px 24px; transform: rotate(calc(1.4deg * var(--p4-tilt)));
  background-image: repeating-linear-gradient(32deg, rgb(23 41 34 / .035) 0 1px, transparent 1px 9px), repeating-linear-gradient(-32deg, rgb(23 41 34 / .035) 0 1px, transparent 1px 9px); }
.p4-doc-strip { display: flex; align-items: center; gap: 10px; margin: 0 -26px 22px; padding: 10px 20px; background: var(--ink); color: var(--paper); font-family: var(--font); font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.p4-doc-strip img { background: var(--paper); border-radius: 6px; padding: 2px; }
/* The example number as a ticket stub, like the e-mails' reference tickets. */
.p4-stub { margin-inline-start: auto; font-family: var(--font-mono); font-size: .8rem; color: var(--ink); background: var(--lemon); padding: 3px 12px; transform: rotate(calc(3deg * var(--p4-sticker-turn))); white-space: nowrap;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
/* The sealed weekly earnings statement's title block (doctypes.py courier_weekly_statement): ZÁROBKY, #1F6B5A on #B8F0E0. */
.p4-doc-word { display: inline-flex; flex-direction: column; margin: 4px 0 8px; padding: 8px 18px 10px; background: #b8f0e0; color: #1f6b5a; border: 3px solid #1f6b5a; box-shadow: 6px 6px 0 #1f6b5a; transform: rotate(calc(-3deg * var(--p4-tilt))); }
.p4-doc-word-sk { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; text-shadow: 3px 3px 0 var(--pink); }
.p4-doc-word-sub { font-family: var(--font); font-weight: 800; font-size: .78rem; letter-spacing: .08em; margin-top: 4px; }
.p4-doc-period { margin: 12px 0 14px; font-family: var(--font-mono); font-size: .9rem; }
.p4-doc-rows { border-top: 2px solid var(--ink); }
.p4-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 2px dashed rgb(23 41 34 / .35); font-weight: 600; }
.p4-row b { font-family: var(--font-mono); font-size: 1rem; white-space: nowrap; }
.p4-plus b { color: var(--plus); }
.p4-minus b { color: var(--minus); }
.p4-sum { font-weight: 800; }
.p4-sum b { color: var(--ink); }
.p4-net { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; background: var(--lemon); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg); }
.p4-net-label { font-family: var(--font); font-weight: 800; font-size: 1.1rem; }
.p4-net-value { font-family: var(--font-cond); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; white-space: nowrap; }
.p4-doc-foot { margin: 18px 0 0; font-weight: 700; font-size: .95rem; }


/* -------------------------------------------------------------------- FAQ */
.p4-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mc-faq-item { background: #fffdf7; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); padding: 0 20px; }
.mc-faq-item:nth-child(odd) { transform: rotate(calc(-.5deg * var(--p4-tilt))); }
.mc-faq-item:nth-child(even) { transform: rotate(calc(.5deg * var(--p4-tilt))); }
.mc-faq-item summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 20px 38px 18px 0; position: relative; font-family: var(--font); font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.mc-faq-item summary::-webkit-details-marker { display: none; }
.mc-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--lemon); border: 3px solid var(--ink); border-radius: 8px; font-size: 1.3rem; line-height: 1; }
.mc-faq-item[open] summary::after { content: "−"; background: var(--pink); }
.mc-faq-category { align-self: flex-start; font-family: var(--font); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; background: var(--ink); color: var(--lemon); border-radius: 6px; transform: rotate(calc(-2deg * var(--p4-tilt))); }
.mc-faq-item p { font-size: 1rem; margin: 0 0 12px; }
.mc-faq-item small { display: block; border-top: 2px dashed rgb(23 41 34 / .35); padding: 10px 0 16px; font-size: .82rem; }

/* ---------------------------------------------------------------- reviews */
.p4-score { font-family: var(--font-cond); font-size: 1.6rem; background: var(--ink); color: var(--lemon); padding: 0 10px; border-radius: 8px; }
.review-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.review-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--ink); padding: 22px; color: var(--ink); }
.review-card:nth-child(3n+1) { transform: rotate(calc(-1deg * var(--p4-tilt))); }
.review-card:nth-child(3n+2) { transform: rotate(calc(.8deg * var(--p4-tilt))); }
.review-card .stars, .chatbot-stars { color: var(--vermilion); letter-spacing: 2px; }
.badge-verified { background: var(--mint); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 8px; font-weight: 700; }

/* ------------------------------------------------------------------ close */
.p4-close { background-color: var(--vermilion); padding: clamp(70px, 10vw, 130px) 0; z-index: 0; }
.p4-close-title { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8vw, 7rem); line-height: .92; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); max-width: 14ch; margin: 0 0 36px; line-height: 1.02; }
.p4-close .p4-action { color: var(--ink); }

/* ----------------------------------------------------------------- footer */
/* The e-mail's sign-off: lemon, "MADHAV CONNECT" big, the company's details in plain type. */
footer.site { background: var(--lemon); color: var(--ink); border-top: 4px solid var(--ink); padding: 56px 0 96px; }
footer.site .small { font-size: .95rem; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; border-bottom: 3px solid var(--ink); padding-bottom: 32px; margin-bottom: 22px; }
footer.site .brand { color: var(--ink); }
footer.site .brand-name { font-size: 2.5rem; }
footer.site p, footer.site a { color: var(--ink); }
footer.site a { display: block; font-weight: 600; margin: 4px 0; }
footer.site .flush a { display: inline; }
footer.site .site-tour-btn { margin-top: 12px; }
footer.site h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
footer.site p { font-weight: 500; }
/* Company identity: the name pops, the rest is the small print it is. */
footer.site .company-id { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 14px; font-size: .82rem; line-height: 1.5; }
footer.site .company-id strong { flex-basis: 100%; font-size: 1rem; font-weight: 800; }
footer.site .company-id a { display: inline; margin: 0; }
/* The same block inside a content page (the "Information" part of the article): the name, then one line for each fact. */
.panel .company-id { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; line-height: 1.5; }
.panel .company-id strong { font-size: 1.05rem; font-weight: 800; }

/* ------------------------------------------------- inner pages (forms etc.) */
/* Every other page opens with a coloured band behind its heading, like a deep page, and sets its form on a printed card. */
.view:not(#view-home) > section { position: relative; padding-top: 0; }
.view:not(#view-home) > section > .wrap { position: relative; z-index: 1; padding-top: clamp(44px, 6vw, 70px); }
/* A page with a heading block gets the band behind that block, full width, sized to its text. */
.view:not(#view-home) .section-head { position: relative; text-align: start; margin-inline: 0; max-width: none; padding-bottom: 34px; }
.view:not(#view-home) .section-head > * { max-width: 820px; }
.view:not(#view-home) .section-head::before { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: calc(-1 * clamp(44px, 6vw, 70px)); bottom: 0; background-color: var(--band, var(--lemon)); background-image: radial-gradient(rgb(23 41 34 / .13) 1.2px, transparent 1.6px); background-size: 9px 9px; clip-path: polygon(0 0,100% 0,100% calc(100% - 16px),94% 100%,86% calc(100% - 12px),77% 100%,68% calc(100% - 10px),58% 100%,48% calc(100% - 14px),38% 100%,28% calc(100% - 9px),18% 100%,9% calc(100% - 12px),0 100%); }
.view:not(#view-home) .section-head + * { margin-top: 26px; }
/* Pages that open straight on a card (legal, confirmation, report, registration) get a short band the card overlaps. */
.view:not(#view-home) > section:not(:has(.section-head))::before { content: ""; position: absolute; inset: 0 0 auto; height: 170px; background-color: var(--band, var(--lemon)); background-image: radial-gradient(rgb(23 41 34 / .13) 1.2px, transparent 1.6px); background-size: 9px 9px; clip-path: polygon(0 0,100% 0,100% calc(100% - 14px),90% 100%,75% calc(100% - 10px),60% 100%,45% calc(100% - 12px),30% 100%,15% calc(100% - 9px),0 100%); z-index: 0; }
#view-taxi { --band: var(--lemon); }
#view-rental { --band: var(--mint); }
#view-join { --band: var(--vermilion); }
#view-services { --band: var(--pink); }
#view-register { --band: var(--lime); }
#view-legal { --band: var(--gold); }
#view-reviews { --band: var(--lemon); }
#view-confirm { --band: var(--mint); }
#view-report { --band: var(--pink); }
#view-refer-reward-choice { --band: var(--gold); }
.view:not(#view-home) h1, .view:not(#view-home) h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-shadow: 4px 4px 0 var(--paper); }
.view:not(#view-home) h3 { font-size: 1.3rem; }
.section-head { max-width: 680px; margin: 0 0 clamp(30px, 4vw, 46px); }
.section-head p, .lede { color: var(--ink); font-weight: 500; font-size: 1.1rem; }

.panel { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 9px 0 var(--ink); color: var(--ink); }
.field label, fieldset legend { color: var(--ink); font-family: var(--font); font-weight: 800; font-size: .98rem; letter-spacing: 0; }
.field input, .field select, .field textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--ink); box-shadow: 4px 4px 0 var(--cobalt); background: #fffef2; }
.field .hint { color: var(--text-dim); }
/* Tick-box sentences are read, not scanned: body face, not the heading face. */
.field label.check, label.check, .check span { font-family: var(--font); font-weight: 600; font-size: 1rem; letter-spacing: 0; display: flex; gap: 10px; align-items: flex-start; }
.form-grid + .form-grid, .grid-2 .field + .field, .form-grid + .field, .field + .field { margin-top: 16px; }
.form-grid .field + .field, .form-grid > .field { margin-top: 0; }
.grid-2 { gap: 16px; }
.field .err, .note.bad, .bad { color: var(--minus); }
/* A flagged field: same selector weight as the input rule above, so the error colour wins. */
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"],
input[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--minus); }
.note.good, .good { color: var(--plus); }
.field.invalid input, .field.invalid select, .regchat-field [aria-invalid="true"] { border-color: var(--minus); box-shadow: 4px 4px 0 var(--minus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; }
/* Common join form (owner, 25 Oct 2026): the kind switch is two big pills, the chosen one filled. */
.join-kind { border: 0; padding: 0; margin: 0 0 20px; }
.join-kind legend { font-family: var(--font); font-weight: 700; margin-bottom: 10px; }
.join-kind-options { display: flex; flex-wrap: wrap; gap: 12px; }
.join-kind-option { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--paper); font: 800 1.05rem/1.2 var(--font); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.join-kind-option:has(input:checked) { background: var(--lemon); }
.join-kind-option:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.join-sent h3 { margin-top: 0; }
/* Journey status page: the state sentence reads first; a cancel that is armed turns red. */
.journey-state { font-size: 1.15rem; font-weight: 600; }
.journey-cancel { margin-top: 24px; }
/* Cancel is a quiet text link under the main step; armed, it turns red. */
.link-button { background: none; border: 0; padding: 0; font: 600 1rem/1.4 var(--font); color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-button.link-danger { color: var(--minus); }
/* A join-form box hidden for this kind of work stays hidden, whatever display its layout class gives it. */
#view-join [hidden] { display: none !important; }

/* Languages picker: the chips and the typing box share one bordered field, like any other input. */
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.lang-chips:focus-within { box-shadow: 4px 4px 0 var(--cobalt); background: #fffef2; }
.lang-chips input#jq-languages-entry { flex: 1 1 160px; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 6px 4px; }
.lang-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lemon); color: var(--ink); font: 600 .95rem/1.2 var(--font); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.lang-chip:nth-child(3n+2) { background: var(--pink); }
.lang-chip:nth-child(3n) { background: var(--mint); }
.lang-chip:hover, .lang-chip:focus-visible { outline: 2px solid transparent; outline-offset: 2px; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.lang-chip span { font-weight: 800; }
.lang-picker small { display: block; margin-top: 6px; }
.suggestions { background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.suggestions button:hover, .suggestions button:focus { background: var(--lemon); }

.pill span { border: 3px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--font); font-weight: 700; border-radius: 10px; }
.stars { color: var(--vermilion); letter-spacing: 2px; font-family: var(--font); }
.star-off { color: var(--ink); opacity: .2; }
.pill input:checked + span { background: var(--lemon); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1deg); }
.pill span small { color: var(--text-dim); }

/* The fare/price card: the number is the loud part, in the condensed face, on a sticker. */
.quote { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 9px 0 var(--ink); top: 92px; }
.quote .total { font-family: var(--font-cond); font-weight: 400; letter-spacing: 0; display: inline-block; background: var(--lemon); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 14px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1.5deg); }
.quote-line { border-bottom: 2px dashed rgb(23 41 34 / .3); }
/* The route preview inside the fare card (taxi-map.js): a printed card like the fare; the kit draws the map and its credit. */
.taxi-route-map { height: 220px; margin-top: 16px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); background: var(--paper); }

.vehicles .vehicle, .offering, .doc-tile, .employer-card { background: var(--paper); border: 3px solid var(--ink) !important; border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.offering:has(input:checked), .vehicle.selected, .vehicle[aria-pressed="true"] { background: var(--lemon); }
.steps li, .reg-step { color: var(--ink); }
.reg-step-dot { background: var(--lemon); color: var(--ink); border: 3px solid var(--ink); }
/* Numbered steps as stickers, like the 01/02/03 on the home page. */
.steps { gap: 22px !important; }
.steps li + li { margin-top: 6px; }
.steps li { font-weight: 600; font-size: 1.05rem; align-items: center !important; }
.steps li::before { width: auto; height: auto; min-width: 40px; padding: 0 8px; border-radius: 10px; border: 3px solid #fff; outline: 3px solid var(--ink); box-shadow: 3px 4px 0 3px var(--ink); background: var(--lemon); color: var(--ink); font-family: var(--font-cond); font-weight: 400; font-size: 1.35rem; line-height: 1.3; transform: rotate(-4deg); margin-inline-end: 6px; }
.steps li:nth-child(2)::before { background: var(--pink); transform: rotate(calc(3deg * var(--p4-tilt))); }
.steps li:nth-child(3)::before { background: var(--mint); }
.steps li:nth-child(4)::before { background: var(--gold); transform: rotate(calc(2deg * var(--p4-tilt))); }
.legal { font-size: 1.08rem; line-height: 1.7; }
.legal p, .legal li { font-size: 1.05rem; }
.legal h1, .legal h2, .legal h3 { text-shadow: none; }
.view .legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 1.6em; }
.view .legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-shadow: 4px 4px 0 var(--pink); }
.spinner { border-color: rgb(23 41 34 / .2); border-top-color: var(--ink); }
.consent-box, .terms-line { border-color: var(--ink); }
table.tariff-table th { font-family: var(--font-display); color: var(--ink); border-bottom: 3px solid var(--ink); }

/* ---------------------------------------------------------------- chatbot */
.chatbot-launcher { background: var(--vermilion); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.chatbot-launcher:hover { background: var(--lemon); }
.chatbot-panel { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 10px 10px 0 var(--ink); }
.chatbot-head { background: var(--lemon); color: var(--ink); border-bottom: 3px solid var(--ink); font-family: var(--font-display); font-weight: 800; }
.chatbot-close { color: var(--ink); }
/* A person's reply: named as the team's, apart from the assistant's lines. */
.chatbot-from { display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.chatbot-msg.team { border: 2px solid var(--ink); }
.regchat-head { font-family: var(--font-display); font-weight: 800; }

/* ------------------------------------------------------------- art (v2) */
.p4-btn-vermilion { background: var(--vermilion); color: var(--ink); transform: rotate(-1deg); }
.p4-btn-cobalt { background: var(--cobalt); color: var(--paper); transform: rotate(1deg); }
.p4-btn-cobalt:hover, .p4-btn-vermilion:hover { box-shadow: 7px 7px 0 var(--ink); }
.p4-link { display: inline-flex; gap: 6px; font-weight: 800; font-size: 1.02rem; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; color: inherit; }
.p4-intro::before { content: ""; position: absolute; top: -13px; left: 40%; width: 90px; height: 24px; background: rgb(255 172 208 / .85); transform: rotate(-4deg); }

.p4-photo-hero { max-width: 540px; justify-self: end; }
.p4-photo video { display: block; width: 100%; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
/* Framed to the left: the clip's road sign (foreign text) sits top right and stays out of the crop. */
.p4-photo-hero video { aspect-ratio: 1 / 1; object-position: 12% 50%; }
.p4-photo-hero .p4-photo-frame { padding-bottom: 12px; }
.p4-photo-small { position: relative; max-width: 300px; margin: 0; }
.p4-photo-small .p4-photo-frame { padding: 9px; box-shadow: 8px 9px 0 var(--ink); }
.p4-photo-small video { aspect-ratio: 4 / 3; }
.p4-tilt-l { transform: rotate(calc(-3deg * var(--p4-tilt))); }
.p4-tilt-r { transform: rotate(calc(3deg * var(--p4-tilt))); }
.p4-head-art { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.p4-head-art .p4-head { margin-bottom: 0; }
#services .p4-photo-small { margin-top: 26px; }
.p4-money-photo { margin-top: 30px; max-width: 260px; }
#support .mc-world { max-width: 460px; justify-self: center; }
#support .mc-world video { aspect-ratio: 1 / 1; background: var(--cobalt); }

/* Word stickers (drawn in en/sk only) and animated emoji, placed like the deep pages' sticker: off the corner, rocking. */
.p4-word { position: absolute; z-index: 5; height: auto; filter: drop-shadow(4px 5px 0 var(--ink)); pointer-events: none; }
.p4-word-hero { width: 46%; right: -24px; bottom: -22px; transform: rotate(calc(-6deg * var(--p4-tilt))); animation: p4-rock 4s ease-in-out infinite; }
.p4-word-small { width: 62%; right: -30px; bottom: -26px; transform: rotate(calc(5deg * var(--p4-tilt))); }
.p4-word-close { width: 70%; position: relative; display: block; margin-top: -30px; transform: rotate(-5deg); }
.p4-emoji { height: auto; filter: drop-shadow(3px 4px 0 rgb(23 41 34 / .35)); pointer-events: none; }
.p4-emoji-hero { position: absolute; z-index: 5; width: 104px; left: -40px; top: 18%; transform: rotate(calc(-10deg * var(--p4-tilt))); }
.p4-head-emoji { position: relative; }
.p4-emoji-head { width: 84px; display: block; margin-bottom: 4px; transform: rotate(calc(-8deg * var(--p4-tilt))); }
.p4-close-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.p4-close-art { justify-self: center; text-align: center; }
.p4-emoji-close { width: clamp(120px, 16vw, 200px); margin: 0 auto; }
@keyframes p4-rock { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* Turning fills, so a row of cards never reads as identical boxes. */
.p4-card-pink { background: #ffd4e6; }
.p4-card-mint { background: #e2fad0; }
.p4-card-paper { background: var(--paper); }
.p4-card .p4-num { background: var(--lemon); }
.p4-card-mint .p4-num { background: var(--pink); }
.p4-card-paper .p4-num { background: var(--mint); }
.mc-faq-item:nth-child(4n+2) { background: #e2fad0; }
.mc-faq-item:nth-child(4n+3) { background: #ffe1ee; }
.mc-faq-item:nth-child(4n) { background: #fffbb8; }

/* ---------------------------------------------------------------- motion */
.p4-ready .p4-rise { opacity: 0; translate: 0 34px; transition: opacity .7s cubic-bezier(.2,.8,.2,1), translate .7s cubic-bezier(.2,.8,.2,1); }
.p4-ready .p4-rise.p4-in { opacity: 1; translate: 0 0; }
.mc-motion-off .p4-rise, .mc-motion-off .p4-rise.p4-in { opacity: 1; translate: none; transition: none; }
.mc-motion-off *, .mc-motion-hidden * { animation-play-state: paused !important; }
.mc-motion-off .view.active { animation: none !important; }
/* Springs (springs.js). Arrivals: springs drive --lift-* and these become the individual translate/rotate/scale
   properties, which add to each element's own designed transform instead of replacing it. Buttons (only once the
   springs are running, so they never look dead while the library loads): lift and press come from one number,
   --press (px toward the shadow); the timed transitions and the bob/rock loops step aside. The ticker keeps moving. */
.p4-springs .p4-wait { opacity: 0; }
.p4-springs .p4-lift { translate: calc(var(--lift-x, 0) * 1px) calc(var(--lift-y, 0) * 1px); rotate: calc(var(--lift-r, 0) * 1deg); scale: var(--lift-s, 1); }
.p4-springs .p4-orbit-a, .p4-springs .p4-orbit-b, .p4-springs .p4-word-hero { animation: none; }
.p4-springs-live .btn { --press: 0; --rest: 5; --shadow: var(--ink); transition: none; }
.p4-springs-live .btn, .p4-springs-live .btn:hover, .p4-springs-live .btn:active, .p4-springs-live .btn:disabled {
  transform: translate(calc(var(--press) * 1px), calc(var(--press) * 1px)) rotate(var(--tilt, 0deg));
  box-shadow: calc((var(--rest) - var(--press)) * 1px) calc((var(--rest) - var(--press)) * 1px) 0 var(--shadow); }
.p4-springs-live .btn:disabled { --press: 0 !important; }
.p4-springs-live .btn-small { --rest: 3; }
.p4-springs-live .btn-primary:hover { --shadow: var(--vermilion); }
.p4-springs-live .p4-btn-vermilion { --tilt: -1deg; }
.p4-springs-live .p4-btn-cobalt { --tilt: 1deg; }
@media (prefers-reduced-motion: reduce) {
  .p4-ready .p4-rise { opacity: 1; translate: none; transition: none; }
  .p4-ticker > div, .p4-orbit-a, .p4-orbit-b, .p4-word-hero { animation: none; }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 960px) {
  .p4-hero-grid, .p4-split { grid-template-columns: 1fr; }
  .p4-cards { grid-template-columns: 1fr; gap: 36px; }
  .p4-card:nth-child(2) { transform: rotate(calc(1deg * var(--p4-tilt))); }
  .p4-faq { grid-template-columns: 1fr; }
  .p4-photo { max-width: 520px; }
  .p4-photo-hero { justify-self: center; }
  .p4-head-art, .p4-close-grid { grid-template-columns: 1fr; }
  .p4-photo-small { max-width: 280px; }
  footer.site .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Long words (Georgian, Sinhala, German) wrap inside their column instead of pushing the page wider than the phone. */
  footer.site .cols h4, footer.site .cols a { overflow-wrap: anywhere; }
  footer.site .site-tour-btn { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: start; }
  footer.site .site-tour-btn span { min-width: 0; overflow-wrap: anywhere; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap, header.top .inner { width: calc(100% - 32px); }
  body { font-size: 1rem; }
  .brand-name { font-size: 1.5rem; }
  .brand .mark { width: 32px; height: 32px; }
  .lang-btn { padding: 6px 9px; }
  .p4-orbit-a { left: -8px; }
  .p4-orbit-b { right: -6px; }
  .p4-platforms .wrap { justify-content: flex-start; }
  .p4-platform-list { gap: 14px; flex-wrap: wrap; }
  .p4-platform-list .p4-sticker { font-size: 1.1rem; padding: 4px 14px; }
  header.top .inner { gap: 10px; }
  .brand-name { font-size: 1.375rem; gap: 4px; }
  .brand-name span { font-size: 0.6875rem; padding: 3px 6px; }
  .mc-menu { padding: 8px 10px; }
  /* Phones: Menu and Sign in become icons; their names stay for screen readers. */
  .mc-menu-icon { display: block; }
  .bar-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sign-in { padding: 6px 8px; margin-inline-start: 0; box-shadow: 2px 2px 0 var(--ink); }
  #lang-label { display: none; }
  .lang-btn { padding: 5px 7px; box-shadow: 2px 2px 0 var(--ink); }
  .brand .mark { width: 28px; height: 28px; }
  .brand { gap: 6px; }
  .p4-doc-strip { flex-wrap: wrap; font-size: .8rem; }
  .p4-doc-strip .p4-mono { white-space: nowrap; }
  .p4-doc { padding: 0 16px 18px; transform: rotate(calc(.6deg * var(--p4-tilt))); }
  .p4-doc-strip { margin: 0 -16px 18px; }
  .p4-row { font-size: .95rem; }
  .p4-actions .btn { width: auto; justify-content: center; text-align: center; }
  .p4-btn-big { padding: 15px 20px; font-family: var(--font); font-weight: 900; letter-spacing: .04em; font-size: 1.05rem; }
  .top .links.mc-open { left: -16px; right: -16px; padding-inline: 16px; }
  .p4-emoji-hero { width: 72px; left: -14px; }
  .p4-word-hero { right: -8px; }
  .p4-word-small { right: -10px; }
  footer.site h4 { font-size: .95rem; }
}
/* The narrowest phones: the name shrinks a little so Menu, Sign in and the language stay in the bar. */
@media (max-width: 420px) {
  header.top .inner { gap: 8px; }
  .brand-name { font-size: 1.1875rem !important; }
  .brand-name span { font-size: 0.625rem !important; padding: 3px 5px !important; }
}
@media (max-width: 370px) {
  .brand-name { font-size: 1rem !important; }
  .brand-name span { font-size: 0.5625rem !important; }
  .brand .mark { width: 24px !important; height: 24px !important; }
}
