/* VamosPay, wersja 3: dosadnie, duża typografia, zdjęcia generowane, warstwa ruchu. Paleta i krój ze strony vamospay.io. */

:root {
  --bg: #0e0e0e;
  --ink: #f5f5f5;
  --muted: #a9a9a3;
  --light: #f3f3ef;
  --light-ink: #161616;
  --light-muted: #5c5c57;
  --accent: #a7ff8b;
  --accent-ink: #0e0e0e;
  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-lead: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --step-head: clamp(2.75rem, 1.5rem + 5.2vw, 6.5rem);
  --step-display: clamp(3.25rem, 1.6rem + 7.6vw, 9.5rem);

  --margin: clamp(1.25rem, 3vw, 2.5rem);
  --screen-pad: clamp(6rem, 12vh, 10rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 4rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.light :focus-visible, .lime :focus-visible { outline-color: var(--light-ink); }

h1, h2 { font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; hyphens: none; }
h1 { font-size: var(--step-display); }
@media (max-width: 47.99em) { h1 { font-size: 10.5vw; } }
h2 { font-size: var(--step-head); }
p { text-wrap: pretty; }
.sub { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 30ch; margin: 1.5rem auto 0; }
.note { font-size: var(--step-small); max-width: 46ch; margin: 2.5rem auto 0; line-height: 1.5; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: 999px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: #bfffa8; }
.button:active { transform: scale(0.97); }
.button-ink { background: var(--light-ink); color: var(--light); }
.button-ink:hover { background: #2a2a2a; }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }

/* ---------- motion ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line], .lines [data-line-in] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: ad-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 900ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: ad-line 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-line-in] { transform: translateY(105%); transition: transform 900ms var(--ease-expo); }
  .js .line:nth-child(2) [data-line-in] { transition-delay: 110ms; }
  .js .is-in [data-line-in] { transform: none; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-pic img, .js .hero-pic video { transform: scale(1.06); transition: transform 2200ms var(--ease-soft); transition-delay: 400ms; }
  .js .hero-pic.is-in img, .js .hero-pic.is-in video { transform: none; }
}
@keyframes ad-rise { to { opacity: 1; transform: none; } }
@keyframes ad-line { to { transform: none; } }
/* pictures drift a few percent inside their frames as the page scrolls */
.side-pic, .band, .hero-pic, .macro { overflow: clip; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift { scale: 1.1; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
  }
}
/* the statement fills from grey to ink as it rises */
[data-fill] { --fill: var(--light-ink); color: var(--fill); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--fill) 45%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
  }
}
@keyframes ink-fill { to { color: var(--fill); } }

/* ---------- nav ---------- */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem var(--margin); gap: 1rem; }
.nav .mark img { height: 24px; width: auto; }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); font-weight: 600; font-size: var(--step-small); }
.nav-links a { text-decoration: none; }
.nav .button { justify-self: end; min-height: 2.75rem; padding: 0 1.25rem; font-size: var(--step-small); }
@media (max-width: 47.99em) { .nav { grid-template-columns: 1fr auto; } .nav-links { display: none; } }

/* ---------- screens ---------- */
.screen, .hero { text-align: center; padding: var(--screen-pad) var(--margin); }
.dark { background: var(--bg); color: var(--ink); }
.light { background: var(--light); color: var(--light-ink); }
.lime { background: var(--accent); color: var(--accent-ink); }
.hero { padding-top: clamp(3rem, 8vh, 6rem); }
.hero .sub { max-width: 36ch; }
.hero-pic { width: min(100%, 1160px); margin: clamp(2.5rem, 6vh, 4rem) auto 0; aspect-ratio: 16 / 9; background: #000; }
.hero-pic img, .hero-pic video { width: 100%; height: 100%; object-fit: cover; }
.film-link { margin-top: 1.5rem; font-size: var(--step-small); font-weight: 600; }

/* statement */
.statement { padding: clamp(5rem, 14vh, 10rem) var(--margin); }
.fill { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 42ch; margin: 0 auto; text-align: left; text-wrap: pretty; }

/* film dialog */
.film { border: 0; padding: 0; background: #000; width: min(96vw, 1400px); color: var(--ink); }
.film::backdrop { background: rgba(0, 0, 0, 0.85); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.film-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--bg); font-size: var(--step-small); }
.film-bar button { padding: 0.5rem 1rem; background: #262626; font-weight: 600; border-radius: 999px; }

/* split screens: picture one side, words and the fragment the other */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; text-align: left; padding-inline: var(--margin); }
.split .side-text .sub, .split .side-text .note { margin-inline: 0; }
.split .side-pic { aspect-ratio: 4 / 5; background: #000; }
.split .side-pic img { width: 100%; height: 100%; object-fit: cover; }
.split.flip .side-pic { order: 2; }
.split .report { margin: 0; justify-self: center; }
@media (max-width: 63.99em) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .side-pic { aspect-ratio: 16 / 10; order: 0; }
  .split.flip .side-pic { order: 0; }
  .split .side-text .sub, .split .side-text .note { margin-inline: auto; }
  .split .report { margin-top: 2.5rem; }
}

/* demo: the terminal */
.demo-wrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); margin-top: clamp(2rem, 5vh, 3rem); align-items: start; }
[data-ui].terminal { background: #fff; color: #1a1a1a; border-radius: 24px; padding: 22px; font-size: 16px; line-height: 1.3; width: 100%; }
.terminal .top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.terminal .top .st { font-size: 13px; color: #3d7a4e; background: #e8ffe0; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.terminal .big { margin: 18px 0 0; }
.terminal .big small { display: block; font-size: 13px; font-weight: 600; color: #6b6b6b; }
.terminal .big span { display: block; font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; }
.terminal .bar { height: 10px; background: #eef2ec; border-radius: 999px; margin: 16px 0 12px; overflow: hidden; }
.terminal .bar span { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 450ms var(--ease-out); }
[data-ui].terminal .kv { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #ececec; font-size: 15px; }
.terminal .kv b { font-weight: 700; }
.terminal .kv.tips { margin-top: 12px; background: #e8ffe0; border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.terminal .kv.tips b { font-size: 20px; }
.terminal .lbl { font-size: 13px; font-weight: 600; color: #6b6b6b; margin: 14px 0 6px; }
.terminal .chips { display: flex; gap: 8px; }
.terminal .chips button { flex: 1; min-height: 46px; border: 2px solid #dedede; border-radius: 12px; font-weight: 700; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.terminal .chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.terminal .chips button:active { transform: scale(0.96); }
.terminal .pay { width: 100%; min-height: 60px; margin-top: 14px; background: var(--accent); color: #1a1a1a; font-weight: 800; border-radius: 14px; font-size: 18px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.terminal .pay:hover { background: #bfffa8; }
.terminal .pay:active { transform: scale(0.98); }
.terminal .pay[disabled] { background: #e9e9e9; color: #888; cursor: default; }
.terminal .reset { width: 100%; min-height: 40px; margin-top: 6px; font-weight: 600; color: #555; text-decoration: underline; text-underline-offset: 0.2em; font-size: 14px; }
.terminal .pop { display: inline-block; animation: pop 450ms var(--ease-out); }
@keyframes pop { 0% { transform: translateY(0.35em); opacity: 0; } 100% { transform: none; opacity: 1; } }
.demo-side { padding-top: 6px; }
.guests-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-weight: 600; font-size: var(--step-small); }
.guests { display: flex; gap: 6px; }
.guests button { width: 44px; height: 44px; border: 2px solid #4a4a46; font-weight: 700; border-radius: 999px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.guests button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ledger { margin-top: 1.25rem; font-size: var(--step-small); }
.ledger li { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; font-variant-numeric: tabular-nums; }
.ledger li.empty { display: block; }
@media (max-width: 47.99em) { .demo-wrap { grid-template-columns: 1fr; text-align: left; } .guests-wrap { justify-content: center; } }

/* tips: two blunt figures, then the real screen */
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(2rem, 5vh, 3rem); }
.figures b { display: block; font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; white-space: nowrap; }
.figures b.accent { color: #2f8a46; }
.figures span { display: block; margin-top: 0.6rem; font-size: var(--step-small); line-height: 1.4; max-width: 24ch; }
[data-ui].tipshot { width: min(100%, 400px); margin: clamp(2rem, 5vh, 3rem) 0 0; background: #fff; color: #1a1a1a; border-radius: 24px; padding: 26px 22px; text-align: left; }
.tipshot .q { font-weight: 700; font-size: 18px; }
.tipshot .amt { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 18px; }
.tipshot .opts { display: flex; gap: 8px; }
[data-ui].tipshot .opts span { flex: 1; text-align: center; padding: 13px 0; border: 2px solid #dedede; border-radius: 12px; font-weight: 700; }
.tipshot .opts span.on { background: var(--accent); border-color: var(--accent); }
.tipshot .go { margin-top: 16px; background: #1a1a1a; color: #fff; text-align: center; padding: 18px; border-radius: 14px; font-weight: 800; font-size: 18px; }
@media (max-width: 63.99em) { [data-ui].tipshot { margin-inline: auto; } .figures span { margin-inline: auto; } }
@media (max-width: 47.99em) { .figures { grid-template-columns: 1fr; } }

/* full-bleed picture between screens */
.band { margin: 0; background: #000; }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 47.99em) { .band img { aspect-ratio: 4 / 3; } }
.band-tall img { aspect-ratio: 16 / 9; object-position: 50% 30%; }
.band-tall .drift { animation: none; scale: 1; }

/* shift report fragment */
[data-ui].report { width: min(100%, 440px); background: #fff; color: #1a1a1a; border-radius: 24px; padding: 22px; text-align: left; font-size: 16px; }
.report .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.report .who small { display: block; font-weight: 500; color: #6b6b6b; font-size: 13px; }
.report .ava { width: 44px; height: 44px; border-radius: 50%; background: #1a1a1a; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.report .rows { margin-top: 16px; }
[data-ui].report .rows div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #ececec; }
.report .rows b { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.report .close { margin-top: 14px; background: var(--accent); text-align: center; padding: 18px; border-radius: 14px; font-weight: 800; font-size: 18px; }

/* the short list and the two pictures */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 6vh, 4rem); text-align: left; }
.more b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.more span { display: block; margin-top: 0.4rem; font-size: var(--step-small); }
.pair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 620px); justify-content: center; align-items: end; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(3rem, 7vh, 5rem); }
.shot { border-radius: 24px; overflow: clip; background: #fff; }
.macro { aspect-ratio: 16 / 10; background: #000; }
.macro img, .macro video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99em) { .more { grid-template-columns: 1fr; text-align: center; } .pair { grid-template-columns: minmax(0, 320px); } }

/* names */
.names { font-size: var(--step-lead); line-height: 1.5; max-width: 40ch; margin: 2rem auto 0; font-weight: 700; letter-spacing: -0.01em; }
#zaufali .sub { margin-top: 2rem; max-width: 40ch; }

/* cta + footer */
.cta .sub { max-width: 34ch; }
.cta .button { margin-top: 2rem; min-height: 3.75rem; padding: 0 2.25rem; font-size: var(--step-body); }
.cta .mail { margin-top: 1.25rem; font-weight: 600; font-size: var(--step-small); }
.footer { padding: 2rem var(--margin) 2.5rem; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.footer p { max-width: 70ch; margin-inline: auto; }
.footer p + p { margin-top: 0.5rem; }
