/* USOS++ landing — mobile-first, bez frameworków.
   Tokeny (kolory, radiusy, akcent #d9773a) z core/ui/design-system.css. */

:root {
  --bg-page: oklch(97.5% 0.006 60);
  --bg-card: oklch(99.4% 0.002 60);
  --bg-subtle: oklch(96% 0.006 55);
  --border: oklch(91% 0.008 55);
  --border-soft: oklch(94% 0.006 55);
  --ink: oklch(21% 0.014 55);
  --ink-2: oklch(45% 0.012 55);
  --ink-3: oklch(55% 0.01 55);
  --accent: #d9773a;
  --accent-strong: oklch(52% 0.15 45);
  --accent-soft: oklch(92% 0.03 45);
  --sidebar: oklch(19% 0.014 55);
  --radius: 16px;
  --maxw: 1200px;
  --font: 'General Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[data-theme="dark"] {
  --bg-page: oklch(18% 0.01 55);
  --bg-card: oklch(22% 0.012 55);
  --bg-subtle: oklch(27% 0.013 55);
  --border: oklch(32% 0.014 55);
  --border-soft: oklch(28% 0.013 55);
  --ink: oklch(94% 0.004 55);
  --ink-2: oklch(78% 0.008 55);
  --ink-3: oklch(62% 0.01 55);
  --accent-soft: oklch(30% 0.03 45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent-strong); }
html[data-theme="dark"] a { color: var(--accent); }
/* Linki-komponenty (przyciski, nav, brand, stopka) zachowują własne kolory —
   reguła wyżej ma wyższą specyficzność niż pojedyncze klasy. */
html[data-theme="dark"] a.btn-primary,
html[data-theme="dark"] a.btn-primary:hover { color: #fff; }
html[data-theme="dark"] a.btn-ghost { color: var(--ink); }
html[data-theme="dark"] .site-nav a { color: var(--ink); }
html[data-theme="dark"] .brand { color: var(--ink); }
html[data-theme="dark"] .skip-link { color: var(--bg-page); }
html[data-theme="dark"] .footer-nav a { color: var(--ink-2); }
html[data-theme="dark"] .final-links a { color: oklch(85% 0.05 55); }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-page);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--bg-page); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: block; border-radius: 6px; }
.brand-plus { color: var(--accent); }

.beta-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 2px 10px;
}
html[data-theme="dark"] .beta-pill { color: var(--accent); }
.beta-pill-small { font-size: 0.65rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.theme-toggle:hover { background: var(--bg-subtle); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav { display: none; }
.site-nav.open {
  display: flex;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 16px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 4px;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-subtle); }
.btn-small { padding: 10px 24px; font-size: 0.9rem; border-radius: 10px; white-space: nowrap; }
.btn-large { padding: 15px 32px; font-size: 1.05rem; }
.site-nav .btn-primary { color: #fff; }
.header-cta {
  white-space: nowrap;
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 420px) {
  .header-cta { padding: 9px 14px; font-size: 0.82rem; }
  .brand-text { font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 32px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  margin: 0;
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 24px;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.trust-list li::before { content: '✓ '; color: var(--accent-strong); font-weight: 700; }
html[data-theme="dark"] .trust-list li::before { color: var(--accent); }

/* mock UI */
.hero-visual { margin: 0; }
.mock {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgb(20 15 10 / 0.12);
  min-height: 300px;
}
.mock-side {
  width: 132px;
  flex-shrink: 0;
  background: var(--sidebar);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 6px 12px;
}
.mock-brand i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
  flex-shrink: 0;
}
.mock-link {
  color: oklch(72% 0.01 55);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 8px;
}
.mock-link.on { color: #fff; background: oklch(30% 0.02 45); font-weight: 600; }
.mock-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 10px; }
.mock-search {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.72rem;
  color: var(--ink-3);
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-bell {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-shrink: 0;
  position: relative;
}
.mock-bell::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.mock-cards { display: flex; flex-direction: column; gap: 10px; }
.mock-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-card small { font-size: 0.7rem; color: var(--ink-3); font-weight: 600; }
.mock-card strong { font-size: 1.15rem; }
.mock-card span { font-size: 0.72rem; color: var(--ink-3); }
.mock-caption {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 10px;
  text-align: center;
}

.strip {
  font-size: 0.95rem;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.strip strong { color: var(--accent-strong); }
html[data-theme="dark"] .strip strong { color: var(--accent); }

/* ---------- sekcje ---------- */
.section { padding-top: 88px; padding-bottom: 16px; scroll-margin-top: 72px; }
.section-alt {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
  margin-top: 80px;
  padding-bottom: 88px;
}
.section-alt .wrap { padding-top: 0; }
.section-sub { color: var(--ink-2); max-width: 640px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.section-alt .card { background: var(--bg-page); }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.card code { font-size: 0.85em; }
.more-line { margin-top: 28px; color: var(--ink-2); }

/* ---------- ikonki sekcji (line SVG w stylu apki) ---------- */
.feat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.feat-head h3 { margin: 0; }
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .feat-icon { color: var(--accent); }
.feat-icon svg { display: block; }
.feat-icon .knob { fill: var(--bg-card); }
.section-alt .feat-icon .knob { fill: var(--bg-page); }
.feat-icon-large { width: 52px; height: 52px; border-radius: 14px; }

/* kroki — oś czasu */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 45px;
  width: 2px;
  background: var(--border);
}
.steps li {
  position: relative;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 26px 86px;
}
.step-num {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-top: 2px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* prywatność — split: nagłówek + wiersze */
.split { display: grid; gap: 36px; grid-template-columns: 1fr; }
.split-list { display: flex; flex-direction: column; gap: 16px; }
.priv-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.priv-row h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.priv-row p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* uczelnie + beta */
.uni-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
}
.uni-card h3 { margin-top: 4px; }
.uni-card p { margin: 0; color: var(--ink-2); }
.beta-banner {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
}
.beta-banner-text { flex: 1; }
.beta-banner h3 { margin: 0 0 6px; }
.beta-banner p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.beta-banner .btn { align-self: flex-start; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 4px; color: var(--ink-2); font-size: 0.95rem; }

/* final cta */
.final-cta {
  background: var(--sidebar);
  color: oklch(94% 0.004 55);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  margin-top: 88px;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: oklch(78% 0.008 55); max-width: 560px; margin-inline: auto; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-primary { color: #fff; }
.final-links { font-size: 0.9rem; margin: 20px 0 0; }
.final-links a { color: oklch(85% 0.05 55); }

/* ---------- stopka ---------- */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner { padding-top: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.footer-brand img { border-radius: 5px; }
.footer-note { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0; font-size: 0.9rem; font-weight: 600; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { font-size: 0.82rem; color: var(--ink-3); margin: 0; }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .grid.features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps::before {
    top: 45px;
    bottom: auto;
    left: 48px;
    right: 48px;
    width: auto;
    height: 2px;
  }
  .steps li { padding: 26px; }
  .step-num { position: static; margin-bottom: 18px; }
  .beta-banner { flex-direction: row; align-items: center; gap: 22px; }
  .beta-banner .btn { flex-shrink: 0; margin-left: auto; white-space: nowrap; }
  .mock-cards { flex-direction: row; }
  .mock-card { flex: 1; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    background: none;
    border: none;
    padding: 0;
  }
  .hero { flex-direction: row; align-items: center; gap: 56px; padding-top: 96px; }
  .hero-copy { flex: 1.05; }
  .hero-visual { flex: 1; }
  .grid.features { grid-template-columns: repeat(4, 1fr); }
  .grid.features .card-wide { grid-column: span 2; }
  .split { grid-template-columns: minmax(300px, 360px) 1fr; gap: 64px; align-items: start; }
  .split-head { position: sticky; top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
