/* ============================================================
   Skolo — shared minimalist style
   Used by: Landing Page, Logowanie, Rejestracja, 2FA, Dashboard, Admin
   ============================================================ */

:root {
  --page: #D9D6D0;            /* outer grey */
  --panel: #F2EFE8;           /* inner panel */
  --panel-2: #ECE9E1;         /* alt panel */
  --ink: #15140F;             /* primary text */
  --ink-2: #3A382F;
  --muted: #7A7669;
  --line: #E0DDD5;
  --line-2: #CFCBC0;
  --black: #0E0E0C;           /* CTA black */
  --accent: #C28640;          /* sparingly */
  --ok: #2E7D5B;
  --warn: #C26240;
  --err: #B73E2C;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1180px;
  --gutter: 28px;
  --rad-panel: 28px;
  --rad-card: 16px;
  --rad-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ outer layout ============ */
.stack {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel {
  background: var(--panel);
  border-radius: var(--rad-panel);
  padding: 64px 56px;
  position: relative;
}
.panel--tight { padding: 32px 56px; }
.panel--dark { background: var(--black); color: var(--panel); }
.panel--dark h1, .panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--panel); }

/* ============ pills (top mini ui) ============ */
.minipill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--panel);
  border-radius: var(--rad-pill);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.minipill--ghost { background: transparent; }
.minipill--dark { background: var(--black); color: var(--panel); border-color: var(--black); }
.minipill .icon { width: 14px; height: 14px; display: grid; place-items: center; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 18px;
  background: var(--black);
  color: var(--panel);
  border-radius: var(--rad-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--black);
  transition: opacity .15s, transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn__icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--black);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.btn__icon svg { width: 13px; height: 13px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
  padding: 9px 18px;
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--ink-2); }
.btn--ghost.with-icon { padding: 6px 6px 6px 18px; }
.btn--ghost.with-icon .btn__icon { background: var(--black); color: var(--panel); }
.btn--lg { padding: 11px 12px 11px 22px; font-size: 15px; }
.btn--lg .btn__icon { width: 30px; height: 30px; }
.btn--lg.btn--ghost { padding: 11px 22px; }
.btn--block { width: 100%; justify-content: center; }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 9px 14px;
}
.btn--quiet:hover { background: var(--panel-2); }

/* arrow chip used after labels */
.arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--black);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.arrow svg { width: 13px; height: 13px; }

/* ============ eyebrow / labels ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--panel-2);
  border-radius: var(--rad-pill);
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow--dark {
  background: var(--ink);
  color: var(--panel);
}
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ typography ============ */
.h-display {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h-section {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }

/* ============ form fields ============ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(14,14,12,0.07);
}
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__row a { font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field .hint { margin-top: 6px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--black); flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ============ logo (Skolo wordmark) ============ */
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 400;
}
.logo i { color: var(--ink); font-style: italic; }
.logo .dot {
  width: 5px; height: 5px;
  background: var(--ink);
  border-radius: 50%;
  align-self: end;
  margin-bottom: 5px;
}
.logo--inverted, .logo--inverted i { color: var(--panel); }
.logo--inverted .dot { background: var(--panel); }

/* ============ scroll fade-in ============ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .fade-in.is-vis { opacity: 1; transform: none; }

  @keyframes skolo-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes skolo-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes skolo-scale-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: none; }
  }
  .rise-1 { animation: skolo-rise .55s ease-out both; animation-delay: .04s; }
  .rise-2 { animation: skolo-rise .55s ease-out both; animation-delay: .14s; }
  .rise-3 { animation: skolo-rise .55s ease-out both; animation-delay: .24s; }
  .rise-4 { animation: skolo-rise .55s ease-out both; animation-delay: .34s; }
  .rise-5 { animation: skolo-rise .55s ease-out both; animation-delay: .44s; }
  .fade-soft { animation: skolo-fade .8s ease-out both; }
  .scale-in { animation: skolo-scale-in .5s ease-out both; }
}

/* ============ responsive ============ */
@media (max-width: 768px) {
  .panel { padding: 40px 28px; border-radius: 22px; }
  .panel--tight { padding: 22px 28px; }
  .stack { padding: 8px 8px 0; gap: 8px; }
}
