/* Public (logged-out) pages: landing, login, register, password reset.
   Separate from mobile.css on purpose — that file is the authenticated app shell and has
   no components for a hero/pricing-grid/examples-gallery marketing page. Colors match the
   app's existing brand palette (see mobile.css's post-mockup gradient/ink/good/bad hexes)
   but kept as flat hex here, not CSS variables — mobile.css has no variable/dark-mode
   system either, so this stays consistent with the rest of the codebase. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #FFFFFF; color: #14141A;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ---------- nav ---------- */
nav.site { padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; flex-shrink: 0; min-width: 0; overflow: hidden; }
.logo img { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; display: block; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 600; color: #6E6E78; flex-shrink: 0; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: #14141A; }
@media (max-width: 860px) { .nav-links { display: none; } }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-login { font-size: 13px; font-weight: 600; color: #6E6E78; text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: #14141A; }
/* Below ~400px even "Zaloguj się" + a pill button is too much for one row on a real
   phone — drop the text link, keep the button as the one thing that must always work. */
@media (max-width: 400px) { .nav-login { display: none; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap; font-family: inherit;
  flex-shrink: 0;
}
@media (max-width: 400px) { .btn { padding: 9px 14px; font-size: 12.5px; } }
.btn-primary { background: linear-gradient(135deg, #6366F1, #A855F7); color: white; box-shadow: 0 6px 20px rgba(99,102,241,0.35); }
.btn-ghost { background: #FFFFFF; color: #14141A; border: 1px solid #ECECEF; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 32px 0 96px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 24px 0 56px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #6366F1; background: rgba(99,102,241,0.1); padding: 6px 12px 6px 9px; border-radius: 100px; margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, #6366F1, #A855F7); }

h1.hero-title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
h1.hero-title em { font-style: normal; background: linear-gradient(135deg, #6366F1, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { font-size: 17px; line-height: 1.6; color: #6E6E78; max-width: 46ch; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 12.5px; color: #A0A0AA; }

/* ---------- hero visual: swipe-card mockup, tilted, with a stack peeking behind ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.stack-peek { position: absolute; width: 280px; height: 400px; border-radius: 22px; background: #FFFFFF; border: 1px solid #ECECEF; }
.stack-peek.p1 { transform: rotate(7deg) translateY(6px); opacity: 0.5; }
.stack-peek.p2 { transform: rotate(-9deg) translateY(10px); opacity: 0.3; }

.demo-card {
  position: relative; width: 290px; background: #FFFFFF; border-radius: 22px;
  border: 1px solid #ECECEF; box-shadow: 0 1px 2px rgba(20,20,26,0.04), 0 12px 32px rgba(20,20,26,0.06); overflow: hidden;
  transform: rotate(-2deg); transition: transform 0.35s cubic-bezier(.2,.8,.3,1);
}
.demo-card:hover { transform: rotate(0deg) translateY(-4px); }
.demo-tint {
  position: absolute; inset: 0; display: flex; align-items: center; font-size: 40px;
  opacity: 0; transition: opacity 0.25s; pointer-events: none; z-index: 3;
  justify-content: flex-end; padding-inline-end: 18px;
  background: rgba(22,163,74,0.16); color: #16A34A;
}
.demo-card:hover .demo-tint { opacity: 1; }
.demo-head { display: flex; align-items: center; gap: 9px; padding: 14px 14px 10px; }
.demo-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366F1, #A855F7); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.demo-name { font-size: 12.5px; font-weight: 700; }
.demo-meta { font-size: 10.5px; color: #A0A0AA; }
.demo-caption { font-size: 12px; line-height: 1.55; color: #14141A; padding: 0 14px 12px; }
.demo-img { height: 170px; margin: 0 14px 12px; border-radius: 12px; background: linear-gradient(135deg, #E0E7FF, #F3E8FF); position: relative; overflow: hidden; }
.demo-img::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(99,102,241,0.06) 0 2px, transparent 2px 14px); }
.demo-actions { display: flex; gap: 16px; padding: 0 14px 14px; font-size: 11px; color: #6E6E78; font-weight: 600; }

/* ---------- generic section chrome ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.section-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #6366F1; margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.section-sub { font-size: 15.5px; color: #6E6E78; line-height: 1.6; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: #FFFFFF; border: 1px solid #ECECEF; border-radius: 18px; padding: 28px 24px; }
.step-num { width: 34px; height: 34px; border-radius: 10px; background: #F1F1F5; color: #6366F1; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: #6E6E78; line-height: 1.6; margin: 0; }

/* ---------- features ---------- */
.features-alt { background: #F1F1F5; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #FFFFFF; border: 1px solid #ECECEF; border-radius: 16px; padding: 22px; }
.feature-icon { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366F1, #A855F7); display: flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 14px; }
.feature h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.feature p { font-size: 12.5px; color: #6E6E78; line-height: 1.55; margin: 0; }

/* ---------- examples gallery ---------- */
.examples-note { text-align: center; font-size: 12.5px; color: #A0A0AA; }
.example-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .example-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .example-grid { grid-template-columns: 1fr; } }
.example-card { background: #FFFFFF; border: 1px solid #ECECEF; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,20,26,0.04), 0 12px 32px rgba(20,20,26,0.06); }
.example-head { display: flex; align-items: center; gap: 8px; padding: 13px 13px 9px; }
.example-avatar { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #6366F1, #A855F7); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 11.5px; flex-shrink: 0; }
.example-name { font-size: 11px; font-weight: 700; line-height: 1.2; }
.example-type { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6366F1; }
.example-caption { font-size: 11.5px; line-height: 1.5; color: #14141A; padding: 0 13px 12px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.price-card { background: #FFFFFF; border: 1.5px solid #ECECEF; border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; }
.price-card.featured { border-color: #6366F1; box-shadow: 0 0 0 1px #6366F1, 0 1px 2px rgba(20,20,26,0.04), 0 12px 32px rgba(20,20,26,0.06); position: relative; }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #6366F1, #A855F7); color: white; font-size: 10.5px; font-weight: 800; padding: 5px 14px; border-radius: 100px; letter-spacing: 0.02em; }
.price-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.price-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.price-tagline { font-size: 12px; color: #6E6E78; margin-bottom: 20px; }
.price-feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feats li { font-size: 12.5px; color: #14141A; display: flex; gap: 8px; line-height: 1.4; }
.price-feats li::before { content: '✓'; color: #16A34A; font-weight: 800; flex-shrink: 0; }
.price-cta { text-align: center; font-size: 13px; font-weight: 700; padding: 11px; border-radius: 10px; text-decoration: none; }
.price-card:not(.featured) .price-cta { background: #F1F1F5; color: #14141A; }
.price-card.featured .price-cta { background: linear-gradient(135deg, #6366F1, #A855F7); color: white; }
.trial-note { text-align: center; font-size: 12.5px; color: #6E6E78; margin-top: 28px; }
.trial-note strong { color: #14141A; }

/* ---------- closing cta ---------- */
.closing { text-align: center; padding: 90px 0; }
.closing h2 { margin-bottom: 14px; }
.closing p { font-size: 15.5px; color: #6E6E78; margin: 0 0 30px; }

footer { border-top: 1px solid #ECECEF; padding: 32px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.footer-logo svg { width: 20px; height: 20px; border-radius: 6px; }
footer p { font-size: 11.5px; color: #A0A0AA; margin: 0; }

/* ---------- auth screens (login / register / forgot / reset) ---------- */
/* Matches the real app's own form language (mobile.css .form-input/.form-label/
   .form-submit, .settings-group/.profile-card cards) rather than the landing page's
   marketing-gradient treatment — this is a screen inside the product, not an ad for it. */
.auth-screen { min-height: 640px; display: flex; align-items: center; justify-content: center; padding: 64px 24px; background: #EAEAEE; }
.auth-card { width: 100%; max-width: 380px; background: #FFFFFF; border: 1px solid #ECECEF; border-radius: 14px; padding: 28px 26px; }
.auth-title { font-size: 18px; font-weight: 800; text-align: center; margin: 0 0 6px; letter-spacing: -0.01em; color: #14141A; }
.auth-sub { font-size: 12.5px; color: #6E6E78; text-align: center; margin: 0 0 24px; }
.auth-field { margin-bottom: 12px; }
.auth-field label { display: block; font-size: 10.5px; font-weight: 600; color: #6E6E78; margin: 0 0 5px; }
.auth-field input { width: 100%; font-family: inherit; font-size: 12.5px; color: #14141A; background: #FFFFFF; border: 1px solid #E3E3E7; border-radius: 9px; padding: 10px 12px; }
.auth-field input:focus { outline: none; border-color: #6366F1; }
.auth-forgot { text-align: right; font-size: 11px; font-weight: 600; color: #6366F1; text-decoration: none; margin: -6px 0 18px; display: block; }
.auth-checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 18px; }
.auth-checkbox-row input { margin-top: 2px; accent-color: #6366F1; flex-shrink: 0; }
.auth-checkbox-row label { font-size: 11.5px; color: #6E6E78; line-height: 1.4; }
.auth-submit { width: 100%; font-family: inherit; font-size: 12px; font-weight: 700; padding: 11px; border-radius: 9px; background: #14141A; color: white; border: none; cursor: pointer; }
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-error { font-size: 12px; color: #DC2626; background: rgba(220,38,38,0.08); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; display: none; }
.auth-error.visible { display: block; }
.auth-footer { text-align: center; font-size: 12px; color: #6E6E78; margin-top: 20px; }
.auth-footer a { color: #6366F1; font-weight: 700; text-decoration: none; }

/* ---------- legal documents (privacy / terms / data deletion) ---------- */
/* Long-form prose, so this deliberately drops the landing page's marketing treatment:
   one readable measure, plain type scale, no gradients. These pages exist to be read by
   users and by Meta's App Review reviewers, not to sell anything. */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.legal-back, .legal-lang { font-size: 12.5px; font-weight: 600; color: #6366F1; text-decoration: none; }
.legal-back:hover, .legal-lang:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 8px; }
.legal-updated { font-size: 12px; color: #A0A0AA; margin: 0 0 36px; }
.legal h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.005em; margin: 36px 0 12px; }
.legal h3 { font-size: 14.5px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 14px; line-height: 1.7; color: #3F3F46; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: #6366F1; }
.legal strong { color: #14141A; font-weight: 700; }
/* Wraps every value the operator must fill in before publishing (company name, tax id,
   registered address). Visually loud on purpose — Meta rejects a policy that still shows
   placeholder text, so these must be impossible to miss in review. */
.legal-todo { background: #FEF3C7; border-bottom: 2px solid #F59E0B; padding: 0 4px; font-weight: 700; color: #92400E; }
.legal-note { background: #F1F1F5; border-left: 3px solid #6366F1; border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 0 0 20px; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { font-size: 13px; line-height: 1.6; text-align: left; padding: 10px 12px; border-bottom: 1px solid #ECECEF; vertical-align: top; }
.legal-table th { font-weight: 700; color: #14141A; background: #F7F7F9; white-space: nowrap; }
.legal-table td { color: #3F3F46; }
.legal-foot { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid #ECECEF; }
.legal-foot a { font-size: 12.5px; font-weight: 600; color: #6E6E78; text-decoration: none; }
.legal-foot a:hover { color: #14141A; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 11.5px; color: #A0A0AA; text-decoration: none; }
.footer-links a:hover { color: #6E6E78; }
