/* podbijacz.pl: one stylesheet for every page. No web fonts, no scripts.
   Colours follow the app (ios/Podbijacz/DesignSystem/PColor.swift, Apple palette). */

:root {
  color-scheme: light dark;
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --fill: #F2F2F7;
  --border: #E5E5EA;
  --border-strong: #C7C7CC;
  --text: #000000;
  --text-2: #3C3C43;
  --text-3: #6C6C70;
  --accent: #5856D6;
  --accent-pressed: #4846C0;
  --accent-text: #5856D6;
  --accent-tint: #EBEBFA;
  --bump: #C93400;
  --success-tint: #E7F8EB;
  --success-text: #1F7A35;
  --hint-bg: #FFF6DD;
  --hint-border: #F2D58C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --fill: #2C2C2E;
    --border: #38383A;
    --border-strong: #48484A;
    --text: #FFFFFF;
    --text-2: #C7C7CC;
    --text-3: #98989F;
    --accent: #5E5CE6;
    --accent-pressed: #4F4DD6;
    --accent-text: #A5A3FF;
    --accent-tint: #292946;
    --success-tint: #20442B;
    --success-text: #30D158;
    --hint-bg: #33291C;
    --hint-border: #704C16;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 8px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap--narrow { max-width: 760px; }

@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
}

/* Header */

.site-header { border-bottom: 1px solid var(--border); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Language switch: "Polski | English", styled like the main navigation.
   Narrow screens: top right, next to the brand, with the navigation on its own row.
   Wider screens: after the navigation, on the right. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 15px;
}
.lang-switch a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-2);
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { color: var(--text); }
.lang-switch a[aria-current="true"] { font-weight: 600; }

@media (max-width: 599px) {
  .lang-switch { order: 1; }
  .site-nav { order: 2; flex-basis: 100%; }
}
@media (min-width: 600px) {
  .site-nav { margin-left: auto; }
  .lang-switch { margin-left: 8px; }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-pressed); text-decoration: none; }

.button--quiet {
  background: var(--accent-tint);
  color: var(--accent-text);
}
.button--quiet:hover { background: var(--accent-tint); text-decoration: underline; }
.button--soon { background: var(--accent-tint); color: var(--accent-text); cursor: default; }
.button--soon:hover { background: var(--accent-tint); text-decoration: none; }

/* Company details in small print (owner's wish), still readable */
.fineprint { font-size: 13px; line-height: 1.5; color: var(--text-2); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Landing: hero */

.hero {
  padding: 56px 0 48px;
  text-align: center;
}
.hero__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero__lead {
  max-width: 34em;
  margin: 0 auto 28px;
  color: var(--text-2);
  font-size: clamp(18px, 2.6vw, 21px);
}
.hero__note {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

/* An iOS-style notification, drawn in HTML (the app's onboarding example). */
.notif {
  max-width: 360px;
  margin: 44px auto 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}
.notif__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}
.notif__head img { width: 20px; height: 20px; }
.notif__app { flex: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.notif__title { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.notif__body { margin: 0; color: var(--text-2); font-size: 15px; }
.notif__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.notif__actions span {
  padding: 8px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* Landing: sections */

.section { padding: 48px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}
.section__lead {
  max-width: 34em;
  margin: 0 auto 32px;
  color: var(--text-2);
  text-align: center;
}

/* The core loop: Zleć → Podbij → Widzę → Zrobione */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.section--tint .step { background: var(--bg); }
.step + .step::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  transform: rotate(45deg);
}
.step__num {
  display: block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}
.step__pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.step--zlec .step__pill { background: var(--accent); color: #FFFFFF; }
.step--podbij .step__pill { background: var(--bump); color: #FFFFFF; }
.step--widze .step__pill { background: var(--accent-tint); color: var(--accent-text); }
.step--zrobione .step__pill { background: var(--success-tint); color: var(--success-text); }
.step p { margin: 12px 0 0; color: var(--text-2); font-size: 16px; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step + .step::before {
    top: 50%;
    left: -13px;
    margin: -5px 0 0;
    border-bottom: 0;
    border-top: 2px solid var(--border-strong);
  }
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-text);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

.cta { text-align: center; }
.cta p { margin: 0 auto 24px; max-width: 34em; color: var(--text-2); }

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.contact-card p { margin: 0 0 8px; color: var(--text-2); }
.contact-card .contact-mail { margin: 0 0 16px; font-size: 21px; font-weight: 600; }

/* Footer */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.site-footer a { display: inline-block; padding: 6px 0; color: var(--text-2); }
.site-footer p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 16px; }

/* Documents: privacy policy, terms, help, account deletion */

.doc { padding: 40px 0 56px; }
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.doc__meta { margin: 0 0 24px; color: var(--text-3); font-size: 15px; }
.doc__lead { font-size: 19px; color: var(--text-2); }
.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}
.doc h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc blockquote { margin: 0; }

.toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.doc .toc h2 { margin: 0 0 8px; color: var(--text-3); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.5em; }
.toc li + li { margin-top: 4px; }
@media (min-width: 640px) {
  /* The gap leaves room for the second column's list numbers, which sit in it. */
  .toc ol { columns: 2; column-gap: calc(32px + 1.5em); }
  .toc li { break-inside: avoid; }
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding: 12px 14px 0; color: var(--text-3); font-size: 14px; text-align: left; }
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--fill); color: var(--text-3); font-size: 13px; font-weight: 600; }
tbody th { font-weight: 600; }

.card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.card > :last-child { margin-bottom: 0; }

.note {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--hint-border);
  border-radius: 12px;
  background: var(--hint-bg);
}
.note > :last-child { margin-bottom: 0; }

.howto { counter-reset: howto; margin: 16px 0; padding: 0; list-style: none; }
.howto li {
  position: relative;
  counter-increment: howto;
  min-height: 32px;
  padding: 4px 0 0 46px;
}
.howto li + li { margin-top: 14px; }
.howto li::before {
  content: counter(howto);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
}

.faq h2 { margin-top: 32px; }

.not-found { padding: 72px 0 88px; text-align: center; }
.not-found img { width: 120px; height: auto; margin: 0 auto 28px; }
.not-found h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.02em; }
.not-found p { margin: 0 auto 28px; max-width: 30em; color: var(--text-2); }

@media print {
  .site-header nav, .skip-link, .site-footer nav { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
