/*
 * Section kit: reusable building blocks for new pages, styled with the
 * site's existing colours, type and spacing (see dejacast.css :root).
 * Every block, with copy-paste markup, is shown on the kit page:
 * `npm run dev` → http://localhost:3000/_kit (not published).
 *
 * Breakpoints match dejacast.css: 991px (tablet), 767px, 479px (phone).
 */

/* ---------- Layout ---------- */

.kit-section {
  padding-top: 100px;
  padding-bottom: 100px;
}
.kit-section.is-tight {
  padding-top: 60px;
  padding-bottom: 60px;
}
.kit-section.is-alt {
  background-color: var(--very-dark-violet-color);
  border-top: 1px solid var(--dark-plum-color);
  border-bottom: 1px solid var(--dark-plum-color);
}
.kit-container {
  max-width: 1310px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.kit-container.is-narrow {
  max-width: 900px;
}
/* Offset for in-page links so the fixed navbar doesn't cover the heading. */
[id] {
  scroll-margin-top: 120px;
}

/* ---------- Headings ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.is-left {
  align-items: flex-start;
  margin-left: 0;
  text-align: left;
}
.eyebrow {
  color: var(--linkcolor);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section-title {
  font-size: 48px;
}
.section-lead {
  color: var(--content-conor-2nd);
  font-size: 18px;
  line-height: 1.6;
}
.text-gradient {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(88deg, #9d9bf2, #b678e7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Page hero: the existing "pagebox" hero with the image set per page:
   <div class="hero-bg" style="--hero-image: url(/images/…)">  */
.hero-bg {
  background-image: var(--hero-image);
  background-position: 50%;
  background-size: cover;
  width: 100%;
  min-height: 40vh;
  position: relative;
}
.pagebox h1.heading {
  font-size: 52px;
  letter-spacing: -1.04px;
}
/* The older pages push the title down with top: 190px, so it takes no space
   and a long title overflows the image. Use padding instead: same position,
   and the hero grows when the title wraps onto more lines. */
.hero-bg .container.titlecontainer {
  top: 0;
  padding-top: 190px;
  padding-bottom: 40px;
}
/* Intro statement: an h2 sized like the h4 the older pages use. */
.startsection h2.bigtext {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 140%;
}

/* ---------- Image + text ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.split.is-reverse .split-media {
  order: -1;
}
.split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.split-media img {
  display: block;
  width: 100%;
  border-radius: 18px;
}
.split + .split {
  margin-top: 100px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.is-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.is-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--dark-plum-color);
  border-radius: 16px;
  background-image: linear-gradient(180deg, #140d24, var(--very-dark-violet-color));
}
a.card {
  transition: border-color 0.3s, transform 0.3s;
}
a.card:hover {
  border-color: #6d5bd0;
  transform: translateY(-3px);
}
.card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}
.card p {
  font-size: 16px;
  line-height: 1.6;
}
.card .card-link {
  margin-top: auto;
  padding-top: 6px;
  color: var(--linkcolor);
  font-weight: 500;
}
.card.is-large {
  padding: 44px;
  gap: 18px;
}
.card.is-large h3 {
  font-size: 30px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-image: linear-gradient(#242836, #181d28);
  color: #b678e7;
}
.card-icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- Lists ---------- */

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(88deg, #7a78e7, #b678e7);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-list strong {
  color: var(--light-gray-color);
  font-weight: 600;
}
.check-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.check-columns h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 500;
}

/* Small labels, e.g. supported devices. */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pill-row.is-left {
  justify-content: flex-start;
}
.pill {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--light-gray-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps.is-3 {
  grid-template-columns: repeat(3, 1fr);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(88deg, #7a78e7, #b678e7);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.step h3 {
  font-size: 22px;
  font-weight: 500;
}

/* ---------- FAQ (no JavaScript: <details>) ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}
.faq details {
  border-bottom: 1px solid var(--border-color);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--light-gray-color);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--linkcolor);
  font-size: 26px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding-bottom: 24px;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Call to action ---------- */

.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 40px;
  border: 1px solid #3b2a63;
  border-radius: 24px;
  background-image: radial-gradient(circle at 20% 0%, #3a2577 0%, transparent 55%), radial-gradient(circle at 90% 100%, #2b2470 0%, transparent 50%), linear-gradient(180deg, #160d2b, var(--very-dark-violet-color));
  text-align: center;
}
.cta-band p {
  max-width: 640px;
  font-size: 18px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.text-link {
  color: var(--linkcolor);
  font-weight: 500;
}
.text-link:hover {
  color: var(--light-gray-color);
}

/* ---------- Navbar additions ---------- */

/* "Sign in": a quiet link next to Book a demo on desktop; inside the
   mobile menu below 992px. */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--content-conor-2nd);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-login:hover {
  color: var(--light-gray-color);
}
.nav-login-mobile {
  display: none;
}
.navbar-right-content .secondary-button-two {
  white-space: nowrap;
}
/* Small desktops: make room for the full menu on one line. */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .navbar-logo-image {
    width: 150px;
  }
  .nav-menu-content {
    grid-column-gap: 22px;
  }
  .nav-right-btn-wrap {
    grid-column-gap: 20px;
  }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 991px) {
  .nav-login {
    display: none;
  }
  .nav-login-mobile {
    display: block;
  }
  .kit-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .section-title {
    font-size: 40px;
  }
  .pagebox h1.heading {
    font-size: 40px;
    letter-spacing: -1px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.is-reverse .split-media {
    order: 0;
  }
  .split + .split {
    margin-top: 80px;
  }
  .card-grid,
  .card-grid.is-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .check-columns {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767px) {
  .hero-bg .container.titlecontainer {
    padding-top: 180px;
  }
  .kit-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 36px;
  }
  .pagebox h1.heading {
    font-size: 36px;
    letter-spacing: 0;
  }
  .card-grid,
  .card-grid.is-2,
  .card-grid.is-4,
  .check-columns,
  .steps,
  .steps.is-3 {
    grid-template-columns: 1fr;
  }
  .card,
  .card.is-large {
    padding: 28px;
  }
  .cta-band {
    padding: 56px 24px;
  }
}
@media screen and (max-width: 479px) {
  .section-title {
    font-size: 32px;
  }
  .pagebox h1.heading {
    font-size: 34px;
  }
  .faq summary {
    font-size: 18px;
  }
}
