/**
 * OTO V3 - Kalkulator Narzutu
 *
 * Dopasowany do Landing Page V3:
 * - Białe tło
 * - Czerwony CTA
 * - Ciemny footer
 * - Inter font
 */

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

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3 {
  --oto3-font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Colors - matching landing page */
  --oto3-bg: #FFFFFF;
  --oto3-text: #1a1a1a;
  --oto3-text-secondary: #666666;
  --oto3-text-muted: #888888;

  /* Accent - Czerwony (jak landing) */
  --oto3-accent: #A63D2F;
  --oto3-accent-hover: #8B3326;

  /* Success - dla confirmation banner */
  --oto3-success: #2D6A4F;
  --oto3-success-bg: #D8F3DC;

  /* Borders */
  --oto3-border: #e0e0e0;

  /* Footer */
  --oto3-footer-bg: #1a1a1a;
  --oto3-footer-text: #888888;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--oto3-bg);
  color: var(--oto3-text);
  font-family: var(--oto3-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.oto3-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONFIRMATION BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-confirm {
  background: var(--oto3-success-bg);
  border-bottom: 1px solid rgba(45, 106, 79, 0.2);
  padding: 1rem 0;
}

.oto3-confirm__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--oto3-success);
  font-size: 0.9375rem;
}

.oto3-confirm__content svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EYEBROW
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-eyebrow {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--oto3-text-secondary);
  margin: 0 0 1rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADLINE
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-headline {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

.oto3-headline__accent {
  display: block;
  color: var(--oto3-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUBHEADLINE
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-subheadline {
  font-size: 1.0625rem;
  color: var(--oto3-text);
  margin: 0 0 1.5rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.oto3-subheadline strong {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIDDEN COSTS LIST
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-costs {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: center;
}

.oto3-costs li {
  padding: 0.375rem 0;
  font-size: 1rem;
  color: var(--oto3-text);
}

.oto3-costs__note {
  color: var(--oto3-text-muted);
  font-size: 0.9375rem;
}

.oto3-costs__more {
  color: var(--oto3-text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-video {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.oto3-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oto3-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oto3-accent);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.oto3-video__play:hover {
  background: var(--oto3-accent-hover);
  transform: translate(-50%, -50%) scale(1.08);
}

.oto3-video iframe {
  border-radius: 8px;
}

/* Video Caption */
.oto3-video-caption {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--oto3-text-secondary);
  margin: -1.5rem 0 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OFFER CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-offer-card {
  background: var(--oto3-bg);
  border: 1px solid var(--oto3-border);
  border-radius: 8px;
  padding: 2rem;
  margin: 0 0 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.oto3-offer-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--oto3-text);
}

.oto3-offer-card__desc {
  font-size: 1rem;
  color: var(--oto3-text);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES LIST
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.oto3-features li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--oto3-border);
}

.oto3-features li:last-child {
  border-bottom: none;
}

.oto3-features__check {
  flex-shrink: 0;
  color: var(--oto3-success);
  font-weight: 600;
  font-size: 1.125rem;
}

.oto3-features strong {
  font-weight: 600;
  color: var(--oto3-text);
}

.oto3-features__desc {
  font-size: 0.9375rem;
  color: var(--oto3-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXAMPLE BOX
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-example {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.oto3-example__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oto3-text-muted);
  margin-bottom: 0.5rem;
}

.oto3-example p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--oto3-text);
}

.oto3-example p:last-child {
  margin-bottom: 0;
}

.oto3-example__result {
  font-weight: 500;
  color: var(--oto3-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHY NOW SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-why {
  text-align: center;
  margin: 0 0 2rem;
  padding: 0 1rem;
}

.oto3-why h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--oto3-text);
}

.oto3-why p {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--oto3-text);
}

.oto3-why__emphasis {
  font-weight: 500;
  font-style: italic;
  color: var(--oto3-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-pricing-card {
  background: var(--oto3-bg);
  border: 2px solid var(--oto3-text);
  border-radius: 8px;
  padding: 2rem;
  margin: 0 0 2rem;
  text-align: center;
}

.oto3-pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oto3-text-secondary);
  margin-bottom: 1rem;
}

.oto3-pricing-card__prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.oto3-pricing-card__old {
  font-size: 1.25rem;
  color: var(--oto3-text-muted);
  text-decoration: line-through;
}

.oto3-pricing-card__current {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--oto3-text);
}

.oto3-pricing-card__savings {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--oto3-success);
  margin: 0 0 0.5rem;
}

.oto3-pricing-card__note {
  font-size: 0.875rem;
  color: var(--oto3-text-muted);
  margin: 0 0 1.5rem;
}

/* CTA Button */
.oto3-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--oto3-font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  background: var(--oto3-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}

.oto3-btn:hover {
  background: var(--oto3-accent-hover);
  color: white;
}

.oto3-btn:active {
  transform: scale(0.98);
}

/* Guarantee */
.oto3-pricing-card__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--oto3-text-secondary);
}

.oto3-pricing-card__guarantee svg {
  flex-shrink: 0;
  color: var(--oto3-success);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKIP SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-skip {
  text-align: center;
  padding: 0 1rem;
}

.oto3-skip p {
  font-size: 1rem;
  color: var(--oto3-text);
  margin: 0 0 1rem;
}

.oto3-skip__link {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--oto3-text-muted);
  text-decoration: underline;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
}

.oto3-skip__link:hover {
  color: var(--oto3-text);
}

.oto3-skip__ps {
  font-size: 0.9375rem;
  color: var(--oto3-text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid var(--oto3-border);
}

.oto3-skip__ps strong {
  font-weight: 600;
  color: var(--oto3-text);
}

.oto3-skip__ps em {
  color: var(--oto3-accent);
  font-style: normal;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY CTA (Mobile)
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--oto3-bg);
  border-top: 1px solid var(--oto3-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.oto3-sticky.is-visible {
  transform: translateY(0);
}

.oto3-sticky__btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-family: var(--oto3-font);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--oto3-accent);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.oto3-sticky__btn:hover {
  background: var(--oto3-accent-hover);
  color: white;
}

/* Hide sticky on desktop */
@media (min-width: 768px) {
  .oto3-sticky {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-footer {
  background: var(--oto3-footer-bg);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.oto3-footer .oto3-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.oto3-footer__logo {
  display: flex;
  justify-content: center;
}

.oto3-footer__logo-img {
  height: 28px;
  width: auto;
}

.oto3-footer__divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.oto3-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.oto3-footer__copy {
  font-size: 0.8125rem;
  color: var(--oto3-footer-text);
}

.oto3-footer__links {
  display: flex;
  gap: 1.5rem;
}

.oto3-footer__links a {
  font-size: 0.8125rem;
  color: var(--oto3-footer-text);
  text-decoration: underline;
  transition: color 0.2s;
}

.oto3-footer__links a:hover {
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .oto3-main {
    padding: 2rem 0;
  }

  .oto3-headline {
    font-size: 1.375rem;
  }

  .oto3-offer-card,
  .oto3-pricing-card {
    padding: 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .oto3-video {
    border-radius: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    max-width: calc(100% + 3rem);
  }

  .oto3-pricing-card__current {
    font-size: 2rem;
  }

  .oto3-footer__bottom {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .oto3-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    max-width: 600px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.oto3-confirm,
.oto3-eyebrow,
.oto3-headline,
.oto3-subheadline,
.oto3-costs,
.oto3-video,
.oto3-offer-card,
.oto3-why,
.oto3-pricing-card,
.oto3-skip {
  animation: oto3-fadeIn 0.5s ease-out both;
}

.oto3-confirm { animation-delay: 0s; }
.oto3-eyebrow { animation-delay: 0.05s; }
.oto3-headline { animation-delay: 0.1s; }
.oto3-subheadline { animation-delay: 0.15s; }
.oto3-costs { animation-delay: 0.2s; }
.oto3-video { animation-delay: 0.25s; }
.oto3-offer-card { animation-delay: 0.3s; }
.oto3-why { animation-delay: 0.35s; }
.oto3-pricing-card { animation-delay: 0.4s; }
.oto3-skip { animation-delay: 0.45s; }

@keyframes oto3-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
