@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F5F2ED;
  --text-main: #1F1F1F;
  --text-muted: #7C766E;
  --border-color: #E8E3DC;

  /* Founding List CTA accent — solid charcoal, the one filled button on
     an otherwise all-outline page, so it reads as a single unmistakable
     signal wherever it appears, without introducing an off-brand color. */
  --accent: #1F1F1F;
  --accent-dark: #3A342C;
  --accent-text: #FAF8F5;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1440px;
  --padding-desktop: 120px;
  --gap-desktop: 96px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-main);
  font-weight: 300;
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   LAYOUT & CONTAINER (1440px / 120px / 96px)
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--padding-desktop);
  padding-right: var(--padding-desktop);
}

.section-padding {
  padding-top: var(--padding-desktop);
  padding-bottom: var(--padding-desktop);
}

/* Flexbox 50/50 Layout */
.row-50 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap-desktop);
}

.row-50--reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--gap-desktop);
}

.row-50 > *, .row-50--reverse > * {
  flex: 1;
  width: 50%;
}

/* Buttons & CTAs */
.btn-outline {
  display: inline-block;
  padding: 18px 42px;
  border: 1px solid var(--text-main);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-primary);
}

/* Primary "Join the Founding List" CTA — filled, warm, deliberately the
   most eye-catching element on the page. Reserved ONLY for founding-list
   actions so it keeps its meaning: this button = join the list. */
.btn-cta {
  display: inline-block;
  padding: 20px 48px;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(31, 31, 31, 0.28);
}

.btn-cta:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 31, 31, 0.38);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(31, 31, 31, 0.28);
}

/* Small note that sits under a Founding List button (e.g. voucher line) */
.cta-note {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

/* Image Aspect Ratio & Fit */
.img-container {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border-radius: 2px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animations: Fade 600ms */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   SEKCJE
   ========================================== */

/* Header Nav */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 0;
  z-index: 10;
  text-align: center;
}

.site-nav__brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
}

.site-nav__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 10px;
}

.site-nav__ig {
  position: absolute;
  top: 50%;
  right: var(--padding-desktop);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.site-nav__ig img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* 01. Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  padding-top: 190px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* 03. Manifest */
.section-manifest {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.manifest-text {
  font-size: 2.5rem;
  line-height: 1.35;
}

/* 04. Philosophy */
.philosophy-list {
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--border-color);
  counter-reset: signature;
}

.philosophy-list li {
  counter-increment: signature;
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
}

.philosophy-list li::before {
  content: counter(signature, decimal-leading-zero);
  flex-shrink: 0;
  width: 26px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

/* Products (05 & 07) */
.product-price {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-title {
  font-size: 3.25rem;
  margin-bottom: 12px;
}

.product-desc {
  margin-bottom: 36px;
  font-size: 1.1rem;
}

/* 1.5 Founding Member Benefits (po Hero, bez zdjęcia — punkty w kolumnach) */
.founding-benefits__intro {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.founding-benefits__heading {
  text-align: center;
  font-size: 1.65rem;
  margin: 10px auto 44px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--gap-desktop);
  max-width: 1080px;
  margin: 0 auto;
}

.benefits-grid__item {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.benefits-grid__title {
  display: block;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.benefits-grid__desc {
  display: block;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

.founding-benefits__closing {
  text-align: center;
  margin-top: 56px;
}

.benefits-closing {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  margin: 0 0 28px;
  color: var(--text-main);
}

/* 09. La Collection */
.collection-section {
  background-color: var(--bg-secondary);
}

/* CTA Banner — used between sections in the "repeated CTA" variant */
.cta-banner {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 64px var(--padding-desktop);
  text-align: center;
}

.cta-banner__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 14px;
}

.cta-banner__text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto 32px;
}

/* 10. Early Access Form */
.early-access-section {
  background-color: var(--bg-primary);
}

.form-container {
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.input-email {
  padding: 18px;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s ease;
}

.input-email:focus {
  border-color: var(--accent);
}

/* Inline hero form — email + button side by side (hybrid variant) */
.hero-inline-form {
  margin-top: 8px;
}

.hero-inline-form__row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-inline-form__row .input-email {
  flex: 1;
  min-width: 0;
}

.hero-inline-form__row .btn-cta {
  white-space: nowrap;
  padding: 0 32px;
}

.hero-inline-form .consent-label {
  margin-bottom: 4px;
}

/* ==========================================
   TEXT FADE (dark -> beige gradient across lines)
   Slow, gradual transition across up to 7 lines
   ========================================== */
.text-fade p:nth-of-type(1) {
  color: var(--text-main);
}

/* 2-paragraph blocks: black -> beige */
.text-fade p:nth-of-type(2):nth-last-of-type(1) {
  color: #A39C8D;
}

/* 3+ paragraph blocks: black -> muted -> beige */
.text-fade p:nth-of-type(2):not(:nth-last-of-type(1)) {
  color: var(--text-muted);
}

.text-fade p:nth-of-type(n+3) {
  color: #A39C8D;
}

/* ==========================================
   EARLY ACCESS — CONSENT CHECKBOX
   ========================================== */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--text-main);
  cursor: pointer;
}

.consent-label a {
  text-decoration: underline;
  color: var(--text-main);
}

/* ==========================================
   EARLY ACCESS — GRID LAYOUT
   ========================================== */
.early-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "image heading"
    "image text"
    "image form";
  gap: 0 var(--gap-desktop);
  align-items: start;
}

.early-access-grid .early-access-img {
  grid-area: image;
  align-self: start;
}

.early-access-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.early-access-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--bg-secondary);
}

.early-access-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.early-access-grid .ea-heading {
  grid-area: heading;
}

.early-access-grid .ea-text {
  grid-area: text;
}

.early-access-grid .ea-form-wrap {
  grid-area: form;
}

/* ==========================================
   PRIVACY POLICY MODAL
   ========================================== */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal-overlay.is-open {
  display: flex;
}

.privacy-modal {
  background: var(--bg-primary);
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  border-radius: 2px;
}

.privacy-modal h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.privacy-modal h3 {
  font-size: 1.15rem;
  margin-top: 26px;
  margin-bottom: 8px;
}

.privacy-modal p {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.privacy-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================
   FEATURE IMAGE SECTION (duza grafika, np. €10 Welcome Gift)
   ========================================== */
.feature-image-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 72px var(--padding-desktop);
  text-align: center;
}

.feature-image-section__frame {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 40px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(31, 31, 31, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-section__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(31, 31, 31, 0.24);
}

.feature-image-section__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   COOKIE CONSENT
   ========================================== */
.cookie-consent {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 100%;
  max-width: 380px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(31, 31, 31, 0.12);
  transition: bottom 0.3s ease;
}

.cookie-consent.is-visible {
  display: block;
  animation: cookieFadeIn 0.5s ease-out;
}

/* Shifted up so it never overlaps the sticky founding-list bar */
.cookie-consent.is-raised {
  bottom: 96px;
}

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

.cookie-consent__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cookie-consent__text a {
  text-decoration: underline;
  color: var(--text-main);
}

.cookie-consent__accept {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.78rem;
}

/* ==========================================
   STICKY FOUNDING-LIST BAR
   ========================================== */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background-color: var(--text-main);
  color: var(--bg-primary);
  padding: 22px var(--padding-desktop);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.sticky-cta-bar__text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.sticky-cta-bar__text strong {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sticky-cta-bar .btn-cta {
  flex-shrink: 0;
  padding: 14px 34px;
  font-size: 0.75rem;
  box-shadow: none;
}

.sticky-cta-bar .btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.4);
}

.sticky-cta-bar__close {
  background: none;
  border: none;
  color: var(--bg-primary);
  opacity: 0.55;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.sticky-cta-bar__close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .cookie-consent.is-raised {
    bottom: 108px;
  }

  .early-access-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-image-section {
    padding: 48px 20px;
  }

  .sticky-cta-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 18px 20px 20px;
  }

  .sticky-cta-bar__close {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .sticky-cta-bar .btn-cta {
    width: 100%;
    text-align: center;
  }

  .hero-inline-form__row {
    flex-direction: column;
  }
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVENESS & BREAKPOINTS
   ========================================== */

@media (max-width: 1200px) {
  :root {
    --padding-desktop: 60px;
    --gap-desktop: 60px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .manifest-text {
    font-size: 2.2rem;
  }

  .product-title {
    font-size: 2.75rem;
  }

  .cta-banner__text {
    font-size: 1.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --padding-desktop: 24px;
    --gap-desktop: 40px;
  }

  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .row-50, .row-50--reverse {
    flex-direction: column;
  }

  .row-50 > *, .row-50--reverse > * {
    width: 100%;
  }

  /* Early Access (mobile): heading -> thumbnails -> text -> form */
  .early-access-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "text"
      "form";
    gap: 20px;
    align-items: start;
  }

  .early-access-grid .early-access-img {
    align-self: start;
  }

  .early-access-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hero-section {
    padding-top: 160px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .manifest-text {
    font-size: 1.65rem;
  }

  .product-title {
    font-size: 2.25rem;
  }

  .sticky-cta-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px 24px;
  }

  .hero-inline-form__row {
    flex-direction: column;
  }

  .hero-inline-form__row .btn-cta {
    padding: 16px 32px;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }

  .founding-benefits__heading {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  .cta-banner__text {
    font-size: 1.4rem;
  }
}
