/* Landing page — Lectio Loci (Kairos On)
   Jeden plik stylesheet. Czyste CSS. Mobile first. Customowalny przez CSS custom properties. */

:root {
  /* Brand */
  --accent: #9b7fd4;
  --accent-dark: #0051D5;
  --accent-light: #E8F1FF;

  /* Tekst */
  --ink: #1c1c1e;
  --ink-muted: #6e6e73;
  --ink-subtle: #a1a1a6;

  /* Tło */
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-card: #ffffff;

  /* Border */
  --border: rgba(0, 0, 0, 0.08);

  /* Typografia */
  --font-serif: ui-serif, "New York", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ─────────── Nav ─────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
}

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

/* ─── Mobile nav: kompaktowy układ, linki w mniejszym foncie pod brandem ─── */
@media (max-width: 640px) {
  .nav-inner {
    padding: 10px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .nav-brand {
    font-size: 14px;
  }
  .nav-brand img {
    width: 24px;
    height: 24px;
  }
  .nav-links {
    width: 100%;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* ─── Bardzo wąskie ekrany (do 380 px) - tylko brand widoczny, linki w wierszu poniżej ─── */
@media (max-width: 380px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 12px;
  }
}

/* ─────────── Hero ─────────── */

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-muted);
  margin: 0 0 40px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  background: #000;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

.store-btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-btn-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}

.store-btn[data-state="disabled"] {
  opacity: 0.5;
  pointer-events: none;
}

.store-btn-primary {
  background: var(--accent);
}

.store-btn-primary:hover {
  background: #845fcd;
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: #845fcd;
  text-decoration: none !important;
}

/* ─────────── Screenshots ─────────── */

.screenshots {
  padding: 40px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.screenshot {
  aspect-ratio: 9 / 19.5;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-subtle);
  font-size: 13px;
  overflow: hidden;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────── Section ─────────── */

.section {
  padding: 80px 24px;
}

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

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-align: center;
  color: var(--ink);
}

.section-lead {
  font-size: 18px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.5;
}

/* ─────────── Features ─────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature-desc {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─────────── About Kairos On ─────────── */

.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px;
}

.about-text {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─────────── Footer ─────────── */

.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-subtle);
}

/* ─────────── Document pages (privacy, terms, support) ─────────── */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.doc h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}

.doc .doc-updated {
  font-size: 14px;
  color: var(--ink-subtle);
  margin: 0 0 40px;
}

.doc h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--ink);
}

.doc h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  font-weight: 600;
  color: var(--ink);
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
}

/* ─────────── Utility ─────────── */

.center {
  text-align: center;
}

.mt-4 {
  margin-top: 32px;
}

/* ─────────── Mobile responsiveness for doc pages ─────────── */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 56px 18px 44px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  .store-btn {
    justify-content: center;
  }

  .section {
    padding: 56px 18px;
  }
  .section-lead {
    margin-bottom: 36px;
  }

  .screenshots {
    padding: 28px 18px 56px;
  }
  .screenshots-grid {
    gap: 16px;
  }

  .features {
    gap: 16px;
  }
  .feature {
    padding: 22px;
  }

  .doc {
    padding: 32px 20px 56px;
  }
  .doc h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
  .doc h2 {
    font-size: 22px;
    margin-top: 36px;
  }
  .doc h3 {
    font-size: 17px;
  }
  .doc p,
  .doc li {
    font-size: 15px;
    line-height: 1.65;
  }
  .doc ul,
  .doc ol {
    padding-left: 18px;
  }

  .footer {
    padding: 36px 20px 28px;
  }
  .footer-inner {
    gap: 20px;
  }
  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .doc {
    padding: 28px 16px 48px;
  }
  .section {
    padding: 48px 16px;
  }
  .hero {
    padding: 48px 16px 36px;
  }
}
