/* Tasply – strona. Kolory jak w aplikacji: zieleń lasu na jasnym, szałwiowym tle. */
:root {
  --bg: #f3f6f0;
  --surface: #ffffff;
  --surface-2: #e8eee3;
  --fg: #1a221c;
  --muted: #56625a;
  --accent: #2f7a4a;
  --accent-strong: #235f39;
  --accent-ink: #ffffff;
  --accent-soft: #dcebdf;
  --line: #d9e1d4;
  --warm: #f7f0e1;
  --warm-ink: #5b4a22;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 12px 32px rgba(20, 40, 25, .10);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411;
    --surface: #161d18;
    --surface-2: #1c251f;
    --fg: #e3eae3;
    --muted: #9ba99e;
    --accent: #72c38a;
    --accent-strong: #8fd6a4;
    --accent-ink: #0c1a10;
    --accent-soft: #1d3324;
    --line: #29342c;
    --warm: #2a2416;
    --warm-ink: #ecd9a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --surface: #161d18; --surface-2: #1c251f; --fg: #e3eae3; --muted: #9ba99e;
  --accent: #72c38a; --accent-strong: #8fd6a4; --accent-ink: #0c1a10; --accent-soft: #1d3324;
  --line: #29342c; --warm: #2a2416; --warm-ink: #ecd9a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; margin-bottom: 12px; }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
section { padding: 72px 0; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.top-nav a:hover { color: var(--fg); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; color: var(--fg); background: var(--surface); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: grid; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu a { padding: 8px 12px; border-radius: 9px; color: var(--fg); text-decoration: none; font-size: .95rem; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
/* skąd nazwa: Tasks + Simply = Tasply */
.name-origin {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  margin-bottom: 14px; color: var(--muted); font-size: .95rem;
}
.name-origin strong { color: var(--fg); font-weight: 700; }
.name-formula {
  padding: 3px 10px; border-radius: 8px; background: var(--warm); color: var(--warm-ink);
  font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: .85rem; font-weight: 650;
}
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); margin-top: 20px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% -10% 4%; z-index: 0;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.phone {
  position: relative; z-index: 1;
  width: 100%; border-radius: 28px; background: var(--surface);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-phone { max-width: 320px; transform: rotate(2deg); }

/* ---------- 3 szybkie powody ---------- */
.quick { padding-top: 16px; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quick-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.quick-card p { color: var(--muted); }

/* ---------- to nie jest kalendarz ---------- */
.not-calendar { background: var(--warm); color: var(--warm-ink); }
.not-calendar h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.not-calendar p { font-size: clamp(1.08rem, 1.8vw, 1.25rem); max-width: 50em; }

/* ---------- prawdziwy las (cel: sadzenie drzew) ---------- */
.real-forest { background: var(--accent-soft); }
.real-forest-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.real-forest-icon { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; white-space: nowrap; }
.real-forest .eyebrow { background: var(--surface); }
.real-forest-text { font-size: clamp(1.08rem, 1.8vw, 1.2rem); max-width: 52em; }
.real-forest-note { margin-top: 14px; color: var(--muted); font-size: .95rem; font-style: italic; }
@media (max-width: 720px) {
  .real-forest-inner { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- historia ---------- */
.story-list {
  list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.story-list li {
  counter-increment: s; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 18px 58px;
}
.story-list li::before {
  content: counter(s); position: absolute; left: 18px; top: 17px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; font-size: .85rem;
}
.story-outro {
  margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 16px 16px 0; font-size: 1.1rem; font-weight: 550;
}

/* ---------- funkcje ---------- */
.features > h2 { margin-bottom: 8px; }
.feature {
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 750; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.feature-shot .phone { max-width: 300px; margin: 0 auto; }
.feature-plain { grid-template-columns: 1fr; }
.feature-plain .feature-text {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}

/* ---------- dodatki ---------- */
.extras { padding-top: 24px; }
.extras-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.extra { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.extra-icon { font-size: 1.5rem; line-height: 1.2; }
.extra p { color: var(--muted); font-size: .97rem; }

/* ---------- jak używać ---------- */
.how { background: var(--surface-2); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { background: var(--surface); border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- galeria ---------- */
.gallery-strip {
  list-style: none; margin: 24px -16px 0; padding: 8px 16px 20px;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.gallery-strip li { flex: 0 0 220px; scroll-snap-align: start; }
.shot-btn { all: unset; cursor: zoom-in; display: block; border-radius: 28px; }
.shot-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shot-btn .phone { border-radius: 22px; transition: transform .2s; }
.shot-btn:hover .phone { transform: translateY(-4px); }
.shot-cap { display: block; margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 14, 10, .82); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 26px; cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; cursor: pointer;
}

/* ---------- beta + prywatność ---------- */
.closing { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.card { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.card h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.card p { color: var(--muted); }
.card-beta { background: var(--surface); }
.card-privacy { background: var(--accent-soft); border-color: transparent; }
.card-privacy p { color: var(--fg); }

/* ---------- stopka ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .top-nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-phone { max-width: 260px; }
  .quick-grid, .story-list, .closing { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .feature.flip .feature-text { order: 0; }
  .feature-shot .phone { max-width: 250px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps, .extras-grid { grid-template-columns: 1fr; }
  .btn { flex: 1 1 100%; justify-content: center; }
  .card { padding: 24px; }
  .gallery-strip li { flex-basis: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot-btn .phone { transition: none; }
}
