@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --orange-start: #ffb45c;
  --orange-end: #ff8a00;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --bg-gray: #f5f5f7;
  --bg-dark: #0a0a0a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-brand {
  font-family: "Oxanium", sans-serif;
}

/* ---------- Typography ---------- */
.display {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.headline {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.gradient-text {
  background: linear-gradient(120deg, var(--orange-end), var(--orange-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 980px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-fill {
  background: linear-gradient(120deg, var(--orange-end), var(--orange-start));
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(255, 138, 0, 0.5);
}

.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(255, 138, 0, 0.6);
}

.btn-fill:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--orange-end);
}

.btn-ghost:hover {
  text-decoration: underline;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.25);
}

/* ---------- Hero ambient glow ---------- */
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(2.5deg);
  }
}

/* sparkle */
.sparkle {
  animation: sparkle-pulse 2.4s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

.float-sparkle {
  position: absolute;
  color: var(--orange-end);
  animation: sparkle-float 4.5s ease-in-out infinite;
}

@keyframes sparkle-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-14px) scale(1.25);
    opacity: 0.5;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.16s;
}
.d3 {
  transition-delay: 0.24s;
}
/* ---------- Paski gramatury (specyfikacja materiału) ---------- */
.spec-bar {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal.in .spec-bar {
  transform: scaleX(1);
}

.spec-bar-d1 {
  transition-delay: 0.35s;
}
.spec-bar-d2 {
  transition-delay: 0.5s;
}

/* scale-in reveal for hero product */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ---------- Cards ---------- */
.card {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.18);
}

.price-card.featured {
  position: relative;
}

/* button shine */
.btn-fill {
  position: relative;
  overflow: hidden;
}

.btn-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-fill:hover::after {
  left: 140%;
}

/* dotted grid */
.dot-grid {
  background-image: radial-gradient(rgba(255, 138, 0, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 35%, transparent 100%);
}

/* marquee */
.marquee {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* animated gradient */
.gradient-animated {
  background: linear-gradient(120deg, #ff8a00, #ffb45c, #ff8a00);
  background-size: 220% 220%;
  animation: gradient-shift 9s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

::selection {
  background: rgba(255, 138, 0, 0.22);
  color: var(--ink);
}

/* sticky mobile bar */
.sticky-buy {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Before / After slider ---------- */
.ba {
  position: relative;
  user-select: none;
  touch-action: none;
  border-radius: 28px;
  overflow: hidden;
  cursor: ew-resize;
}

.ba-base,
.ba-top {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.ba-top-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.ba-top-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  max-width: none;
  /* width is set dynamically via JS to match the full container width */
}

/* "dirty glasses" look */
.ba-dirty {
  filter: blur(5px) brightness(1.08) contrast(0.82) saturate(0.85);
}

.ba-smudge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.35), transparent 38%), radial-gradient(circle at 65% 60%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(230, 220, 210, 0.3), transparent 45%);
  mix-blend-mode: screen;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.ba-knob {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-end);
}

.ba-label {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

/* ---------- FAQ accordion ---------- */
.faq {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .faq-icon {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--orange-end);
}

.faq[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  overflow: hidden;
  color: var(--ink-soft);
  line-height: 1.65;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq-body > div {
  min-height: 0;
}

.faq-body p {
  padding-bottom: 1.4rem;
}

/* ---------- How-to steps connector ---------- */
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(120deg, var(--orange-end), var(--orange-start));
  box-shadow: 0 8px 20px -6px rgba(255, 138, 0, 0.5);
}

/* ===== CHECKOUT MODAL ===== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
  .checkout-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.checkout-dialog {
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 1.75rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  scrollbar-width: thin;
}

@media (min-width: 640px) {
  .checkout-dialog {
    border-radius: 28px;
    padding: 2rem;
    transform: translateY(28px) scale(0.97);
    max-height: 88vh;
  }
}

.checkout-overlay.open .checkout-dialog {
  transform: translateY(0) scale(1);
}

.checkout-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  transition: background 0.2s;
  flex-shrink: 0;
}

.checkout-close-btn:hover {
  background: #e4e4e9;
}

.checkout-pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8f0;
  border: 1.5px solid rgba(255, 138, 0, 0.28);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-end);
  margin-bottom: 1.5rem;
}

.co-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.co-input {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #e0e0e5;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.co-input:focus {
  border-color: var(--orange-end);
}

.co-input.co-error {
  border-color: #ff3b30;
}

.co-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shipping-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid #e0e0e5;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
  user-select: none;
}

.shipping-pill:hover {
  border-color: #ffb45c;
}

.shipping-pill.co-selected {
  border-color: var(--orange-end);
  background: #fff8f0;
}

.shipping-pill input[type="radio"] {
  accent-color: var(--orange-end);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.sp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.shipping-pill.co-selected .sp-icon {
  background: rgba(255, 138, 0, 0.12);
}

.paczkomat-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-weight: 600;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.paczkomat-pick-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.paczkomat-selected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0fff5;
  border: 1.5px solid #34c759;
  border-radius: 12px;
  font-size: 14px;
}

.paczkomat-selected-card .psc-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.paczkomat-selected-card .psc-change {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-end);
  cursor: pointer;
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  padding: 0;
  flex-shrink: 0;
}

.paczkomat-selected-card .psc-change:hover {
  text-decoration: underline;
}

.co-divider {
  height: 1px;
  background: #f0f0f5;
  margin: 1.4rem 0;
}

.co-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.co-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.co-error-msg {
  font-size: 12px;
  color: #ff3b30;
  margin-top: 5px;
  display: none;
}

.co-error-msg.show {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .float,
  .float-sparkle,
  .sparkle,
  .marquee,
  .gradient-animated {
    animation: none !important;
  }
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .spec-bar {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Coating badges (AR / blue light) ---------- */
.coating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: #fff;
  background: var(--pill-bg);
  box-shadow: 0 8px 24px -10px var(--pill-shadow, rgba(0, 0, 0, 0.35));
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  position: relative;
}
.coating-pill svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.coating-pill svg path,
.coating-pill svg circle {
  stroke: #fff;
}
.pill-ar {
  --pill-bg: linear-gradient(120deg, #15803d, #22c55e, #4ade80);
  --pill-shadow: rgba(34, 197, 94, 0.55);
}
.pill-blue {
  --pill-bg: linear-gradient(120deg, #4f46e5, #3b82f6, #06b6d4);
  --pill-shadow: rgba(59, 130, 246, 0.55);
}
