/* "Request a demo" landing page (page-templates/demo-landing.php). */

.demo-lp {
  --dl-border: 1.5px solid var(--black);
  --dl-border-error: 3px solid var(--black);
  --dl-shadow: 6px 6px 0 var(--black);
  --dl-shadow-lg: 10px 10px 0 var(--black);
  --dl-font-quote: "Neonoir W01 Slim", Georgia, serif;
  --dl-font-sans: "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
}

.demo-lp *,
.demo-lp *::before,
.demo-lp *::after {
  box-sizing: border-box;
}

/* —— Shared type & controls —— */
.demo-lp__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--black);
}

.demo-lp__h2--huge {
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.88;
}

.demo-lp__h2--big {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.9;
}

.demo-lp__h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.demo-lp__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
}

.demo-lp__text--wide { max-width: 90ch; }
.demo-lp__text--small { font-size: 16px; line-height: 1.5; }
.demo-lp__text--xs { font-size: 14px; line-height: 1.6; margin-top: 14px; }

.demo-lp__title-box {
  display: inline-block;
  max-width: 100%;
  background: var(--white);
  padding: 12px 26px;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.demo-lp__title-box--tilt {
  padding: 14px 26px;
  transform: rotate(-2deg);
  transform-origin: center;
}

.demo-lp__label {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 2.1;
}

.demo-lp__label span {
  background: var(--black);
  color: var(--white);
  padding: 5px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.demo-lp__btn {
  display: inline-block;
  border: var(--dl-border);
  border-radius: 0;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.demo-lp__btn:active { transform: translateY(1px); }

.demo-lp__btn--dark {
  background: var(--black);
  color: var(--white);
}

.demo-lp__btn--dark:hover,
.demo-lp__btn--dark:focus-visible {
  background: var(--white);
  color: var(--black);
}

.demo-lp__btn--light {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--dl-shadow);
}

.demo-lp__btn--light:hover,
.demo-lp__btn--light:focus-visible {
  background: var(--black);
  color: var(--white);
}

.demo-lp__btn--lg {
  padding: 20px 40px;
  font-size: 17px;
}

.demo-lp__btn--sm {
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--black);
}

.demo-lp :focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

/* —— Media slots —— */
.demo-lp__media {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: var(--dl-border);
}

.demo-lp__media--portrait {
  flex: 0 0 min(100%, 440px);
  aspect-ratio: 9 / 16;
  box-shadow: var(--dl-shadow-lg);
}

.demo-lp__media--landscape {
  aspect-ratio: 16 / 9;
}

.demo-lp__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Hero + form —— */
.demo-lp__hero {
  background: var(--orange);
}

.demo-lp__hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 2.5vw 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  justify-content: center;
}

.demo-lp__intro {
  flex: 1 1 460px;
  max-width: 900px;
  scroll-margin-top: 107px;
}

.demo-lp__intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 32px;
}

.demo-lp__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.demo-lp__lead {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
}

.demo-lp__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-lp__perks li {
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact Form 7 inside the hero */
.demo-lp__form .wpcf7 { margin: 0; }

.demo-lp__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-lp__form .wpcf7-form > p { margin: 0; }

.demo-lp__form .dl-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
}

.demo-lp__form .dl-form__field--full { grid-column: 1 / -1; }

.demo-lp__form .wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-lp__form input[type="text"],
.demo-lp__form input[type="email"],
.demo-lp__form input[type="tel"],
.demo-lp__form select {
  width: 100%;
  margin: 0;
  background: var(--white);
  border: var(--dl-border);
  border-radius: 0;
  box-shadow: var(--dl-shadow);
  padding: 20px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.demo-lp__form input::placeholder {
  color: var(--black);
  opacity: 0.55;
}

.demo-lp__form input:focus,
.demo-lp__form select:focus {
  background: #fffbe0;
}

.demo-lp__form select {
  padding-right: 52px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 5.5 8 11l5-5.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}

.demo-lp__form select.is-placeholder { color: rgba(0, 0, 0, 0.55); }
.demo-lp__form select option { color: var(--black); }

.demo-lp__form .wpcf7-not-valid {
  border: var(--dl-border-error);
}

.demo-lp__form .wpcf7-not-valid-tip {
  align-self: flex-start;
  background: var(--white);
  padding: 2px 6px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.demo-lp__form .wpcf7-not-valid-tip::before { content: "! "; }

/* Privacy checkbox drawn as the brand square */
.demo-lp__form .dl-form__check .wpcf7-list-item { margin: 0; }

.demo-lp__form .dl-form__check label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.demo-lp__form .dl-form__check input[type="checkbox"] {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.demo-lp__form .dl-form__check .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-lp__form .dl-form__check .wpcf7-list-item-label::before {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--white) no-repeat center / 18px 18px;
  border: var(--dl-border);
  box-shadow: 4px 4px 0 var(--black);
}

.demo-lp__form .dl-form__check input:checked + .wpcf7-list-item-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 9.5 7 14 16 3.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
}

.demo-lp__form .dl-form__check input:focus-visible + .wpcf7-list-item-label::before {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.demo-lp__form .dl-form__check .wpcf7-not-valid .wpcf7-list-item-label::before {
  border: var(--dl-border-error);
}

.demo-lp__form .dl-form__check a { color: var(--black); }

.demo-lp__form .wpcf7-submit {
  width: 100%;
  margin: 0;
  background: var(--white);
  border: var(--dl-border);
  border-radius: 0;
  box-shadow: var(--dl-shadow);
  padding: 24px;
  font-family: var(--font-body);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.demo-lp__form .wpcf7-submit:hover,
.demo-lp__form .wpcf7-submit:focus-visible {
  background: var(--black);
  color: var(--white);
}

.demo-lp__form .wpcf7-submit:active { transform: translateY(1px); }
.demo-lp__form .wpcf7-submit:disabled { opacity: 0.6; cursor: wait; }

.demo-lp__form .wpcf7-spinner {
  display: block;
  margin: -12px auto 0;
}

.demo-lp__form .dl-form__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.demo-lp__form .wpcf7-turnstile,
.demo-lp__form .cf-turnstile {
  margin: 0;
}

.demo-lp__form .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 16px !important;
  border: var(--dl-border) !important;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-lp__form .wpcf7-form.sent .wpcf7-response-output,
.demo-lp__form .wpcf7-form.init .wpcf7-response-output {
  display: none;
}

/* Thank-you panel */
.demo-lp__success {
  background: var(--white);
  border: var(--dl-border);
  box-shadow: 8px 8px 0 var(--black);
  padding: 32px;
}

.demo-lp__success[hidden] { display: none; }
.demo-lp__success:focus { outline: none; }

.demo-lp__success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}

.demo-lp__success-intro {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.demo-lp__success-steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--dl-font-sans);
  font-size: 16px;
  line-height: 1.4;
}

.demo-lp__success .demo-lp__btn {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: none;
}

/* —— Culinary bases —— */
.demo-lp__products {
  background: var(--yellow);
  padding: 96px 5vw;
}

.demo-lp__products-head,
.demo-lp__products-body {
  max-width: 1320px;
  margin: 0 auto;
}

.demo-lp__products-head {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-lp__products-body { margin-top: 72px; }

.demo-lp__eyebrow {
  margin: 0;
  line-height: 2.1;
}

.demo-lp__eyebrow span {
  background: var(--black);
  color: var(--white);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.demo-lp__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  margin-top: 28px;
}

.demo-lp__product {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-lp__product-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-lp__product-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-lp__tech {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-lp__tech:hover { color: var(--white); }

/* —— What we solve / steps —— */
.demo-lp__solve,
.demo-lp__steps {
  background: var(--orange);
  padding: 104px 5vw;
}

.demo-lp__steps { background: var(--green); }

.demo-lp__solve-inner,
.demo-lp__steps-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.demo-lp__solve-head {
  display: flex;
  justify-content: center;
}

.demo-lp__solve-grid,
.demo-lp__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.demo-lp__card {
  background: var(--white);
  border: var(--dl-border);
  box-shadow: 8px 8px 0 var(--black);
  padding: 28px;
}

.demo-lp__card-icon {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: -8px 0 12px -8px;
}

.demo-lp__step-number {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
}

/* —— Testimonials (reuses the theme .trusted component) —— */
.demo-lp__trusted .card__photo img { filter: grayscale(1); }

/* —— Photo band —— */
.demo-lp__band {
  position: relative;
  width: 100%;
  height: min(56vw, 760px);
  min-height: 520px;
  background: var(--black);
  overflow: hidden;
}

.demo-lp__band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-lp__band-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 40px 5vw;
  text-align: center;
}

.demo-lp__band-title {
  margin: 0;
  font-family: var(--dl-font-quote);
  font-weight: 400;
  font-size: clamp(28px, 5.6vw, 92px);
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* —— FAQ —— */
.demo-lp__faq {
  background: var(--white);
  padding: 104px 5vw;
}

.demo-lp__faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.demo-lp__faq-list {
  margin-top: 48px;
  border-top: var(--dl-border);
}

.demo-lp__faq-item {
  border-bottom: var(--dl-border);
}

.demo-lp__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
}

.demo-lp__faq-item summary::-webkit-details-marker { display: none; }

.demo-lp__faq-sign::before {
  content: "+";
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.demo-lp__faq-item[open] .demo-lp__faq-sign::before { content: "–"; }

.demo-lp__faq-item p {
  max-width: 80ch;
  padding-bottom: 24px;
}

/* —— Mobile sticky CTA —— */
.demo-lp__sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 5vw;
  background: var(--orange);
  border-top: var(--dl-border);
}

.demo-lp__sticky[hidden] { display: none; }

.demo-lp__sticky-text {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

/* Landing footer keeps only the brand and legal links */
.demo-lp-page .footer__nav { display: none; }

@media (max-width: 1100px) {
  .demo-lp__title { white-space: normal; }
}

@media (max-width: 760px) {
  .demo-lp__hero-inner {
    padding: 24px 16px 64px;
    gap: 40px;
  }

  .demo-lp__media--portrait {
    flex-basis: 100%;
    max-width: 440px;
    box-shadow: 8px 8px 0 var(--black);
  }

  .demo-lp__intro { flex-basis: 100%; }

  .demo-lp__form .dl-form__grid { grid-template-columns: 1fr; }

  .demo-lp__lead,
  .demo-lp__text { font-size: 16px; }

  .demo-lp__products,
  .demo-lp__solve,
  .demo-lp__steps,
  .demo-lp__faq {
    padding: 64px 16px;
  }

  .demo-lp__products-body { margin-top: 48px; }

  .demo-lp__band { min-height: 420px; }

  .demo-lp-page.demo-lp-sticky-on .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-lp__btn,
  .demo-lp__form .wpcf7-submit {
    transition: none;
  }
}
