/* =====================================================================
   WinSwift Studio – Global Design System & Stylesheet (v2.1 Mobile-Fixed)
   Modern Apple & Swift aesthetic, glassmorphism, refined responsive layout
   ===================================================================== */

:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: rgba(15, 23, 42, 0.08);

  --glass: rgba(255, 255, 255, 0.78);
  --glass-hi: rgba(255, 255, 255, 0.95);
  --edge: rgba(255, 255, 255, 0.9);
  --card-border: rgba(226, 232, 240, 0.85);

  --swift: #f05138;
  --swift-orange: #ed7130;
  --swift-gradient: linear-gradient(135deg, #f78a4e 0%, #ed7130 50%, #d85d20 100%);
  --swift-glow: rgba(237, 113, 48, 0.35);

  --blue: #0284c7;
  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.12);
  --chip: rgba(237, 113, 48, 0.09);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d16;
    --bg-subtle: #0f1523;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.65);

    --glass: rgba(18, 24, 38, 0.72);
    --glass-hi: rgba(28, 36, 56, 0.85);
    --edge: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.1);

    --chip: rgba(237, 113, 48, 0.15);
    --green-bg: rgba(34, 197, 94, 0.18);
  }
}

:root[data-theme="dark"] {
  --bg: #090d16;
  --bg-subtle: #0f1523;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.65);
  --glass: rgba(18, 24, 38, 0.72);
  --glass-hi: rgba(28, 36, 56, 0.85);
  --edge: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.1);
  --chip: rgba(237, 113, 48, 0.15);
  --green-bg: rgba(34, 197, 94, 0.18);
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  transition: color 0.15s ease;
}

:focus-visible {
  outline: 3px solid var(--swift-orange);
  outline-offset: 3px;
  border-radius: 10px;
}

/* --- Ambient Background Glow --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  max-width: 100vw;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.b1 { width: 680px; height: 680px; background: #f47735; top: -200px; left: -140px; }
.b2 { width: 540px; height: 540px; background: #38bdf8; top: 22%; right: -180px; opacity: 0.14; }
.b3 { width: 480px; height: 480px; background: #ea580c; bottom: -120px; left: 25%; opacity: 0.15; }
.b4 { width: 520px; height: 520px; background: #6366f1; top: 58%; left: -220px; opacity: 0.12; }

/* --- Glass Containers --- */
.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-hi), var(--glass) 70%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 20px 45px -20px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --- Navigation Bar --- */
nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 50;
  margin: 12px 0 0;
  padding: 10px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--edge);
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav {
    background: rgba(15, 21, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.5);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--swift-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 14px -3px var(--swift-glow);
  flex-shrink: 0;
}
.logo-light {
  font-weight: 400;
  color: var(--muted);
}
nav .sp { flex: 1; }
nav a.l {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
nav a.l:hover { color: var(--text); }
nav a.lg {
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--chip);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 13px;
  font: 600 15px var(--sans);
  text-decoration: none;
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--glass-hi);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.btn:hover {
  transform: translateY(-1.5px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn:active {
  transform: translateY(0);
}
.btn.pri {
  color: #ffffff !important;
  background: var(--swift-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px -6px var(--swift-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.pri:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 60%, #c2410c 100%);
  box-shadow: 0 12px 28px -6px rgba(237, 113, 48, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.sm {
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn {
    background: #1e2638;
    border-color: #334155;
    color: #f1f5f9;
  }
  :root:not([data-theme="light"]) .btn:hover {
    background: #28334a;
    border-color: #475569;
  }
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
  max-width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid rgba(237, 113, 48, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--swift-orange);
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--swift-orange);
  box-shadow: 0 0 0 0 rgba(237, 113, 48, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(237, 113, 48, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(237, 113, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 113, 48, 0); }
}

h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  word-break: break-word;
}
h1 span {
  background: var(--swift-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 32em;
  margin: 0 0 32px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-cta {
  font-size: 16px;
  padding: 14px 26px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.facts svg {
  width: 14px;
  height: 14px;
  stroke: var(--swift-orange);
  stroke-width: 3;
}

/* --- IDE Mockup (Desktop & Mobile Safe) --- */
.ide {
  overflow: hidden;
  background: #0d121c;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ide .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141b29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.bar .t {
  margin-left: 8px;
  font: 500 12.5px var(--sans);
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ide .body {
  display: grid;
  grid-template-columns: 140px 1.45fr 1fr;
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.side {
  padding: 12px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 12px var(--sans);
  color: #94a3b8;
  display: grid;
  gap: 2px;
  align-content: start;
  background: #0f1523;
  overflow: hidden;
}
.side b {
  color: #e2e8f0;
  padding: 4px 8px 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.side span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.side .on {
  background: rgba(237, 113, 48, 0.2);
  color: #fff;
  font-weight: 600;
}
.side i {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--swift-orange);
  flex-shrink: 0;
}
pre {
  margin: 0;
  padding: 18px 18px 22px;
  font: 13px/1.7 var(--mono);
  overflow-x: auto;
  white-space: pre;
  background: #0b0f17;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.k { color: #f472b6; font-weight: 600; }
.ty { color: #38bdf8; }
.s { color: #fb923c; }
.f { color: #4ade80; }
.a { color: #facc15; }
.n { color: #cbd5e1; }

.canvas {
  display: grid;
  place-items: center;
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #111726;
  min-width: 0;
}
.phone {
  width: 146px;
  aspect-ratio: 9 / 18.5;
  border-radius: 32px;
  background: #05070a;
  padding: 6px;
  box-shadow: 0 0 0 1.5px #334155, 0 20px 40px -10px rgba(0, 0, 0, 0.9);
  max-width: 100%;
}
.screen {
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.dynamic-island {
  position: absolute;
  top: 8px;
  width: 48px;
  height: 14px;
  border-radius: 999px;
  background: #000;
}
.screen b {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.screen button {
  font: 600 11.5px var(--sans);
  color: #fff;
  background: var(--swift-gradient);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--swift-glow);
  transition: transform 0.1s;
}
.screen button:active { transform: scale(0.95); }
.st {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 12px var(--sans);
  color: #94a3b8;
  background: #141b29;
}
.st i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 8px;
  box-shadow: 0 0 8px #22c55e;
}

/* --- Sections & Headings --- */
section { padding: 56px 0; max-width: 100%; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 8px 0; }
.section-heading .sub { margin: 0; }

h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
  word-break: break-word;
}
.sub {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 38em;
  margin: 0 0 32px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--swift-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--swift-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(237, 113, 48, 0.15);
  flex-shrink: 0;
}

/* --- Bento Grid / Features --- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 100%;
}
.card {
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  box-sizing: border-box;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.c4 { grid-column: span 4; }
.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.ic {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--swift-gradient);
  box-shadow: 0 8px 18px -4px var(--swift-glow);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
code.i {
  font: 13px var(--mono);
  background: var(--chip);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text);
}

/* =====================================================================
   --- Product Gallery (Responsive & Mobile-Stable) ---
   ===================================================================== */
.gallery-section { padding-top: 36px; max-width: 100%; }
.product-gallery {
  overflow: hidden;
  padding: 12px;
  border-radius: 22px;
  max-width: 100%;
  box-sizing: border-box;
}
.gallery-track {
  position: relative;
  background: #0d121d;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}
.gallery-slide {
  display: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.gallery-slide.is-active {
  display: block;
  animation: gallery-fade 0.25s ease-out;
}
@keyframes gallery-fade { from { opacity: 0.6; } to { opacity: 1; } }
.gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1366 / 720;
  object-fit: cover;
  background: #0d121d;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-slide figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
  color: #fff;
  background: #151c2c;
  min-height: 76px;
  box-sizing: border-box;
}
.gallery-slide figcaption b { font-size: 14.5px; font-weight: 700; color: #f8fafc; }
.gallery-slide figcaption span { font-size: 13px; color: #94a3b8; line-height: 1.45; }

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px 4px;
  max-width: 100%;
  box-sizing: border-box;
}
.gallery-dots, .gallery-arrows { display: flex; align-items: center; gap: 8px; }
.gallery-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.gallery-dot.is-active { width: 28px; background: var(--swift-orange); }
.gallery-arrows button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-hi);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-arrows button:hover {
  color: var(--swift-orange);
  border-color: var(--swift-orange);
}

/* --- Installation Steps --- */
.install-section-card { padding: 36px; max-width: 100%; box-sizing: border-box; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li {
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.steps b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* --- Pricing Section --- */
.buy {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
  align-items: stretch;
  max-width: 100%;
}
.price {
  padding: 38px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.highlight-card {
  border: 2px solid rgba(237, 113, 48, 0.4);
  box-shadow: 0 16px 48px -12px var(--swift-glow);
}
.popular-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--swift-gradient);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price .amt {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 12px 0 6px;
  color: var(--text);
}
.price .amt small {
  font-size: 24px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: -0.02em;
}
ul.tick {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
  font-size: 15px;
}
ul.tick li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
ul.tick svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  stroke: var(--swift-orange);
  stroke-width: 3;
  fill: none;
}
.pulse-btn {
  box-shadow: 0 10px 24px -6px var(--swift-glow);
}
.payment-methods-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 6px;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
}
.pay-badge.blik { border-color: #e11d48; color: #e11d48; }
.pay-badge.p24 { border-color: #0284c7; color: #0284c7; }
.payment-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

.limits { padding: 36px; box-sizing: border-box; }
.limits h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.limits ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.limits li {
  padding-left: 18px;
  position: relative;
}
.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--swift-orange);
}

/* --- FAQ --- */
.faq { padding: 8px 30px; box-sizing: border-box; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:last-child { border: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--swift-orange);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 48em;
}

/* --- Partners & Footer --- */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.partner {
  display: block;
  padding: 26px;
  text-decoration: none;
  transition: transform 0.15s;
  box-sizing: border-box;
}
.partner:hover { transform: translateY(-2px); }
.wm { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.wm em { font-style: normal; font-weight: 500; color: var(--muted); }
.partner p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

footer { padding: 32px 0 64px; color: var(--muted); font-size: 14px; }
footer .glass { padding: 36px; box-sizing: border-box; }
.fg {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.fg b { display: block; color: var(--text); font-size: 14px; margin-bottom: 12px; }
.fg a { display: block; text-decoration: none; margin: 8px 0; color: var(--muted); }
.fg a:hover { color: var(--text); }
.legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Profile & Dashboard Workspace --- */
.dash {
  max-width: 820px;
  margin: 36px auto 80px;
  display: grid;
  gap: 18px;
  box-sizing: border-box;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
.dash h1 { font-size: 32px; margin: 4px 0 0; letter-spacing: -0.03em; }

.celebrate-banner {
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.product-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cta-row { margin-top: 18px; }

.license-entry {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  margin-top: 14px;
  box-sizing: border-box;
}
.license-entry:first-of-type { margin-top: 0; }
.license-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.license-token-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  max-width: 100%;
}
.license-token {
  flex: 1;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #38bdf8;
  font: 600 14px/1.5 var(--mono);
  user-select: all;
  border: 1px solid rgba(56, 189, 248, 0.25);
  min-width: 0;
}
.trial-token { max-height: 96px; overflow: auto; }
.copy-btn {
  flex-shrink: 0;
  min-height: 44px;
}

.activation-quickguide {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.activation-quickguide ol {
  margin: 6px 0 0;
  padding-left: 20px;
}
.activation-quickguide li {
  margin-bottom: 4px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- Auth & Checkout Cards --- */
.auth {
  max-width: 460px;
  margin: 54px auto 84px;
  box-sizing: border-box;
}
.auth .card {
  padding: 36px;
}
.checkout-card {
  max-width: 540px;
  margin: 44px auto 84px;
  box-sizing: border-box;
}
.checkout-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.checkout-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--swift-orange);
  flex-shrink: 0;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.checkout-total strong { font-size: 26px; }
.checkout-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.checkout-benefits li {
  display: flex;
  gap: 8px;
}
.checkout-benefits li::before {
  content: "✓";
  color: var(--swift-orange);
  font-weight: 700;
}
.checkout-secure {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 18px 0 12px;
  border: 1px solid var(--line);
}
.checkout-secure strong { color: var(--text); }

/* --- Forms & Inputs --- */
.field {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--muted);
}
.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  font: 400 15.5px var(--sans);
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.15s;
  box-sizing: border-box;
}
.field input:focus {
  outline: none;
  border-color: var(--swift-orange);
  box-shadow: 0 0 0 3px rgba(237, 113, 48, 0.2);
  background: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field input:focus {
    background: #1e2638;
  }
}
.alt {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}
.muted { color: var(--muted); }

/* --- Alerts & Notifications --- */
.alert, .ok {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  margin: 0 0 18px;
  border: 1px solid transparent;
}
.alert {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}
.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.25);
}

/* --- Tables & Data Presentation --- */
.tw {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
}
.tag.paid, .tag.active {
  background: rgba(34, 197, 94, 0.16);
  color: #16a34a;
}
.tag.pending {
  background: rgba(237, 113, 48, 0.16);
  color: #ea580c;
}
.tag.cancelled, .tag.revoked {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

/* --- Admin Panel Workspace --- */
.admin-dash {
  max-width: 1160px;
  margin-top: 36px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat {
  padding: 22px 24px;
}
.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.admin-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.admin-orders { padding: 26px; }
.admin-orders h2 { font-size: 20px; margin: 0 0 16px; }
.admin-price-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 14px;
}
.admin-price-form .field { margin: 0; }
.admin-price-help {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-actions, .admin-license-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* =====================================================================
   --- Comprehensive Responsive Media Queries ---
   ===================================================================== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 32px;
  }
  .c4, .c2, .c3 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
  .buy, .fg, .partners, .profile-settings-grid, .admin-tools-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  nav a.l { display: none; }
  nav.app a.l { display: inline; }
  .ide .body { grid-template-columns: 1fr; min-width: 0; }
  .side { display: none; }
  .canvas {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 16px;
  }
}

@media (max-width: 768px) {
  .product-gallery {
    padding: 8px;
    border-radius: 18px;
  }
  .gallery-track {
    border-radius: 14px;
  }
  .gallery-slide img {
    border-radius: 14px 14px 0 0;
    aspect-ratio: 1366 / 720;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .gallery-slide figcaption {
    padding: 12px 14px;
    min-height: 72px;
  }
  .gallery-slide figcaption b {
    font-size: 13.5px;
  }
  .gallery-slide figcaption span {
    font-size: 12px;
    line-height: 1.45;
  }
  .gallery-controls {
    padding: 10px 6px 2px;
  }
  .gallery-arrows button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  nav {
    padding: 8px 12px;
    gap: 8px;
    margin-top: 8px;
    border-radius: 14px;
  }
  .logo {
    font-size: 15.5px;
    gap: 7px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 15px;
    border-radius: 8px;
  }
  nav a.lg {
    padding: 3px 8px;
    font-size: 12px;
  }
  nav .btn.sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 9px;
  }

  .hero {
    padding-top: 24px;
    gap: 24px;
  }
  .hero-badge {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: clamp(26px, 7.5vw, 36px);
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
  .facts {
    gap: 6px;
    margin-top: 20px;
  }
  .facts li {
    font-size: 12px;
    padding: 5px 10px;
  }

  .ide {
    border-radius: 16px;
  }
  .ide .bar {
    padding: 10px 12px;
  }
  .bar .t {
    font-size: 11.5px;
  }
  pre {
    font-size: 11.5px;
    line-height: 1.6;
    padding: 14px 12px;
  }
  .canvas {
    padding: 18px 12px;
  }
  .phone {
    width: 130px;
  }
  .st {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 8px 12px;
    font-size: 11px;
  }

  section {
    padding: 40px 0;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .sub {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .bento {
    gap: 12px;
  }
  .card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 14px;
  }
  .ic {
    width: 38px;
    height: 38px;
    padding: 8px;
    margin-bottom: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .install-section-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .price {
    padding: 26px 18px;
    border-radius: 16px;
  }
  .price .amt {
    font-size: 52px;
  }
  .price .amt small {
    font-size: 20px;
  }
  ul.tick {
    margin: 18px 0 22px;
    gap: 10px;
    font-size: 14px;
  }
  .limits {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .limits h3 {
    font-size: 18px;
  }
  .limits ul {
    gap: 10px;
    font-size: 13.5px;
  }

  .faq {
    padding: 4px 16px;
    border-radius: 16px;
  }
  .faq details {
    padding: 16px 0;
  }
  .faq summary {
    font-size: 15px;
  }
  .faq p {
    font-size: 14px;
  }

  .partner {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .wm {
    font-size: 19px;
  }
  footer .glass {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .fg {
    gap: 22px;
  }

  /* Profile & Checkout Mobile adjustments */
  .dash {
    margin: 20px auto 60px;
  }
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dash h1 {
    font-size: 26px;
  }
  .license-entry {
    padding: 16px 14px;
  }
  .license-token-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .copy-btn {
    width: 100%;
  }
  .license-token {
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-stat {
    padding: 16px;
  }
  .admin-stat strong {
    font-size: 26px;
  }
  .admin-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-price-form {
    grid-template-columns: 1fr;
  }
  .admin-orders {
    padding: 18px 14px;
  }
  .checkout-card, .auth .card {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

/* =====================================================================
   v3: stabilność na telefonach, profil z panelem bocznym, kody e-mail
   ===================================================================== */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
img, svg, video, canvas { max-width: 100%; }
.wrap, main, section, header, footer, .glass, .card { min-width: 0; }
.wrap { overflow-x: clip; }
.bg { contain: paint; }
nav { flex-wrap: wrap; max-width: 100%; row-gap: 8px; }
.gallery-section, .product-gallery { width: 100%; max-width: 100%; overflow: clip; }
.gallery-slide img { max-width: 100%; height: auto; }
@media (max-width: 520px) {
  nav { gap: 10px; padding: 8px 10px; }
  nav .logo-light { display: none; }
  nav .btn.sm { padding: 8px 12px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
[hidden] { display: none !important; }

.code-input { text-align: center; font: 600 28px var(--mono); letter-spacing: .4em; padding-left: .8em; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--swift-orange); font: inherit; cursor: pointer; text-decoration: underline; }

.dash-wide { max-width: 1060px; }
.pf { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.pf-side { padding: 26px 22px; }
.pf-name { font-size: 26px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.03em; border-left: 5px solid var(--swift-orange); padding-left: 12px; overflow-wrap: anywhere; }
.pf-online { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green); margin: 0 0 18px 17px; }
.pf-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pf-avatar { width: 150px; height: 150px; border-radius: 24px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 52px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f9a35a, #ea580c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 28px -12px rgba(234,88,12,.55); }
.pf-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pf-badge { padding: 5px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; }
.pf-badge.red { background: #d9534f; } .pf-badge.green { background: #2e9e5b; } .pf-badge.gray { background: #7b8798; }
.pf-since { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.pf-stats { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pf-stats li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.pf-stats b { color: var(--swift-orange); font-weight: 600; text-align: right; }
.pf-main { padding: 28px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.pf-head h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.pf-info { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.pf-info dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.pf-info dt { font-weight: 700; text-align: right; }
.pf-info dd { margin: 0; overflow-wrap: anywhere; }
.pf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.pf-links a { color: var(--swift-orange); text-decoration: none; font-weight: 500; }
.pf-links a:hover { text-decoration: underline; }
.pf-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--chip); }
.pf-cta .btn { margin-left: auto; }
.tabs { display: flex; gap: 4px; margin-top: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 1px solid transparent; border-bottom: 0; padding: 11px 18px; font: 600 15px var(--sans); color: var(--swift-orange); cursor: pointer; border-radius: 10px 10px 0 0; white-space: nowrap; margin-bottom: -1px; }
.tab.is-active { color: var(--text); background: var(--glass-hi); border-color: var(--line); }
.pane { padding-top: 18px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; background: var(--bg-subtle); font-size: 14.5px; }
.feed-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.feed-dot.paid, .feed-dot.lic { background: var(--green); } .feed-dot.order { background: var(--blue); } .feed-dot.trial { background: var(--swift-orange); }
.trial-box { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--chip); }
.trial-box h3 { margin: 0 0 6px; }
.pane .profile-settings-grid h3 { margin: 0 0 10px; }
@media (max-width: 860px) {
  .pf { grid-template-columns: 1fr; }
  .pf-info { grid-template-columns: 1fr; }
  .pf-info dl { grid-template-columns: 1fr; gap: 2px; }
  .pf-info dt { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; }
  .pf-info dd { margin-bottom: 10px; }
  .pf-avatar { width: 110px; height: 110px; font-size: 40px; }
  .pf-main { padding: 20px; }
  .pf-head h2 { font-size: 22px; }
  .feed li { flex-wrap: wrap; row-gap: 4px; }
  .pf-cta .btn { margin-left: 0; }
}

/* --- Na żywo (admin) --- */
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.live-stats .card { padding: 18px 20px; }
.live-big { display: flex; align-items: center; gap: 10px; font-size: 38px; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.msg-form textarea, .msg-form select { width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 16px var(--sans); color: var(--text); background: var(--glass-hi); border: 1px solid var(--edge); border-radius: 12px; }
.msg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .live-stats { grid-template-columns: 1fr; } .live-big { font-size: 30px; } }

/* --- Program poleceń --- */
.ref-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-weight: 600; font-size: 14.5px; }
.ref-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.ref-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f9a35a, #ea580c); transition: width .4s; }

/* --- Zgarnij za darmo --- */
.price .amt-free { color: var(--green); }
.gift-steps { list-style: none; counter-reset: g; margin: 20px 0 22px; padding: 0; display: grid; gap: 12px; text-align: left; }
.gift-steps li { counter-increment: g; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 15.5px; }
.gift-steps li::before { content: counter(g); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f9a35a, #ea580c); color: #fff; font-weight: 700; font-size: 14px; }
.gift-steps b { color: var(--text); }
