/* ============================================================
   QR Code Generator by FAQRO — Design 2026
   Modern · Ergonomic · Pastel · Bento
   ============================================================ */

/* === Reset / base === */
*,*::before,*::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  /* === PASTEL PALETTE === */
  --p-lavender: #d4cbf2;
  --p-rose:     #fbcfe8;
  --p-peach:    #fed7aa;
  --p-butter:   #fef3c7;
  --p-mint:     #bbf7d0;
  --p-sky:      #bae6fd;
  --p-lilac:    #e9d5ff;
  --p-coral:    #fecdd3;
  --p-sand:     #fde68a;
  --p-cream:    #fef9c3;

  /* === SURFACES === */
  --surface-0:  #ffffff;
  --surface-1:  #fafafb;
  --surface-2:  #f4f4f7;
  --surface-3:  #ebebf0;
  --surface-glass: rgba(255,255,255,0.65);
  --surface-glass-strong: rgba(255,255,255,0.85);

  /* === TEXT (kontrasty 7:1 WCAG AAA) === */
  --ink-1: #0a0a14;        /* major headings - 19:1 na bialym */
  --ink-2: #1f1d2e;        /* body - 15:1 na bialym */
  --ink-3: #3e3d4e;        /* secondary - 10:1 na bialym */
  --ink-4: #525160;        /* muted - 7.8:1 na bialym (AAA) */
  --ink-5: #b8b7c8;        /* dekoracyjny, NIE dla tekstu */

  /* === BRAND === */
  --brand:        #594aaa;   /* tekst/akcent - 7:1 na bialym */
  --brand-light:  #6f5cd6;   /* dekoracja, NIE dla tekstu */
  --brand-soft:   #ede9fe;
  --brand-deep:   #3e2f7a;   /* mocny akcent - 12:1 */
  --brand-glow:   rgba(89,74,170,0.35);
  --brand-button-bg: #4c3aa5;   /* bg buttonow - 8.5:1 z bialym tekstem */
  --brand-button-hover: #3e2f7a;

  /* === SHADOWS (soft, layered) === */
  --shadow-xs:  0 1px 2px rgba(10,10,20,0.04);
  --shadow-sm:  0 2px 8px rgba(10,10,20,0.05), 0 1px 2px rgba(10,10,20,0.04);
  --shadow-md:  0 8px 24px rgba(10,10,20,0.06), 0 2px 6px rgba(10,10,20,0.04);
  --shadow-lg:  0 20px 48px rgba(10,10,20,0.08), 0 4px 12px rgba(10,10,20,0.04);
  --shadow-xl:  0 32px 80px rgba(10,10,20,0.10);
  --shadow-glow: 0 0 32px var(--brand-glow);

  /* === RADII (escalated for 2026) === */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* === SPACING === */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* === MOTION === */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === BS overrides === */
  --bs-primary: var(--brand);
  --bs-primary-rgb: 111,92,214;
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--surface-0);
  --bs-border-radius: var(--r-md);
  --bs-border-radius-sm: var(--r-sm);
  --bs-border-radius-lg: var(--r-lg);
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink-2);
  background: var(--surface-0);
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

h1,h2,h3,h4,h5 { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink-1); }
.display-1, .display-2, .display-3, .display-4 { letter-spacing: -0.04em; line-height: 1.0; }

a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease-out); }
a:hover { color: var(--brand-deep); }

/* === BUTTONS — pill, soft glow on hover === */
.btn {
  border-radius: var(--r-pill);
  font-weight: 500;
  padding: 10px 20px;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-out), background .15s;
  letter-spacing: -0.005em;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --bs-btn-bg: var(--brand-button-bg);
  --bs-btn-border-color: var(--brand-button-bg);
  --bs-btn-hover-bg: var(--brand-button-hover);
  --bs-btn-hover-border-color: var(--brand-button-hover);
  --bs-btn-active-bg: var(--brand-button-hover);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md), 0 0 0 6px rgba(89,74,170,0.10); }

.btn-outline-secondary {
  --bs-btn-color: var(--ink-2);
  --bs-btn-border-color: var(--surface-3);
  --bs-btn-hover-bg: var(--surface-1);
  --bs-btn-hover-border-color: var(--ink-5);
  --bs-btn-hover-color: var(--ink-1);
  background: var(--surface-0);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
}

.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.text-muted { color: var(--ink-4) !important; }

/* === LOGO === */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  gap: 4px;
  color: var(--ink-1);
}
.brand-logo .brand-q  { font-weight: 700; }
.brand-logo .brand-r  { font-weight: 400; color: var(--ink-3); }
.brand-logo .brand-q2 { font-weight: 700; }
.brand-logo-light .brand-q,
.brand-logo-light .brand-q2 { color: #fafafb; }
.brand-logo-light .brand-r { color: #a8a7c0; }
.brand-tagline {
  display: inline-block;
  font-size: 10px;
  color: var(--ink-4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
}

/* === NAVBAR — minimalna, glass === */
.navbar {
  padding: var(--sp-4) 0;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: none !important;
  border-bottom: 1px solid var(--surface-3) !important;
}
.navbar-brand { display: flex; align-items: center; gap: var(--sp-3); }
.navbar .nav-link {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: var(--r-pill);
  transition: all .15s;
}
.navbar .nav-link:hover { color: var(--ink-1); background: var(--surface-2); }

/* ===================================================================
   HERO — 2026 STYLE: huge type, mesh gradient, asymmetric layout
   =================================================================== */
.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-16);
  overflow: hidden;
}

/* Mesh gradient tlo - 4 punkty kolorow */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, var(--p-lilac) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 30%, var(--p-coral) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, var(--p-mint) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 90% 90%, var(--p-sky) 0%, transparent 50%),
    linear-gradient(180deg, #fafafb 0%, #ffffff 100%);
  z-index: 0;
}

/* Subtle grain - dodaje "papierowej" tekstury (modern trend 2026) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 6px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--ink-1);
  color: white;
  font-size: 12px;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink-1);
  margin: 0 0 var(--sp-6);
  max-width: 900px;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}
.hero-title .accent {
  display: inline-block;
  position: relative;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--brand) 0%, #b794f4 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 0 var(--sp-8);
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

.hero-cta-row .btn-primary {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13px;
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item i { color: #10b981; }

/* === BENTO GRID — modern asymmetric layout (2026 trend) === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: var(--sp-4);
  max-width: 1100px;
  margin: 0 auto;
}

.bento-tile {
  position: relative;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  cursor: pointer;
  transition: all .3s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
  text-align: left;
  color: var(--ink-1);
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.95);
}

.bento-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .3s var(--ease-spring);
}
.bento-tile:hover .bento-tile-icon { transform: scale(1.1) rotate(-3deg); }

.bento-tile-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.bento-tile-meta {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-tile-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-1);
  color: white;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .25s var(--ease-out);
}
.bento-tile:hover .bento-tile-arrow { opacity: 1; transform: translateX(0); }

/* Bento sizes - asymetria */
.bento-tile.size-lg { grid-column: span 6; grid-row: span 2; }
.bento-tile.size-md { grid-column: span 4; grid-row: span 2; }
.bento-tile.size-sm { grid-column: span 3; }
.bento-tile.size-wide { grid-column: span 6; }
.bento-tile.size-tall { grid-column: span 3; grid-row: span 2; }

/* Pastelowe tla per pozycja - rotacja */
.bento-tile:nth-child(8n+1) { background: linear-gradient(135deg, rgba(212,203,242,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+1) .bento-tile-icon { background: var(--p-lavender); color: #0a0a14; }
.bento-tile:nth-child(8n+2) { background: linear-gradient(135deg, rgba(254,205,211,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+2) .bento-tile-icon { background: var(--p-coral); color: #0a0a14; }
.bento-tile:nth-child(8n+3) { background: linear-gradient(135deg, rgba(254,215,170,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+3) .bento-tile-icon { background: var(--p-peach); color: #0a0a14; }
.bento-tile:nth-child(8n+4) { background: linear-gradient(135deg, rgba(254,243,199,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+4) .bento-tile-icon { background: var(--p-butter); color: #0a0a14; }
.bento-tile:nth-child(8n+5) { background: linear-gradient(135deg, rgba(187,247,208,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+5) .bento-tile-icon { background: var(--p-mint); color: #0a0a14; }
.bento-tile:nth-child(8n+6) { background: linear-gradient(135deg, rgba(186,230,253,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+6) .bento-tile-icon { background: var(--p-sky); color: #0a0a14; }
.bento-tile:nth-child(8n+7) { background: linear-gradient(135deg, rgba(251,207,232,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+7) .bento-tile-icon { background: var(--p-rose); color: #0a0a14; }
.bento-tile:nth-child(8n+8) { background: linear-gradient(135deg, rgba(233,213,255,0.6), rgba(255,255,255,0.85)); }
.bento-tile:nth-child(8n+8) .bento-tile-icon { background: var(--p-lilac); color: #0a0a14; }

@media (max-width: 768px) {
  .bento-tile.size-lg,
  .bento-tile.size-md,
  .bento-tile.size-sm,
  .bento-tile.size-wide,
  .bento-tile.size-tall { grid-column: span 12; grid-row: span 1; }
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-12);
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink-1);
  margin: 0;
  max-width: 720px;
}
.section-sub {
  color: var(--ink-3);
  font-size: 16px;
  max-width: 540px;
  margin-top: var(--sp-3);
  margin-bottom: 0;
}

/* === ALL TYPES GRID — modernized === */
#types-section { padding: var(--sp-24) 0; background: var(--surface-1); }

.types-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-3);
}
.type-card-full {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all .25s var(--ease-spring);
  width: 100%;
  min-height: 140px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-1);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.type-card-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(111,92,214,0.04) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.type-card-full:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.type-card-full:hover::before { opacity: 1; }
.type-card-full i {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  transition: transform .25s var(--ease-spring);
}
.type-card-full:hover i { transform: rotate(-6deg) scale(1.1); }

/* Rotacja pasteli */
.type-card-full:nth-child(10n+1) i { background: var(--p-lavender); color: #0a0a14; }
.type-card-full:nth-child(10n+2) i { background: var(--p-coral);    color: #0a0a14; }
.type-card-full:nth-child(10n+3) i { background: var(--p-peach);    color: #0a0a14; }
.type-card-full:nth-child(10n+4) i { background: var(--p-butter);   color: #0a0a14; }
.type-card-full:nth-child(10n+5) i { background: var(--p-mint);     color: #0a0a14; }
.type-card-full:nth-child(10n+6) i { background: var(--p-sky);      color: #0a0a14; }
.type-card-full:nth-child(10n+7) i { background: var(--p-lilac);    color: #0a0a14; }
.type-card-full:nth-child(10n+8) i { background: var(--p-rose);     color: #0a0a14; }
.type-card-full:nth-child(10n+9) i { background: var(--p-sand);     color: #0a0a14; }
.type-card-full:nth-child(10n+10) i { background: var(--p-cream);   color: #0a0a14; }

/* === FEATURES === */
#features {
  padding: var(--sp-24) 0;
  background: var(--surface-0);
}
.feature-card {
  background: var(--surface-1);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  height: 100%;
  transition: all .25s var(--ease-out);
  border: 1px solid var(--surface-2);
}
.feature-card:hover {
  background: var(--surface-0);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--surface-3);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 22px;
  margin-bottom: var(--sp-4);
}
.col-md-6.col-lg-4:nth-child(6n+1) .feature-icon { background: var(--p-lavender); color: #0a0a14; }
.col-md-6.col-lg-4:nth-child(6n+2) .feature-icon { background: var(--p-coral);    color: #0a0a14; }
.col-md-6.col-lg-4:nth-child(6n+3) .feature-icon { background: var(--p-mint);     color: #0a0a14; }
.col-md-6.col-lg-4:nth-child(6n+4) .feature-icon { background: var(--p-butter);   color: #0a0a14; }
.col-md-6.col-lg-4:nth-child(6n+5) .feature-icon { background: var(--p-sky);      color: #0a0a14; }
.col-md-6.col-lg-4:nth-child(6n+6) .feature-icon { background: var(--p-peach);    color: #0a0a14; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-2);
}
.feature-card p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* === STEPS === */
.steps-section { padding: var(--sp-24) 0; background: var(--surface-1); }
.step-card {
  position: relative;
  background: var(--surface-0);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--surface-2);
  transition: all .25s var(--ease-out);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 16px;
  color: white;
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}
.col-md-4:nth-child(1) .step-num { background: linear-gradient(135deg, #f472b6, #ec4899); }
.col-md-4:nth-child(2) .step-num { background: linear-gradient(135deg, #fb923c, #f97316); }
.col-md-4:nth-child(3) .step-num { background: linear-gradient(135deg, #34d399, #10b981); }
.step-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 var(--sp-2); letter-spacing: -0.015em; }
.step-card p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* === STATS === */
.stats-section {
  padding: var(--sp-24) 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, var(--p-lilac) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 50%, var(--p-coral) 0%, transparent 60%),
    var(--surface-0);
  position: relative;
}
.stat-block { text-align: center; }
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink-1) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: var(--ink-4);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-3);
}

/* === FAQ === */
.faq-section { padding: var(--sp-24) 0; background: var(--surface-0); }
.accordion-item {
  background: var(--surface-1);
  border-radius: var(--r-lg) !important;
  margin-bottom: var(--sp-3);
  border: 1px solid var(--surface-2);
  overflow: hidden;
  transition: all .2s;
}
.accordion-item:has(.accordion-button:not(.collapsed)) {
  background: var(--surface-0);
  box-shadow: var(--shadow-md);
  border-color: var(--surface-3);
}
.accordion-button {
  background: transparent !important;
  color: var(--ink-1);
  font-weight: 600;
  font-size: 16px;
  padding: var(--sp-6);
  letter-spacing: -0.01em;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--brand-deep); }
.accordion-button:focus { box-shadow: none !important; }
.accordion-body { color: var(--ink-3); padding: 0 var(--sp-6) var(--sp-6); font-size: 15px; }

/* === DASHBOARD === */
.dashboard-section {
  padding: var(--sp-24) 0;
  background: var(--surface-1);
}
.qr-list-card {
  background: var(--surface-0);
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--surface-2);
  transition: all .25s var(--ease-out);
  height: 100%;
  overflow: hidden;
}
.qr-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent;
}
.qr-list-preview {
  background: linear-gradient(135deg, var(--p-lavender), var(--p-coral));
  border-radius: var(--r-md);
  padding: var(--sp-4);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-list-preview > div {
  background: white;
  padding: 10px;
  border-radius: var(--r-sm);
}
.qr-list-preview canvas, .qr-list-preview svg { max-width: 130px; height: auto; }

/* === MODAL === */
.modal-content {
  border-radius: var(--r-xl) !important;
  border: none;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--surface-2);
  padding: var(--sp-6) var(--sp-8);
}
.modal-title { font-weight: 600; letter-spacing: -0.015em; font-size: 18px; }
.modal-body { padding: var(--sp-8); }
.modal-footer {
  border-top: 1px solid var(--surface-2);
  padding: var(--sp-4) var(--sp-8);
}
.btn-close {
  width: 32px; height: 32px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  opacity: 1;
  background-size: 12px;
}
.btn-close:hover { background-color: var(--surface-3); opacity: 1; }

/* === EDITOR === */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: var(--sp-2);
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}
.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  background: var(--surface-0);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 11px;
  color: var(--ink-3);
  transition: all .15s var(--ease-out);
  text-align: center;
}
.type-btn:hover { border-color: var(--ink-5); transform: translateY(-1px); }
.type-btn.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 500;
}
.type-btn i { font-size: 20px; line-height: 1; }

#editor-tabs { border-bottom: 1px solid var(--surface-2); }
#editor-tabs .nav-link {
  color: var(--ink-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
#editor-tabs .nav-link:hover { color: var(--ink-2); }
#editor-tabs .nav-link.active {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: none;
}
.tab-pane.d-none { display: none !important; }

#ec-options .btn { font-size: 12px; }
#ec-options .btn.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: var(--brand);
}

/* === FORM CONTROLS === */
.form-control, .form-select {
  border-radius: var(--r-md);
  border-color: var(--surface-3);
  padding: 10px 14px;
  font-size: 14px;
  transition: all .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(111,92,214,0.1);
}
.form-label { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.form-text { color: var(--ink-4); font-size: 12px; }

/* === QR DISPLAY === */
.qr-display {
  background: white;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--surface-2);
  min-height: 280px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* === LINK LIST === */
.link-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.btn-remove-link {
  background: var(--p-coral);
  border: 1px solid #fecdd3;
  color: #0a0a14;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s;
}
.btn-remove-link:hover { background: #fecdd3; }

.info-banner {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: var(--sp-4);
  border: none;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.info-banner i { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* === AUTH MODAL === */
#auth-tabs { gap: var(--sp-2); margin-bottom: var(--sp-6) !important; }
#auth-tabs .nav-link {
  color: var(--ink-4);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  font-weight: 500;
  border: none;
}
#auth-tabs .nav-link.active {
  background: var(--ink-1);
  color: white;
}

/* === FOOTER === */
.footer {
  background: var(--ink-1);
  color: #a8a7c0;
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer h6 { color: white; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; }
.footer a { color: #a8a7c0; transition: color .15s; }
.footer a:hover { color: white; }

/* === LANG SWITCHER === */
.lang-flag { font-size: 16px; line-height: 1; display: inline-block; }
.dropdown-item .lang-flag { font-size: 18px; }
.dropdown-menu {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-2);
  padding: var(--sp-2);
}
.dropdown-item {
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 14px;
  transition: all .15s;
}
.dropdown-item:hover { background: var(--surface-1); }
.dropdown-item.active, .dropdown-item:active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* === EMPTY STATE === */
#empty-state { padding: var(--sp-16) var(--sp-6); }
#empty-state i { font-size: 64px; color: var(--ink-5); }

/* === BADGES === */
.badge {
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  :root {
    --sp-24: 64px;
    --sp-16: 48px;
  }
  .hero { padding: var(--sp-12) 0 var(--sp-12); }
  .hero-title { font-size: 2.5rem; }
  .types-bento { grid-template-columns: repeat(2, 1fr); }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === SCROLLBAR (subtle, modern) === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-5); }

/* ============================================================
   STATIC vs DYNAMIC TOGGLE (kontrast 7:1+)
   ============================================================ */

.qr-mode-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.qr-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.qr-mode-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.45;
  max-width: 360px;
}

/* Toggle iOS-style z 2-stanowym labelem */
.qr-mode-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 4px;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--surface-3);
  min-width: 200px;
  height: 40px;
  flex-shrink: 0;
}
.qr-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.qr-mode-slider {
  position: absolute;
  top: 4px; left: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--surface-0);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-spring);
}
.qr-mode-switch input:checked ~ .qr-mode-slider {
  transform: translateX(100%);
}
.qr-mode-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.qr-mode-static-label,
.qr-mode-dynamic-label {
  padding: 4px 12px;
  color: var(--ink-3);
  transition: color .2s;
}
.qr-mode-switch input:not(:checked) ~ .qr-mode-labels .qr-mode-static-label,
.qr-mode-switch input:checked ~ .qr-mode-labels .qr-mode-dynamic-label {
  color: var(--ink-1);
}
.qr-mode-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.qr-mode-switch.disabled .qr-mode-slider { background: var(--surface-2); }

/* Lock state - locked toggle pokazuje ikone klodki na slider */
.qr-mode-switch.disabled::after {
  content: "\F47A";  /* bi-lock-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 14px;
}

/* Info pod toggle - locked dla anon */
.qr-mode-locked,
.qr-mode-forced {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.4;
}
.qr-mode-locked {
  background: linear-gradient(135deg, var(--p-lilac), var(--p-coral));
  color: var(--ink-1);
  border: 1px solid rgba(255,255,255,0.7);
}
.qr-mode-locked i { color: var(--ink-1); font-size: 16px; flex-shrink: 0; }
.qr-mode-locked span { flex-grow: 1; font-weight: 500; }
.qr-mode-cta {
  background: var(--ink-1);
  color: white;
  border: none;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all .15s;
}
.qr-mode-cta:hover { background: var(--ink-2); color: white; transform: translateY(-1px); }

.qr-mode-forced {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.qr-mode-forced i { color: var(--brand); font-size: 16px; flex-shrink: 0; }

/* === Anon CTA pod preview === */
.qr-mode-anon-cta {
  background: linear-gradient(135deg, var(--p-lavender), var(--p-rose));
  color: var(--ink-1);
  border: 1px solid rgba(255,255,255,0.7);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: 1.45;
}
.qr-mode-anon-cta i { color: var(--ink-1); margin-top: 2px; flex-shrink: 0; }
.qr-mode-anon-cta span { color: var(--ink-1); font-weight: 500; }

/* ============================================================
   STATIC / DYNAMIC BADGES na listach QR
   ============================================================ */

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.qr-badge-static {
  background: var(--surface-2);
  color: var(--ink-2);  /* 15:1 na surface-2 */
}
.qr-badge-dynamic {
  background: var(--brand-soft);
  color: var(--brand-deep);  /* 12:1 na brand-soft */
}
.qr-badge i { font-size: 11px; }

/* ============================================================
   LOCKED TYPE BUTTONS (typy ktore wymagaja konta)
   ============================================================ */

.type-btn-locked {
  position: relative;
  opacity: 0.65;
}
.type-btn-locked:hover { opacity: 0.85; }
.type-btn-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  color: var(--ink-3);
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-pill);
  padding: 2px 4px;
  line-height: 1;
}

/* ============================================================
   Dashboard - czytelne badges scan count itp.
   ============================================================ */

.qr-list-card .badge.bg-light {
  background: var(--surface-2) !important;
  color: var(--ink-2) !important;
  font-weight: 500;
  font-size: 11px;
  padding: 4px 8px;
}

/* ============================================================
   Form / input contrast improvements (7:1+)
   ============================================================ */

.form-label { color: var(--ink-2); }      /* 15:1 */
.form-text { color: var(--ink-4); }       /* 7.8:1 */
.text-muted { color: var(--ink-4) !important; }  /* nadpisuje BS - 7.8:1 */

/* Buttons outline secondary - lepsze kontrasty */
.btn-outline-secondary {
  --bs-btn-color: var(--ink-2);
  --bs-btn-hover-color: var(--ink-1);
}

/* Accordion contrast */
.accordion-body { color: var(--ink-3); }   /* 10:1 */

/* Hero subtitle czytelny */
.hero-sub { color: var(--ink-3); }          /* 10:1 */
.hero-trust { color: var(--ink-3); }
.section-sub { color: var(--ink-3); }

/* Feature card description */
.feature-card p { color: var(--ink-3); }
.step-card p { color: var(--ink-3); }

/* Stats label czytelny - byl --ink-4 */
.stat-label { color: var(--ink-3); font-weight: 500; }

/* Empty state */
#empty-state p { color: var(--ink-3); }
#empty-state i { color: var(--ink-4); }
