/* WayWallet landing — wspólny arkusz strony głównej (PL: /, EN: /en/).
   Fonty self-hostowane (te same pliki Fontsource co aplikacja — bez CDN
   Google, RODO + szybszy LCP). Kolory tekstu funkcjonalnego spełniają
   WCAG AA: akcent tekstowy --ink-accent zamiast --sun-2, CTA z ciemnym
   tekstem na gradiencie (5.52/4.55), --muted przyciemniony do 5.1:1. */

:root {
  --cream: #FFF7EC;
  --cream-deep: #FFEEDC;
  --ink: #3B2430;
  /* WCAG: 5.10 na kremie (dawne #8A6E77 miało 4.32) */
  --muted: #7D636C;
  /* Akcent w roli TEKSTU — 4.87 na kremie; --sun-2 (2.42) zostaje dla grafiki */
  --ink-accent: #C2481F;
  --sun-1: #FFC24B;
  --sun-2: #FF7A59;
  --sun-3: #F35D8A;
  --sky: #7FA8F0;
  --dusk: #331E2E;
  --card: #FFFDF8;
  --line: rgba(59,36,48,0.12);
  --shadow: 0 10px 30px rgba(59,36,48,0.10), 0 2px 8px rgba(59,36,48,0.06);
  --shadow-lift: 0 24px 48px rgba(59,36,48,0.16), 0 4px 12px rgba(59,36,48,0.08);
  --radius: 20px;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Płynny scroll tylko bez prefers-reduced-motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--sun-1); color: var(--ink); }
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--sun-3); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(255,247,236,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59,36,48,0.07);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav-brand svg { width: 34px; height: 34px; }
.nav-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
/* Gradient tekstu przyciemniony do ≥3.0 (tekst duży) na jasnym tle;
   w kontekstach na ciemnym (stopka, nav podstron) nadpisywany jaśniejszym. */
.wm-accent {
  background: linear-gradient(115deg, #D9482A, #C93A5E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.on-dark .wm-accent {
  background: linear-gradient(115deg, var(--sun-2), var(--sun-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink);
  opacity: 0.75; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.lang-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--ink); background: rgba(255,255,255,0.6); }
/* CTA: ciemny tekst na gradiencie marki — 5.52 na --sun-2, 4.55 na --sun-3
   (biały miał 2.57–3.11). */
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink);
  background: linear-gradient(120deg, var(--sun-2), var(--sun-3));
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(243,93,138,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(243,93,138,0.45); }

/* Hamburger (mobile) — nawigacja sekcji nie znika poniżej 640px */
.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 38px; height: 38px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 120px clamp(20px, 5vw, 72px) 90px;
  background:
    radial-gradient(1100px 520px at 78% 108%, rgba(255,194,75,0.55), transparent 62%),
    radial-gradient(900px 480px at 15% 118%, rgba(243,93,138,0.28), transparent 60%),
    linear-gradient(to bottom, #AFC9F6 0%, #CBD7F2 26%, #F6D9BE 55%, #FFC98F 78%, #FFB37A 100%);
  overflow: hidden;
}
.hero::after { /* horyzont — miękkie przejście w krem strony */
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--cream) 85%);
  pointer-events: none;
}
.hero-sun {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: 12%; top: 16%;
  background: radial-gradient(circle at 38% 34%, #FFE9A8, var(--sun-1) 52%, var(--sun-2) 100%);
  box-shadow: 0 0 90px 40px rgba(255,194,75,0.5);
}
.hero-cloud {
  position: absolute; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,0.75); filter: blur(2px);
}
.hero-cloud.c1 { width: 200px; top: 20%; left: 6%; }
.hero-cloud.c2 { width: 130px; top: 32%; left: 22%; height: 34px; opacity: 0.7; }
.hero-cloud.c3 { width: 170px; top: 14%; right: 34%; opacity: 0.6; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(255,255,255,0.68); border: 1px solid rgba(59,36,48,0.10);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
/* Gradient przyciemniony: 4.16 / 4.86 / 5.5 na kremie (tekst duży ≥3.0) */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, #D9482A 10%, #C93A5E 60%, #A63B79 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px); color: rgba(59,36,48,0.78);
  max-width: 500px; margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16.5px;
  background: linear-gradient(120deg, var(--sun-2), var(--sun-3));
  padding: 15px 28px; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(243,93,138,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(243,93,138,0.5); }
.store-badges { display: flex; gap: 10px; }
.btn-store {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(59,36,48,0.22); border-radius: 16px;
  padding: 10px 16px; background: rgba(255,255,255,0.45);
  color: rgba(59,36,48,0.55); cursor: default; position: relative;
}
.btn-store svg { width: 22px; height: 22px; opacity: 0.55; }
.btn-store-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store-sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.btn-store-name { font-size: 15px; font-weight: 600; }
.soon-tag {
  position: absolute; top: -9px; right: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.04em;
}

/* ---------- Telefon (mockup) ---------- */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone {
  width: min(330px, 82vw);
  background: var(--dusk);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
  transform: rotate(3deg);
}
.phone-screen {
  background: var(--card); border-radius: 32px; overflow: hidden;
  padding: 22px 18px 26px;
}
.phone-trip { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.phone-trip-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.phone-trip-dates { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.phone-budget-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.phone-budget-row strong { color: var(--ink); font-weight: 600; }
/* Sygnaturowa „trasa budżetu" zamiast paska — jak BudgetHero w aplikacji */
.phone-road { width: 100%; height: auto; margin: 2px 0 14px; }
.phone-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 10px; border-radius: 14px; background: var(--cream);
  margin-bottom: 9px;
}
.phone-item-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(135deg, rgba(255,194,75,0.35), rgba(243,93,138,0.25));
}
.phone-item-body { flex: 1; min-width: 0; }
.phone-item-title { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-item-meta { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.phone-item-amounts { text-align: right; font-family: var(--font-mono); line-height: 1.3; }
.phone-item-plan { font-size: 9.5px; color: var(--muted); text-decoration: line-through; }
.phone-item-actual { font-size: 12px; font-weight: 600; }
.phone-item-actual.under { color: #2F7A4D; }
.phone-item-actual.over { color: #C03636; }

/* ---------- Sekcje wspólne ---------- */
main { position: relative; }
.section { position: relative; z-index: 2; padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px); max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-accent);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -0.025em; line-height: 1.08;
  max-width: 640px; margin-bottom: 16px;
}
.section h2 em { font-style: normal; color: var(--ink-accent); }
.section-lead { font-size: 17.5px; color: rgba(59,36,48,0.72); max-width: 560px; margin-bottom: 52px; }

/* ---------- Trasa SVG (sygnatura) ---------- */
.route-svg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: min(1100px, 96vw); z-index: 0; pointer-events: none;
}
.route-svg path {
  fill: none; stroke: var(--sun-2); stroke-width: 3;
  stroke-dasharray: 10 14; stroke-linecap: round; opacity: 0.55;
}
.route-svg circle { fill: var(--sun-3); opacity: 0.8; }

/* ---------- Funkcje ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid rgba(59,36,48,0.07);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(255,194,75,0.4), rgba(243,93,138,0.3));
}
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19.5px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: rgba(59,36,48,0.72); }

/* ---------- Jak to działa ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before { /* pozioma droga między krokami */
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%;
  border-top: 3px dashed rgba(255,122,89,0.5); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-pin {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 27px;
  background: var(--card); border: 3px solid var(--sun-2);
  box-shadow: var(--shadow);
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step h3 .mono { color: var(--ink-accent); }
.step p { font-size: 15px; color: rgba(59,36,48,0.72); max-width: 300px; margin: 0 auto; }

/* ---------- Cennik ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 26px; justify-content: center; }
.plan {
  background: var(--card); border: 1px solid rgba(59,36,48,0.08);
  border-radius: 26px; padding: 38px 34px; text-align: center;
  box-shadow: var(--shadow); position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plan.featured { border: 2px solid var(--sun-2); background: linear-gradient(180deg, #FFFDF8, #FFF3E2); }
.plan-save {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  background: linear-gradient(120deg, var(--sun-2), var(--sun-3)); color: var(--ink);
  padding: 6px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(243,93,138,0.4);
  white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 14px; }
.plan-price { font-family: var(--font-mono); font-weight: 600; font-size: clamp(38px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.plan-period { font-size: 15px; color: var(--muted); margin-top: 6px; margin-bottom: 22px; }
.plan-desc { font-size: 14.5px; color: rgba(59,36,48,0.72); margin-bottom: 28px; min-height: 44px; }
.plan-cta {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 13px 30px; border-radius: 14px; transition: transform 0.2s, box-shadow 0.2s;
}
.plan-cta.primary { color: var(--ink); background: linear-gradient(120deg, var(--sun-2), var(--sun-3)); box-shadow: 0 8px 20px rgba(243,93,138,0.35); }
.plan-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(243,93,138,0.45); }
.plan-cta.ghost { color: var(--ink); border: 1.5px solid rgba(59,36,48,0.25); }
.plan-cta.ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.pricing-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 26px; }

/* ---------- Download / CTA ---------- */
.download {
  position: relative; z-index: 2;
  margin: 0 clamp(16px, 4vw, 56px) clamp(70px, 8vw, 110px);
  border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 115%, rgba(255,194,75,0.5), transparent 60%),
    linear-gradient(120deg, #4A2A44 0%, #6E3355 45%, #B04A63 78%, #E76F51 100%);
  color: #FFF4E6;
  text-align: center; padding: clamp(60px, 8vw, 100px) 24px;
}
.download h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.025em; margin-bottom: 14px; }
.download p { font-size: 17px; opacity: 0.85; max-width: 520px; margin: 0 auto 36px; }
.download .hero-actions { justify-content: center; }
.download .btn-store { background: rgba(255,255,255,0.08); border-color: rgba(255,244,230,0.3); color: rgba(255,244,230,0.75); }
.download .btn-store svg { opacity: 0.8; }
.download .soon-tag { background: var(--cream); color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--dusk); color: rgba(255,244,230,0.7);
  padding: 44px clamp(20px, 5vw, 72px);
  display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center;
}
footer .nav-wordmark { color: #FFF4E6; margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; }
footer .nav-wordmark svg { width: 28px; height: 28px; }
footer a { color: rgba(255,244,230,0.7); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
footer a:hover { color: #FFF4E6; }
/* WCAG: bez dodatkowego wygaszenia (0.55 dawało 3.31; pełny kolor stopki = 7.64) */
.footer-copy { width: 100%; font-size: 13px; }

/* ---------- Animacje ---------- */
/* Ukrywanie .reveal tylko gdy JS działa (klasa .js ze skryptu inline w <head>)
   — bez JS strona jest po prostu statyczna i kompletna. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .hero-sun { animation: sunFloat 9s ease-in-out infinite; }
  @keyframes sunFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
  }
  .hero-cloud { animation: cloudDrift 26s ease-in-out infinite alternate; }
  .hero-cloud.c2 { animation-duration: 34s; }
  .hero-cloud.c3 { animation-duration: 42s; }
  @keyframes cloudDrift {
    from { transform: translateX(0); }
    to { transform: translateX(60px); }
  }
  .phone { animation: phoneFloat 7s ease-in-out infinite; }
  @keyframes phoneFloat {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(2.4deg) translateY(-12px); }
  }
  .hero-copy > * { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s ease forwards; }
  .hero-copy .hero-badge { animation-delay: 0.05s; }
  .hero-copy h1 { animation-delay: 0.15s; }
  .hero-copy .hero-sub { animation-delay: 0.3s; }
  .hero-copy .hero-actions { animation-delay: 0.45s; }
  @keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
}

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { margin-top: 34px; }
  .hero-sun { width: 170px; height: 170px; right: 6%; top: 9%; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 640px) {
  .nav { gap: 10px; padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,247,236,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59,36,48,0.07);
    padding: 6px 0;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 20px; opacity: 0.85; }
  .nav-cta { padding: 8px 14px; font-size: 13.5px; }
  .lang-btn { padding: 6px 10px; font-size: 13px; }
  .nav-wordmark { font-size: 17px; }
  .nav-brand svg { width: 28px; height: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .route-svg { display: none; }
}
