/* Evensies — evensies.com
   Tokeny = docs/design/system-projektowy.md (kierunek A „Cisza” + akcent B „Paragon”).
   Jedyne źródło kolorów, promieni i cieni na stronie to zmienne poniżej. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokeny ---------- */
:root {
  color-scheme: light dark;

  /* §2.1 role — jasny */
  --background: #F6F4EF;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-sunken: #EFEDE8;
  --hairline: #E6E2D9;
  --control-border: #918D84;
  --ink: #141C1A;
  --ink-secondary: #505B58;
  --ink-muted: #7D8784;
  --brand: #0E5E57;
  --brand-pressed: #0B4A44;
  --on-brand: #FFFFFF;
  --brand-tint: #E3EFEC;
  --positive: #0E6B5C;
  --positive-tint: #E4F1EC;
  --owe: #8A5300;
  --owe-tint: #FBF0DC;
  --neutral-tint: #EFEDE8;

  /* §3 kolory uczestników (1–4): kafel / litera */
  --m-teal: #0E5E57;   --m-teal-on: #FFFFFF;
  --m-ochre: #D9A441;  --m-ochre-on: #2B1E05;
  --m-violet: #6B5BC9; --m-violet-on: #FFFFFF;
  --m-coral: #F0C4B4;  --m-coral-on: #4A2318;

  /* §12 Paragon — papier jest zawsze jasny */
  --paper: #FFFDF8;
  --paper-ink: #141C1A;
  --paper-ink-2: #505B58;
  --paper-rule: #E6E2D9;
  --stamp: #B04A22;

  /* §7 głębia */
  --shadow-card: 0 1px 2px rgba(20,28,26,.04), 0 8px 24px rgba(20,28,26,.05);
  --shadow-float: 0 2px 4px rgba(20,28,26,.05), 0 24px 48px -12px rgba(20,28,26,.18);
  --shadow-phone: 0 1px 2px rgba(20,28,26,.10), 0 30px 60px -18px rgba(20,28,26,.32), 0 14px 28px -14px rgba(20,28,26,.18);
  --phone-bezel: #121816;
  --phone-ring: rgba(20,28,26,.14);
  --halo: #E3EFEC;

  /* §5 promienie */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* §8 ruch */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-emph: cubic-bezier(.05, .7, .1, 1);

  /* układ */
  --gutter: 20px;
  --wrap: 1180px;
  --section: clamp(80px, 11vw, 144px);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101514;
    --surface: #171D1B;
    --surface-raised: #1F2624;
    --surface-sunken: #0B0F0E;
    --hairline: #2B3431;
    --control-border: #606966;
    --ink: #ECEFEC;
    --ink-secondary: #A9B2AF;
    --ink-muted: #808A87;
    --brand: #5FC4AF;
    --brand-pressed: #4FAE9A;
    --on-brand: #062521;
    --brand-tint: #213430;
    --positive: #72D3BC;
    --positive-tint: #243632;
    --owe: #F0B866;
    --owe-tint: #353326;
    --neutral-tint: #292F2D;

    --m-teal: #5FC4AF;   --m-teal-on: #062521;
    --m-ochre: #E2B458;  --m-ochre-on: #2B1E05;
    --m-violet: #A99CF2; --m-violet-on: #1A1440;
    --m-coral: #F0C4B4;  --m-coral-on: #4A2318;

    --shadow-card: none;
    --shadow-float: 0 24px 48px -16px rgba(0,0,0,.55);
    --shadow-phone: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px #2B3431;
    --phone-bezel: #050807;
    --phone-ring: rgba(255,255,255,.08);
    --halo: #17231F;
  }
}

/* ---------- 2. Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; color: var(--ink); }
p, li, dd, summary { text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand-pressed); }
strong { font-weight: 650; }
.kd { margin-left: -.055em; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.amt, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--ink); color: var(--background); font-weight: 600; text-decoration: none;
  transition: top .12s ease-out;
}
.skip-link:focus { top: 12px; color: var(--background); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- 3. Typografia (skala strony wyprowadzona z §1) ---------- */
.overline {
  font-size: .75rem; line-height: 1rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-secondary);
}
.overline .keep-case { text-transform: none; }
.display {
  font-size: clamp(2.5rem, 1.35rem + 4.9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.038em;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.375rem);
  line-height: 1.06;
  letter-spacing: -.032em;
}
.h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 650; letter-spacing: -.015em; }
.lead {
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  line-height: 1.55; color: var(--ink-secondary); font-weight: 450;
}
.muted { color: var(--ink-secondary); }
.small { font-size: .9375rem; line-height: 1.55; }

/* ---------- 4. Nagłówek i stopka ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease-standard);
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-line linear both; animation-timeline: scroll(root); animation-range: 0 64px; }
  @keyframes header-line { to { border-bottom-color: var(--hairline); } }
}
@supports not (animation-timeline: scroll()) {
  .site-header { border-bottom-color: var(--hairline); }
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); text-decoration: none;
  font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; line-height: 1;
  margin-left: -4px; padding: 8px 4px; border-radius: 10px;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.site-nav { margin-left: auto; display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a, .lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--ink-secondary); text-decoration: none; font-size: .9375rem; font-weight: 550;
  transition: color .12s ease-out, background-color .12s ease-out;
}
.site-nav a:hover, .lang-switch:hover { color: var(--ink); background: var(--surface-sunken); }
.lang-switch { margin-left: auto; gap: 6px; color: var(--ink); border: 1px solid var(--hairline); padding: 0 14px; min-height: 40px; }
.lang-switch svg { width: 16px; height: 16px; color: var(--ink-muted); }
@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-nav + .lang-switch { margin-left: 8px; }
}

.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--hairline); margin-top: var(--section); }
.footer-top { display: grid; gap: 28px; }
.footer-tagline { margin-top: 12px; color: var(--ink-secondary); max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 550; display: inline-flex; min-height: 44px; align-items: center; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .875rem; color: var(--ink-secondary);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- 5. Komponenty ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: var(--r-lg);
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .12s ease-out, background-color .12s ease-out;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-pressed); color: var(--on-brand); }
.btn-secondary { background: var(--brand-tint); color: var(--brand); }
.btn-secondary:hover { color: var(--brand); background: color-mix(in srgb, var(--brand-tint) 80%, var(--brand) 20%); }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.hero-badges .store-badge { flex: 1 1 0; min-width: 0; padding-inline: 12px 14px; gap: 10px; }
@media (min-width: 480px) { .hero-badges .store-badge { flex: 0 0 auto; padding-inline: 14px 20px; gap: 11px; } }
@media (max-width: 359px) { .hero-badges { flex-direction: column; } .hero-badges .store-badge { flex: none; } }
.store-badge b { white-space: nowrap; }
.store-badge svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-secondary); }
.store-badge b { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px 0 9px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pill svg { width: 16px; height: 16px; flex: none; }
.pill-brand { background: var(--brand-tint); color: var(--brand); }
.pill-positive { background: var(--positive-tint); color: var(--positive); }
.pill-owe { background: var(--owe-tint); color: var(--owe); }
.pill-neutral { background: var(--neutral-tint); color: var(--ink-secondary); }

.mono {
  --s: 32px;
  width: var(--s); height: var(--s); flex: none;
  display: inline-grid; place-items: center;
  border-radius: calc(var(--s) * .3);
  font-size: calc(var(--s) * .375); font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
.mono-sm { --s: 28px; font-size: 11px; }
.mono-lg { --s: 44px; font-size: 17px; border-radius: var(--r-md); }
.m-teal { background: var(--m-teal); color: var(--m-teal-on); }
.m-ochre { background: var(--m-ochre); color: var(--m-ochre-on); }
.m-violet { background: var(--m-violet); color: var(--m-violet-on); }
.m-coral { background: var(--m-coral); color: var(--m-coral-on); }
.mono-pair { font-size: calc(var(--s) * .34); }

.stack { display: flex; }
.stack .mono { box-shadow: 0 0 0 2px var(--surface); }
.stack .mono + .mono { margin-left: -2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

.icon-tile {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- 6. Telefon (zrzuty z symulatora) ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .158);
  background: var(--phone-bezel);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px var(--phone-ring);
  flex: none;
}
.phone picture, .phone img {
  display: block; width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * .132);
  background: var(--background);
  overflow: hidden;
}

/* ---------- 7. Karta-paragon (§12, akcent B) ---------- */
/* Paragon ma 28em szerokości: rodzic ustawia --rw (szerokość), a stopień pisma to --rw / 28. */
.receipt-wrap { --rw: 392px; width: var(--rw); }
.receipt {
  font-size: calc(var(--rw, 392px) / 28);
  width: 100%;
  color: var(--paper-ink);
  filter: drop-shadow(0 1px 1px rgba(20,28,26,.06)) drop-shadow(0 18px 32px rgba(20,28,26,.16));
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  .receipt { filter: brightness(.94) drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
}
.receipt-paper { background: var(--paper); border-radius: 3px 3px 0 0; padding: 2em 2.1em 1.6em; }
.receipt-edge { display: block; width: 100%; height: .55em; color: var(--paper); }
.receipt-rule { display: flex; flex-direction: column; gap: 3px; }
.receipt-rule::before, .receipt-rule::after { content: ""; height: 1px; background: var(--paper-ink); }
.receipt-head { margin-top: 1.7em; text-align: center; }
.receipt-over { font-size: .75em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ink-2); line-height: 1.3; }
.receipt-title { margin-top: .3em; font-family: var(--serif); font-weight: 400; font-size: 2.6em; line-height: 1.1; letter-spacing: -.005em; }
.receipt-meta { margin-top: .35em; font-size: .86em; font-weight: 500; color: var(--paper-ink-2); }
.receipt-hr { height: 1px; background: var(--paper-rule); margin-block: 1.35em .9em; }
.receipt-total { display: flex; align-items: baseline; gap: .7em; }
.receipt-total > span:first-child { font-weight: 600; }
.receipt-total .amt { font-family: var(--serif); font-size: 1.9em; line-height: 1.15; font-weight: 400; }
.dots {
  flex: 1; min-width: 1em; height: 2px; align-self: baseline;
  background: radial-gradient(circle at 1px 1px, rgba(20,28,26,.34) 1px, transparent 1.5px) right 0 top 0 / 6px 2px repeat-x;
}
.receipt-section { margin-top: 1.45em; }
.receipt-rows { margin-top: .6em; display: flex; flex-direction: column; gap: .35em; }
.receipt-row { display: flex; align-items: baseline; gap: .5em; line-height: 1.6; }
.receipt-row .who { font-weight: 500; white-space: nowrap; }
.receipt-row .amt { font-weight: 700; letter-spacing: -.01em; }
.dot { width: .55em; height: .55em; border-radius: 50%; flex: none; align-self: center; }
.dot-teal { background: #0E5E57; } .dot-ochre { background: #D9A441; } .dot-violet { background: #6B5BC9; } .dot-coral { background: #F0C4B4; }
.arrow { width: 1.1em; height: 1.1em; flex: none; align-self: center; color: #7D8784; }
.receipt-foot {
  margin-top: 1.4em; padding-top: 1.1em; border-top: 1px solid var(--paper-rule);
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  font-size: .86em; font-weight: 500; color: var(--paper-ink-2);
}
.receipt-foot svg { width: 1.45em; height: 1.45em; color: #0E5E57; flex: none; }
.stamp {
  position: absolute; right: 1.2em; top: 5.2em;
  width: 6.4em; height: 6.4em; border-radius: 50%;
  border: 2px solid var(--stamp); color: var(--stamp);
  display: grid; place-items: center; text-align: center;
  transform: rotate(-8deg);
  font-size: 1em; font-weight: 700; letter-spacing: .08em; line-height: 1.1;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--stamp);
}

/* ---------- 8. Sekcje ---------- */
.section { padding-block: var(--section) 0; }
.section-head { max-width: 760px; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 72px); overflow-x: clip; }
.hero-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lead { margin-top: 22px; max-width: 30em; }
.hero-copy .store-badges { margin-top: 34px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-secondary); font-size: .9375rem; font-weight: 550; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero-eyebrow .pill { height: 26px; }

.hero-visual {
  position: relative;
  display: flex; justify-content: flex-end;
  min-height: 420px;
  padding-bottom: 8px;
}
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  width: min(118%, 620px); aspect-ratio: 1; border-radius: 50%;
  right: 50%; top: 50%; transform: translate(62%, -52%);
  background: radial-gradient(closest-side, var(--halo), color-mix(in srgb, var(--halo) 0%, transparent));
}
.hero-visual .phone { --w: min(66vw, 272px); z-index: 1; }
.hero-visual .receipt-wrap {
  position: absolute; z-index: 2; left: 0; bottom: 3%;
  --rw: min(calc((100vw - 40px) * .82), 340px);
}

@media (min-width: 560px) {
  .hero-visual { justify-content: center; }
  .hero-visual .phone { margin-left: 34%; }
  .hero-visual .receipt-wrap { left: 4%; --rw: 360px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 32px; }
  .hero-visual { min-height: 660px; justify-content: flex-end; }
  .hero-visual .phone { --w: 296px; margin-left: 0; margin-right: 0; }
  .hero-visual .receipt-wrap { left: -12%; bottom: 6%; --rw: 372px; }
}
@media (min-width: 1200px) {
  .hero-visual .phone { --w: 312px; margin-right: 2%; }
  .hero-visual .receipt-wrap { left: -10%; --rw: 388px; }
}

/* Jak to działa */
.steps { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 40px; counter-reset: step; grid-template-columns: minmax(0, 1fr); }
.step { display: flex; flex-direction: column; }
.step-visual {
  padding: 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.step-num {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--brand);
}
.step-num::after { content: ""; height: 1px; width: 40px; background: var(--hairline); }
.step .h3 { margin-top: 10px; }
.step p { margin-top: 10px; color: var(--ink-secondary); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step-visual { min-height: 216px; }
}

.trip-row { display: flex; align-items: center; gap: 12px; }
.trip-row .t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.trip-row .m { font-size: .8125rem; color: var(--ink-secondary); line-height: 1.4; }
.divider { height: 1px; background: var(--hairline); margin-block: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-size: .8125rem; font-weight: 600; color: var(--ink-secondary);
}
.link-chip svg { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }

.amount-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount-hero .amt { font-size: 2.75rem; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.cur-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--surface-sunken); font-size: .8125rem; font-weight: 600; color: var(--ink);
  transform: translateY(-6px);
}
.cur-chip svg { width: 14px; height: 14px; color: var(--ink-muted); }
.conv { margin-top: 8px; font-size: .875rem; color: var(--ink-secondary); font-weight: 500; }
.conv b { color: var(--ink); font-weight: 600; }
.field-label { margin-bottom: 8px; }

.xfer { display: flex; flex-direction: column; }
.xfer-row { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.xfer-row + .xfer-row { border-top: 1px solid var(--hairline); }
.xfer-row .i { color: var(--ink-muted); width: 16px; height: 16px; }
.xfer-row .amt { margin-left: auto; font-weight: 650; letter-spacing: -.01em; }
.xfer-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; }

/* Rodziny */
.family-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.family-points { margin-top: 36px; display: grid; gap: 26px; }
.family-point { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
.family-point .icon-tile { grid-row: 1 / span 2; }
.family-point .h3 { font-size: 1.125rem; line-height: 1.4; padding-top: 9px; }
.family-point p { grid-column: 2; margin-top: 4px; color: var(--ink-secondary); }
.split-card { padding: 22px 22px 8px; }
.split-head .t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.split-head .m { margin-top: 2px; font-size: .875rem; color: var(--ink-secondary); }
.split-rows { margin-top: 12px; }
.split-row { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.split-row + .split-row { border-top: 1px solid var(--hairline); margin-left: 44px; padding-left: 0; }
.split-row + .split-row .mono { margin-left: -44px; }
.split-row .who { flex: 1; min-width: 0; line-height: 1.35; }
.split-row .who b { font-weight: 600; }
.split-row .who .os { color: var(--ink-secondary); font-size: .875rem; font-weight: 500; margin-left: 6px; }
.split-row .who small { display: block; font-size: .8125rem; color: var(--ink-secondary); font-weight: 500; }
.split-row .amt { font-weight: 650; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.person {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px;
  border-radius: var(--r-pill); background: var(--surface-sunken);
  font-size: .75rem; font-weight: 600; color: var(--ink);
}
.person i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface); color: var(--ink-secondary); }
.person i svg { width: 12px; height: 12px; }
.tally { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tally div { padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--surface-sunken); }
.tally b { display: block; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tally span { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.35; font-weight: 550; color: var(--ink-secondary); }
@media (min-width: 1000px) {
  .family-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

/* Offline i prywatność */
.trust-grid { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.trust-card { padding: 26px 24px 28px; }
.trust-card .h3 { margin-top: 20px; }
.trust-card p { margin-top: 8px; color: var(--ink-secondary); }
.trust-card .pill { margin-top: 18px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Galeria ekranów */
.gallery {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 12px var(--gutter) 40px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.gallery:focus-visible { outline-offset: -2px; border-radius: 0; }
.shot { scroll-snap-align: start; flex: none; width: 236px; }
.shot .phone { --w: 236px; }
.shot figcaption { margin-top: 20px; padding-inline: 4px; }
.shot figcaption b { display: block; font-weight: 650; letter-spacing: -.01em; }
.shot figcaption span { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.5; color: var(--ink-secondary); }
.gallery-note { margin-top: 4px; font-size: .875rem; color: var(--ink-secondary); text-align: center; }
@media (min-width: 1240px) {
  .gallery { justify-content: center; overflow-x: visible; padding-inline: 0; }
}

/* Pytania */
.faq-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding-block: 18px;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.8px 12px no-repeat,
    var(--surface-sunken);
  transition: transform .18s var(--ease-standard);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-secondary); }
.faq .answer p + p { margin-top: 10px; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
  .faq-grid .section-head { position: sticky; top: 108px; align-self: start; }
}

/* Zakończenie */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta .app-icon { width: 76px; height: 76px; filter: drop-shadow(0 10px 20px rgba(14,94,87,.22)); }
.cta .h2 { margin-top: 26px; max-width: 16em; }
.cta .lead { margin-top: 16px; max-width: 34em; }
.cta .store-badges { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 290px); justify-content: center; }
@media (min-width: 760px) { .cta .store-badges { grid-template-columns: repeat(3, auto); } }

/* ---------- 9. Strony prawne ---------- */
.doc { padding-top: clamp(32px, 6vw, 72px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; margin-top: 14px; }
.doc .doc-meta { margin-top: 14px; color: var(--ink-secondary); font-size: .9375rem; }
.draft-note {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--owe-tint); color: var(--ink);
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
}
.draft-note svg { width: 24px; height: 24px; color: var(--owe); }
.draft-note strong { color: var(--owe); }
.draft-note p { font-size: .9375rem; line-height: 1.55; }
.toc { margin-top: 32px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-sunken); }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 1; }
.toc li { margin-block: 4px; font-size: .9375rem; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
@media (min-width: 1100px) {
  .doc-inner { max-width: none; display: grid; grid-template-columns: minmax(0, 720px) 280px; grid-template-rows: repeat(4, auto) 1fr; column-gap: clamp(56px, 8vw, 120px); align-items: start; }
  .doc-inner > * { grid-column: 1; }
  .doc-inner > .toc { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 100px; margin-top: 4px; }
  .toc ol { columns: 1; }
}
.doc-body { margin-top: 40px; }
.doc-body h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.02em; margin-top: 52px; padding-top: 4px; }
.doc-body > h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.125rem; line-height: 1.4; margin-top: 28px; font-weight: 650; }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin-top: 6px; }
.doc-body li::marker { color: var(--ink-muted); }
.todo {
  background: var(--owe-tint); color: var(--owe); font-weight: 600;
  padding: 1px 6px; border-radius: 6px; font-size: .9em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.data-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.data-table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-secondary); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.data-table td { vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hairline); }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 759px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding-block: 14px; border-bottom: 1px solid var(--hairline); }
  .data-table td { border: 0; padding: 3px 0; }
  .data-table td:first-child { font-size: 1rem; padding-bottom: 6px; }
  .data-table td:not(:first-child)::before {
    content: attr(data-label) " · "; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-secondary);
  }
}

/* ---------- 10. Zaproszenie /j i 404 ---------- */
.focus-page { min-height: calc(100svh - 68px); display: flex; flex-direction: column; }
.focus-main { flex: 1; display: grid; place-items: center; padding-block: 32px 64px; }
.invite { width: 100%; max-width: 520px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.invite .app-icon { width: 84px; height: 84px; filter: drop-shadow(0 12px 24px rgba(14,94,87,.24)); }
.invite .overline { margin-top: 28px; }
.invite h1 { margin-top: 12px; font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
.invite .lead { margin-top: 14px; }
.invite-actions { margin-top: 32px; width: 100%; display: grid; gap: 12px; }
.invite-actions .btn { width: 100%; }
.invite-status {
  margin-top: 28px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--owe-tint); color: var(--ink);
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9375rem; line-height: 1.55;
}
.invite-status svg { width: 22px; height: 22px; color: var(--owe); }
.invite-status[hidden] { display: none; }
.invite-hint { margin-top: 14px; font-size: .9375rem; color: var(--ink-secondary); min-height: 1.5em; }
.invite-facts { margin-top: 40px; width: 100%; text-align: left; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.invite-facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--hairline); font-size: .9375rem; line-height: 1.55; color: var(--ink-secondary); }
.invite-facts li svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.invite-facts b { color: var(--ink); font-weight: 600; }
.mini-footer { padding-block: 24px 32px; border-top: 1px solid var(--hairline); font-size: .875rem; color: var(--ink-secondary); }
.mini-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.mini-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.mini-footer a { color: var(--ink-secondary); }
.mini-footer a:hover { color: var(--ink); }

.notfound { max-width: 560px; text-align: center; }
.notfound .big { font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; font-weight: 650; letter-spacing: -.05em; color: var(--brand); font-variant-numeric: tabular-nums; }
.notfound h1 { margin-top: 18px; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
.notfound p { margin-top: 14px; }
.notfound .btn { margin-top: 30px; }

/* ---------- 11. Ruch ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal .6s var(--ease-emph) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
