/* Local AI Visibility Audit: strona główna. Ciemna paleta indygo–fiolet–cyan. */

@font-face {
  font-family: "Source Sans";
  src: url("fonts/SourceSansPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("fonts/SourceSansPro-It.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("fonts/SourceSansPro-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("fonts/SourceSansPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/SourceSerifPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/SourceSerifPro-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("fonts/SourceSerifPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #eef4ff;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --paper: #07101f;
  --card: rgba(9, 13, 28, 0.94);
  --card-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(14, 165, 233, 0.1) 55%, rgba(255, 255, 255, 0.03) 100%), rgba(9, 13, 28, 0.94);
  --gold: #6366f1;
  --gold-soft: rgba(99, 102, 241, 0.16);
  --gold-on-dark: #67e8f9;
  --soft: rgba(14, 19, 38, 0.68);
  --cream: #eef4ff;
  --focus: #67e8f9;
  --btn-bg: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0e7490 100%);
  --btn-bg-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #0f766e 100%);
  --btn-text: #ffffff;
  --header-h: 4.25rem;
  --wrap: 68rem;
  --prose: 40rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(99, 102, 241, 0.22), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.18), transparent 24%),
    radial-gradient(circle at 50% 42%, rgba(76, 29, 149, 0.14), transparent 34%),
    linear-gradient(180deg, #050816 0%, #091020 42%, #070b16 100%);
  color: var(--ink);
  font-family: "Source Sans", "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Source Serif", "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); margin-bottom: 1.15rem; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-bottom: 0.85rem; max-width: 18em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: #4f46e5;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.prose { max-width: var(--prose); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(5, 8, 22, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: "Source Serif", "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand span { display: block; font-size: 0.68rem; font-family: "Source Sans", sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.12rem; }

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
  color: var(--btn-text);
}
.btn-on-dark {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(238, 244, 255, 0.45);
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(238, 244, 255, 0.08);
  color: var(--cream);
  border-color: var(--cream);
}
.header-cta { flex-shrink: 0; padding: 0.55rem 0.9rem; font-size: 0.92rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 14% 16%, rgba(99, 102, 241, 0.2), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(6, 182, 212, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.96) 0%, rgba(7, 11, 22, 0.88) 100%);
  color: var(--cream);
  padding: 3.25rem 0 3.5rem;
}
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero .lead {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-on-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.mail-plain {
  color: var(--cream);
  font-weight: 600;
  text-decoration-color: var(--gold);
  word-break: break-word;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-lead {
  color: var(--ink-2);
  font-size: 1.15rem;
  max-width: var(--prose);
  margin-bottom: 1.75rem;
}

/* Problem */
.problem p { max-width: var(--prose); color: var(--ink-2); }
.problem p:first-of-type { font-size: 1.15rem; color: var(--ink); }

/* Audit cards */
.grid-2 {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.45rem;
  height: 100%;
}
.card h3 { margin-bottom: 0.65rem; }
.card p, .card li { color: var(--ink-2); }
.card ol,
.card ul {
  margin: 0.4rem 0 0.7rem;
  padding-left: 1.2rem;
}
.card li { margin: 0 0 0.4rem; }
.card li:last-child { margin-bottom: 0; }

/* How it works */
.steps {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}
.step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.3rem;
  height: 100%;
}
.step-num {
  font-family: "Source Serif", "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold);
  padding-top: 0.1rem;
}
.step h3 { margin: 0 0 0.4rem; }
.step p { color: var(--ink-2); }

.plan {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 1.4rem 1.35rem 1.5rem;
  max-width: 46rem;
}
.plan h3 { margin-bottom: 0.55rem; }
.plan p { color: var(--ink-2); margin-bottom: 0.9rem; }
.plan ol,
.plan ul {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
}
.plan li { margin: 0 0 0.75rem; color: var(--ink-2); }
.plan li:last-child { margin-bottom: 0; }
.plan li strong { color: var(--ink); font-weight: 700; display: inline; }
.note {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Guarantee */
.guarantee-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem 1.65rem;
  max-width: 46rem;
}
.guarantee-box p { color: var(--ink-2); }
.guarantee-box .yes {
  color: var(--ink);
  font-size: 1.12rem;
  margin-bottom: 1rem;
}
.guarantee-box .no { margin-bottom: 0; }

/* Contact */
.contact {
  background:
    radial-gradient(circle at 14% 16%, rgba(99, 102, 241, 0.2), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(6, 182, 212, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.96) 0%, rgba(7, 11, 22, 0.88) 100%);
  color: var(--cream);
  padding: 3.5rem 0;
  border-top: 0;
}
.contact h2 { color: var(--cream); }
.contact p { color: #cbd5e1; max-width: 36rem; }
.vcard {
  margin-top: 1.75rem;
}
.vcard .who {
  font-family: "Source Serif", "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 0.2rem;
}
.vcard .role {
  color: var(--gold-on-dark);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.vcard a {
  color: var(--cream);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration-color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
}
.site-footer strong { color: var(--ink-2); font-weight: 600; }

@media (max-width: 639px) {
  .kicker { letter-spacing: 0.1em; }
  .header-cta { padding: 0.5rem 0.8rem; }
}
@media (min-width: 640px) {
  .wrap { width: min(calc(100% - 3rem), var(--wrap)); }
  .hero { padding: 4.25rem 0 4.5rem; }
  .section { padding: 4.25rem 0; }
  .contact { padding: 4.25rem 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .nav { display: flex; }
}

@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.25rem; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { backdrop-filter: none; }
}
