/* ==========================================================================
   finemy — strona informacyjna (finemy.app) · styl jak w aplikacji: Monochrome
   ========================================================================== */

:root {
  /* palette — te same kolory co w aplikacji */
  --ink: #0c0c0d;
  --ink-2: #2a2a2d;
  --muted: #6f6f76;
  --muted-2: #8b8b92;
  --line: rgba(12, 12, 13, .08);
  --white: #fff;
  --bg: #f3f3f5;
  --track: #c9c9ce;
  --lavender: #dbb8f3;
  --lime: #dff47c;
  --blue: #4757c8;
  --orange: #ee5e36;
  --graphite: #343434;

  /* shape & depth */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 999px;
  --shadow-soft: 0 10px 28px -14px rgba(0, 0, 0, .22);
  --shadow-dark: 0 16px 30px -12px rgba(0, 0, 0, .5);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; max-width: 100%; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(70% 520px at 88% -60px, rgba(214, 200, 240, .65) 0%, transparent 70%),
    radial-gradient(50% 420px at 0% 0%, rgba(255, 255, 255, .95) 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 20px; height: 20px; }
.ic--xs { width: 14px; height: 14px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: var(--white); font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ---------- logo: ring budżetu ---------- */
.logo {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ink) 0 270deg, var(--lavender) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 35%);
          mask: radial-gradient(circle, transparent 0 34%, #000 35%);
}
.logo--xs { width: 14px; height: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 700; letter-spacing: -.05em;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 26px; border-radius: var(--pill);
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-dark); }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { background: rgba(12, 12, 13, .06); }
.btn--ghost:hover { background: rgba(12, 12, 13, .1); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--pill);
  background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip--light { box-shadow: var(--shadow-soft); }
.chip--dark { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 243, 245, .72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
}
.site-head__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-head .btn { margin-left: auto; }
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .site-head .btn { margin-left: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 36px 0 64px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__copy { max-width: 600px; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(44px, 9vw, 84px); font-weight: 800; font-style: italic;
  letter-spacing: -.065em; line-height: .98;
  word-spacing: .08em;
  text-wrap: balance;
}
.lead {
  margin-top: 20px; max-width: 34em;
  font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); letter-spacing: -.015em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 14px; color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ic { color: var(--ink); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 184, 243, .75), rgba(219, 184, 243, 0) 68%);
  z-index: -1;
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}

/* ==========================================================================
   Makieta telefonu — ekran „Mój budżet” odtworzony w HTML i CSS
   ========================================================================== */
.phone {
  width: min(340px, 100%);
  padding: 10px;
  border-radius: 52px;
  background: #121214;
  box-shadow: 0 40px 80px -30px rgba(30, 20, 60, .45), inset 0 0 0 2px #2a2a2e;
}
.phone__screen {
  position: relative; overflow: hidden;
  height: 640px; padding: 46px 16px 0;
  border-radius: 42px;
  background:
    radial-gradient(90% 45% at 85% -5%, rgba(214, 200, 240, .55) 0%, transparent 60%),
    radial-gradient(70% 40% at 0% 0%, rgba(255, 255, 255, .9) 0%, transparent 70%),
    linear-gradient(180deg, #f2f2f4 0%, #e3e3e7 100%);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; translate: -50% 0;
  width: 96px; height: 26px; border-radius: var(--pill); background: #121214;
}
.m-top { display: flex; align-items: center; gap: 8px; }
.m-top .brand { font-size: 20px; gap: 8px; }
.m-top .logo { width: 26px; height: 26px; }
.m-circle {
  width: 40px; height: 40px; margin-left: auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-soft);
}

.m-wallet {
  margin-top: 16px; padding: 18px 16px 14px;
  border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .22));
  border: 1px solid rgba(255, 255, 255, .85);
}
.m-wallet__sub { font-size: 12px; color: var(--muted-2); }
.m-wallet__balance { margin-top: 2px; font-size: 34px; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.m-wallet__of { margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.m-wallet__of strong { color: var(--ink-2); font-weight: 500; }

/* licznik: pasek z kresek, kolorowa część = to, co zostało (jak w aplikacji) */
.meter {
  --p: 58%;
  --m1: var(--blue); --m2: #b98ae6;
  height: 26px; margin-top: 14px;
  background:
    linear-gradient(90deg, var(--m1), var(--m2)) 0 0 / var(--p) 100% no-repeat,
    var(--track);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 6px);
          mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 6px);
}
.meter--low { --m1: var(--orange); --m2: #f4946c; }
.meter__legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted-2); }
.meter__legend strong { color: var(--ink); font-weight: 600; }

.m-period { display: flex; justify-content: center; margin-top: 12px; }
.m-period .chip { height: 32px; font-size: 12px; }
.m-period .chip span { font-weight: 600; }

.m-head { margin-top: 18px; font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.m-day { margin: 10px 4px 0; font-size: 11px; font-weight: 500; color: var(--muted-2); }
.m-group {
  margin-top: 6px; padding: 2px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .7);
}
.m-group li + li { border-top: 1px solid var(--line); }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.m-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row__title { font-size: 13px; font-weight: 500; letter-spacing: -.02em; }
.m-row__sub { font-size: 11px; color: var(--muted-2); }
.m-row__amt { font-size: 13px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }

/* kafelek kategorii: koło w kolorze kategorii, ikona w kontrastowym kolorze */
.cat {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--cc, var(--white)); color: var(--ci, var(--ink));
}
.cat .ic { width: 18px; height: 18px; }
.cat--lavender { --cc: var(--lavender); --ci: #1c1a1f; }
.cat--lime { --cc: var(--lime); --ci: #1c1a1f; }
.cat--blue { --cc: var(--blue); --ci: #fff; }
.cat--orange { --cc: var(--orange); --ci: #fff; }
.cat--graphite { --cc: var(--graphite); --ci: #fff; }

.m-tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  height: 58px; padding: 0 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: var(--pill);
  background: rgba(238, 238, 241, .8);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .25);
}
.m-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: #a3a3a9; }
.m-tab.is-active { color: var(--ink); }
.m-tab .ic { width: 20px; height: 20px; }
.m-fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-dark), 0 0 0 5px rgba(243, 243, 245, .92);
  transform: translateY(-16px);
}

/* ==========================================================================
   Sekcje
   ========================================================================== */
.section { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.section h2 {
  margin-top: 14px; max-width: 16em;
  font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; font-style: italic;
  letter-spacing: -.06em; line-height: 1.02;
  word-spacing: .08em;
  text-wrap: balance;
}
.section__lead { margin-top: 18px; max-width: 40em; font-size: 18px; color: var(--ink-2); letter-spacing: -.01em; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.card {
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- Idea ---------- */
.principles { display: grid; gap: 14px; margin-top: 40px; }
.principles .cat { width: 48px; height: 48px; margin-bottom: 18px; }
.principles .cat .ic { width: 24px; height: 24px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Jak to działa ---------- */
.steps { display: grid; gap: 14px; margin-top: 40px; counter-reset: step; }
.step { display: flex; flex-direction: column; }
.step__n {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink); color: var(--white);
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step__demo {
  margin-top: auto; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.step__demo .chip { background: rgba(12, 12, 13, .06); }
.step__demo .chip--dark { background: var(--ink); }
.step__demo .meter { flex: 1 0 100%; margin-top: 0; }
.amount {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  height: 56px; padding: 0 10px 0 22px; border-radius: var(--pill);
  background: var(--white);
  font-size: 22px; font-weight: 600; letter-spacing: -.03em;
}
.amount .chip { height: 30px; font-size: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Funkcje ---------- */
.features { display: grid; gap: 14px; margin-top: 40px; }
.feature .cat { width: 44px; height: 44px; margin-bottom: 16px; }
.feature .cat .ic { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Prywatność (ciemny pas) ---------- */
.privacy {
  padding: 44px 24px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(71, 87, 200, .55) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(219, 184, 243, .28) 0%, transparent 70%),
    var(--ink);
  color: var(--white);
}
.privacy .eyebrow { color: rgba(255, 255, 255, .8); }
.privacy .eyebrow::before { background: var(--lime); }
.privacy .section__lead { color: rgba(255, 255, 255, .78); }
.privacy__grid { display: grid; gap: 36px; }
.checks { display: grid; gap: 14px; align-content: start; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.checks .tick {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
}
.checks .tick .ic { width: 16px; height: 16px; }
.privacy__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 15px; font-weight: 500; color: var(--white);
  text-decoration: underline; text-underline-offset: 4px;
}
@media (min-width: 900px) {
  .privacy { padding: 72px 64px; }
  .privacy__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 40px; max-width: 820px; }
.faq details {
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 22px; max-width: 62ch; font-size: 15.5px; color: var(--ink-2); }

/* ---------- Końcowe wezwanie ---------- */
.final { text-align: center; }
.final h2 { margin-left: auto; margin-right: auto; }
.final .section__lead { margin-left: auto; margin-right: auto; }
.final .btn { margin-top: 30px; }
.final__ring { display: block; width: 72px; height: 72px; margin: 0 auto 8px; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-foot { padding: 40px 0 calc(env(safe-area-inset-bottom, 0px) + 40px); border-top: 1px solid var(--line); }
.site-foot__in { display: grid; gap: 24px; }
.site-foot__tag { margin-top: 6px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-foot__legal { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .site-foot__in { grid-template-columns: 1fr auto; align-items: center; }
  .site-foot__legal { grid-column: 1 / -1; }
}
