/* DewiMax — system stylów */

:root {
  /* Kolory bazowe: granat + turkus, zgodnie z pierwotną identyfikacją DewiMax */
  --ink: #0f2838;
  --ink-soft: #1c3a4d;
  --ink-muted: #56636c;
  --ink-faint: #5f6b73;

  --paper: #f5f8f8;
  --paper-alt: #eef3f3;
  --card: #ffffff;

  --gold: #00a8a8;
  --gold-soft: #4dd6d6;
  --gold-deep: #017373;

  --emerald: #017373;
  --emerald-deep: #014f4f;
  --emerald-soft: #e0f5f5;

  --line: rgba(15, 40, 56, 0.1);
  --line-soft: rgba(15, 40, 56, 0.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow: 0 10px 30px rgba(15, 40, 56, 0.07);
  --shadow-hover: 0 20px 48px rgba(15, 40, 56, 0.13);
  --shadow-deep: 0 30px 70px rgba(15, 40, 56, 0.22);

  --max-width: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 128px 0; position: relative; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

.font-display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

h1, h2.section-title, .final-cta h2, .family-banner h2, .contact-info h2, .price-new {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

h1 em, h2.section-title em, .contact-info h2 em, .family-banner h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

h2.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 18px;
  font-weight: 500;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}

p.section-lead {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 0 56px;
}
.section-head p.section-lead { margin-bottom: 0; }

.numeral, .price-new, .price-old, .mock-row .value, .stat-num, .step .num, .problem-card .num, .feature-card .num, .value-card .num {
  font-variant-numeric: tabular-nums;
}

/* Eyebrow label — styl "oznaczenia rysunku technicznego" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
}

/* Subtelna siatka planu architektonicznego w tle */
.blueprint-bg {
  position: absolute;
  inset: -40px 0 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,29,39,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,29,39,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 88%);
  mask-image: linear-gradient(180deg, black, transparent 88%);
  z-index: 0;
  will-change: transform;
}
.stats .blueprint-bg,
.final-cta .blueprint-bg {
  background-image:
    linear-gradient(rgba(247,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,238,0.05) 1px, transparent 1px);
}

/* Pasek postępu ładowania strony */
.load-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  pointer-events: none;
  animation: loadBar 0.9s var(--ease) forwards;
}
@keyframes loadBar {
  0% { transform: scaleX(0); opacity: 1; }
  75% { transform: scaleX(0.9); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .load-bar { display: none; }
}

/* Znaczniki narożne (jak na rysunkach technicznych) */
.corner-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.5;
}
.corner-mark::before, .corner-mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.corner-mark::before { width: 100%; height: 1px; top: 0; left: 0; }
.corner-mark::after { width: 1px; height: 100%; top: 0; left: 0; }
.corner-mark.tl { top: 28px; left: 24px; }
.corner-mark.tr { top: 28px; right: 24px; }
.corner-mark.tr::before { right: 0; left: auto; }
.corner-mark.tr::after { right: 0; left: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn:disabled { cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--ink); transform: none; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 20px rgba(16,29,39,0.16); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 20px rgba(16,29,39,0.16);
}
.btn-primary:hover { background: var(--ink-soft); box-shadow: 0 12px 28px rgba(16,29,39,0.22); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 29, 39, 0.18);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(16,29,39,0.03); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.18); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(1,115,115,0.3); }

.btn-block { width: 100%; }

.btn.is-loading, .btn.is-done {
  cursor: default;
  opacity: 1;
  padding-left: 44px;
}
.btn.is-loading::before {
  content: "";
  position: absolute;
  left: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(247,244,238,0.35);
  border-top-color: var(--paper);
  animation: btnSpin 0.7s linear infinite;
}
.btn.is-done::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--gold-soft);
  font-weight: 700;
  animation: doneIn 0.3s var(--ease);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
@keyframes doneIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before { animation: none; }
  .btn.is-done::before { animation: none; }
}

/* Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
header.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(16,29,39,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}
.logo .dewi { color: var(--ink); }
.logo .max { color: var(--gold-deep); font-style: italic; }

nav.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.main-nav a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold-deep);
  transition: right 0.3s var(--ease);
}
nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a:hover::after, nav.main-nav a[aria-current="page"]::after { right: 0; }
nav.main-nav a[aria-current="page"] { color: var(--ink); }
nav.main-nav a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 2px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Hero */
.hero {
  padding: 80px 0 96px;
  background: var(--paper);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-inner > * { animation: heroIn 0.5s var(--ease) both; }
.hero-inner > *:last-child { animation-delay: 0.06s; }
@keyframes heroIn {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner > * { animation: none; }
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.1;
  margin-bottom: 26px;
  font-weight: 500;
}
.hero h1 .accent { color: var(--gold-deep); font-style: italic; font-weight: 500; }
.hero p.lead {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }
.hero-note strong { color: var(--ink); font-family: "JetBrains Mono", monospace; font-weight: 500; white-space: nowrap; }
.hero-note .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); margin-right: 10px; vertical-align: middle; }

.hero-visual {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: 30px;
  border: 1px solid var(--line-soft);
  position: relative;
  transform: rotate(0.6deg);
  transition: transform 0.6s var(--ease);
}
.hero-visual:hover { transform: rotate(0deg) translateY(-4px); }
.hero-visual .mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.mock-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.mock-tag:first-child { color: var(--ink); font-weight: 600; }
.mock-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  opacity: 0;
  animation: rowIn 0.5s var(--ease) forwards;
}
.mock-row:nth-child(1) { animation-delay: 0.15s; }
.mock-row:nth-child(2) { animation-delay: 0.3s; }
.mock-row:nth-child(3) { animation-delay: 0.45s; }
.mock-row:nth-child(4) { animation-delay: 0.6s; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.mock-row:last-of-type { border-bottom: none; }
.mock-row .label { color: var(--ink-muted); }
.mock-row .value { font-weight: 600; font-family: "JetBrains Mono", monospace; font-size: 13.5px; }
.mock-row .value.pos { color: var(--emerald); }
.mock-total {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-total .num { font-size: 26px; font-weight: 600; color: var(--paper); font-family: "Fraunces", serif; }
.mock-total .sub { font-size: 12.5px; color: rgba(247,244,238,0.6); }
.mock-total > div:first-child .sub { color: rgba(247,244,238,0.6); margin-bottom: 2px; }
.mock-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
  margin-top: 14px;
}
.mock-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: 100px;
  width: 0;
  transition: width 1.4s var(--ease) 0.3s;
}
.hero-visual.in-view .mock-bar .fill { width: var(--fill, 68%); }

/* Pasek pozycjonowania odbiorcy */
.for-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.for-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.for-strip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.for-strip p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.for-strip strong { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 640px) {
  .for-strip-inner { flex-direction: column; gap: 8px; }
}

/* Reveal-on-scroll — ukryte tylko gdy JS faktycznie działa (patrz html.js w script.js) */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Problem section */
.problem { background: var(--card); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.problem-card {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0;
  transition: padding-left 0.35s var(--ease);
}
.problem-card:hover { padding-left: 6px; }
.problem-card .num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
}
.problem-card h3 { font-size: 18px; margin-bottom: 9px; font-weight: 600; }
.problem-card p { margin: 0; color: var(--ink-muted); font-size: 15px; max-width: 44ch; }

/* Features */
.features { background: var(--paper); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--card);
  padding: 34px 30px;
  transition: background 0.3s var(--ease-soft);
  position: relative;
}
.feature-card:hover { background: #fffdf8; }
.feature-card.featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card.featured:hover { background: var(--ink-soft); }
.feature-card.featured .num { color: var(--gold-soft); }
.feature-card.featured p { color: rgba(247,244,238,0.7); }
.feature-card.featured .badge { color: var(--gold-soft); }
.feature-card .num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18.5px; margin-bottom: 11px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.feature-card .badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
}

/* Stats */
.stats { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.stats .eyebrow { color: var(--gold-soft); }
.stats .eyebrow::before { background: var(--gold-soft); }
.stats h2 { color: var(--paper); }
.stats p.section-lead { color: rgba(247,244,238,0.62); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 8px;
}
.stat-card { border-left: 1px solid rgba(247,244,238,0.15); padding-left: 22px; }
.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--paper);
}
.stat-num .suffix { font-size: 0.5em; color: var(--gold-soft); font-family: "Inter", sans-serif; font-weight: 600; }
.stat-label { color: rgba(247,244,238,0.6); font-size: 14.5px; margin-top: 10px; max-width: 22ch; }

/* How it works */
.steps { background: var(--card); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.step {
  position: relative;
  padding: 0 28px 0 0;
  z-index: 1;
}
.step .num {
  font-family: "Fraunces", serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--paper);
  -webkit-text-stroke: 1.3px var(--gold-deep);
  margin-bottom: 16px;
  display: inline-block;
  background: var(--card);
  padding-right: 12px;
}
.step h3 { font-size: 18.5px; margin-bottom: 9px; font-weight: 600; }
.step p { color: var(--ink-muted); margin: 0; font-size: 15px; max-width: 32ch; }

/* Pricing */
.pricing { background: var(--paper); }
.pricing-wrap { display: flex; justify-content: center; }
.pricing-wrap--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.price-card {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 52px;
  max-width: 580px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.pricing-wrap--duo .price-card { max-width: none; display: flex; flex-direction: column; }
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.price-card .plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-soft); font-weight: 700; margin-bottom: 18px; font-family: "JetBrains Mono", monospace; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.price-old { font-size: 22px; color: rgba(255,255,255,0.38); text-decoration: line-through; font-family: "JetBrains Mono", monospace; white-space: nowrap; }
.price-new { font-size: 52px; font-weight: 500; white-space: nowrap; }
.price-period { color: rgba(255,255,255,0.55); font-size: 15px; white-space: nowrap; }
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--gold-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.price-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(1,115,115,0.25); }

.price-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
}
.price-countdown-label { font-size: 12px; color: rgba(255,255,255,0.6); }
.price-countdown-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.price-trial {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.price-features { display: grid; gap: 15px; margin-bottom: 36px; }
.pricing-wrap--duo .price-features { flex-grow: 1; }
.price-features li { display: flex; gap: 12px; font-size: 15px; align-items: flex-start; }
.price-features li .check { color: var(--gold-soft); font-weight: 700; flex-shrink: 0; font-family: "JetBrains Mono", monospace; }
.price-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Wariant Plan Light — jaśniejsza karta dla inwestora indywidualnego */
.price-card--light {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.price-card--light .plan-name { color: var(--gold-deep); }
.price-card--light .price-old { color: var(--ink-faint); }
.price-card--light .price-period { color: var(--ink-muted); }
.price-card--light .price-badge { color: var(--gold-deep); }
.price-card--light .price-countdown {
  background: var(--paper);
  border-color: var(--line);
}
.price-card--light .price-countdown-label { color: var(--ink-muted); }
.price-card--light .price-countdown-value { color: var(--gold-deep); }
.price-card--light .price-trial {
  color: var(--ink-muted);
  border-bottom-color: var(--line);
}
.price-card--light .price-features li { color: var(--ink-soft); }
.price-card--light .price-features li .check { color: var(--gold-deep); }

.pricing-note {
  text-align: center;
  max-width: 680px;
  margin: 36px auto 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Contact / booking */
.contact { background: var(--card); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: flex-start;
}
.contact-info h2 { margin-bottom: 22px; font-weight: 500; }
.contact-info > p { color: var(--ink-muted); font-size: 17px; margin-bottom: 32px; }
.contact-points { display: grid; gap: 22px; margin-bottom: 40px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.contact-points .icon { color: var(--gold-deep); font-weight: 800; font-family: "JetBrains Mono", monospace; }

.contact-formats {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-formats h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 16px;
}
.format-list { display: flex; flex-wrap: wrap; gap: 10px; }
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.format-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.format-chip.meet .dot { background: #1a9e5c; }
.format-chip.teams .dot { background: #5059c9; }
.format-chip.zoom .dot { background: #2d8cff; }
.format-chip.phone .dot { background: var(--gold-deep); }
.format-chip.onsite .dot { background: var(--emerald); }

form.booking-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
}

fieldset.form-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding: 0;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-options .pill {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-options .pill:hover { border-color: var(--ink-faint); }
.pill-options input:checked + .pill {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pill-options input:focus-visible + .pill {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
.pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  background: var(--card);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,168,168,0.15);
}
.form-note { font-size: 13px; color: var(--ink-muted); }
.form-success {
  display: none;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* Final CTA */
.final-cta {
  background: var(--ink);
  color: white;
  text-align: center;
  overflow: hidden;
}
.final-cta h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; font-weight: 500; }
.final-cta p { color: rgba(247,244,238,0.68); font-size: 17px; max-width: 560px; margin: 0 auto 36px; }
.final-cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer.site-footer {
  background: var(--paper-alt);
  padding: 64px 0 30px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--emerald)) 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.footer-brand p { color: var(--ink-muted); max-width: 280px; margin-top: 16px; font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h2, .footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--gold-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* About page specific */
.about-hero { padding-bottom: 44px; }
.about-hero .container { max-width: 820px; }
.about-story { background: var(--card); }
.about-story .container { max-width: 780px; }
.about-story p { font-size: 18px; color: var(--ink-soft); margin-bottom: 24px; }
.about-story p.lead-strong { font-size: 22px; font-weight: 500; color: var(--ink); font-family: "Fraunces", serif; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.value-card {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
}
.value-card .num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
}
.value-card h3 { font-size: 17.5px; margin-bottom: 9px; font-weight: 600; }
.value-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.family-banner {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.family-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.family-banner h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 18px; font-weight: 500; }
.family-banner p { color: rgba(247,244,238,0.72); max-width: 620px; margin: 0 auto; font-size: 17px; }

/* Team section */
.team { background: var(--paper); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-c, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.team-card:hover::before { transform: scaleX(1); }

.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  background: var(--accent-c, var(--gold));
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease);
  position: relative;
}
.team-card:hover .team-avatar { transform: scale(1.06); }
.team-avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent-c, var(--gold));
  opacity: 0.35;
  transition: opacity 0.4s var(--ease), inset 0.4s var(--ease);
}

/* Wariant 1 — "precyzyjny obrót": awatar delikatnie się przechyla, jak wskazówka na rysunku technicznym */
.team-card--tilt:hover .team-avatar { transform: scale(1.08) rotate(-6deg); }

/* Wariant 2 — "puls": pierścień wokół awatara pulsuje na zewnątrz, sygnalizując "żywe" dane */
.team-card--pulse .team-avatar::after { animation: none; }
.team-card--pulse:hover .team-avatar::after {
  animation: avatarPulse 1.4s var(--ease) infinite;
}
@keyframes avatarPulse {
  0% { inset: -5px; opacity: 0.45; }
  70% { inset: -12px; opacity: 0; }
  100% { inset: -12px; opacity: 0; }
}

/* Wariant 3 — "sekwencja": ikony kontaktowe unoszą się kolejno, jak kroki automatyzacji */
.team-card--stagger:hover .team-links a {
  transform: translateY(-3px);
}
.team-card--stagger:hover .team-links a:nth-child(1) { transition-delay: 0ms; }
.team-card--stagger:hover .team-links a:nth-child(2) { transition-delay: 60ms; }
.team-card--stagger:hover .team-links a:nth-child(3) { transition-delay: 120ms; }
.team-card--stagger:hover .team-links a:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .team-card--pulse:hover .team-avatar::after { animation: none; }
}

.team-name { font-size: 19px; font-weight: 600; margin-bottom: 18px; }

.team-phone {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 14px;
}
.team-phone-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.team-phone-value {
  color: var(--ink-muted);
  font-style: italic;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1px;
}

.team-links {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.team-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.team-links a:hover {
  background: var(--accent-c, var(--gold));
  border-color: var(--accent-c, var(--gold));
  color: #fff;
  transform: translateY(-3px);
}
.team-links svg { width: 16px; height: 16px; }

/* Magnetic button wrapper */
.magnetic { display: inline-block; }

/* Focus visibility globally */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .team-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .feature-card.featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .problem-grid, .features-grid, .steps-grid, .values-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; }
  .steps-grid::before { display: none; }
  nav.main-nav, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  section { padding: 76px 0; }
  .price-card { padding: 36px; }
  .pricing-wrap--duo { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .family-banner { padding: 40px 28px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { transform: none; padding: 22px; }
  section { padding: 60px 0; }
  .price-card { padding: 28px 22px; }
}

body.nav-open nav.main-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  box-shadow: var(--shadow-hover);
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
body.nav-open nav.main-nav ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
body.nav-open nav.main-nav a::after { display: none; }

/* Komunikat "strona w budowie" */
.site-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 40, 56, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-notice-backdrop[hidden] { display: none; }
.site-notice-backdrop.show { opacity: 1; }

.site-notice {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 44px 40px 36px;
  box-shadow: var(--shadow-deep);
  text-align: left;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s var(--ease);
  overflow: hidden;
}
.site-notice::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.site-notice-backdrop.show .site-notice { transform: translateY(0) scale(1); }
.site-notice .eyebrow { margin-bottom: 14px; }
.site-notice h2 {
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 500;
  margin-bottom: 14px;
}
.site-notice p {
  color: var(--ink-muted);
  font-size: 15.5px;
  margin: 0 0 26px;
}
.site-notice-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}
.site-notice-close:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-faint); }
.site-notice-close svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .site-notice-backdrop, .site-notice { transition: none; }
}

@media (max-width: 560px) {
  .site-notice { padding: 36px 26px 28px; }
}

/* Strona błędu 404 */
.not-found {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: var(--paper);
}
.not-found-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  text-align: center;
  margin: 0 auto;
}
.not-found-num {
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  opacity: 0.7;
  margin-bottom: 8px;
}
.not-found h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.not-found h1 em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.not-found .lead {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 32px;
}
.not-found-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
