:root {
  --ink: #14120f;
  --ink-soft: #5c574f;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --accent: #ff6b00;
  --accent-dark: #cc5500;
  --border: #eae6df;
  --radius: 14px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f1ee;
    --ink-soft: #b7b1a7;
    --bg: #131110;
    --bg-alt: #1a1714;
    --accent: #ff7f24;
    --accent-dark: #ffa35c;
    --border: #2c2820;
  }
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.05rem; margin-bottom: 8px; }
p { color: var(--ink-soft); margin: 0 0 12px; }

a { color: var(--accent-dark); }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #ffb066 50%, var(--accent) 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
}
.logo img { width: 22px; height: 22px; flex-shrink: 0; }
.site-header nav {
  display: flex;
  gap: 28px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.site-header nav a:hover { color: var(--ink); }

/* one button style, used everywhere, no variants */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9142 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* hero */
.hero { padding: 88px 0 80px; text-align: center; }
.hero .lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.cta-row {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 28px; }

.store-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badges a { line-height: 0; opacity: 0.88; transition: opacity 0.15s ease; }
.store-badges a:hover { opacity: 1; }
.store-badges img { height: 36px; width: auto; }

/* product screenshot showcase */
.showcase { padding-top: 0; }
.browser-frame {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(20, 18, 15, 0.35);
}
@media (prefers-color-scheme: dark) {
  .browser-frame { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
}
.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.browser-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-frame img { width: 100%; height: auto; display: block; }

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 48px;
}
.process-step.reverse { flex-direction: row-reverse; }
.process-media, .process-text { flex: 1 1 0; min-width: 0; }
.process-text .step-num { margin-bottom: 10px; }
.process-text h3 { margin-bottom: 8px; }
.process-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(20, 18, 15, 0.4);
}
@media (prefers-color-scheme: dark) {
  .process-shot { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75); }
}
.process-shot-doc { max-width: 340px; margin: 0 auto; }
@media (max-width: 760px) {
  .process-step, .process-step.reverse { flex-direction: column; gap: 20px; }
}

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { margin-bottom: 0; }
#problem .section-head { margin-bottom: 20px; }
#problem p { max-width: 580px; margin: 0 auto; text-align: center; font-size: 1.05rem; }

.lead-note {
  max-width: 580px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 28px;
}
.grid > * { min-width: 0; }
.card { text-align: left; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.steps li { text-align: left; min-width: 0; }
.step-num {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.faq { max-width: 680px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p { margin-top: 10px; }

.cta-final { text-align: center; }
.cta-final .store-badges { margin-top: 24px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-top > * { min-width: 0; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { max-width: 280px; font-size: 0.9rem; }
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  min-width: 0;
}
.footer-links > * { min-width: 0; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }

  .site-header .wrap { gap: 10px; }
  .site-header nav { display: none; }
  .logo { font-size: 0.92rem; }

  .hero { padding: 52px 0 44px; }
  .hero .lead { font-size: 1rem; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }

  .btn { padding: 11px 20px; font-size: 0.9rem; }

  .grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { gap: 40px; }
}

/* article / poradnik pages */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }

.article-header { padding: 56px 0 8px; }
.article-header .wrap { max-width: 720px; }
.article-header .eyebrow { margin-bottom: 14px; }
.article-header .lead { font-size: 1.05rem; margin-bottom: 0; }
.article-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.article-body { padding: 32px 0 72px; }
.article-body .wrap { max-width: 720px; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 28px; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 12px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); }
code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.article-body th { color: var(--ink); font-weight: 700; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.article-cta {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  margin-top: 44px;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { max-width: 440px; margin: 0 auto 20px; }

.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-links h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.related-links a { display: block; margin-bottom: 8px; }

/* poradnik hub */
.article-list {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.article-list .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.article-list .card h3 { margin-bottom: 6px; }
.article-list .card a { text-decoration: none; color: inherit; }
.article-list .card a:hover h3 { color: var(--accent-dark); }

@media (max-width: 360px) {
  .hero { padding: 44px 0 36px; }
  h1 { font-size: 1.7rem; }

  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
