/* MemStash: kolory i font z apki (Theme.kt, Figtree). Żółty pas na górze w obu motywach, reszta wg systemu. */

/* Figtree (licencja OFL 1.1, /assets/licenses/Figtree-OFL.txt). */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-regular.woff) format("woff"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-semibold.woff) format("woff"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(fonts/figtree-bold.woff) format("woff"); }

:root {
  --accent: #f5cf2e;
  --ink: #15130f;
  --bg: #f7f6f3;
  --text: #161514;
  --muted: #6b675f;
  --line: #e6e3dc;
  --card: #ffffff;
  --link: #7a5f00;
  --note: #fbf0c2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #f5f3ee;
    --muted: #a6a29a;
    --line: #2a2a2a;
    --card: #1d1d1d;
    --link: #f5cf2e;
    --note: #1d1d1d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
strong { font-weight: 600; }
code { font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }

/* Podkreślenie w kolorze linku, ale przygaszone; pełne po najechaniu. */
a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* --- Strona główna --- */

.hero { background: var(--accent); color: var(--ink); }
.hero-in {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero .logo { flex: none; width: 168px; height: auto; }
.hero h1 { margin: 0 0 6px; font-size: clamp(44px, 9vw, 68px); font-weight: 700; letter-spacing: -0.03em; }
.tagline { margin: 0 0 18px; font-size: clamp(22px, 4vw, 28px); font-weight: 600; line-height: 1.3; }
.lead { max-width: 34em; margin: 0 0 24px; font-size: 18px; }
.hero :focus-visible { outline-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.btn { color: var(--ink); text-decoration: none; }
.btn .ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: rgba(21, 19, 15, 0.08); }
.btn-primary { background: var(--ink); color: var(--accent); }
.btn-primary:hover { background: #3a362e; }
.facts { margin: 14px 0 0; font-size: 15px; }
.facts span { white-space: nowrap; }

section { padding: 64px 0 8px; }
section h2 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 36px); font-weight: 700; }

/* Zrzuty ekranu: trzy kolumny, na telefonie pasek przewijany w bok. */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 719px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 12px;
    margin: 24px -20px 0;
    padding: 0 20px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
  }
  .shots li { scroll-snap-align: start; }
}

/* Jak to działa */
.steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li, .mode {
  padding: 22px 22px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.steps h3, .mode h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.steps p, .mode p { color: var(--muted); }
.modes-intro { margin: 32px 0 16px; }
.modes { display: grid; gap: 16px; }
@media (min-width: 720px) { .modes { grid-template-columns: 1fr 1fr; } }

.features { max-width: 44em; margin: 16px 0 0; padding-left: 22px; }
.features li { margin-bottom: 10px; }
.features li::marker, .doc li::marker { color: var(--accent); }

.note {
  max-width: 44em;
  margin: 16px 0 0;
  padding: 18px 22px 6px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--note);
}

.site-footer {
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: inherit; text-decoration-line: none; }
.site-footer a:hover { color: var(--text); text-decoration-line: underline; }

@media (max-width: 640px) {
  .hero-in { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 44px; padding-bottom: 48px; }
  .hero .logo { width: 104px; }
  section { padding-top: 48px; }
}

/* --- Polityka prywatności --- */

.topbar { padding: 28px 0 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }

.doc { max-width: 720px; padding-top: 36px; }
.doc h1 { margin: 0; font-size: clamp(34px, 7vw, 46px); font-weight: 700; letter-spacing: -0.025em; }
.doc .meta { margin: 10px 0 28px; color: var(--muted); font-size: 15px; }
.doc .note { margin: 0 0 12px; padding-bottom: 4px; }
.doc h2 { margin: 36px 0 8px; font-size: 22px; font-weight: 600; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc + .site-footer { margin-top: 48px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: color 0.15s, background-color 0.15s, text-decoration-color 0.15s; }
}
