/* subpaczka.pl product page. Light + dark, no external resources. */
:root {
  --bg: #f7f8fb; --surface: #ffffff; --surface-2: #eef1f6; --text: #0f1420; --muted: #566074;
  --line: #e1e5ec; --accent: #3b5bfd; --accent-ink: #ffffff; --accent-soft: #e8ecff;
  --ok: #107a57; --ok-soft: #dff5ec; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px rgba(16,24,40,.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0f15; --surface: #141923; --surface-2: #1a2130; --text: #e9ecf2; --muted: #9aa5b8; --line: #262e3c;
    --accent: #7088ff; --accent-ink: #0b0f1a; --accent-soft: #1b2342; --ok: #46d19f; --ok-soft: #12332a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.lead.center { max-width: 60ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none !important; transition: transform .08s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none !important; }
.logo svg { color: var(--accent); }
.links { display: flex; gap: 22px; margin-left: 12px; } .links a { color: var(--muted); font-weight: 600; font-size: 15px; } .links a:hover { color: var(--text); text-decoration: none; }
.cta { margin-left: auto; display: flex; gap: 10px; }

/* hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 380px at 78% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }

/* product mock */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; font-size: 14px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; font-size: 16px; }
.pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.mock-row { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); }
.mock-row small { display: block; color: var(--muted); font-size: 12.5px; }
.car { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-weight: 600; } .car small { display: inline; margin-left: 2px; font-weight: 500; }
.car i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.mbtn { background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.mbtn.ok { background: var(--ok-soft); color: var(--ok); }
.mock-note { margin: 10px 6px 0; font-size: 12px; color: var(--muted); }

/* strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 0; color: var(--muted); font-weight: 600; }
.strip ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.strip li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--bg); }

/* sections */
.sec { padding: 84px 0; } .sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec > .wrap > h2 { text-align: center; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 40px 0 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 8px 0 0; }
.n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.grid article { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.grid p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }
.how { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.how h2 { text-align: left; }
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.flow > div { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px; font-size: 15px; text-align: center; font-weight: 700; box-shadow: var(--shadow); }
.flow small { color: var(--muted); font-weight: 500; } .flow span { color: var(--muted); font-size: 22px; }
.flow .hi { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; margin: 36px 0 26px; }
.price { position: relative; background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px; }
.price.rec { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); background: var(--surface); }
.tag { position: absolute; top: -14px; left: 24px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.price h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.amount { margin: 10px 0 4px; } .amount b { font-size: 46px; letter-spacing: -.03em; } .amount span { color: var(--muted); }
.sub { color: var(--muted); font-size: 15px; min-height: 48px; }
.incl { list-style: none; padding: 0; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; max-width: 820px; }
.incl li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; } summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }
.sec > .narrow > h2 { margin-bottom: 20px; }

/* final + footer */
.final { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 72px 0; }
.final h2 { color: inherit; } .final p { opacity: .9; font-size: 19px; }
.final .btn.primary { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.foot { padding: 36px 0; color: var(--muted); font-size: 15px; } .foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; } .foot p { margin: 6px 0 0; }
.foot b { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid, .how { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .links { display: none; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  h2 { font-size: 25px; margin-bottom: 10px; text-wrap: balance; }
  h3 { font-size: 17px; }

  /* header: slim bar, a compact button that never wraps */
  .bar { min-height: 56px; gap: 12px; }
  .logo { font-size: 17px; gap: 8px; } .logo svg { width: 22px; height: 22px; }
  .cta { align-items: center; }
  .cta .btn { padding: 9px 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
  .cta .ghost { display: none; }

  /* hero */
  .hero { padding: 30px 0 28px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .07em; line-height: 1.5; margin-bottom: 12px; text-wrap: balance; }
  h1 { font-size: clamp(29px, 8.2vw, 36px); line-height: 1.12; text-wrap: balance; }
  .hero h1 { margin-bottom: 14px; }
  .lead { font-size: 16.5px; line-height: 1.55; }
  .hero-cta { flex-direction: column; gap: 10px; margin: 22px 0 12px; }
  .hero-cta .btn { width: 100%; }
  .btn.lg { padding: 14px 20px; font-size: 16.5px; }
  .fine { font-size: 13.5px; }

  /* product mock */
  .mock { padding: 12px; border-radius: 16px; }
  .mock-head { padding: 2px 4px 10px; font-size: 15px; }
  .mock-row { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 11px 4px; }
  .mock-row .car { grid-column: 1 / -1; order: 3; font-size: 13.5px; }
  .mbtn { font-size: 12px; padding: 7px 10px; }

  .strip-in { gap: 12px; padding: 16px 0; font-size: 14px; }
  .strip li { padding: 5px 12px; font-size: 14px; }

  /* sections */
  .sec { padding: 44px 0; }
  .steps { gap: 12px; margin-top: 24px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; padding: 18px; border-radius: 16px; }
  .steps li .n { grid-row: 1 / span 2; margin: 0; width: 34px; height: 34px; border-radius: 10px; }
  .steps li h3 { align-self: center; line-height: 1.25; }
  .steps li p { grid-column: 2; margin: 6px 0 0; font-size: 15px; line-height: 1.55; }

  .grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .grid article { padding: 15px 17px; border-radius: 14px; }
  .grid h3 { font-size: 16.5px; }
  .grid p { font-size: 14.5px; line-height: 1.52; margin-top: 5px; }

  /* how it connects: a vertical chain */
  .how h2 { font-size: 25px; }
  .flow { flex-direction: column; gap: 6px; }
  .flow > div { width: min(260px, 100%); padding: 13px 16px; }
  .flow span { transform: rotate(90deg); font-size: 20px; line-height: 1; }

  /* pricing */
  .prices { gap: 18px; margin: 26px 0 18px; }
  .price { padding: 22px 20px; border-radius: 18px; }
  .tag { position: static; display: inline-block; margin: 0 0 12px; border-radius: 12px; line-height: 1.35; padding: 5px 12px; font-size: 12.5px; }
  .amount { margin: 8px 0 4px; } .amount b { font-size: 40px; }
  .sub { min-height: 0; margin-bottom: 14px; font-size: 14.5px; }
  .incl { gap: 10px; margin-bottom: 14px; }
  .incl li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
  .incl li::before { margin: 0; flex: none; }

  /* FAQ */
  details { padding: 14px 0; }
  summary { font-size: 16.5px; line-height: 1.35; }
  details p { font-size: 15px; }

  .final { padding: 44px 0; }
  .final h2 { margin-bottom: 8px; } .final p { font-size: 16.5px; }
  .final .btn { width: 100%; }

  .foot { padding: 28px 0 36px; } .foot-in { flex-direction: column; gap: 14px; }
}
@media (max-width: 360px) {
  .cta .btn .long { display: none; }
  h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* legal documents */
.legal { padding: 36px 0 64px; max-width: 820px; font-size: 16px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text); }
.legal ol, .legal ul { padding-left: 22px; } .legal li { margin: 7px 0; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-2); }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }
body.legalpage .links { display: flex; } @media (max-width: 900px) { body.legalpage .links { display: flex; flex-wrap: wrap; gap: 8px 14px; } }

/* compact pricing on phones: two calm cards and one button, not two big buttons */
.price-cta { display: none; }
@media (max-width: 640px) {
  .prices { gap: 12px; margin: 20px 0 14px; }
  .price { padding: 15px 16px; border-radius: 14px; }
  .price .btn { display: none; }
  .price-cta { display: block; margin: 0 0 16px; } .price-cta .btn { width: 100%; padding: 12px 18px; font-size: 16px; }
  .price h3 { font-size: 12px; margin-bottom: 2px; }
  .amount { margin: 2px 0 2px; } .amount b { font-size: 28px; letter-spacing: -.02em; } .amount span { font-size: 14px; }
  .sub { margin: 0; font-size: 13.5px; line-height: 1.45; }
  .tag { margin: -2px 0 8px; padding: 3px 10px; font-size: 12px; border-radius: 10px; }
  .sec > .wrap > .lead.center { font-size: 15.5px; }
}

/* the eyebrow keeps each name whole and never starts a line with a separator */
.eyebrow span { white-space: nowrap; }
.eyebrow span:not(:last-child)::after { content: "\00a0·"; }
