/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #efefe8;
  --white: #ffffff;
  --accent: #e4d5bd;
  --black: #000000;
  --gray: #a1a1a1;
  --radius-card: 30px;
  --radius-btn: 94px;
  --radius-input: 15px;
  --max-width: 1230px;
  --side-pad: 105px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 20px 30px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--accent {
  background-color: var(--accent);
  color: var(--black);
}

.btn--accent:hover {
  background-color: #d4c4ab;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover {
  background-color: var(--black);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg);
  height: 128px;
  display: flex;
  align-items: center;
}

.navbar__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3.6px;
  text-transform: uppercase;
}

.navbar__menu {
  display: flex;
  gap: 21px;
  align-items: center;
}

.navbar__menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.75px;
  text-transform: uppercase;
  line-height: 37px;
  transition: opacity 0.3s;
}

.navbar__menu a:hover {
  opacity: 0.6;
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.navbar__hamburger span:nth-child(1) { top: 0; }
.navbar__hamburger span:nth-child(2) { top: 11px; }
.navbar__hamburger span:nth-child(3) { top: 22px; }

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* ===== HERO ===== */
.hero {
  margin-top: 128px;
  min-height: calc(100vh - 128px);
  background: url('img/hero-wedding.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  max-width: 645px;
  padding: 60px 0;
}

.hero__title {
  font-family: 'Source Serif Pro', 'Source Serif 4', serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 40px;
  color: var(--white);
}

.hero__subtitle {
  font-family: 'Source Serif Pro', 'Source Serif 4', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 40px;
  color: var(--white);
}

.hero .btn {
  font-size: 16px;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: bobble 2s ease-in-out infinite;
  z-index: 2;
  filter: brightness(0) invert(1);
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px var(--side-pad);
}

.section__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__tag::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  margin-top: 8px;
}

.section__title {
  font-family: 'Source Serif Pro', 'Source Serif 4', serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 50px;
}

.section__title--medium {
  font-size: 44px;
  line-height: 1.15;
}

.section__subtitle {
  font-family: 'Source Serif Pro', 'Source Serif 4', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 50px;
}

/* ===== STEP CARDS (3-column grid) ===== */
.steps,
.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-card--accent {
  background: var(--accent);
}

.step-card__image {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.step-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-card__icon {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.step-card__badge {
  display: inline-block;
  background: var(--bg);
  border-radius: 27px;
  padding: 5px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.98px;
  text-transform: uppercase;
  align-self: flex-start;
}

.step-card__title {
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.step-card__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

/* ===== PILOT CARDS (2-column) ===== */
.pilot-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ===== FORM ===== */
.section--form {
  padding-top: 0;
}

.form {
  max-width: 597px;
}

.form__field {
  margin-bottom: 29px;
}

.form__field label {
  display: block;
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 4px;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: var(--white);
  border: none;
  border-radius: var(--radius-input);
  padding: 10px 15px;
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  line-height: 25px;
  outline: none;
  transition: box-shadow 0.3s;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.form__field textarea {
  resize: vertical;
}

.form__consents {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form__checkbox span {
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  line-height: 25px;
}

.form .btn {
  width: auto;
}

/* ===== FAQ ===== */
.faq {
  max-width: 690px;
}

.faq__item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq__question {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.96px;
  font-variant-caps: all-small-caps;
  line-height: 20px;
  padding: 16px 40px 16px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s;
}

details[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 0 20px;
}

.faq__answer p {
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: flex;
  align-items: center;
  gap: 30px;
}

.testimonials__arrow {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.testimonials__arrow:hover {
  opacity: 1;
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  flex: 1;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial__quote {
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  font-style: normal;
}

.testimonial__author {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.testimonial__rating {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
}

/* ===== PRICING ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.pricing__card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.pricing__card--outline {
  background: transparent;
  border: 2px solid var(--black);
}

.pricing__badge {
  display: inline-block;
  background: var(--bg);
  border-radius: 27px;
  padding: 5px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.98px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 20px;
}

.pricing__price {
  margin-bottom: 15px;
}

.pricing__old {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 5.4px;
  text-decoration: line-through;
  opacity: 0.4;
  margin-right: 8px;
}

.pricing__amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 5.4px;
}

.pricing__desc {
  font-family: 'Source Serif 4', 'Source Serif Pro', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 25px;
}

.pricing__features {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}

.pricing__feature {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
}

.pricing__feature--yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: 500;
}

.pricing__feature--no::before {
  content: '✕';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.pricing__card .btn {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--white);
  padding: 50px var(--side-pad);
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer__inner p {
  font-family: 'Source Serif Pro', 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  :root {
    --side-pad: 40px;
  }

  .navbar {
    height: 80px;
  }

  .navbar__hamburger {
    display: block;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1050;
  }

  .navbar__menu.active {
    opacity: 1;
    visibility: visible;
  }

  .navbar__menu a {
    font-size: 20px;
  }

  .navbar__menu-desktop-only {
    display: none;
  }

  .hero {
    margin-top: 80px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__image {
    display: none;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 24px;
  }

  .section__title {
    font-size: 42px;
  }

  .section__title--medium {
    font-size: 32px;
  }

  .steps,
  .demo-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .pilot-cards {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing__card {
    padding: 32px;
  }

  /* Testimonials: slider on mobile — show only first */
  .testimonials__track {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .testimonial {
    display: none;
  }

  .testimonial.active,
  .testimonial:first-child {
    display: flex;
  }

  .testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
  }

  .testimonials__arrow svg {
    width: 11px;
    height: 22px;
  }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 640px) {
  :root {
    --side-pad: 20px;
  }

  /* Mobile hero: background image already set on .hero, just adjust sizing */
  .hero {
    margin-top: 0;
    padding-top: 80px;
    min-height: auto;
  }

  .hero__inner {
    padding: 0 var(--side-pad);
  }

  .hero__content {
    padding: 60px 0 40px;
    max-width: 100%;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: 21px;
    line-height: 1.33;
  }

  .hero__scroll {
    display: none;
  }

  .btn {
    padding: 16px 25px;
    font-size: 13.5px;
  }

  /* Section typography from Figma mobile */
  .section__tag {
    font-size: 15px;
    letter-spacing: 2.5px;
  }

  .section__title {
    font-size: 34px;
    line-height: 1.14;
    margin-bottom: 30px;
  }

  .section__title--medium {
    font-size: 28px;
  }

  .section__subtitle {
    font-size: 21px;
    margin-bottom: 30px;
  }

  .section {
    padding: 50px var(--side-pad);
  }

  /* Step cards: full width */
  .steps,
  .demo-cards {
    max-width: 100%;
    gap: 30px;
  }

  .step-card__image {
    height: 180px;
  }

  /* FAQ: full width */
  .faq {
    max-width: 100%;
  }

  /* Form: full width */
  .form {
    max-width: 100%;
  }

  /* Pricing mobile — Archiwum gets accent bg */
  .pricing {
    max-width: 100%;
  }

  .pricing__card--outline {
    background: var(--accent);
    border: none;
  }

  .pricing__card--outline .btn {
    border-color: var(--black);
  }

  .pricing__amount {
    font-size: 30px;
  }

  /* Footer */
  .footer {
    padding: 40px var(--side-pad);
  }
}
