/* FinPath public site — tokens from trampki-ui-ux/src/design-system/tokens.ts */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/montserrat-400.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/montserrat-500.woff2") format("woff2");
}

@font-face {
  font-family: "Sour Gummy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/sour-gummy-400.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #3c3c3b;
  --muted: #5c6675;
  --border: #d1d8e3;
  --border-light: #e4e8f0;
  /* Green scale = foundation anchor #00bf63 (mapa kolorów, 01.08) shared with the
     Liki green family; amber = foundation yellow. Magenta lives only in the app icon. */
  --brand: #00a757;
  --brand-strong: #006737;
  --brand-hover: #00522d;
  --brand-tint: #e6f9ef;
  --brand-tint-2: #c6f0da;
  --accent-warm: #f7cb48;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sour Gummy", var(--font-body);

  --radius-card: 24px;
  --radius-inner: 16px;
  --shadow-soft: 0 4px 18px -10px rgb(32 32 32 / 10%);

  --wrap: 64rem;
  --measure: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-strong);
}

.lang-switch {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Landing ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 34rem;
  height: 34rem;
  left: -12rem;
  top: -14rem;
  background: radial-gradient(closest-side, var(--brand-tint), transparent 70%);
}

.hero::after {
  width: 26rem;
  height: 26rem;
  right: -10rem;
  bottom: -12rem;
  background: radial-gradient(closest-side, rgb(247 203 72 / 25%), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero .tagline {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
}

.hero .attribution {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-strong);
}

.store-note {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-art {
  position: relative;
  width: min(72vw, 21rem);
  margin-inline: auto;
}

.hero-blob {
  display: block;
  width: 100%;
  height: auto;
}

.hero-finek {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 47%;
  height: auto;
  transform: translateX(-54%);
  filter: drop-shadow(0 12px 16px rgb(32 32 32 / 20%));
  animation: finek-float 5s ease-in-out infinite alternate;
}

@keyframes finek-float {
  from {
    transform: translateX(-54%) translateY(0);
  }

  to {
    transform: translateX(-54%) translateY(-0.6rem);
  }
}

@media (min-width: 800px) {
  .hero {
    text-align: left;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .hero .tagline,
  .hero .attribution {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-art {
    width: 100%;
    max-width: 26rem;
    margin-inline: 0 auto;
  }
}

.flourish {
  display: block;
  width: 7rem;
  height: auto;
  margin: 0 auto 0.75rem;
}

.section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section > .wrap > h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.01em;
  text-align: center;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .step {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--brand-tint-2);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.card.org h3 {
  margin-top: 0;
}

.card.org a {
  color: var(--brand-strong);
}

.section-note {
  margin: 1.5rem auto 0;
  max-width: var(--measure);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-inline: auto;
}

.privacy-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

.privacy-list .dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  transform: translateY(-0.1rem);
}

.center-link {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  color: var(--brand-strong);
}

.center-link:hover {
  color: var(--brand-hover);
}

/* ---------- Stats band ---------- */

.stats-band {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background:
    radial-gradient(28rem 28rem at 110% 130%, rgb(247 203 72 / 16%), transparent 70%),
    radial-gradient(24rem 24rem at -10% -30%, rgb(255 255 255 / 9%), transparent 70%),
    var(--brand-strong);
  color: #fff;
}

.stats-band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.01em;
  text-align: center;
}

.stats-lead {
  margin: 0 auto 2rem;
  max-width: var(--measure);
  text-align: center;
  color: var(--brand-tint);
  font-size: 0.98rem;
}

.stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  color: var(--accent-warm);
}

.stat-label {
  display: block;
  margin: 0.4rem auto 0;
  max-width: 12rem;
  font-size: 0.85rem;
  color: var(--brand-tint);
}

.stats-note {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--brand-tint-2);
}

.stats-note a {
  color: inherit;
}

/* ---------- Organisation sections ---------- */

.org-section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border-light);
}

.org-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.org-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.01em;
}

.org-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.org-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--brand-strong);
  font-weight: 500;
}

.org-link:hover {
  color: var(--brand-hover);
}

.fact-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.fact-chips li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

.org-section.alt .fact-chips li {
  background: var(--bg);
  box-shadow: none;
}

.fact-chips .dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  transform: translateY(-0.1rem);
}

@media (min-width: 800px) {
  .org-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }

  .org-grid.reverse > .org-copy {
    order: 2;
  }

  .org-grid.reverse > .fact-chips {
    order: 1;
  }
}

/* ---------- Documents ---------- */

.doc {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) 0 3rem;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.doc .doc-meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.doc p,
.doc li {
  color: var(--ink);
}

.doc ul,
.doc ol {
  padding-left: 1.4rem;
}

.doc li {
  margin-bottom: 0.35rem;
}

.doc a {
  color: var(--brand-strong);
}

.doc a:hover {
  color: var(--brand-hover);
}

.doc .lead {
  font-size: 1.05rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-inner);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout.accent {
  border-left-color: var(--accent-warm);
}

.callout p {
  margin: 0.35rem 0;
}

.contact-box {
  background: var(--brand-tint);
  border-radius: var(--radius-inner);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.contact-box p {
  margin: 0.25rem 0;
}

.contact-box .email {
  font-size: 1.15rem;
  font-weight: 500;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.notfound img {
  width: min(38vw, 10rem);
  height: auto;
}

.notfound h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 1.5rem 0 0.5rem;
}

.notfound p {
  color: var(--muted);
}

.notfound a {
  color: var(--brand-strong);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.5rem 0;
  max-width: var(--measure);
}

.site-footer nav {
  margin: 1.25rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-strong);
}

.site-footer .copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* ---------- Utilities ---------- */

a:focus-visible,
summary:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-finek {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer nav,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }
}
