/* KS-eFektywnie — strona aplikacji. Bez zewnętrznych zasobów. */

:root {
  color-scheme: light dark;
  --brand: #1a56db;
  --brand-strong: #1446b8;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #4f4f55;
  --text-3: #6e6e73;
  --link: #1a56db;
  --border: rgba(0, 0, 0, 0.09);
  --header-bg: rgba(255, 255, 255, 0.78);
  --tint: #eef3fe;
  --tint-border: #d6e2fb;
  --icon-shadow: 0 18px 40px -12px rgba(26, 86, 219, 0.45), 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #111113;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --text-3: #98989f;
    --link: #7aa7ff;
    --border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(0, 0, 0, 0.72);
    --tint: #0e1a33;
    --tint-border: #1d3263;
    --icon-shadow: 0 18px 44px -14px rgba(26, 86, 219, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

*,
*::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.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

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

.narrow {
  max-width: 760px;
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-2);
  font-size: 15px;
  padding: 8px 8px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

.lang-switch span {
  background: var(--text);
  color: var(--bg);
}

.lang-switch a {
  color: var(--text-2);
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 560px) {
  .nav-optional {
    display: none;
  }
}

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

.hero {
  text-align: center;
  padding: 56px 0 64px;
}

.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  border-radius: 22.37%;
  box-shadow: var(--icon-shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero .subtitle {
  margin: 12px 0 0;
  font-size: clamp(21px, 4.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .hero .subtitle {
    color: var(--link);
  }
}

.hero .lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(18px, 3.6vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
}

.cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button:hover {
  background: var(--brand-strong);
  text-decoration: none;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-secondary {
  background: transparent;
  color: var(--link);
  border: 1.5px solid currentColor;
}

.button-secondary:hover {
  background: var(--tint);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
}

.coming-soon svg {
  width: 18px;
  height: 18px;
}

[hidden] {
  display: none !important;
}

.meta-line {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Sekcje ---------- */

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2,
.prose h2 {
  margin: 0;
  font-size: clamp(28px, 5.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--text-2);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
}

/* Prywatność w skrócie */

.privacy-panel {
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
}

@media (min-width: 720px) {
  .privacy-panel {
    padding: 48px;
  }
}

.privacy-panel h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.privacy-panel > p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 18px;
}

.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .checks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.checks strong {
  display: block;
}

.checks span {
  color: var(--text-2);
  font-size: 16px;
}

.panel-link {
  margin: 28px 0 0;
  font-weight: 600;
}

/* ---------- Strony tekstowe ---------- */

.page-head {
  padding: 48px 0 8px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-head .eyebrow {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .page-head .eyebrow {
    color: var(--link);
  }
}

.page-head .lead {
  margin: 14px 0 0;
  font-size: 19px;
  color: var(--text-2);
}

.prose {
  padding: 24px 0 72px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose h2 {
  font-size: clamp(24px, 4.6vw, 30px);
  margin: 48px 0 16px;
}

.policy {
  margin: 24px 0 0;
  padding-left: 1.6em;
}

.policy > li {
  margin: 0 0 16px;
  padding-left: 6px;
}

.policy > li::marker {
  font-weight: 700;
  color: var(--text-3);
}

.policy ol {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.policy ol li {
  margin: 0 0 8px;
}

.note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
}

/* Wsparcie */

.contact-card {
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 22px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
}

.contact-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.contact-card p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.contact-card .button {
  margin-top: 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.faq {
  margin: 0;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.faq .answer {
  padding: 0 2px 20px;
  color: var(--text-2);
}

.faq .answer p {
  margin: 0 0 10px;
  color: var(--text-2);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* ---------- Stopka ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-links a {
  color: var(--text-2);
}

.site-footer p {
  margin: 6px 0 0;
  max-width: 720px;
}

/* ---------- Drobne poprawki typografii i telefonu ---------- */

h1,
h2,
h3,
.subtitle,
.hero .lead,
.meta-line {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 639px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 20px;
  }

  .feature-icon {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    margin: 0;
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature h3 {
    align-self: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin: 0 0 4px;
  }
}
