/* ═══════════════════════════════════════════════════
   Kerstin Reichert — Zopa Landing Page
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'Fraunces';
  src: url('assets/Fraunces/static/Fraunces_72pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ── */
:root {
  --primary-dark:    #0e2c27;
  --primary-accent:  #72e7c1;
  --green-mid:       #387360;
  --bg-mint:         #e2f8ef;
  --bg-lavender:     #f1f1f7;
  --bg-grey-light:   #f8f8f8;
  --text-primary:    #0e2c27;
  --text-body:       #555555;
  --text-muted:      #696969;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;

  --section-pad: 80px;
  --max-width:   1240px;
  --gutter:      max(24px, calc((100% - var(--max-width)) / 2 + 24px));

  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 9999px;

  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: var(--primary-accent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1.5px solid var(--primary-dark);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(14,44,39,0.04); }

/* ── Typography helpers ── */
.h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.body-text {
  font-size: 18px;
  line-height: 26px;
  color: var(--text-body);
}


/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.nav__logo { display: block; line-height: 0; }
.nav__logo-img { height: 28px; }

.nav__desktop {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav__link:hover { opacity: 0.6; }

.nav__cta { font-size: 15px !important; padding: 10px 22px !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px var(--gutter) 20px;
  gap: 20px;
  position: sticky;
  top: 57px; /* nav height */
  z-index: 99;
}
.nav__mobile-menu.open { display: flex; }

.nav__mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}


/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 72px var(--gutter) 64px;
  overflow: visible;
  position: relative;
}
.hero__content {
  flex: 1;
  position: relative;
  z-index: 2;
}
.hero__h1 {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 26px;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-icon { flex-shrink: 0; margin-top: 3px; }
.hero__check-item span {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 26px;
}
.hero__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero__trusted {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trusted span { font-size: 14px; color: var(--text-muted); }

/* Hero media column */
.hero__media {
  flex: 1;
  position: relative;
  min-height: 360px;
}

/* Desktop: pink blob bleeds off top-right corner of the page */
.hero__blob {
  position: absolute;
  width: 240%;
  height: 240%;
  top: -95%;
  right: -105%;
  z-index: 0;
  pointer-events: none;
}
.hero__blob img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video container */
.hero__video-wrap {
  position: relative;
  z-index: 1;
  width: 92%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-accent);
  box-shadow: var(--shadow-elevated);
  margin: 20px auto 0;
  cursor: pointer;
}
.hero__thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 2;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════
   LOGO REEL
   ════════════════════════════════════ */
.logos {
  background: var(--bg-mint);
  text-align: center;
  padding: 30px var(--gutter) 28px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.logos__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.logos__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}
.logos__grid img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}


/* ════════════════════════════════════
   CONTENT SECTIONS (About / Numbers / Awards)
   ════════════════════════════════════ */
.section {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: var(--section-pad) var(--gutter);
}

/* Numbers: text left, image right — achieved by reversing DOM order in flex */
.section--reverse { flex-direction: row-reverse; }

.section__image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.section__image img {
  width: 380px;
  height: 380px;
  object-fit: contain;
}
.section__text { flex: 1; }
.section__text--indent-left  { margin-left:  100px; }
.section__text--indent-right { margin-right: 100px; }

.section__text .h2 { margin-bottom: 20px; }

/* Bullet items */
.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.bullet-dot {
  color: var(--primary-dark);
  font-size: 8px;
  margin-top: 9px;
  flex-shrink: 0;
  line-height: 1;
}

/* Numbers sub-groups */
.numbers__group { margin-bottom: 20px; }
.numbers__company {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}


/* ════════════════════════════════════
   WHY CHOOSE
   ════════════════════════════════════ */
.why-choose {
  background: var(--bg-lavender);
  border-radius: var(--radius-lg);
  padding: 64px var(--gutter);
  margin: 0 16px;
  text-align: center;
}
.why-choose__heading { margin-bottom: 40px; }
.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.why-choose__item { text-align: center; }
.why-choose__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-choose__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-choose__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}


/* ════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════ */
.testimonials { padding: 80px var(--gutter); }
.testimonials__header {
  text-align: center;
  margin-bottom: 32px;
}
.testimonials__header .h2 { margin-bottom: 8px; }
.testimonials__intro {
  max-width: 600px;
  margin: 0 auto;
}
/* Carousel layout */
.testimonials__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}
.carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.carousel__btn:hover:not(:disabled) {
  border-color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
}
.carousel__btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.testimonial-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.testimonial-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  flex: 1;
}
.testimonial-card__footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 16px;
}
.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-card__role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════ */
.cta-banner {
  background: var(--bg-mint);
  padding: 64px var(--gutter);
  text-align: center;
}
.cta-banner .h2 { margin-bottom: 12px; }
.cta-banner__text {
  max-width: 640px;
  margin: 0 auto 28px;
}
.cta-banner__btn { font-size: 16px !important; padding: 14px 32px !important; }


/* ════════════════════════════════════
   FAQ
   ════════════════════════════════════ */
.faq { padding: 80px var(--gutter); }
.faq__header {
  text-align: center;
  margin-bottom: 36px;
}
.faq__list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  background: var(--bg-grey-light);
  border-radius: 12px;
  overflow: hidden;
}
.faq__question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
}
.faq__question:hover { background: rgba(0,0,0,0.02); }
.faq__icon {
  font-size: 24px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__answer {
  padding: 0 24px 18px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-body);
}
.faq__quotes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.faq__quotes p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-body);
}


/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.footer {
  background: var(--bg-lavender);
  padding: 48px var(--gutter) 32px;
}
.footer__logo { margin-bottom: 12px; }
.footer__tagline {
  font-size: 18px;
  line-height: 26px;
  color: var(--text-body);
  max-width: 420px;
  margin-bottom: 20px;
}
.footer__buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer__contact {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer__dot { color: #ccc; }
.footer__link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer__link:hover { text-decoration: underline; }


/* ════════════════════════════════════
   RESPONSIVE — 768px breakpoint
   ════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
    --gutter: 20px;
  }

  /* Nav */
  .nav__desktop { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-img { height: 22px; }

  /* Hero — single column, content first then video */
  .hero {
    flex-direction: column;
    gap: 0;
    padding: 40px var(--gutter) 48px;
    overflow: hidden;
  }
  .hero__content {
    order: 1;
    margin-bottom: 32px;
  }
  .hero__media {
    order: 2;
    width: 100%;
    min-height: auto;
    overflow: hidden;
    /* extra top space so the pink arc peeks above the video */
    padding-top: 72px;
    position: relative;
  }
  /* Mobile blob: half-moon arc behind video (dome pointing up) */
  .hero__blob {
    position: absolute;
    /* Square, as wide as the container */
    width: 100%;
    aspect-ratio: 1;
    /* top: 0 → top half of circle visible; overflow:hidden clips the bottom half */
    top: 0;
    right: auto;
    left: 0;
    /* clip-path keeps only the top 50% — the dome */
    clip-path: inset(0 0 50% 0);
    z-index: 0;
  }
  .hero__blob img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero__video-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 220px;
    margin: 0;
  }
  .hero__h1 {
    font-size: 34px;
    line-height: 1.05;
  }
  .hero__subtitle,
  .hero__check-item span { font-size: 15px; line-height: 22px; }
  .hero__checklist { gap: 10px; margin-bottom: 24px; }
  .hero__play-btn { width: 48px; height: 48px; }
  .hero__play-btn svg { width: 18px; height: 18px; }

  /* Logo reel — 3×2 grid */
  .logos { min-height: auto; padding: 32px var(--gutter); }
  .logos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
    align-items: center;
  }
  .logos__grid img { height: 32px; }

  /* Content sections — stacked, image always above text */
  .section,
  .section--reverse {
    flex-direction: column;
    gap: 24px;
  }
  /* In section--reverse, DOM order is image, text (so image is top) ✓ */
  /* For standard section (image, text DOM order), image is also top ✓ */

  .section__image img {
    width: 220px;
    height: 220px;
  }
  .section__text--indent-left  { margin-left: 0; }
  .section__text--indent-right { margin-right: 0; }

  .h2 { font-size: 26px; line-height: 1.2; }
  .body-text { font-size: 15px; line-height: 22px; }
  .bullet-item .body-text { font-size: 15px; }

  /* Why Choose — 2-column grid */
  .why-choose {
    margin: 0 12px;
    padding: 48px 24px;
    border-radius: 12px;
  }
  .why-choose__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Testimonials carousel — smaller buttons on mobile */
  .testimonials__carousel { gap: 10px; }
  .carousel__btn { width: 36px; height: 36px; }

  /* Footer contact — vertical stack */
  .footer__contact {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .footer__dot { display: none; }

  /* Buttons — slightly smaller on mobile */
  .btn-primary { font-size: 14px; padding: 11px 20px; }
  .btn-outline  { font-size: 14px; padding: 11px 20px; }
  .nav__cta,
  .cta-banner__btn { font-size: 15px !important; padding: 12px 28px !important; }
}
