:root {
  --demo-navy: #071c33;
  --demo-deep-blue: #0a3155;
  --demo-blue: #145da0;
  --demo-bright-blue: #1f7ae0;
  --demo-cyan: #28b7c7;
  --demo-text: #10243a;
  --demo-muted: #607086;
  --demo-border: #dce6ef;
  --demo-soft: #f3f8fb;
  --demo-white: #ffffff;
  --demo-error: #c33737;
}

html {
  scroll-behavior: smooth;
}

.demo-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Main hero and form */

.demo-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 115px;
  background:
    radial-gradient(
      circle at 9% 18%,
      rgba(40, 183, 199, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at 87% 72%,
      rgba(31, 122, 224, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #06182d 0%, #092d4f 55%, #0c416a 100%);
}

.demo-hero::before {
  position: absolute;
  top: -260px;
  left: 42%;
  width: 650px;
  height: 650px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.demo-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
  gap: 75px;
  align-items: start;
}

.demo-hero-content {
  position: sticky;
  top: 120px;
  padding-top: 38px;
}

.demo-hero .section-label,
.demo-pricing .section-label {
  color: #69d1dc;
}

.demo-hero h1 {
  margin: 18px 0 25px;
  color: var(--demo-white);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.demo-hero h1 em {
  display: block;
  color: #67d4df;
  font-style: normal;
}

.demo-hero-content > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.75;
}

.demo-highlights {
  display: grid;
  gap: 20px;
  margin-top: 45px;
}

.demo-highlights div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-highlights span {
  color: #68d3df;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-highlights p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

/* Form card */

.demo-form-card {
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: var(--demo-white);
  box-shadow: 0 35px 90px rgba(0, 12, 26, 0.3);
}

.demo-form-heading {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--demo-border);
}

.form-label {
  color: var(--demo-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.demo-form-heading h2 {
  margin: 10px 0 12px;
  color: var(--demo-navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.demo-form-heading p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  margin-top: 22px;
}

.form-group label,
.protocol-fieldset legend {
  color: var(--demo-text);
  font-size: 0.91rem;
  font-weight: 700;
}

.form-group label span {
  color: var(--demo-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #ccd9e4;
  border-radius: 11px;
  outline: none;
  background: #fbfdfe;
  color: var(--demo-text);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.form-group input,
.form-group select {
  min-height: 52px;
  padding: 0 15px;
}

.form-group textarea {
  min-height: 135px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8795a5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--demo-bright-blue);
  background: var(--demo-white);
  box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.11);
}

/* Protocol options */

.protocol-fieldset {
  padding: 0;
  margin: 28px 0 0;
  border: 0;
}

.protocol-fieldset legend {
  padding: 0;
  margin: 0;
}

.protocol-fieldset > p {
  margin: 5px 0 13px;
  color: var(--demo-muted);
  font-size: 0.87rem;
}

.protocol-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-option {
  position: relative;
  cursor: pointer;
}

.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-option span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border: 1px solid #ccd9e4;
  border-radius: 999px;
  background: #fbfdfe;
  color: var(--demo-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.check-option input:checked + span {
  border-color: var(--demo-blue);
  background: #eaf4fc;
  color: var(--demo-blue);
}

.check-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.11);
}

/* Consent and submit */

.consent-option {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 23px 0;
  color: var(--demo-muted);
  cursor: pointer;
  font-size: 0.89rem;
  line-height: 1.5;
}

.consent-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--demo-blue);
}

.demo-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-footnote {
  margin: 16px 0 0;
  color: #778697;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

/* What to expect */

.demo-expect {
  padding: 110px 0;
  background: var(--demo-soft);
}

.demo-section-heading {
  max-width: 780px;
  margin-bottom: 55px;
}

.demo-section-heading h2 {
  margin: 14px 0 17px;
  color: var(--demo-navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.demo-section-heading p {
  margin: 0;
  color: var(--demo-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.expect-grid article {
  padding: 34px;
  border: 1px solid var(--demo-border);
  border-radius: 22px;
  background: var(--demo-white);
}

.expect-number {
  display: block;
  margin-bottom: 35px;
  color: var(--demo-cyan);
  font-family: "Manrope", sans-serif;
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.expect-grid h3 {
  margin: 0 0 13px;
  color: var(--demo-navy);
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
}

.expect-grid p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.7;
}

/* Pricing CTA */

.demo-pricing {
  padding: 88px 0;
  background:
    radial-gradient(
      circle at 85% 45%,
      rgba(40, 183, 199, 0.18),
      transparent 28%
    ),
    linear-gradient(120deg, var(--demo-navy), #0b3e66);
}

.demo-pricing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.demo-pricing h2 {
  max-width: 770px;
  margin: 13px 0;
  color: var(--demo-white);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.demo-pricing p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.demo-pricing .btn {
  flex: 0 0 auto;
}

.demo-email-option {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  align-items: start;
  padding: 23px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.demo-email-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: rgba(103, 212, 223, 0.13);
}

.demo-email-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #67d4df;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.demo-email-option div > span {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.demo-email-option p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-email-option a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67d4df;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.demo-email-option a:hover {
  color: #ffffff;
}

@media (max-width: 700px) {
  .demo-email-option {
    grid-template-columns: 46px 1fr;
    padding: 19px;
  }

  .demo-email-icon {
    width: 46px;
    height: 46px;
  }

  .demo-email-option a {
    overflow-wrap: anywhere;
  }
}

/* Responsive */

@media (max-width: 1050px) {
  .demo-hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .demo-hero-content {
    position: static;
    max-width: 750px;
    padding-top: 0;
  }

  .demo-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-highlights div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .expect-grid {
    grid-template-columns: 1fr;
  }

  .demo-pricing-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .demo-wrap {
    width: min(100% - 30px, 1180px);
  }

  .demo-hero {
    padding: 80px 0;
  }

  .demo-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .demo-highlights {
    grid-template-columns: 1fr;
  }

  .demo-form-card {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .demo-expect,
  .demo-pricing {
    padding: 72px 0;
  }

  .protocol-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-option span {
    width: 100%;
  }
}