/* Bydlo Fake Door Landing Page — v2 */
/* Mobile-first, fully responsive design */

:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F5F0E8;
  --color-accent: #D4A574;
  --color-accent-light: #E8C4A0;
  --color-accent-dark: #C4956A;
  --color-cta: #C97B4B;
  --color-cta-hover: #B56A3A;
  --color-text: #3D3D3D;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Poppins', Roboto, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  --max-width: 900px;
  --max-width-wide: 1100px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* ================== */
/* PAGE-WIDE FLOATS   */
/* ================== */
.page-floats {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.page-float {
  position: absolute;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  border-radius: 50%;
  opacity: 0.14;
}

.page-float--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.page-float--2 {
  width: 300px;
  height: 300px;
  top: 15%;
  left: -100px;
  animation: float 18s ease-in-out infinite reverse;
}

.page-float--3 {
  width: 200px;
  height: 200px;
  top: 35%;
  right: 5%;
  opacity: 0.1;
  animation: float 22s ease-in-out infinite 2s;
}

.page-float--4 {
  width: 350px;
  height: 350px;
  top: 55%;
  left: -80px;
  opacity: 0.12;
  animation: float 25s ease-in-out infinite 1s;
}

.page-float--5 {
  width: 250px;
  height: 250px;
  top: 75%;
  right: -50px;
  opacity: 0.1;
  animation: float 19s ease-in-out infinite 3s reverse;
}

.page-float--6 {
  width: 180px;
  height: 180px;
  top: 120%;
  left: 20%;
  opacity: 0.12;
  animation: float 21s ease-in-out infinite 2s;
}

.page-float--7 {
  width: 320px;
  height: 320px;
  top: 160%;
  right: -60px;
  opacity: 0.1;
  animation: float 24s ease-in-out infinite reverse;
}

.page-float--8 {
  width: 220px;
  height: 220px;
  top: 200%;
  left: -40px;
  opacity: 0.14;
  animation: float 17s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -25px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  section {
    padding: var(--spacing-3xl) 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-cta);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 123, 75, 0.3);
}

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

@media (max-width: 480px) {
  .btn {
    display: block;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* ================== */
/* HERO SECTION       */
/* ================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xl) 0 var(--spacing-2xl);
  position: relative;
  z-index: 1;
  overflow: hidden; /* Allow image to cross boundary */
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__main {
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 165, 116, 0.15);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero__badge::before {
  content: '✨';
}

.hero__headline {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__headline--primary {
  font-size: clamp(2.8rem, 9vw, 5rem);
  margin-bottom: var(--spacing-xs);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__headline--secondary {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero__br--mobile {
  display: block;
}

@media (min-width: 768px) {
  .hero__br--mobile {
    display: none;
  }
}

.hero__headline-highlight {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.8;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__cta {
  margin-top: var(--spacing-md);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Preview card - positioned to the side */
.hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.hero__preview {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  width: 100%;
  max-width: 520px;
  position: relative;
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: 0 16px 0 0; /* Only top-right corner rounded */
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.08);
  transform: rotate(1deg);
}

/* Floating decorative elements - removed, now using page-wide floats */

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

@media (min-width: 768px) {
  .hero {
    min-height: 85vh;
  }
  
  .hero__layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
  }
  
  .hero__main {
    text-align: left;
    flex: 1;
    max-width: 600px;
  }
  
  .hero__subheadline {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero__preview {
    flex-shrink: 0;
    max-width: none;
    width: 53%; /* 20% smaller than 66% */
    position: absolute;
    right: -12%; /* Cross the right edge - ~70% visible */
    top: 60px; /* Align with H1 top (below badge) */
    transform: none;
  }
  
  .hero__layout {
    position: relative;
    min-height: 500px;
    align-items: flex-start;
  }
  
  .hero__subheadline {
    max-width: 480px; /* Reduced to ensure good spacing from image */
  }
}

/* ================== */
/* PAIN SECTION       */
/* ================== */
.pain {
  background-color: rgba(245, 240, 232, 0.85);
  padding-bottom: var(--spacing-xl);
}

.pain__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.pain__title {
  margin-bottom: var(--spacing-sm);
}

.pain__perex {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Pain cards - scannable recognition moments */
.pain__cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.pain-card {
  background: var(--color-white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 165, 116, 0.12);
  border-radius: 12px;
  color: var(--color-accent-dark);
}

.pain-card__icon svg {
  width: 28px;
  height: 28px;
}

.pain-card__text {
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
  font-size: 1.05rem;
}

.pain-card__text strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .pain__cards {
    flex-direction: row;
    gap: var(--spacing-md);
  }
  
  .pain-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  .pain-card__icon {
    width: 72px;
    height: 72px;
  }
  
  .pain-card__icon svg {
    width: 36px;
    height: 36px;
  }
}

.pain__quote {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
  margin: 0 0 var(--spacing-xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.pain__quote-text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin: 0 0 var(--spacing-sm);
}

.pain__quote-source {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: normal;
}

.pain__transition {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pain__transition-hook {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.pain__transition-body {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.pain__transition-cta {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.pain__transition-cta strong {
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* Value proposition card */
.pain__value-prop {
  background: var(--color-white);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: 16px;
  margin-top: var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
}

.pain__value-prop-text {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.pain__value-prop-text strong {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.pain__value-prop-highlight {
  display: block;
  margin-top: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text);
}

/* Illustration placeholder */
.illustration-placeholder {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-lg) 0;
  border: 2px dashed var(--color-accent);
}

.illustration-placeholder__text {
  color: var(--color-accent-dark);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--spacing-sm);
}

@media (min-width: 768px) {
  .pain__stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }
  
  .illustration-placeholder {
    min-height: 250px;
  }
}

/* ================== */
/* HOW IT WORKS       */
/* ================== */
.how-it-works {
  text-align: center;
  padding-top: var(--spacing-xl);
}

.how-it-works__title {
  margin-bottom: var(--spacing-xl);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.step {
  padding: var(--spacing-md);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
}

.step__title {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-xs);
}

.step__description {
  color: var(--color-text);
  max-width: 320px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.how-it-works__illustration {
  margin: var(--spacing-xl) auto var(--spacing-lg);
  max-width: 700px;
}

.how-it-works__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.how-it-works__note {
  color: var(--color-text);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  max-width: 600px;
  margin: var(--spacing-xl) auto 0;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  
  .step {
    flex: 1;
    max-width: 280px;
  }
}

/* ================== */
/* VALUE PROPOSITION  */
/* ================== */
.value {
  background-color: rgba(245, 240, 232, 0.85);
}

.value__title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.value__items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.value-item {
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.value-item__title {
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.value-item__description {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.05rem;
}

.value__quote {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: 12px;
}

.value__quote::before {
  content: '„';
  font-size: 2.5rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.value__quote-text {
  display: block;
  font-style: italic;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.value__quote-source {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: normal;
}

@media (min-width: 768px) {
  .value__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

/* ================== */
/* BARRIERS SECTION   */
/* ================== */
.barriers {
  text-align: center;
  padding-bottom: var(--spacing-xl);
}

.barriers__title {
  margin-bottom: var(--spacing-xl);
}

.myths {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.myth {
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.myth__false {
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.myth__truth {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .myths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

/* ================== */
/* CTA SECTION        */
/* ================== */
.cta-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
  text-align: center;
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.cta-section__title {
  margin-bottom: var(--spacing-lg);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-section__text {
  color: var(--color-text);
  max-width: 680px;
  margin: 0 auto var(--spacing-md);
  line-height: 1.6;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.cta-section__highlight {
  font-weight: 700;
  color: var(--color-text);
}

.cta-section__note {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 580px;
  margin: var(--spacing-lg) auto var(--spacing-xl);
  line-height: 1.6;
}

.cta-section .btn--primary {
  font-size: 1.2rem;
  padding: var(--spacing-md) var(--spacing-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ================== */
/* FOOTER             */
/* ================== */
.footer {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer__architect-cta {
  margin-bottom: var(--spacing-lg);
}

.footer__architect-cta p {
  margin-bottom: var(--spacing-xs);
}

.footer__architect-cta a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.footer__architect-cta a:hover {
  color: var(--color-accent);
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* ================== */
/* UTILITY CLASSES    */
/* ================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode */
  /*
  :root {
    --color-bg: #1A1A1A;
    --color-bg-alt: #2D2D2D;
    --color-text: #F5F5F5;
    --color-text-light: #ABABAB;
  }
  */
}

/* Print styles */
@media print {
  .btn,
  .footer__architect-cta {
    display: none;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}
