/* ============================================================================
   sections.css - uklad i styl poszczegolnych sekcji strony.
   ============================================================================ */

/* Sekcja - wspolne odstepy (zmniejszone, zeby sekcje nie byly za rzadkie) */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section .container { max-width: var(--max); }
.section.problem, .features { background: var(--surface); }
/* Kazde bezposrednie dziecko sekcji trzymamy w kontenerze o stalej szerokosci
   i wysrodkowane - inaczej tresc (np. FAQ, lista wpisow) rozlewa sie na caly
   ekran. Nowe elementy w sekcji automatycznie dziedzicza to ograniczenie. */
.section > * {
  width: 100%; max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.hero h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 400; line-height: 1.18; }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75; color: var(--muted); margin-top: 1rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-visual img { width: 100%; height: auto; }

/* --- PROBLEM (before/after) --- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { padding: 1.8rem; }
.panel-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
/* Z OrderSpot - zielona obramowka; Bez OrderSpot - czerwona */
.after { border: 1.5px solid #a9791b; box-shadow: var(--shadow); }
.after .panel-label { background: #a9791b; color: #fff; }
.before { border: 1.5px solid #dc2626; }
.before .panel-label { background: #fee2e2; color: #dc2626; }
.panel ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.7rem; }
.panel li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.panel li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; }
.after li::before { background: #a9791b; }
.before li::before { background: #dc2626; }

/* --- FLOW (makiety aplikacji: telefon klienta + panel kelnera + kroki) --- */
.flow-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.flow-copy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.flow-copy article span { font-size: 0.85rem; font-weight: 700; color: var(--faint); }
.flow-copy article h3 { margin: 0.4rem 0; }
.flow-copy article p { color: var(--muted); font-size: 0.95rem; }

/* === Telefon: menu klienta (wiernie jak w aplikacji) === */
.phone-demo {
  width: 260px;
  border-radius: 32px;
  background: var(--black);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch { width: 90px; height: 22px; background: var(--black); border-radius: 0 0 14px 14px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: #f4f4f5; border-radius: 26px; overflow: hidden; }

.cust-header { background: var(--black); color: #fff; padding: 1.6rem 1rem 1rem; }
.table-badge { display: inline-block; background: rgba(255,255,255,0.2); color: #fff; font-size: 0.68rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); }
.cust-header strong { display: block; font-size: 1.05rem; margin-top: 0.5rem; }
.cust-header small { color: rgba(255,255,255,0.7); font-size: 0.7rem; font-family: var(--font-desc); }

.cust-cats { display: flex; gap: 0.28rem; padding: 0.6rem 0.5rem; overflow: hidden; background: #fff; }
.cust-cats span { display: inline-flex; align-items: center; line-height: 1; font-size: 0.62rem; font-weight: 600; padding: 0.34rem 0.5rem; border-radius: var(--radius-pill); background: #f4f4f5; color: var(--muted); white-space: nowrap; }
.cust-cats span.is-active { background: var(--black); color: #fff; }

.cust-item { display: flex; gap: 0.6rem; padding: 0.7rem; background: #fff; margin: 0 0.5rem 0.5rem; border-radius: 14px; box-shadow: var(--shadow-sm); }
.cust-item:first-of-type { margin-top: 0.5rem; }
.cust-item-text { flex: 1; min-width: 0; }
.cust-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: var(--radius-pill); padding: 0.1rem 0.45rem; margin-bottom: 0.2rem; }
.cust-item-text strong { display: block; font-size: 0.82rem; }
.cust-item-text small { display: block; color: var(--muted); font-size: 0.68rem; font-family: var(--font-desc); line-height: 1.3; }
.cust-item-text b { font-size: 0.8rem; display: inline-block; margin-top: 0.3rem; }
.cust-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #e4e4e7, #d4d4d8); flex-shrink: 0; overflow: hidden; background-size: cover; background-position: center; }
/* Prawdziwe zdjecia dan z konta testowego (baza) */
.cust-thumb.classic { background-image: url('../img/dish-classic-burger.jpg'); }
.cust-thumb.bacon { background-image: url('../img/dish-bacon-burger.jpg'); }
.cust-add { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--black); color: #fff; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; line-height: 1; }

.cust-bar { display: flex; gap: 0.5rem; padding: 0.6rem 0.5rem 0.8rem; }
.cust-call, .cust-cart { flex: 1; border: none; padding: 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; font-family: var(--font-main); cursor: pointer; }
.cust-call { background: var(--black); color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 2.1rem; transition: background 0.3s ease; }
/* Stan pokazywany w samym przycisku (bez dokladania elementow -> brak skoku) */
.cust-call > span[class^="cc-"] { display: none; align-items: center; gap: 0.3rem; white-space: nowrap; }
[data-flow-demo][data-state="idle"] .cust-call .cc-idle,
[data-flow-demo][data-state="done"] .cust-call .cc-idle { display: inline-flex; }
[data-flow-demo][data-state="called"] .cust-call .cc-called { display: inline-flex; }
[data-flow-demo][data-state="otw"] .cust-call .cc-otw { display: inline-flex; }
[data-flow-demo][data-state="called"] .cust-call,
[data-flow-demo][data-state="otw"] .cust-call { background: #a9791b; }
.call-dots { display: inline-flex; }
.call-dots span { animation: call-dot 1.2s infinite; }
.call-dots span:nth-child(2) { animation-delay: 0.2s; }
.call-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes call-dot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.cust-cart { background: var(--black); color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.cust-cart span { background: #fff; color: var(--black); border-radius: var(--radius-pill); padding: 0 0.4rem; font-size: 0.7rem; }

/* === Panel kelnera (zakladki + zamowienia + wezwania, jak w app) === */
.app-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.app-topbar { display: flex; align-items: center; gap: 0.5rem; background: var(--black); color: #fff; padding: 0.9rem 1.2rem; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: #f6d365; animation: pulse-dot 2s infinite; }
.app-topbar strong { font-size: 0.95rem; }
.app-topbar small { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-left: auto; }
/* Panel: sekcje Wezwania/Zamowienia (jak w aplikacji) */
.app-body { padding: 0.5rem 0 0.9rem; }
.app-sec-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.app-sec-head i { font-style: normal; font-size: 0.68rem; background: var(--line); color: var(--muted); border-radius: var(--radius-pill); padding: 0 0.45rem; }

/* Karty zamowien - biale, zaokraglone, z kolorowym lewym paskiem (jak w app) */
.order-card { display: flex; align-items: center; gap: 0.8rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 0.8rem 1rem; margin: 0 1rem 0.7rem; }
.order-card.new { border-left-color: #3b82f6; }
.order-card.ready { border-left-color: #f59e0b; }
.order-table { width: 46px; height: 46px; border-radius: 14px; background: var(--black); color: #fff; font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-body { flex: 1; min-width: 0; }
.order-head { display: flex; align-items: center; gap: 0.5rem; }
.order-head strong { font-size: 0.95rem; }
.order-status { font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); }
.order-status.new { background: #dbeafe; color: #1d4ed8; }
.order-status.ready { background: #fef3c7; color: #b45309; }
.order-body p { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.order-total { font-weight: 500; font-size: 0.9rem; flex-shrink: 0; align-self: center; }

/* Karta wezwania kelnera (animowana) - jak w panelu kelnera */
.wcall { display: flex; align-items: center; gap: 0.8rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid #dc2626; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 0.8rem 1rem; margin: 0 1rem 0.7rem; }
.wcall-num { width: 46px; height: 46px; border-radius: 14px; background: var(--black); color: #fff; font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wcall-info { flex: 1; min-width: 0; }
.wcall-info strong { display: block; font-size: 0.95rem; }
.wcall-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; min-height: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcall-btn { margin-left: auto; background: var(--black); color: #fff; border: none; border-radius: 12px; padding: 0.55rem 1rem; font-size: 0.85rem; font-weight: 700; font-family: var(--font-main); cursor: pointer; flex-shrink: 0; }

/* --- ANIMACJA FLOW: wezwanie -> "Ide" -> w drodze -> obsluzone --- */
/* Karta wezwania: miejsce zarezerwowane (visibility) - layout sie NIE rusza */
.wcall.demo { visibility: hidden; opacity: 0; transition: opacity 0.35s ease, border-color 0.35s ease; }
[data-flow-demo][data-state="called"] .wcall.demo,
[data-flow-demo][data-state="otw"] .wcall.demo,
[data-flow-demo][data-state="done"] .wcall.demo { visibility: visible; opacity: 1; }
[data-flow-demo][data-state="otw"] .wcall.demo { border-left-color: #f59e0b; }
[data-flow-demo][data-state="done"] .wcall.demo { border-left-color: #a9791b; }
[data-flow-demo][data-state="called"] .wcall.demo .wcall-num { animation: pulse-ring 1.1s ease-in-out infinite; }

/* Tekst statusu w karcie wezwania */
.wcall-sub span { display: none; }
[data-flow-demo][data-state="called"] .wcall-sub .s-called { display: inline; }
[data-flow-demo][data-state="otw"] .wcall-sub .s-otw { display: inline; color: #b45309; font-weight: 600; }
[data-flow-demo][data-state="done"] .wcall-sub .s-done { display: inline; color: #a9791b; font-weight: 600; }

/* Statyczne wezwanie (inny kelner juz obsluguje) */
.wcall.is-otw { border-left-color: #f59e0b; }
.wcall-sub--otw { color: #b45309; font-weight: 600; }

/* Przyciski Ide / Obsluzone - w karcie animowanej sterowane stanem */
.wcall.demo .wcall-btn { display: none; }
[data-flow-demo][data-state="called"] .wcall.demo .wcall-btn.b-called { display: inline-flex; }
[data-flow-demo][data-state="otw"] .wcall.demo .wcall-btn.b-otw { display: inline-flex; animation: tap 0.4s ease; }

@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.45); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) {
  .wcall.demo, .cust-call { transition: none; animation: none !important; }
  .wcall.demo .wcall-num { animation: none !important; }
}

/* --- OUTCOMES (efekty) --- */
.outcomes-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
/* Karty efektow ulozone pionowo (sa w polowie szerokosci layoutu - poziomo
   robilyby sie za waskie i tekst lamalby sie po slowie). */
.outcome-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.outcome-grid > * { padding: 1.4rem 1.6rem; }
.outcome-number { font-size: 1.7rem; font-weight: 500; display: inline-block; margin-right: 0.6rem; vertical-align: baseline; }
.outcome-grid h3 { font-size: 1.05rem; display: inline; }
.outcome-grid p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.outcomes-layout { align-items: stretch; }
.outcomes-photo { margin: 0; display: flex; }
.outcomes-photo img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.outcomes-copy p { color: var(--muted); margin-top: 0.8rem; }

/* --- PRICING (cennik) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; padding-top: 0.75rem; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s, border-color 0.25s;
}
/* Hover tylko dla zwyklych kart (Basic); Standard/Pro maja wlasne stany */
.plan:not(.plan-soon):not(.plan-featured):hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); }
/* Plan polecany (Standard) - lekko uniesiony */
.plan-featured { box-shadow: var(--shadow-sm); transform: none; z-index: 1; }
.plan-featured:hover { transform: none; }
/* Zlote obramowanie + subtelny zloty glow (statyczne, premium) */
.plan-gold { border-color: #e3c778; border-width: 1px; box-shadow: var(--shadow-sm); }
.plan.plan-gold:hover { border-color: #a9791b; box-shadow: var(--shadow); }
/* Zwykle "wkrotce" przygaszone; Pro (pelny ekosystem) - pelny kontrast */
.plan-soon { opacity: 0.85; background: var(--surface); }
.plan-soon.plan-pro { opacity: 1; background: var(--paper); }

.plan-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--line-soft); border: 1px solid var(--line);
  padding: 0.22rem 0.62rem; border-radius: var(--radius-pill);
}
/* Badge planu polecanego (trial) - kontrastowy */
.plan-badge.badge-trial { color: #fff; background: var(--black); border-color: var(--black); }

/* Etykieta nad nazwa: NA START / NAJPOPULARNIEJSZY / PELNY EKOSYSTEM */
.plan-label { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.plan-label--gold { color: #a9791b; }

.plan-head h3 { font-size: 1.5rem; font-weight: 500; line-height: 1; }
.plan-tagline { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; margin: 0.35rem 0 0; }

/* Cena - najwiekszy element karty */
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.9rem 0 0.7rem; flex-wrap: wrap; }
.plan-price strong { font-size: 2.7rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.plan-featured .plan-price strong { font-size: 2.95rem; }
.plan-per { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.plan-desc { color: var(--muted); font-size: 0.92rem; font-family: var(--font-desc); line-height: 1.5; }

.plan-features { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: 0.7rem; }
.plan-features li { position: relative; padding-left: 1.7rem; font-size: 0.93rem; color: var(--ink-soft); }
.plan-features li::before {
  content: ''; position: absolute; left: 0; top: 0.35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan-soon .plan-features li::before { background: var(--faint); }
.plan-pro .plan-features li::before { background: var(--ink); }

/* Ekosystem Pro: ikona + tytul + opis */
.plan-eco { list-style: none; padding: 0; margin: 0.2rem 0 1.4rem; display: grid; gap: 0.95rem; }
.plan-eco li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; align-items: start; }
.plan-eco-ic { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; overflow: hidden; color: var(--ink); flex-shrink: 0; }
.plan-eco-ic svg { width: 1.375rem; height: 1.375rem; max-width: 100%; max-height: 100%; flex-shrink: 0; }
.plan-eco > li > span:last-child { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.plan-eco strong { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 700; margin-bottom: 0.1rem; }

.plan-cta { width: 100%; margin-top: auto; }
.plan-cta[disabled] { cursor: not-allowed; opacity: 0.6; }

/* Pod cennikiem: oferta dla sieci (subtelna) */
.pricing-more {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 1.2rem 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.pricing-more strong { display: block; font-size: 1rem; color: var(--ink); }
.pricing-more span { color: var(--muted); font-size: 0.92rem; }
.pricing-more .button { flex-shrink: 0; }

/* --- FEATURES (funkcje) --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-grid > * { padding: 1.6rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feature-grid > *:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.feature-grid h3 { margin-bottom: 0.5rem; }
.feature-grid p { color: var(--muted); font-size: 0.95rem; }

/* --- PILOT --- */
.pilot .container { max-width: var(--max); }
.pilot-card {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 780px; margin-inline: auto;
}
.pilot-card h2 { color: #fff; }
.pilot-card p { color: rgba(255,255,255,0.7); margin: 1rem auto 2rem; max-width: 52ch; }
.pilot-card .button-primary { background: #fff; color: var(--black); }
.pilot-card .button-primary:hover { background: var(--line-soft); }

/* --- FAQ --- */
.faq .container { max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
  background: var(--paper);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0.9rem; font-family: var(--font-desc); }

/* --- CONTACT --- */
.contact { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--surface); }
/* Strona /kontakt: pojedyncza kolumna, wysrodkowana */
.contact > * {
  width: 100%; max-width: 640px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.contact > div { margin-bottom: 2rem; }
/* Strona glowna: dwie kolumny (tekst | karta formularza) */
.contact > .contact-layout {
  max-width: var(--max); margin-bottom: 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center;
}
.contact-copy { margin: 0; }
.contact-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin-top: 0.6rem; }
.contact-copy p { color: var(--muted); margin-top: 1rem; max-width: 48ch; }
@media (max-width: 860px) {
  .contact > .contact-layout { grid-template-columns: 1fr; max-width: 560px; gap: 1.6rem; }
}

/* ============================================================================
   RESPONSYWNOSC
   ============================================================================ */
/* Tablet: 3 karty ciasniej - mniejszy gap i padding */
@media (max-width: 1080px) {
  .pricing-grid { gap: 1.3rem; }
  .plan { padding: 1.5rem 1.3rem; }
  .plan-price strong { font-size: 2.4rem; }
  .plan-featured .plan-price strong { font-size: 2.55rem; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: 0; }
  .before-after, .outcomes-layout, .flow-layout { grid-template-columns: 1fr; }
  .flow-copy { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 1.6rem; }
  .plan { padding: 1.8rem 1.6rem; }
  .plan-featured, .plan-featured:hover { transform: none; }
  .plan-price strong { font-size: 2.7rem; }
  .plan-featured .plan-price strong { font-size: 2.9rem; }
  .pricing-more { max-width: 460px; margin-inline: auto; flex-direction: column; align-items: flex-start; }
  .pricing-more .button { width: 100%; }
  .phone-demo { margin-inline: auto; }
  /* na mobile zdjecie efektow jako baner, nie rozciagniete do wysokosci tekstu */
  .outcomes-photo img { height: 320px; max-height: 320px; }
}
/* Chowamy nav wczesniej - inaczej tloczy sie z logo i przyciskami */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .site-header .container { height: 64px; gap: 0.6rem; }
  /* Kontakt jest dostępny w rozwijanym menu. */
  .header-link { display: none; }
  .mobile-menu { display: block; }
  .header-login { font-size: 0.85rem; }
  /* Logowanie, rejestracja i menu pozostają widoczne. */
  .header-actions { gap: 0.6rem; margin-left: auto; }
  /* CTA wezsze + krotszy tekst; tekst wysrodkowany na przycisku. */
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.85rem; justify-content: center; text-align: center; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark img { width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  .lp-quick-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-copy { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; min-width: 0; white-space: normal; text-align: center; }
  /* Na telefonach sam znak marki zostawia miejsce na logowanie i menu. */
  .brand span:not(.brand-mark) { display: none; }
  .header-actions { gap: 0.45rem; }
  .nav-cta { padding-inline: 0.7rem; }
  .hero { padding-top: 1.5rem; gap: 1.5rem; }
  .hero-actions { margin-top: 1.25rem; }
}

/* Cennik: wybieralne pakiety — przycisk "Zaloz konto" tylko na wybranej karcie
   (JS dodaje .js-select). Bez JS wszystkie CTA widoczne (graceful degradation). */
.pricing-grid.js-select .plan { cursor: pointer; }
/* Przycisk CTA: plynne przejscia (fade przy wyborze + ladny hover z uniesieniem). */
.pricing-grid .plan-cta {
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s ease, opacity 0.25s ease, background 0.2s ease;
}
.pricing-grid .plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.4);
}
/* Przycisk ZAWSZE rezerwuje miejsce (brak skoku wysokosci) — chowamy go tylko wizualnie. */
.pricing-grid.js-select .plan:not(.is-selected) .plan-cta {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.pricing-grid.js-select .plan.is-selected:not(.plan-featured) {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
