/* ============================================
   poprostu.it — Landing
   Type: system fonts (apple-style)
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-card: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #aeaeb2;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0057FF;
  --accent-dk: #0040CC;
  --accent-soft: #e8f0ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 32px 80px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 48px);
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-2: #18181b;
  --bg-card: #1c1c1f;
  --fg: #f5f5f7;
  --fg-2: #aeaeb2;
  --fg-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent-soft: rgba(124, 58, 237, 0.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 12px 36px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 32px 80px rgba(0,0,0,0.4);
}

/* Belt-and-suspenders: ensure html+body explicitly track the var even if
   some peer rule shifts cascade priority. body[data-theme="dark"] is the
   real fix — browsers can skip re-cascading body bg when CSS vars on the
   parent change (canvas-propagation quirk), so we stamp the attr on body
   directly. */
html[data-theme="dark"],
html[data-theme="dark"] body,
body[data-theme="dark"] {
  background: var(--bg);
  color: var(--fg);
}

/* Smooth crossfade when theme flips */
html, body, .nav, .pillar, .ai-card, .case-phase, .case-outcome,
.value-card, .who-item, .price, .t, .walk-step, .walk-stage, .walk-frame,
.tpl, .proj, .proj-tile, .newsletter, .contact, footer.site-foot,
.code-loop, .case-diagram, .form-field {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ---------- ACCESSIBILITY: respects user prefs + a11y panel ---------- */
:root { --a11y-font-scale: 1; }
html { font-size: calc(17px * var(--a11y-font-scale)); }
body { font-size: 1rem; }

/* high contrast */
html.a11y-contrast {
  --fg-2: var(--fg);
  --fg-3: var(--fg);
  --line: rgba(0, 0, 0, 0.45);
  --line-strong: rgba(0, 0, 0, 0.65);
}
html.a11y-contrast[data-theme="dark"] {
  --fg-2: #ffffff;
  --fg-3: #ffffff;
  --line: rgba(255, 255, 255, 0.55);
  --line-strong: rgba(255, 255, 255, 0.75);
}
html.a11y-contrast .lead,
html.a11y-contrast .pillar-list li span,
html.a11y-contrast p { color: var(--fg) !important; }

/* underline all in-text links */
html.a11y-underline main a:not(.btn):not(.nav-links a):not(.brand):not(.proj):not(.tpl):not(.foot-links a):not(.contact-row):not(.proj-filter):not(.faq-q) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* reduce motion */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* reading spacing */
html.a11y-spacing { letter-spacing: 0.02em; }
html.a11y-spacing p,
html.a11y-spacing li { line-height: 1.75; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3, html.a11y-spacing h4 { line-height: 1.2; }

/* visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.faq-q:focus-visible,
.theme-toggle:focus-visible,
.a11y-launcher:focus-visible {
  outline-offset: 3px;
}

/* Skip-to-content link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.h-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
  align-self: flex-start;
}
.h-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,87,255,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,87,255,0); }
}
.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-tight { padding: clamp(48px, 8vh, 96px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 760px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: scale(1.02); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn-text {
  background: transparent;
  color: var(--fg);
  padding: 14px 0;
  border: 0;
}
.btn-text:hover { color: var(--accent); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 0.5px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand .dot {
  color: var(--accent);
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 13px;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--fg-2);
  transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-meta {
  display: flex; gap: 24px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  font-family: var(--mono);
}
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}

/* Dynamic slots badge — pulse + text color shift by status */
.hero-meta .slots-open .pulse {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: slotPulseGreen 2.4s ease-in-out infinite;
}
.hero-meta .slots-limited {
  color: #b45309;
  font-weight: 500;
}
[data-theme="dark"] .hero-meta .slots-limited { color: #fbbf24; }
.hero-meta .slots-limited .pulse {
  background: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22);
  animation: slotPulseYellow 1.6s ease-in-out infinite;
}
@keyframes slotPulseGreen {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
@keyframes slotPulseYellow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(234, 179, 8, 0); }
}

/* Live prompt → preview window */
.prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.prompt-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i {
  display: block; width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.prompt-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
}
.prompt-input {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.prompt-input .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.prompt-text {
  font-size: 20px;
  line-height: 1.35;
  color: var(--fg);
  min-height: 64px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  vertical-align: -3px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.prompt-preview {
  height: 320px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

/* Mini fake site preview */
.mini-site {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  font-size: 9px;
}
.mini-nav {
  height: 24px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--line);
}
.mini-nav .ml { display: flex; gap: 8px; align-items: center; }
.mini-nav .lg { width: 18px; height: 6px; background: var(--fg); border-radius: 2px; }
.mini-nav .li { width: 22px; height: 4px; background: var(--line-strong); border-radius: 2px; }

/* ---------- VALUE PROP / FILOZOFIA ---------- */
.value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 1024px) {
  .value { grid-template-columns: 1fr; gap: 48px; }
}
.value-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.value-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.value-cards {
  display: flex; flex-direction: column; gap: 12px;
}
.value-card {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: start;
  transition: all 0.25s ease;
}
[data-theme="dark"] .value-card { background: var(--bg-card); }
.value-card:hover {
  transform: translateX(4px);
  border-color: rgba(0,87,255,0.2);
}
.value-icon {
  width: 38px; height: 38px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.value-card h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.value-card p {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
}

/* ---------- PILLARS (services) ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.25s ease;
}
.section-alt .pillar { background: var(--bg-card); }
.pillar:hover { border-color: rgba(0,87,255,0.25); transform: translateY(-3px); }
.pillar-num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.pillar p.lead {
  font-size: 17px;
  margin-bottom: 28px;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
  color: var(--fg);
  font-weight: 400;
}
.pillar-list li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 L5 8.5 L9.5 3.5' stroke='%230057FF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.pillar-list li b { font-weight: 500; }
.pillar-list li span { color: var(--fg-2); font-weight: 300; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--line);
}
.tag {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  color: var(--fg-2);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.section-alt .tag { background: var(--bg); }
[data-theme="dark"] .tag { background: var(--bg); }

/* ---------- PROCESS / JAK DZIAŁAM ---------- */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 56px;
}
@media (max-width: 880px) { .proc-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 540px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-line {
  position: absolute;
  top: 27px; left: 12%; right: 12%;
  height: 0.5px;
  background: var(--line-strong);
  z-index: 0;
}
@media (max-width: 880px) { .proc-line { display: none; } }
.proc-step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.proc-circle {
  width: 54px; height: 54px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  font-weight: 600;
  background: var(--bg-2);
  margin-bottom: 20px;
}
.section:not(.section-alt) .proc-circle { background: var(--bg); }
.proc-step h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.proc-step p {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  margin: 0;
  line-height: 1.55;
}

/* ---------- DLA KOGO ---------- */
.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 1024px) { .who { grid-template-columns: 1fr; gap: 48px; } }
.who-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.who-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
}
.who-list {
  display: flex; flex-direction: column; gap: 10px;
}
.who-item {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  transition: all 0.2s ease;
}
.who-item:hover { border-color: rgba(0,87,255,0.2); }
.who-check {
  width: 22px; height: 22px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- CODE → SITE LOOP ---------- */
.code-loop {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .code-loop { background: var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 1024px) {
  .code-loop { grid-template-columns: 1fr; }
}
.code-loop h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  font-weight: 600;
}
.code-loop h2 em { font-style: normal; color: #5b8fff; }
.code-loop .lead { color: rgba(255,255,255,0.7); }
.code-loop .h-eyebrow { background: rgba(91,143,255,0.18); color: #5b8fff; }
[data-theme="dark"] .code-loop h2 { color: var(--fg); }
[data-theme="dark"] .code-loop .lead { color: var(--fg-2); }

.code-window {
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  height: 460px;
}
.code-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.code-tab {
  padding: 10px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 8px;
}
.code-tab.active { color: #fff; background: rgba(255,255,255,0.04); }
.code-tab .dot-r { width: 6px; height: 6px; border-radius: 50%; background: #5b8fff; }
.code-body { padding: 22px 24px; color: #d4d4d4; }
.code-body .ln { display: block; }
.tk-key { color: #5b8fff; }
.tk-tag { color: #93c5fd; }
.tk-attr { color: #c4b5fd; }
.tk-str { color: #86efac; }
.tk-com { color: #6b7280; font-style: italic; }
.tk-fn { color: #fde68a; }
.code-arrow {
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #5b8fff;
  color: #0a0a0a;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(91,143,255,0.4);
}
@media (max-width: 1024px) {
  .code-arrow { right: 50%; top: auto; bottom: -28px; transform: translateX(50%) rotate(90deg); }
}

/* ---------- WALKTHROUGH ---------- */
.walk {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .walk { grid-template-columns: 1fr; }
}
.walk-steps { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.walk-step {
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s ease;
}
.section-alt .walk-step { background: var(--bg-card); }
.walk-step.active {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0,87,255,0.08);
}
.walk-step .num {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}
.walk-step.active .num { color: var(--accent); }
.walk-step h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.walk-step p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.walk-step.active p { max-height: 140px; margin-top: 8px; }
.walk-stage {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  height: 540px;
  position: relative;
  overflow: hidden;
}
.section-alt .walk-stage { background: var(--bg); }
.walk-frame {
  position: absolute; inset: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.walk-frame.active { opacity: 1; transform: translateY(0); }
.wf-bar {
  height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border-bottom: 0.5px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.wf-content { padding: 28px; height: calc(100% - 32px); overflow: hidden; }
.wf-content h5 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* ---------- TEMPLATES ---------- */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl {
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}
.tpl:hover { transform: translateY(-4px); border-color: rgba(0,87,255,0.25); }
.tpl-img {
  height: 280px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-bottom: 0.5px solid var(--line);
}
.tpl-meta {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.tpl-meta h4 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tpl-meta .tag-meta {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--mono);
}

/* mini template visuals */
.mock {
  position: absolute; inset: 14px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 8px;
}
.mock .top { height: 18px; border-bottom: 0.5px solid var(--line); display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.mock .top i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.mock .body { padding: 14px; }
.mock-h { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.mock-p { height: 4px; background: var(--line-strong); border-radius: 2px; margin: 3px 0; }
.mock-p.s { width: 60%; }
.mock-row { display: flex; gap: 6px; margin-top: 10px; }
.mock-row > div { flex: 1; height: 32px; border-radius: 4px; background: var(--bg-2); border: 0.5px solid var(--line); }
.mock-row > div.fill { background: var(--accent); border-color: var(--accent); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.mock-grid > div { aspect-ratio: 1; background: var(--bg-2); border-radius: 3px; }

/* ---------- PRICING ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.section-alt .price { background: var(--bg-card); }
.price.featured {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  position: relative;
}
.price.featured .label { color: var(--fg-3); background: rgba(255,255,255,0.08); }
.price.featured .lead { color: rgba(255,255,255,0.7); }
.price.featured .feat-list li { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .price.featured { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .price.featured .lead { color: rgba(255,255,255,0.85); }

.price .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 18px;
  align-self: flex-start;
}
.price h3 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.price .amt {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 20px 0 6px;
  font-weight: 600;
}
.price .amt small { font-size: 15px; color: var(--fg-3); margin-left: 6px; font-weight: 400; }
.price.featured .amt small { color: rgba(255,255,255,0.6); }
.price .lead { font-size: 14px; margin-bottom: 20px; }
.price .feat-list { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price .feat-list li {
  font-size: 14px; color: var(--fg-2); padding-left: 22px; position: relative; line-height: 1.5;
  font-weight: 300;
}
.price .feat-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price.featured .feat-list li::before { border-color: #5b8fff; }
.price .price-cta { margin-top: auto; }
.price-pill {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- TESTIMONIALS ---------- */
.t-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 880px) { .t-grid { grid-template-columns: 1fr; } }
.t {
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.t.big { grid-row: span 2; }
.t-quote {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
  font-weight: 400;
}
.t.big .t-quote { font-size: 28px; line-height: 1.25; }
.t-quote.sm { font-size: 17px; }
.t-attr {
  display: flex; align-items: center; gap: 12px;
}
.t-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.t-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.t-role { font-size: 13px; color: var(--fg-3); }

/* Google-styled testimonials extras */
.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -4px;
}
.t-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #fbbc04;
}
.t-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}
.t-source svg { display: block; }
.t-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.t-foot .btn { align-items: center; }
.t-foot .btn svg { vertical-align: middle; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-top: 0.5px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 0.5px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  color: var(--fg);
}
.faq-q .plus {
  width: 28px; height: 28px;
  border: 0.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-size: 14px;
  color: var(--fg-2);
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding-top: 16px;
}

/* ---------- CONTACT (dark section) ---------- */
.contact {
  background: #1d1d1f;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}
[data-theme="dark"] .contact { background: var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 1024px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
.contact h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  font-weight: 600;
  color: #fff;
}
.contact .h-eyebrow { background: rgba(91,143,255,0.18); color: #5b8fff; }
.contact-text p {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  margin: 0 0 28px;
}
[data-theme="dark"] .contact-text p { color: var(--fg-2); }
.contact-info {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 32px;
}
.contact-row {
  display: flex; gap: 14px; align-items: center;
}
.contact-row .ic {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #5b8fff;
  flex-shrink: 0;
}
.contact-row .lbl { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
[data-theme="dark"] .contact-row .lbl { color: var(--fg-3); }
.contact-row .val { font-size: 16px; color: #fff; font-weight: 400; }
[data-theme="dark"] .contact-row .val { color: var(--fg); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full { grid-column: span 2; }
.form-field {
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  width: 100%;
  outline: 0;
  transition: border-color 0.2s ease;
}
[data-theme="dark"] .form-field { background: var(--bg); border-color: var(--line); color: var(--fg); }
.form-field::placeholder { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .form-field::placeholder { color: var(--fg-3); }
.form-field:focus { border-color: var(--accent); }
textarea.form-field { min-height: 110px; resize: vertical; font-family: inherit; }
select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 4.5 L6 7.5 L9 4.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.form-submit:hover { background: var(--accent-dk); }
.form-submit.sent { background: #0a8a3a; }
.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin-top: 12px;
}
[data-theme="dark"] .form-note { color: var(--fg-3); }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.section-alt .newsletter { background: var(--bg); }
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; gap: 24px; } }
.newsletter h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 12px 0 8px;
}
.newsletter p {
  color: var(--fg-2); font-size: 15px; font-weight: 300; margin: 0;
}
.newsletter-form {
  display: flex;
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}
.newsletter-form input::placeholder { color: var(--fg-3); }

/* ---------- FOOTER ---------- */
footer.site-foot {
  background: #1d1d1f;
  color: #fff;
  padding: 28px 0;
}
[data-theme="dark"] footer.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
.foot-row .brand .dot { color: #5b8fff; }
.foot-links { display: flex; gap: 16px 24px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .foot-links a { color: var(--fg-2); }
.foot-links a:hover { color: #fff; }
.foot-copy { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .foot-copy { color: var(--fg-3); }

/* ---------- HERO ALT LAYOUTS ---------- */
.hero-centered { text-align: center; }
.hero-centered .hero-grid { grid-template-columns: 1fr; }
.hero-centered h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero-centered .lead { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-meta { justify-content: center; }
.hero-centered .h-eyebrow { align-self: center; }
.hero-centered .prompt-box { max-width: 880px; margin: 56px auto 0; }

.hero-stacked .hero-grid { grid-template-columns: 1fr; gap: 80px; }
.hero-stacked .hero-text { max-width: 18ch; }
.hero-stacked h1 { font-size: clamp(56px, 10vw, 144px); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in { opacity: 1; transform: translateY(0); }


/* ---------- REALIZACJE ---------- */
.proj-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) {
  .proj-featured, .proj-grid { grid-template-columns: 1fr; }
}
.proj {
  background: var(--bg-card, var(--bg));
  border: 0.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.proj:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 36px rgba(0,0,0,0.06); }
.proj-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 0.5px solid var(--line);
  background: var(--bg-2);
}
.proj-big .proj-img { aspect-ratio: 16 / 9; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
}
.proj-placeholder-mark { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: rgba(0,0,0,0.32); }
.proj-placeholder-url { font-family: var(--mono); font-size: 12px; color: rgba(0,0,0,0.45); letter-spacing: 0.02em; }
.proj-meta { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 500; }
.proj-meta h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.proj-meta p { margin: 0; font-size: 14px; color: var(--fg-2); font-weight: 300; line-height: 1.5; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.proj-tags .tag { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 0.5px solid var(--line); color: var(--fg-2); font-family: var(--mono); }
.proj-url { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); display: flex; justify-content: space-between; align-items: center; }
.proj:hover .proj-url { color: var(--accent); }
.proj:hover .proj-url .arrow { transform: translateX(3px); }
.proj-url .arrow { transition: transform 0.18s ease; }

.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.proj-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  border: 0.5px solid var(--line);
  color: var(--fg-2);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.proj-filter:hover { border-color: var(--fg-2); color: var(--fg); }
.proj-filter.active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.proj-filter .count { font-family: var(--mono); font-size: 11px; opacity: 0.6; }
.proj-grid.all { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .proj-grid.all { grid-template-columns: 1fr; } }

/* ---------- REALIZACJE — dense image-only gallery ---------- */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .proj-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .proj-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.proj-tile {
  margin: 0;
  aspect-ratio: 1 / 1;
  /* Unified light background in BOTH themes — some screenshots have transparent
     backgrounds (mockups on a white plate), others have white baked in. Forcing
     #fff here keeps the gallery visually consistent regardless of source. */
  background: #ffffff;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: grid;
  place-items: center;
  padding: 4%;
}
.section-alt .proj-tile,
[data-theme="dark"] .proj-tile { background: #ffffff; }
.proj-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
.proj-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0,87,255,0.25);
  box-shadow: var(--shadow-md);
}
.proj-tile:hover img { transform: scale(1.03); }

.proj-foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}
.proj-foot .proj-count b { color: var(--accent); font-weight: 600; }
.proj-foot .proj-dot { color: var(--line-strong); }

/* ---------- CASE STUDY: Skimia ---------- */
.case-study { background: var(--bg); position: relative; }
.case-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 860px;
}
.case-head h2 em { font-style: normal; color: var(--accent); }

.case-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* meta strip */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  overflow: hidden;
}
[data-theme="dark"] .case-meta { background: var(--bg-card); }
@media (max-width: 880px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.case-meta-item {
  padding: 22px 26px;
  border-right: 0.5px solid var(--line);
}
.case-meta-item:last-child { border-right: 0; }
@media (max-width: 880px) {
  .case-meta-item:nth-child(2) { border-right: 0; }
  .case-meta-item:nth-child(1), .case-meta-item:nth-child(2) { border-bottom: 0.5px solid var(--line); }
}
.cm-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 6px;
}
.cm-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* phases */
.case-phases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) { .case-phases { grid-template-columns: 1fr; } }
.case-phase {
  position: relative;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}
[data-theme="dark"] .case-phase { background: var(--bg-card); }
.case-phase:hover { border-color: rgba(0,87,255,0.2); }
.case-phase:first-child { grid-column: span 2; }
@media (max-width: 980px) { .case-phase:first-child { grid-column: auto; } }
.case-phase.case-phase-future {
  grid-column: span 2;
  background: var(--bg);
  border-style: dashed;
}
[data-theme="dark"] .case-phase.case-phase-future { background: var(--bg); }
@media (max-width: 980px) { .case-phase.case-phase-future { grid-column: auto; } }
.cp-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0;
}
.cp-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
}
.case-phase h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 4px 0 6px;
}
.case-phase p {
  font-size: 15px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.case-phase p b { color: var(--fg); font-weight: 500; }
.cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.cp-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 0.5px solid var(--line);
  color: var(--fg-2);
}
[data-theme="dark"] .cp-chip { background: var(--bg-2); }
.case-phase-future .cp-chip { background: var(--bg-2); }

/* diagram */
.case-diagram {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
}
[data-theme="dark"] .case-diagram { background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); }
.cd-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  font-weight: 500;
}
[data-theme="dark"] .cd-title { color: var(--fg-3); }
.cd-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) {
  .cd-flow { grid-template-columns: 1fr; }
  .cd-arrow { transform: rotate(90deg); margin: 4px auto; }
}
.cd-col { display: flex; flex-direction: column; gap: 10px; }
.cd-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  font-family: var(--mono);
  margin-bottom: 4px;
}
[data-theme="dark"] .cd-lbl { color: var(--fg-3); }
.cd-box {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
}
[data-theme="dark"] .cd-box { background: var(--bg); border-color: var(--line); }
.cd-box-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.cd-box-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; font-weight: 300; }
[data-theme="dark"] .cd-box-sub { color: var(--fg-3); }
.cd-box-primary {
  border-color: rgba(91,143,255,0.4);
  background: rgba(91,143,255,0.10);
}
[data-theme="dark"] .cd-box-primary { background: var(--accent-soft); border-color: rgba(0,87,255,0.3); }
.cd-box-dashed {
  border-style: dashed;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}
[data-theme="dark"] .cd-box-dashed { border-color: var(--line-strong); background: transparent; }
.cd-box-strikethrough {
  opacity: 0.5;
  position: relative;
}
.cd-box-strikethrough .cd-box-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.cd-box-custom {
  background: #5b8fff;
  border-color: #5b8fff;
  color: #fff;
}
.cd-box-custom .cd-box-sub { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .cd-box-custom { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .cd-box-custom .cd-box-sub { color: rgba(255,255,255,0.8); }
.cd-arrow {
  font-size: 24px;
  color: rgba(255,255,255,0.4);
  align-self: center;
  font-family: var(--mono);
  font-weight: 300;
  padding-top: 28px;
}
[data-theme="dark"] .cd-arrow { color: var(--fg-3); }

/* marketing overlay (under main flow) */
.cd-overlay {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.cd-overlay-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 14px;
}
.cd-overlay-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 760px) {
  .cd-overlay-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .cd-overlay-row { grid-template-columns: 1fr; }
}

/* outcome */
.case-outcome {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
}
[data-theme="dark"] .case-outcome { background: var(--bg-card); }
.co-head {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}
.co-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .co-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.co-item { border-left: 1.5px solid var(--accent); padding: 4px 0 4px 18px; }
.co-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.co-lbl {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 300;
  margin-top: 8px;
  line-height: 1.4;
}
.co-quote {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  padding-top: 28px;
  border-top: 0.5px solid var(--line);
  text-wrap: pretty;
  max-width: 72ch;
}


/* ============================================
   THEME TOGGLE (in nav)
   ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.theme-toggle-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}
.theme-toggle[data-mode="dark"] .theme-toggle-icon { color: var(--accent); }
.theme-toggle[data-mode="light"] .theme-toggle-icon { color: #d97706; }
.theme-toggle[data-mode="auto"] .theme-toggle-icon { color: var(--fg-2); }
@media (max-width: 640px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { padding: 7px; }
}

/* ============================================
   ACCESSIBILITY LAUNCHER + PANEL (WCAG)
   ============================================ */
.a11y-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a11y-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}
.a11y-launcher:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .a11y-launcher { left: 12px; bottom: 12px; width: 44px; height: 44px; }
}

.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 78px;
  z-index: 91;
  width: min(340px, calc(100vw - 36px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: a11yPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  overscroll-behavior: contain;
}
@keyframes a11yPop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.a11y-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.a11y-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.a11y-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.a11y-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  color: var(--fg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.a11y-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.a11y-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
}
.a11y-section:first-of-type { border-top: 0; padding-top: 0; }
.a11y-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Font step (A / A+ / A++) */
.a11y-fontstep {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}
.a11y-fontstep-btn {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 4px;
  font-family: inherit;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.a11y-fontstep-btn:hover { color: var(--fg); }
.a11y-fontstep-btn.on {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Switch row */
.a11y-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.a11y-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.a11y-switch-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.a11y-switch-hint {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 400;
  line-height: 1.35;
}
.a11y-switch-control { position: relative; flex-shrink: 0; }
.a11y-switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.a11y-switch-track {
  display: block;
  width: 36px;
  height: 20px;
  background: var(--line-strong);
  border-radius: 999px;
  position: relative;
  transition: background 0.18s ease;
}
.a11y-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.a11y-switch input:checked + .a11y-switch-track { background: var(--accent); }
.a11y-switch input:checked + .a11y-switch-track .a11y-switch-thumb { transform: translateX(16px); }
.a11y-switch input:focus-visible + .a11y-switch-track {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.a11y-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
}
.a11y-reset {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}
.a11y-reset:hover { color: var(--fg); border-color: var(--line-strong); }
.a11y-help {
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  padding: 4px;
  font-weight: 500;
}

/* ============================================
   AI & AUTOMATYZACJA SECTION
   ============================================ */
.ai-section .section-head h2 em { color: var(--accent); font-style: normal; }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .ai-grid { grid-template-columns: 1fr; } }

.ai-card {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
}
.section-alt .ai-card { background: var(--bg-card); }
.ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Visual header area */
.ai-visual {
  height: 140px;
  background: var(--bg-2);
  border-bottom: 0.5px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.section-alt .ai-visual { background: var(--bg); }
[data-theme="dark"] .section-alt .ai-visual { background: var(--bg-2); }

.ai-visual-svg {
  width: 80%;
  max-width: 240px;
  height: auto;
}
.ai-visual-svg rect {
  fill: var(--bg-card);
  stroke: var(--line-strong);
  stroke-width: 0.6;
}
.ai-visual-svg rect.ai-node-accent {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 0.8;
}
.ai-visual-svg .ai-edge {
  stroke: var(--accent);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: aiFlow 2.4s ease-in-out infinite;
}
.ai-visual-svg .ai-edge:nth-child(7) { animation-delay: 0.3s; }
.ai-visual-svg .ai-edge:nth-child(8) { animation-delay: 0.6s; }
.ai-visual-svg .ai-edge:nth-child(9) { animation-delay: 0.9s; }
.ai-visual-svg .ai-dot {
  fill: var(--accent);
}
@keyframes aiFlow {
  0% { stroke-dashoffset: 60; opacity: 0.3; }
  60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -60; opacity: 0.3; }
}

/* Chat visual */
.ai-visual-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  width: 100%;
  align-items: stretch;
}
.ai-bubble {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 82%;
  line-height: 1.35;
}
.ai-bubble-user {
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  color: var(--fg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.section-alt .ai-bubble-user { background: var(--bg); }
.ai-bubble-bot {
  background: var(--accent);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  position: relative;
}
.ai-bubble-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  background: #fff;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}

/* Text generation visual */
.ai-visual-text {
  width: 78%;
  padding: 8px 16px;
}
.ai-line {
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.ai-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: aiType 2.4s ease-in-out infinite;
}
.ai-line-1 { width: 100%; }
.ai-line-2 { width: 88%; }
.ai-line-3 { width: 62%; }
.ai-line-2::after { animation-delay: 0.4s; }
.ai-line-3::after { animation-delay: 0.8s; }
@keyframes aiType {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.ai-tagrow {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}
.ai-mini-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  color: var(--fg-2);
}
.section-alt .ai-mini-tag { background: var(--bg); }
.ai-mini-tag-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Card body */
.ai-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 28px 0;
}
.ai-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ai-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  padding-left: 10px;
  border-left: 0.5px solid var(--line);
}
.ai-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 8px 28px 0;
}
.ai-card-desc {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  margin: 12px 28px 0;
}
.ai-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  font-weight: 500;
  margin: 20px 28px 8px;
  font-family: var(--mono);
}
.ai-examples {
  list-style: none;
  padding: 0;
  margin: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-examples li {
  font-size: 13px;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.ai-examples li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
}
.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 20px 28px 28px;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
}
.ai-tags .tag {
  font-size: 11px;
  padding: 4px 10px;
}

/* Footer CTA */
.ai-foot {
  margin-top: 40px;
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-alt .ai-foot { background: var(--bg-card); }
.ai-foot-text {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
  min-width: 260px;
}
.ai-foot-text b { color: var(--fg); font-weight: 500; }
.ai-foot-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }


/* ============================================
   PARTNERZY (SEOhost + prokonsumencki)
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 880px) { .partners-grid { grid-template-columns: 1fr; } }

.partner-card {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
[data-theme="dark"] .partner-card { background: var(--bg-card); }
.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.partner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 0.5px solid var(--line);
}
.partner-logo-wrap {
  display: flex;
  align-items: center;
  color: var(--fg);
}
.partner-logo {
  height: 28px;
  width: auto;
  max-width: 200px;
}
.partner-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 0.5px solid var(--line);
  white-space: nowrap;
}
[data-theme="dark"] .partner-role { background: var(--bg-2); }

.partner-desc {
  font-size: 15px;
  color: var(--fg-2);
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 24px;
}

.partner-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.partner-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partner-benefits li {
  font-size: 14px;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.partner-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.partner-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
  transition: gap 0.2s ease;
}
.partner-link:hover { gap: 10px; }
.partner-link .arrow { font-family: var(--mono); }

.partners-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 24px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 0.5px dashed var(--line);
}
[data-theme="dark"] .partners-note { background: var(--bg-card); }

/* ============================================
   CHATBOT (floating, bottom-right)
   ============================================ */
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 26px;
  background: var(--accent);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}
.chat-launcher:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.chat-launcher.open {
  width: 52px;
  padding: 0;
  justify-content: center;
}
.chat-launcher.open .chat-launcher-label { display: none; }
.chat-launcher-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--accent);
  animation: chatBadge 1.8s ease-in-out infinite;
}
@keyframes chatBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@media (max-width: 640px) {
  .chat-launcher { right: 12px; bottom: 12px; height: 48px; padding: 0 18px 0 14px; }
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: 0; width: 48px; justify-content: center; }
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 91;
  width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 110px));
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 0.5px var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .chat-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    max-height: calc(100vh - 60px);
    border-radius: 20px 20px 0 0;
    animation: chatSlideUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.05);
  }
  @keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--line);
  background: var(--bg-2);
}
.chat-head-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.1;
}
.chat-subtitle {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}
.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
  animation: pulse 2s ease-in-out infinite;
}
.chat-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 0.5px solid var(--line);
  color: var(--fg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.chat-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overscroll-behavior: contain;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  max-width: 88%;
}
.chat-msg-user { align-self: flex-end; }
.chat-msg-assistant { align-self: flex-start; }
.chat-bubble {
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-wrap: pretty;
}
.chat-msg-user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-msg-assistant .chat-bubble {
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  color: var(--fg);
  border-bottom-left-radius: 5px;
}
[data-theme="dark"] .chat-msg-assistant .chat-bubble { background: var(--bg); }

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
  animation: chatType 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatType {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-error {
  font-size: 13px;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border: 0.5px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.5;
}
[data-theme="dark"] .chat-error { color: #fca5a5; }

.chat-suggestions {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 0.5px dashed var(--line);
}
.chat-suggestions-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--mono);
}
.chat-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-suggestion {
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  color: var(--fg);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
[data-theme="dark"] .chat-suggestion { background: var(--bg); }
.chat-suggestion:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.chat-form {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-top: 0.5px solid var(--line);
  background: var(--bg-card);
}
.chat-input {
  flex: 1;
  background: var(--bg-2);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  outline: 0;
  transition: border-color 0.15s ease;
  min-width: 0;
}
[data-theme="dark"] .chat-input { background: var(--bg); }
.chat-input::placeholder { color: var(--fg-3); }
.chat-input:focus { border-color: var(--accent); }
.chat-input:disabled { opacity: 0.5; }

.chat-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chat-send:hover:not(:disabled) {
  transform: scale(1.05);
  background: var(--accent-dk);
}
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-disclaimer {
  font-size: 10px;
  color: var(--fg-3);
  text-align: center;
  padding: 8px 14px 12px;
  line-height: 1.4;
  font-weight: 300;
  background: var(--bg-card);
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
