/* ==========================================================================
   Squarely — Request a Demo page
   Figma node 432:224
   ========================================================================== */

/* ---- Demo section (full-page gradient area) ---- */
.demo-section {
  position: relative;
  background: linear-gradient(90deg, #125e59 0%, #3fa285 100%);
  overflow: hidden;
  padding: 80px 0 120px;
}

.demo-section__lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 728px;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.8;
  pointer-events: none;
}

.demo-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* ---- Left column ---- */
.demo-left {
  flex: 1;
  min-width: 0;
}

.demo-eyebrow {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.demo-title {
  margin: 0 0 28px;
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.demo-title .grad {
  background: linear-gradient(90deg, #aada91 0%, #cfe2f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-desc {
  margin: 0 0 44px;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
  max-width: 706px;
}

/* ---- Feature list ---- */
.demo-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.demo-feature__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-feature__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.demo-feature__icon--disclosure  { background: #7ba8d9; }
.demo-feature__icon--data        { background: linear-gradient(180deg, #7ba8d9 0%, #a68bd9 100%); }
.demo-feature__icon--emissions   { background: #a68bd9; }
.demo-feature__icon--ai          { background: linear-gradient(180deg, #a68bd9 0%, #f2a57a 100%); }
.demo-feature__icon--scoping     { background: #f2a57a; }

.demo-feature__body { flex: 1; }

.demo-feature__title {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.demo-feature__text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}

.demo-feature__text strong {
  font-weight: 600;
  color: #cfe2f3;
}

/* ---- Right column: form card ---- */
.demo-card {
  flex: none;
  width: 603px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px 36px;
  /* Offset to align with title row, matching Figma vertical offset of ~79px */
  margin-top: 79px;
}

.demo-card__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #7ba8d9;
  line-height: 1.15;
}

.demo-card__subtitle {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  color: #004750;
  line-height: 1.4;
}

/* ---- Form ---- */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-form__row {
  display: flex;
  gap: 22px;
}

.demo-form__row .demo-field {
  flex: 1;
}

.demo-field {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #004750;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  color: #125e59;
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease;
}

.demo-field::placeholder { color: #125e59; opacity: 1; }
.demo-field:focus { border-color: #3fa285; }

.demo-field--textarea {
  height: 105px;
  padding: 14px 20px;
  border-radius: 15px;
  resize: vertical;
}

.demo-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.btn--demo {
  background: #f2a57a;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn--demo:hover  { filter: brightness(1.06); }
.btn--demo:active { transform: translateY(1px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .demo-section__inner {
    flex-direction: column;
    gap: 40px;
  }

  .demo-card {
    width: 100%;
    margin-top: 0;
  }

  .demo-title { font-size: 40px; }

  .demo-section__lines {
    width: 100%;
    opacity: 0.25;
  }
}

@media (max-width: 640px) {
  .demo-section { padding: 52px 0 64px; }
  .demo-section__inner { padding-inline: 22px; gap: 32px; }
  .demo-title { font-size: 30px; }
  .demo-eyebrow { font-size: 16px; }
  .demo-desc { font-size: 16px; margin-bottom: 32px; }
  .demo-features { gap: 22px; }
  .demo-feature__title { font-size: 18px; }
  .demo-feature__text  { font-size: 16px; }

  .demo-form__row { flex-direction: column; gap: 16px; }
  /* Stacked: reset flex so fields keep their 42px height (flex:1 would collapse it) */
  .demo-form__row .demo-field { flex: none; }
  .demo-form { gap: 16px; }
  .demo-card { padding: 28px 20px; }
  .demo-card__title { font-size: 22px; }
  .demo-card__subtitle { font-size: 16px; }
  .demo-field { font-size: 16px; }
  .btn--demo { font-size: 16px; width: 100%; }
  .demo-form__actions { justify-content: stretch; }
}
