/* Bonusera promo — design-aligned styles */
:root {
  --blue: #002AA9;
  --blue-light: #088AE1;
  --orange: #EC7600;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --benefit-blue: #e0eef9;
  --benefit-beige: #faf4eb;
  --benefit-purple: #efe8f4;
  --benefit-green: #e8f5e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Alexandria", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

/* Solid header after passing hero */
.site-header.site-header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-primary {
  background: linear-gradient(0deg, #82A6D5 0%, #0130A9 100%);
  color: var(--white);
  border-radius: 15px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.btn-primary:hover {
  text-decoration: none;
}

/* Header CTA (Book a demo) */
.site-header .btn-primary {
  /* same styling as .btn-primary (kept for clarity) */
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #DDE5F5 0%, #F3F7FF 100%);
  /* Curved bottom edge (semi-radial feel) */
  border-radius: 0 0 100% 100% / 0 0 70% 70%;
  transform: scaleX(1.1);
  transform-origin: top center;
}

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(90deg, #0031AA 0%, #088BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-subtitle {
  margin: 40px 0 1.5rem;
  font-size: 1.125rem;
  color: #0139AF;
  max-width: 42rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Intro */
.intro {
  padding: 3.5rem 0 2.5rem;
}

.intro-inner {
  text-align: center;
}

.intro-title {
  margin: 150px auto 1rem;
  display: inline-block; /* ensure gradient ends with text width */
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, #0031AA 0%, #088BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-text {
  margin: 0 auto;
  max-width: 56rem;
  padding-top: 40px;
  font-size: 16px;
  font-weight: 500; /* medium */
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .intro {
    padding: 2.5rem 0 2rem;
  }

  .intro-title {
    font-size: 34px;
  }
}

/* Features */
.features {
  position: relative;
  padding: 140px 0 70px;
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.features-images {
  position: relative;
  isolation: isolate; /* keep pseudo-element layering predictable */
}

.features-images::before {
  content: "";
  position: absolute;
  left: 60%;
  top: 20%;
  transform: translate(-50%, -50%);
  width: 1081px;
  height: 811px;
  background-image: url("/promo-assets/images/orange_back.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.features-image-wrap {
  position: relative;
  z-index: 1;
  margin-left: auto; /* align wraps to the right edge */
}

.features-image-wrap--top {
  width: 100%;
  max-width: 460px;
  margin-left: -35px;
  margin-right: 0;
}

.features-image-wrap--bottom {
  width: 100%;
  max-width: 410px;
  margin-top: 140px; /* align with lower blocks like in mock */
}

.features-image-wrap--bottom::before {
  content: "";
  position: absolute;
  left: 55%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 1415px;
  height: 908px;
  background-image: url("/promo-assets/images/blue_back.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.features-image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.feature-block {
  margin-bottom: 150px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-heading {
  margin: 0 0 0.75rem;
  display: inline-block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #0031AA 0%, #088BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .feature-heading {
    font-size: 34px;
  }

  .features-layout {
    grid-template-columns: 1fr;
  }

  .features-image-wrap--bottom {
    margin-top: 40px;
  }
}

.feature-content p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  max-width: 500px;
}

.feature-block .btn {
  margin-top: 0.5rem;
}

/* Features CTA (button after the whole section) */
.features-cta {
  padding: 10px 0 70px;
}

.features-cta .btn.btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* Benefits */
.benefits {
  padding: 4rem 0;
  background: transparent;
}

.benefits-inner {
  text-align: center;
  margin-bottom: 2.25rem;
}

.benefits-title {
  margin: 0 auto 1rem;
  display: inline-block; /* ensure gradient ends with text width */
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, #0031AA 0%, #088BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.benefits-text {
  margin: 0 auto;
  max-width: 56rem;
  font-size: 16px;
  font-weight: 500; /* medium */
  color: var(--gray-600);
}

.benefits-text strong {
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    width: 100%;
  }

  .benefit-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .benefits-title {
    font-size: 34px;
  }
}

.benefit-card {
  width: 530px;
  min-height: 300px;
  padding: 1.5rem;
  border-radius: 12px;
}

.benefit-card--blue {
  background: #DFEAFF;
}

.benefit-card--beige {
  background: #FFEFDE;
}

.benefit-card--purple {
  background: #FBF1FF;
}

.benefit-card--green {
  background: #D7E9D9;
}

.benefit-title {
  margin: 0 0 0.5rem;
  font-size: 48px;
  font-weight: 700;
  color: #4D4D4D;
}

.benefit-card p {
  margin: 0;
  font-size: 16px;
  color: #002AA9;
  line-height: 1.5;
}

/* Mid CTA */
.cta-mid {
  padding: 4rem 0;
  background: var(--white);
}

.cta-mid .container {
  text-align: center;
}

.cta-mid-title {
  margin: 0;
  display: inline-block; /* ensure gradient ends with text width */
  font-size: 72px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(90deg, #0031AA 0%, #088BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .cta-mid-title {
    font-size: 48px;
  }
}

/* Advantages */
.advantages {
  padding: 4rem 0;
  background: transparent;
}

.advantages-heading {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}

/* Tail background (starts at Advantages and continues to footer) */
.tail-bg {
  position: relative;
  overflow: hidden;
}

.tail-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #DDE5F5 0%, #F3F7FF 100%);
  /* Curved top edge (reversed hero) */
  border-radius: 100% 100% 0 0 / 70% 70% 0 0;
  transform: scaleX(1.1);
  transform-origin: top center;
}

.tail-bg > * {
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.advantage-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 346px;
  display: flex;
  flex-direction: column;
}

.advantage-icon {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  margin: 0 0 1rem 0;
  align-self: flex-start;
}

.advantage-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
}

.advantage-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.advantages-cta {
  text-align: center;
}

/* Demo section */
.demo-section {
  padding: 4rem 0;
  background: transparent;
}

.demo-heading {
  margin: 0 0 2rem;
  font-size: 48px;
  font-weight: 700;
  color: #0031AA;
  text-align: center;
}

.demo-form {
  max-width: none;
  margin: 0;
}

.demo-card {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 12px 40px rgba(0, 42, 169, 0.08);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 3rem;
  row-gap: 1.75rem;
}

.demo-field {
  min-width: 0;
}

.demo-field--full {
  grid-column: 1 / -1;
}

.demo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0;
  background: transparent;
  outline: none;
}

.demo-field textarea {
  resize: none;
}

.demo-field input:focus,
.demo-field textarea:focus {
  border-bottom-color: rgba(0, 42, 169, 0.8);
}

.demo-actions {
  margin-top: 1.5rem;
}

.demo-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
}

.demo-consent input[type="checkbox"] {
  width: 12px;
  height: 12px;
}

.demo-policy {
  color: var(--blue);
  text-decoration: underline;
}

.demo-section .btn.btn-primary {
  padding: 0.65rem 1.1rem;
  font-size: 12px;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
    column-gap: 1.25rem;
  }

  .demo-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.form-feedback.success {
  background: var(--benefit-green);
  color: #1b5e20;
}

.form-feedback.error {
  background: #ffebee;
  color: #b71c1c;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.footer-email {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  background: var(--gray-300);
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--blue);
}
