/*
  ktomawiertarke.pl — style landing page
  Kolorystyka: bursztyn (akcent, jak w sprzetfirmowy.pl) + niebieski (CTA).
  Bez frameworków CSS — vanilla.
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #fef3c7 0%, #fed7aa 100%);
  color: #1c1917;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
}

/* ================ HERO ================ */

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero-grafika {
  position: relative;
  height: 220px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wiertarka {
  height: 160px;
  width: auto;
  position: absolute;
  filter: drop-shadow(0 6px 12px rgba(120, 53, 15, 0.25));
}

.wiertarka-1 {
  transform: rotate(-15deg) translateX(-130px);
  z-index: 1;
  opacity: 0.55;
  animation: float 4s ease-in-out infinite;
}

.wiertarka-2 {
  z-index: 3;
  height: 200px;
  animation: pulse 3s ease-in-out infinite;
}

.wiertarka-3 {
  transform: rotate(20deg) translateX(140px) scaleX(-1);
  z-index: 1;
  opacity: 0.55;
  animation: float 4s ease-in-out infinite 1.5s;
}

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

.wiertarka-3 {
  animation-name: float-right;
}
@keyframes float-right {
  0%, 100% { transform: rotate(20deg) translateX(140px) scaleX(-1) translateY(0); }
  50% { transform: rotate(20deg) translateX(140px) scaleX(-1) translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tytul {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #78350f;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.podtytul {
  font-size: 1.1rem;
  color: #57534e;
  max-width: 480px;
  margin: 0 auto;
}

/* ================ FORMULARZ ================ */

.formularz-wrap {
  margin: 2rem 0;
}

#qform {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.15);
  border: 2px solid #fbbf24;
}

#q {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1.1rem;
  border: none;
  outline: none;
  background: transparent;
  color: #1c1917;
  min-width: 0;
}

#q::placeholder {
  color: #a8a29e;
  font-style: italic;
}

#qform button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

#qform button:hover { background: #d97706; }
#qform button:active { transform: scale(0.97); }
#qform button:disabled { background: #d6d3d1; cursor: not-allowed; }

/* Odpowiedź pod formularzem */

.odpowiedz {
  margin-top: 1rem;
  padding: 0;
  text-align: center;
  font-size: 1.05rem;
  min-height: 1.5rem;
  color: #78350f;
}

.odpowiedz.show {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border-left: 4px solid #f59e0b;
  text-align: left;
  animation: slideDown 0.25s ease-out;
}

.odpowiedz.warn {
  border-left-color: #dc2626;
  color: #991b1b;
}

.odpowiedz strong {
  color: #1c1917;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================ REVEAL ================ */

.reveal {
  margin: 2.5rem 0 1rem;
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-box {
  background: white;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 48px rgba(120, 53, 15, 0.25);
  border-top: 6px solid #f59e0b;
}

.reveal-emoji {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.reveal h2 {
  text-align: center;
  font-size: 2rem;
  color: #78350f;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.reveal p {
  margin-bottom: 1rem;
  color: #292524;
  font-size: 1.05rem;
}

.reveal p.big { font-size: 1.15rem; }
.reveal p.mocno {
  font-weight: 700;
  color: #78350f;
  font-size: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
}

.cytat {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #1c1917;
}

.cytat em {
  color: #78350f;
  font-style: italic;
  font-size: 1.1rem;
}

.podsumowanie {
  text-align: center;
  font-size: 1.1rem;
  color: #44403c;
  margin: 1.5rem 0 2rem;
  line-height: 1.7;
}

/* CTA button — duży, zielony jak „akcja zakończona pomyślnie" */

.cta-wrap {
  margin: 2rem 0 1.5rem;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-logo {
  font-size: 2rem;
  line-height: 1;
}

.cta-tekst {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cta-tekst strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-tekst small {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

.trial-info {
  text-align: center;
  color: #57534e;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ================ FOOTER ================ */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #78350f;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer a {
  color: #78350f;
  font-weight: 600;
}

/* ================ COOKIE BANNER ================ */

/* Override default user agent stylesheet — bez tego CSS `display: flex` poniżej
   wygrywa nad HTML `hidden` atrybutem i banner zostaje widoczny po akceptacji. */
#cookie-banner[hidden] { display: none !important; }

#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 2px solid #fbbf24;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.25);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  z-index: 100;
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-text {
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: #44403c;
  line-height: 1.5;
}

.cookie-text a {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.cookie-btn:active { transform: scale(0.97); }

.cookie-btn-primary {
  background: #f59e0b;
  color: white;
}
.cookie-btn-primary:hover { background: #d97706; }

.cookie-btn-secondary {
  background: #f5f5f4;
  color: #44403c;
}
.cookie-btn-secondary:hover { background: #e7e5e4; }

@media (max-width: 540px) {
  #cookie-banner {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 0.875rem 1rem;
  }
  .cookie-text { font-size: 0.85rem; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ================ MOBILE ================ */

@media (max-width: 640px) {
  main { padding: 1rem 1rem 2rem; }
  .hero { padding: 1rem 0; }
  .hero-grafika { height: 160px; margin-bottom: 1rem; }
  .wiertarka { height: 110px; }
  .wiertarka-2 { height: 140px; }
  .wiertarka-1 { transform: rotate(-15deg) translateX(-80px); }
  .wiertarka-3 { transform: rotate(20deg) translateX(85px) scaleX(-1); }
  @keyframes float {
    0%, 100% { transform: rotate(-15deg) translateX(-80px) translateY(0); }
    50% { transform: rotate(-15deg) translateX(-80px) translateY(-10px); }
  }
  @keyframes float-right {
    0%, 100% { transform: rotate(20deg) translateX(85px) scaleX(-1) translateY(0); }
    50% { transform: rotate(20deg) translateX(85px) scaleX(-1) translateY(-10px); }
  }

  #qform {
    flex-direction: column;
    padding: 0.75rem;
  }
  #qform button { width: 100%; }
  #q { font-size: 1rem; padding: 0.75rem; }

  .reveal-box { padding: 1.75rem 1.25rem; }
  .reveal h2 { font-size: 1.5rem; }
  .reveal p, .reveal p.big { font-size: 1rem; }

  .cta-button {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }
}
