/* Developer App — shared site styles */

/* Czcionki serwowane z tego serwera (nie z Google Fonts), więc adres IP
   odwiedzających nie trafia do Google. Pliki w fonts/ to czcionki Inter
   i Manrope (licencja SIL Open Font License), podzielone jak w Google
   Fonts na alfabet łaciński i jego rozszerzenie z polskimi znakami. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #101826;
  --text: #1E2733;
  --text-secondary: #5B6472;
  --text-tertiary: #8A93A3;
  --accent: #2F6FED;
  --accent-dark: #1E52C4;
  --accent-soft: #EAF1FF;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E4E8EF;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,24,38,0.05);
  --shadow-md: 0 8px 24px rgba(16,24,38,0.07);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Manrope", -apple-system, sans-serif;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4C8CFF, #2F6FED);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14.5px;
}

.site-nav a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 18px rgba(47,111,237,0.28);
}
.btn-primary:hover { background: var(--accent-dark); color: white; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  max-width: 15ch;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head p { color: var(--text-secondary); font-size: 16px; margin: 0; }

/* ---------- App cards ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.app-card h3 {
  font-size: 18px;
  font-weight: 750;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
  flex-grow: 1;
}

.store-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
}

.store-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.store-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.app-card .app-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.app-card .app-links a {
  font-size: 13.5px;
  font-weight: 700;
}

.status-pill {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- Contact ---------- */

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 { font-size: 21px; margin-bottom: 10px; }
.contact-info p { color: var(--text-secondary); margin: 0 0 18px; font-size: 15px; }
.contact-info .email-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

form.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Pułapka na boty — poza ekranem, niewidoczna i niedostępna dla ludzi. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status-ok { background: #E7F7EE; color: #17663A; }
.form-status-error { background: #FDECEC; color: #A32020; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand-name { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--ink); }
.footer-brand-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}

/* ---------- Legal document pages ---------- */

.legal-page { padding: 48px 0 96px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 28px;
}

.legal-header { max-width: 720px; margin-bottom: 36px; }

.legal-header h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--text-tertiary);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.meta-row strong { color: var(--text-secondary); font-weight: 700; }

.legal-body {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow-sm);
}

.legal-body h2 {
  font-size: 19px;
  font-weight: 750;
  margin: 34px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p { margin: 0 0 14px; color: var(--text); }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body footer { margin-top: 8px; color: var(--text-tertiary); font-size: 13.5px; }

.legal-body .card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
}
.legal-body .card-title {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.badge.premium { background: #FFF1DA; color: #9A6B00; }

.contact-card {
  margin-top: 32px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-card .label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 4px; }
.contact-card .email { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 17px; }

nav.toc {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
nav.toc h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
nav.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
nav.toc li { break-inside: avoid; margin-bottom: 9px; }
nav.toc a { color: var(--text-secondary); font-size: 14px; }
nav.toc a:hover { color: var(--accent); }
nav.toc .num { color: var(--accent); font-weight: 700; margin-right: 6px; }

@media (max-width: 560px) {
  nav.toc ol { columns: 1; }
}
