:root{
  --c-white: #F7FCFE;
  --c-pure-white: #FFFFFF;
  --c-text: #3A343C;
  --c-muted: #6E6A73;
  --c-accent: #00A89D;
  --c-accent-hover: #27C3B8;
  --c-highlight: #D72638;
  --c-highlight-hover: #E84C57;
  --c-dark-bg: #121314;
  --c-dark-line: #1E1F21;
  --c-dark-card: #1A1B1D;
  --c-dark-muted: #999CA1;
  --c-dark-input: #222325;
  --c-mono-yellow: #ffd300;
  --c-mono-yellow-hover: #ffdf40;
  --c-mono-bg: #f5f5f5;
  --c-mono-card: #eeeeee;
  --c-mono-text: #212121;
  --c-mono-muted: #757575;
  --c-ocean-blue: #0077b6;
  --c-ocean-blue-hover: #0096c7;
  --c-forest-green: #40916c;
  --c-forest-green-hover: #52b788;
  --c-dusk-purple: #5a189a;
  --c-dusk-purple-hover: #7b2cbf;

  --bg: var(--c-white);
  --fg: var(--c-text);
  --line: var(--c-white);
  --card: var(--c-white);
  --accent: var(--c-accent);
  --accent-hover: var(--c-accent-hover);
  --highlight: var(--c-highlight);
  --highlight-hover: var(--c-highlight-hover);
  --muted: var(--c-muted);
  --input-bg: var(--c-pure-white);
}

html.dark {
  --bg: var(--c-dark-bg);
  --fg: var(--c-white);
  --line: var(--c-dark-line);
  --card: var(--c-dark-card);
  --muted: var(--c-dark-muted);
  --input-bg: var(--c-dark-input);
}

html.mono {
  --bg: var(--c-mono-bg);
  --fg: var(--c-mono-text);
  --line: var(--c-mono-card);
  --card: var(--c-mono-card);
  --accent: var(--c-mono-yellow);
  --accent-hover: var(--c-mono-yellow-hover);
  --highlight: var(--c-mono-text);
  --highlight-hover: var(--c-mono-text);
  --muted: var(--c-mono-muted);
  --input-bg: var(--c-pure-white);
}

html.ocean {
  --accent: var(--c-ocean-blue);
  --accent-hover: var(--c-ocean-blue-hover);
}

html.forest {
  --accent: var(--c-forest-green);
  --accent-hover: var(--c-forest-green-hover);
}

html.dusk {
  --accent: var(--c-dusk-purple);
  --accent-hover: var(--c-dusk-purple-hover);
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--fg);
  font: 16px/1.5 'General Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 165px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background-color: var(--bg);
  transition: opacity 0.5s ease-in-out, background-color 0.3s ease;
}

.hero.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease-out;
}

.hero-logo.is-hidden {
  opacity: 0;
}

.hero-content {
  max-width: 650px;
  padding-top: 100px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.scroll-down-arrow {
  display: inline-block;
  margin-top: 48px;
  color: var(--fg);
  animation: bounce 2s infinite ease-in-out;
}

.scroll-down-arrow svg {
  width: 32px;
  height: 32px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.content-section {
  padding: 80px 0;
  border-top: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
  transition: border-color 0.3s ease;
}

.content-section:first-of-type {
  border-top: none;
  padding-top: 40px;
}

.card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--fg) 5%, transparent);
  margin-top: 80px;
  margin-bottom: 80px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.card h2 { margin-top: 0; color: var(--fg); }

.intro-risk, .how-it-works-steps, .how-it-works-demo, [aria-labelledby="offer"], .faq-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-risk, .how-it-works-steps, .how-it-works-demo, [aria-labelledby="offer"], .faq-section {
  text-align: center;
}

[aria-labelledby="offer"] ul, [aria-labelledby="offer"] p:not(.badge-highlight) {
  text-align: left;
}

.intro-risk {
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.2s ease-out, border-color 0.2s ease-out;
  margin-top: 40px;
}

.intro-risk:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}

@media(min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.intro-grid h3 {
  margin-top: 0;
}

.intro-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.intro-grid .highlight {
  font-weight: 600;
}

.intro-grid a {
  color: var(--highlight);
}
.intro-grid a:hover {
  color: var(--highlight-hover);
}

.intro-risk .button-like {
  margin-top: 32px;
}

.section-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.how-it-works-steps {
  border-top: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media(min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
  transition: background-color 0.3s ease;
}

.step-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  text-align: left;
}

.showcase-container {
  text-align: left;
  margin-top: 64px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  gap: 24px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
}

.benefit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  transition: background-color 0.3s ease;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

[aria-labelledby="offer"] .button-like {
  margin-top: 32px;
}

label { display: block; margin: 12px 0; }
label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--fg);
  border: 1px solid var(--line);
  outline: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media(min-width:640px){.grid{grid-template-columns:1fr 1fr}}

button, .button-like {
  display: inline-block;
  appearance: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--c-white);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid var(--accent);
  text-align: center;
}
button:hover, .button-like:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--c-white);
}
button:focus-visible, .button-like:focus-visible {
  outline: 3px solid color-mix(in oklab,var(--accent) 40%, transparent);
  outline-offset: 2px;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.scrolled .banner {
  background-color: var(--bg);
  border-bottom-color: color-mix(in oklab, var(--fg) 10%, transparent);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-btn, .theme-btn {
  margin-top: 0;
  padding: 0 18px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background-color: color-mix(in oklab, var(--fg) 8%, transparent);
  border-radius: 999px;
}

.lang-switcher a {
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.lang-switcher a.lang-active {
  background-color: var(--card);
  color: var(--fg);
}

.logo-block { display: flex; flex-direction: column; }
.logo { display: block; height: 64px; width: auto; }
.dark-logo { display: none; }
html.dark .light-logo, html.mono .light-logo { display: block; }
html.dark .dark-logo, html.mono .dark-logo { display: none; }
@media(min-width:768px){ .logo { height: 80px; } }

.sub {
  color: var(--fg);
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
}
header .sub { margin-left: 0px; color: var(--fg); }

.theme-btn {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in oklab, var(--fg) 25%, transparent);
}
.theme-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.product-table {
  width: auto;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.product-table th, .product-table td {
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  padding: 10px 12px;
  text-align: left;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}
.product-table th {
  font-size: 13px;
  color: var(--muted);
}
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}
.status-badge.status-wolne {
  background-color: color-mix(in oklab, var(--c-forest-green) 15%, transparent);
  color: var(--c-forest-green);
}
.status-badge.status-rezerwacja {
  background-color: color-mix(in oklab, var(--c-mono-yellow) 25%, transparent);
  color: color-mix(in oklab, var(--c-mono-yellow) 90%, black);
}
html.dark .status-badge.status-rezerwacja {
  color: var(--c-mono-yellow);
}
.status-badge.status-sprzedane {
  background-color: color-mix(in oklab, var(--c-highlight) 15%, transparent);
  color: var(--c-highlight);
}


.price-cell {
  position: relative;
  cursor: help;
  font-weight: 600;
}
.price-cell span {
  display: inline-block;
  padding-right: 18px;
}
.price-cell::after {
  content: 'ⓘ';
  font-size: 11px;
  color: var(--muted);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  transition: opacity 0.2s;
  pointer-events: none;
}
.price-cell:hover::after {
  opacity: 1;
}

.price-flash-up {
  animation: flash-up 1s ease-out;
}
.price-flash-down {
  animation: flash-down 1s ease-out;
}
@keyframes flash-up {
  0% { background-color: color-mix(in oklab, var(--c-forest-green) 30%, transparent); }
  100% { background-color: transparent; }
}
@keyframes flash-down {
  0% { background-color: color-mix(in oklab, var(--c-highlight) 25%, transparent); }
  100% { background-color: transparent; }
}

#price-tooltip {
  position: absolute;
  display: none;
  background-color: var(--card);
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: 12px;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--fg) 5%, transparent);
  padding: 12px;
  width: 280px;
  z-index: 1001;
  font-size: 13px;
  pointer-events: none;
}
#price-tooltip h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--fg);
}
#price-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#price-tooltip li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 5%, transparent);
}
#price-tooltip li:last-child {
  border-bottom: none;
}
#price-tooltip li span:first-child {
  color: var(--fg);
  font-weight: 600;
}
#price-tooltip .lowest-price {
  color: var(--c-forest-green);
  font-weight: 600;
}

.code-log {
  width: 100%;
  max-width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  height: calc(10 * 1.45em + 28px);
  white-space: pre-wrap;
  background-color: var(--line);
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: 12px;
  padding: 14px;
  line-height: 1.45;
  overflow: hidden;
  color: var(--accent);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

html.mono .code-log {
  background-color: var(--c-dark-bg);
  border-color: color-mix(in oklab, var(--c-white) 15%, transparent);
  color: var(--accent);
  text-shadow: 0 0 5px color-mix(in oklab, var(--accent) 50%, transparent);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.75);
}
html.mono .code-log::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.5;
}
.code-log span {
  display: block;
}
.code-log .log-info { color: var(--muted); }
.code-log .log-ok { color: var(--c-forest-green); }
.code-log .log-change { color: var(--accent); }
.code-log .log-error { color: var(--c-highlight); }

.faq-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 32px;
  text-align: left;
}

.faq-container details {
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
  padding: 16px 0;
  transition: border-color 0.3s ease;
}

.faq-container details:first-of-type {
  border-top: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
}

.faq-container summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-container summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease-in-out;
}

.faq-container details[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

details[open] .faq-content {
  grid-template-rows: 1fr;
}

.faq-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  padding-top: 8px;
  margin: 0;
  overflow: hidden;
}

.highlight { color: var(--highlight); }

.badge-highlight {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 8px;
}
html.dark .badge-highlight {
  color: var(--accent-hover);
}
html.mono .badge-highlight {
  color: var(--accent);
}

#status.error { color: var(--highlight); }
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in oklab,var(--highlight) 20%, transparent);
}
.small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  padding: 32px 0;
  border-top: 1px solid color-mix(in oklab, var(--fg) 8%, transparent);
  transition: border-color 0.3s ease;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
@media(max-width: 640px) {
  .small { flex-direction: column; justify-content: center; }
}

.easter-egg {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.easter-egg:hover {
  color: var(--accent);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.check input[type="checkbox"] {
  width: auto;
  transform: translateY(-2px);
  accent-color: var(--accent);
}

html.reduce-motion * {
  transition: none !important;
  animation: none !important;
}

html.dark button,
html.dark .button-like {
  background-color: color-mix(in oklab, var(--bg) 50%, var(--fg));
  color: var(--fg);
  border-color: color-mix(in oklab, var(--bg) 50%, var(--fg));
}

html.dark button:hover,
html.dark .button-like:hover {
  background-color: var(--accent);
  color: var(--c-white);
  border-color: var(--accent);
}

html.dark .theme-btn {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in oklab, var(--fg) 25%, transparent);
}

html.dark .theme-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

html.mono .button-like, html.mono button {
  color: var(--c-dark-bg);
}

html.mono button:hover, html.mono .button-like:hover {
  color: var(--c-dark-bg);
}

html.mono .theme-btn {
  color: var(--fg);
}
html.mono .theme-btn:hover {
  color: var(--bg);
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.how-it-works-demo h2 {
    text-align: center;
    margin-bottom: 32px;
}

.banner-logo-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.demo-intro-text {
  max-width: 600px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 16px auto 0;
}

.demo-button {
    margin-top: 32px;
}