/* Tokeny przeniesione z frontend/app/globals.css — te same wartości, bez
   Tailwinda. Zmiana koloru marki w panelu wymaga ręcznego powtórzenia tu. */

:root {
  color-scheme: light;

  --background: #f7f7f6;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --muted-foreground: #6b6b6b;
  --border: #e6e6e4;

  --primary: #f26a1b;
  --primary-foreground: #fbfbfb;
  --brand-soft: #ff8534;

  --radius: 1rem;

  --shadow-card:
    inset 0 1px 0 0 rgb(255 255 255 / 0.9),
    0 1px 1px rgb(37 37 37 / 0.05),
    0 4px 8px rgb(37 37 37 / 0.06),
    0 12px 28px rgb(37 37 37 / 0.10);
  --shadow-raised:
    inset 0 1px 0 0 rgb(255 255 255 / 0.9),
    0 2px 4px rgb(37 37 37 / 0.06),
    0 8px 16px rgb(37 37 37 / 0.08),
    0 24px 48px rgb(37 37 37 / 0.14);
}

html.dark {
  color-scheme: dark;

  --background: #16171b;
  --foreground: #fafafa;
  --card: #232428;
  --card-foreground: #fafafa;
  --muted-foreground: #b4b4b4;
  --border: rgb(255 255 255 / 10%);

  --primary: #ff8534;
  --primary-foreground: #232323;
  --brand-soft: #ff8534;

  --shadow-card:
    inset 0 1px 0 0 rgb(255 255 255 / 0.06),
    0 1px 2px rgb(0 0 0 / 0.4),
    0 4px 10px rgb(0 0 0 / 0.3),
    0 12px 28px rgb(0 0 0 / 0.35);
  --shadow-raised:
    inset 0 1px 0 0 rgb(255 255 255 / 0.08),
    0 2px 4px rgb(0 0 0 / 0.45),
    0 24px 48px rgb(0 0 0 / 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Nawigacja ------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.logo-mark {
  display: inline-block;
  width: 6.5rem;
  height: 2.3rem;
  background-color: var(--primary);
  -webkit-mask: url("logo.png") no-repeat center / contain;
  mask: url("logo.png") no-repeat center / contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
}

/* --- Przyciski --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: calc(var(--radius) * 0.8);
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-raised);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

/* --- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-glow {
  position: absolute;
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40rem;
  height: 40rem;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--primary) 18%, transparent), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 46rem;
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  margin: 0;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* --- Sekcje ogólnie -------------------------------------------------- */

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted-foreground);
  margin: 0;
}

/* --- Jak to działa --- */

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.steps-4 {
  grid-template-columns: repeat(2, 1fr);
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* --- Korzyści --- */

.benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.benefit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
}

.benefit-dot {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.5;
}

/* --- Cennik --- */

.pricing {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 44rem;
  margin: 0 auto;
}

.pricing-single {
  grid-template-columns: 1fr;
  max-width: 26rem;
}

.plan {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

/* --- Przełącznik miesięcznie/rocznie na karcie cennika --- */

.billing-switch {
  display: inline-flex;
  align-self: center;
  gap: 0.25rem;
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
  border-radius: 999px;
  padding: 0.25rem;
}

.switch-btn {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.switch-btn.is-active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-card);
}

.plan-note {
  margin: -0.5rem 0 0;
  font-size: 0.85rem;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price strong {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.plan li {
  display: flex;
  gap: 0.5rem;
}

.plan li::before {
  content: "•";
  color: var(--primary);
}

.plan .btn {
  margin-top: 0.25rem;
}

/* --- FAQ --- */

.faq {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* --- CTA końcowe --- */

.cta-final {
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

/* --- Stopka --- */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Responsywność --- */

@media (max-width: 720px) {
  .steps,
  .benefits,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  section {
    padding: 3rem 0;
  }
}
