/* ==========================================================================
   zejneba.com — Shared page sections
   --------------------------------------------------------------------------
   Whole sections that appear on more than one page. Their content is written
   once in js/components.js (<cta-section>, <faq-section>, <services-section>,
   <testimonials-section>), their look here,
   so a change shows up on every page that uses them.

   1. CTA ("Give Your Product a Better Experience")
   2. FAQ ("Answers to common questions")
   3. Services ("How We Can Work Together"), list layout (layout="list", the earlier version)
   3b. Services, cards layout (layout="cards", set aside)
   3c. Services, split layout (the default)
   4. Testimonials ("Hear From Those Who’ve Partnered With Me"), and its compact version
   5. Responsive
   ========================================================================== */

cta-section,
faq-section,
services-section,
testimonials-section {
  display: block;
}


/* 1. CTA (<cta-section>)
   --------------------------------------------------------------------------
   Rounded card: heading and "Book a free call" on the left, the buy demo
   (css/buy-demo.css) on the right. Light grey by default (.cta--light, at the
   end of this section); tone="dark" gives the black card.
   ========================================================================== */

.cta {
  padding: 0 0 48px;
}

.cta__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  width: calc(100% - 32px);
  min-height: 879px;
  margin: 0 auto;
  /* Wider than the page, but the content lines up with the 1106px column of the other sections */
  padding: 72px max(56px, (100% - 1106px) / 2 - 16px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--base-black);
  color: var(--base-white);
}

/* Soft moss glow top right — same on every dark card (hero on How I work, footer) */
.cta__card::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  corner-shape: round;
  pointer-events: none;
  top: -480px;
  right: 40px;
  width: 960px;
  height: 960px;
  background: radial-gradient(closest-side, rgba(92, 120, 77, 0.16), rgba(92, 120, 77, 0.06) 55%, rgba(92, 120, 77, 0));
}

.cta__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 44px;
  min-width: 0;
  /* Narrow enough that the text block is as tall as the buy card next to it */
  max-width: 440px;
}

/* As wide as the heading: the list below wraps at the end of its longest line */
.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
}

.cta__benefits {
  display: flex;
  flex-direction: column;
  /* Never wider than the heading (see .cta__copy) */
  width: 0;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Title and text */
.cta-benefit {
  padding: 12px 0;
}

.cta-benefit__text {
  display: flex;
  flex-direction: column;
}

/* Tighter than the 26px default so title and text read as one block */
.cta-benefit__text h3 {
  line-height: 22px;
}

.cta-benefit__text p {
  color: var(--neutral-subtle);
}

/* Shown at 90%: the negative margins give back the room the scale frees up,
   so the card still lines up with the right edge of the column
   (demo box is 440 × 680, see buy-demo.css) */
.cta .buy-demo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: -34px -22px;
  scale: 0.9;
}


/* Light version (the default, .cta--light): a soft grey card that sits with
   the rest of the page, dark text, black button. <cta-section tone="dark">
   keeps the black card above. */
.cta--light .cta__card {
  background: var(--neutral-grey-100);
  color: var(--base-black);
}

/* Neutral, no green: just a soft lighter patch top right */
.cta--light .cta__card::before {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2) 55%, rgba(255, 255, 255, 0));
}

.cta--light .cta-benefit__text p {
  color: var(--neutral-muted);
}

/* A small arrow in a circle before each benefit */
.cta-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cta-benefit__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  corner-shape: round;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-sage);
}

.cta--light .cta-benefit__icon {
  background: var(--base-white);
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.06);
  color: var(--brand-moss);
}

/* Light version: the buy demo sits on a plain, slightly darker grey panel,
   nothing behind it (the demo already moves) */
.cta__frame {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  /* The demo shows at 90% (396 × 612 after .cta .buy-demo above) + 28px all round */
  width: 452px;
  max-width: 100%;
  padding: 28px;
  overflow: clip;
  border-radius: var(--radius-3xl);
  background: var(--neutral-grey-200);
}

.cta__frame .buy-demo {
  width: 440px;
}

/* Here the card fills the whole demo box, so it reads like a phone screen
   with no empty grey above and below it (buy-demo.css keeps it at 553px) */
.cta__frame .buy-demo .bf2 {
  height: 100% !important;
}

/* 2. FAQ (<faq-section>, "Answers to common questions")
   --------------------------------------------------------------------------
   Left: heading and a banner pointing to contact. Right: the FAQ accordion
   (components.css), stretched to fill the rest of the row.
   ========================================================================== */

.faq {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  width: min(1112px + var(--content-extra), 100% - 48px);
  margin: 0 auto;
  padding: 60px 0 150px;
}

.faq__aside {
  display: flex;
  flex: 0 0 494px;
  flex-direction: column;
  gap: 40px;
}

.faq__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__accent {
  color: var(--brand-olive);
}

.faq__intro {
  color: var(--neutral-muted);
}

.faq__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--neutral-grey-200);
  border-radius: var(--radius-m);
  background: var(--base-white);
  color: var(--base-black);
}

.faq__banner-text {
  margin-top: 2px;
  color: var(--neutral-muted);
}

.faq .faq-list {
  flex: 1;
  width: auto;
  min-width: 0;
}


/* 3. Services (<services-section layout="list">, "How We Can Work Together"), the earlier version
   --------------------------------------------------------------------------
   Left: heading, short intro and "Send me project details" (stays in view
   while the list scrolls past). Right: one card per package, animated like the
   FAQ accordion (components.css): one open at a time, the first open on load.
   Sized so one open row and two closed ones fit a laptop screen together.
   Content: SERVICES in js/components.js.
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 104px;
  width: min(1106px + var(--content-extra), 100% - 48px);
  margin: 0 auto;
  padding: 60px 0 150px;
}

.services__aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services__intro {
  color: var(--neutral-muted);
}

.services__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
}

.services__call {
  color: var(--neutral-muted);
}

.services__call a {
  color: var(--base-black);
  text-decoration: underline;
  text-decoration-color: var(--neutral-grey-200);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) ease;
}

.services__call a:hover {
  text-decoration-color: currentColor;
}

/* Separate cards, one under the other. Closed: a soft grey card with the
   name and one line about the package. Open: white, lifted, with the details.
   Opens and closes with the FAQ animation (data-accordion). */
.services__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  --faq-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --faq-duration: 0.45s;
  --tint-1: var(--scale-moss-50);
  --tint-2: var(--brand-fog);
  --tint-3: var(--brand-sage);
  --accent: var(--brand-moss);

  position: relative;
  isolation: isolate;
  overflow: clip;
  /* Closed: a light wash of the package colour, a hairline in the same
     colour and a soft white highlight on the top edge */
  border: 1px solid color-mix(in srgb, var(--tint-2) 55%, transparent);
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--tint-1) 75%, var(--neutral-grey-100));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(20, 20, 20, 0.03);
  transition:
    background-color var(--faq-duration) var(--faq-ease),
    border-color var(--faq-duration) var(--faq-ease),
    box-shadow var(--faq-duration) var(--faq-ease),
    translate var(--faq-duration) var(--faq-ease);
}

/* Closed: the package colour pools softly on the right, behind the chevron */
.service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 180% at 100% 50%, color-mix(in srgb, var(--tint-2) 70%, transparent), transparent 70%),
    radial-gradient(30% 120% at 96% 50%, color-mix(in srgb, var(--tint-3) 22%, transparent), transparent 70%);
  transition: opacity var(--faq-duration) var(--faq-ease);
}

.service-item[open]:not(.is-closing)::after {
  opacity: 0;
}

/* Each package has its own tint, light → deep, from the brand colours */
.service-item--stone {
  --tint-1: var(--scale-olive-50);
  --tint-2: var(--brand-stone);
  --tint-3: var(--scale-olive-300);
  --accent: var(--scale-olive-700);
}

.service-item--orange {
  --tint-1: var(--scale-orange-50);
  --tint-2: var(--scale-orange-100);
  --tint-3: var(--scale-orange-300);
  --accent: var(--scale-orange-700);
}

/* Open: a soft glow of the package colour from the top right corner */
.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 140px at 100% 0%, color-mix(in srgb, var(--tint-3) 18%, transparent), transparent),
    radial-gradient(70% 200px at 90% 0%, color-mix(in srgb, var(--tint-2) 30%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--faq-duration) var(--faq-ease);
}

.service-item[open]:not(.is-closing)::before {
  opacity: 1;
}

.service-item:not([open]):hover {
  border-color: color-mix(in srgb, var(--tint-3) 45%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 24px rgba(20, 20, 20, 0.05);
  translate: 0 -1px;
}

.service-item[open]:not(.is-closing) {
  border-color: var(--neutral-grey-200);
  background: var(--base-white);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06), 0 1px 2px rgba(20, 20, 20, 0.03);
}

.service-item__head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  list-style: none;
  cursor: pointer;
}

.service-item__head::-webkit-details-marker {
  display: none;
}

.service-item__name {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.service-item__title {
  color: var(--base-black);
}

.service-item__summary {
  max-width: 660px;
  color: var(--neutral-muted);
  font-size: 15px;
  line-height: 24px;
}

/* Chevron in a circle: white on the grey card, grey on the white one; turns up when open */
.service-item__toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--base-white);
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.06);
  color: var(--accent);
  transition:
    background-color var(--faq-duration) var(--faq-ease),
    box-shadow var(--faq-duration) var(--faq-ease);
}

.service-item[open]:not(.is-closing) .service-item__toggle {
  box-shadow: none;
}

.service-item__summary {
  transition: color var(--faq-duration) var(--faq-ease);
}

.service-item__toggle z-icon {
  transition: rotate var(--faq-duration) var(--faq-ease);
}

.service-item[open]:not(.is-closing) .service-item__toggle {
  background: var(--neutral-grey-100);
}

.service-item[open]:not(.is-closing) .service-item__toggle z-icon {
  rotate: 180deg;
}

.service-item__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 0;
  padding: 0 28px 28px;
}

.service-item__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-item__meta dt {
  color: var(--neutral-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.service-item__label {
  margin: 0;
  color: var(--base-black);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.005em;
}

/* Open: the line under the name reads as normal text */
.service-item[open]:not(.is-closing) .service-item__summary {
  color: var(--neutral-body);
}

/* Text stops short of the right edge so lines stay easy to read; the footer keeps the full width */
.service-item__body > .service-item__block {
  max-width: 660px;
}

/* One section under the other, plain readable text */
.service-item__text {
  color: var(--neutral-body);
  font-size: 14px;
  line-height: 22px;
}

/* Business needs: a simple checklist */
.service-why {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.service-why li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--neutral-body);
  font-size: 14px;
  line-height: 22px;
}

.service-why z-icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* Deliverables: tags side by side, corners in step with the card's rounding */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.service-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border: 1px solid color-mix(in srgb, var(--tint-2) 60%, var(--neutral-grey-200));
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--tint-1) 50%, var(--base-white));
  color: var(--neutral-body);
  font-size: 14px;
  line-height: 20px;
}

.service-tags z-icon {
  flex: none;
  color: var(--accent);
}

.service-item__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 14px 14px 14px 20px;
  border: 1px solid var(--neutral-grey-200);
  border-radius: var(--radius-l);
  background: var(--base-white);
}

.service-item__meta {
  display: flex;
  gap: 40px;
  margin: 0;
  white-space: nowrap;
}

.service-item__meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-item__meta dd {
  margin: 0;
  color: var(--base-black);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
}

/* Opening: the panels inside rise in one after another */
@keyframes service-rise {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.service-item[open]:not(.is-closing) .service-item__body > .service-item__block,
.service-item[open]:not(.is-closing) .service-item__footer {
  animation: service-rise 0.5s var(--faq-ease) backwards;
}

.service-item[open]:not(.is-closing) .service-item__body > .service-item__block {
  animation-delay: 0.06s;
}

.service-item[open]:not(.is-closing) .service-item__footer {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .service-item[open] .service-item__block,
  .service-item[open] .service-item__footer {
    animation: none;
  }
}


/* 3b. Services, cards layout (<services-section layout="cards">, set aside)
   --------------------------------------------------------------------------
   Heading and intro on top, "Send me project details" to their right.
   Under them three cards side by side: the open one is wide and shows the
   details, the other two are narrow, tinted, with the name and one line.
   Clicking a narrow card opens it (js/components.js, ServicesSection).
   Not used on any page right now; the split layout (3c) is the default.
   ========================================================================== */

.services.services--cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
}

.services__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}

.services__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.services--cards .services__actions {
  flex: none;
  align-items: flex-end;
  margin-top: 0;
}

.service-cards {
  --card-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --card-duration: 0.6s;
  --card-grow: 2.6;
  /* Final width of the open card: its content is laid out at this width from
     the start, so it doesn't rewrap while the card widens */
  --open-width: calc((100cqw - 24px) * var(--card-grow) / (var(--card-grow) + 2) - 2px);

  container-type: inline-size;
  display: flex;
  gap: 12px;
  min-height: 560px;
}

.service-card {
  --tint-1: var(--scale-moss-50);
  --tint-2: var(--brand-fog);
  --tint-3: var(--brand-sage);
  --accent: var(--brand-moss);

  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  border: 1px solid transparent;
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, var(--tint-1), color-mix(in srgb, var(--tint-2) 70%, var(--tint-1)));
  transition:
    flex-grow var(--card-duration) var(--card-ease),
    background-color var(--card-duration) var(--card-ease),
    border-color var(--card-duration) var(--card-ease),
    box-shadow var(--card-duration) var(--card-ease);
}

.service-card--stone {
  --tint-1: var(--scale-olive-50);
  --tint-2: var(--brand-stone);
  --tint-3: var(--scale-olive-300);
  --accent: var(--scale-olive-700);
}

.service-card--orange {
  --tint-1: var(--scale-orange-50);
  --tint-2: var(--scale-orange-100);
  --tint-3: var(--scale-orange-300);
  --accent: var(--scale-orange-700);
}

/* Narrow cards: a soft circle of the package colour in the bottom corner */
.service-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  z-index: -1;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint-3) 22%, transparent);
  transition: opacity var(--card-duration) var(--card-ease);
}

/* Open: white, lifted, with a glow of the package colour from the top right */
.service-card.is-open {
  flex-grow: var(--card-grow);
  border-color: var(--neutral-grey-200);
  background: var(--base-white);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.06), 0 1px 2px rgba(20, 20, 20, 0.03);
}

.service-card.is-open::after {
  opacity: 0;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 140px at 100% 0%, color-mix(in srgb, var(--tint-3) 18%, transparent), transparent),
    radial-gradient(70% 200px at 90% 0%, color-mix(in srgb, var(--tint-2) 30%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--card-duration) var(--card-ease);
}

.service-card.is-open::before {
  opacity: 1;
}

/* The head is the whole narrow card; on the open card it is just the top */
.service-card__head {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 84px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-card.is-open .service-card__head {
  flex: none;
  width: var(--open-width);
  padding-bottom: 0;
  cursor: default;
}

.service-card__head:focus-visible {
  outline: 2px solid var(--base-black);
  outline-offset: -4px;
  border-radius: var(--radius-2xl);
}

.service-card__title {
  color: var(--base-black);
}

.service-card__summary {
  max-width: 560px;
  color: var(--neutral-muted);
  font-size: 15px;
  line-height: 24px;
}

.service-card.is-open .service-card__summary {
  color: var(--neutral-body);
}

/* Round arrow at the bottom right of a narrow card */
.service-card__toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--base-white);
  color: var(--base-black);
  transition:
    background-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    rotate var(--card-duration) var(--card-ease);
}

.service-card:not(.is-open):hover .service-card__toggle {
  background: var(--base-black);
  color: var(--base-white);
  rotate: 45deg;
}

.service-card.is-open .service-card__toggle {
  display: none;
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  width: var(--open-width);
  padding: 24px 28px 28px;
}

.service-card__body[hidden] {
  display: none;
}

.service-card__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
}

.service-card__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Opening: the details rise in once the card has mostly widened */
.service-card.is-open .service-card__cols,
.service-card.is-open .service-item__footer {
  animation: service-rise 0.5s var(--card-ease) 0.18s backwards;
}

.service-card.is-open .service-item__footer {
  animation-delay: 0.26s;
}

.service-card.is-open .service-card__head > * {
  animation: service-rise 0.5s var(--card-ease) 0.1s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card.is-open * {
    transition: none;
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .services__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .services--cards .services__actions {
    align-items: flex-start;
  }

  .service-card__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .service-cards {
    --card-grow: 2.2;
  }
}

/* Small screens: cards one under the other, the open one shows its details */
@media (max-width: 860px) {
  .services.services--cards {
    gap: 32px;
  }

  .service-cards {
    flex-direction: column;
    min-height: 0;
  }

  .service-card,
  .service-card.is-open {
    flex: none;
  }

  .service-card.is-open .service-card__head,
  .service-card__body {
    width: auto;
  }

  .service-card__head {
    padding: 20px 76px 20px 20px;
  }

  .service-card.is-open .service-card__head {
    padding-right: 20px;
  }

  .service-card__toggle {
    top: 20px;
    bottom: auto;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .service-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .service-card__summary {
    font-size: 14px;
    line-height: 22px;
  }

  .service-card__body {
    padding: 20px;
  }

  .service-card .service-item__footer .button {
    width: 100%;
  }
}


/* 3c. Services, split layout (<services-section>, the default)
   --------------------------------------------------------------------------
   Heading, intro and "Send me project details" centred on top. Under them,
   left: one compact row per package (number, name, arrow); the open one is
   white and lifted, the others quiet grey. Right: the open package's details
   on a white card (why it matters, how I work, deliverables, one under the
   other; price, timeline and "Talk about this" at the bottom), sitting on a
   deep wash of the package colour.
   Small screens: one column, the details open right under their row.
   Content: SERVICES in js/components.js.
   ========================================================================== */

.services.services--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 56px;
}

.services--split .services__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.services--split .services__top {
  max-width: 760px;
}

/* Each sentence on its own line; on narrow screens they wrap, kept balanced */
.services--split .services__intro span {
  display: block;
  text-wrap: balance;
}

.services--split .services__actions {
  align-items: center;
  margin-top: 12px;
}

.services-split {
  --split-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --split-duration: 0.5s;

  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto auto 1fr;
  grid-auto-flow: dense;
  column-gap: 24px;
  row-gap: 10px;
}

/* Package colours: light → deep, plus the deep panel behind the details */
.service-tab,
.service-panel {
  --tint-1: var(--scale-moss-50);
  --tint-2: var(--brand-fog);
  --tint-3: var(--brand-sage);
  --accent: var(--brand-moss);
  --deep-1: var(--scale-moss-600);
  --deep-2: var(--scale-moss-900);
  --glow: var(--scale-olive-400);
}

.service-tab--stone,
.service-panel--stone {
  --tint-1: var(--scale-olive-50);
  --tint-2: var(--brand-stone);
  --tint-3: var(--scale-olive-300);
  --accent: var(--scale-olive-700);
  --deep-1: var(--scale-olive-600);
  --deep-2: var(--scale-olive-900);
  --glow: var(--brand-stone);
}

.service-tab--orange,
.service-panel--orange {
  --tint-1: var(--scale-orange-50);
  --tint-2: var(--scale-orange-100);
  --tint-3: var(--scale-orange-300);
  --accent: var(--scale-orange-600);
  --deep-1: var(--scale-orange-700);
  --deep-2: var(--scale-orange-900);
  --glow: var(--scale-orange-300);
}

/* Left column: the packages. Closed: quiet grey, muted name. */
.service-tab {
  grid-column: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-2xl);
  background: var(--neutral-grey-100);
  transition:
    background-color var(--split-duration) var(--split-ease),
    border-color var(--split-duration) var(--split-ease),
    box-shadow var(--split-duration) var(--split-ease),
    margin var(--split-duration) var(--split-ease);
}

.service-tab:not(.is-open):hover {
  background: #eeeeeb;
}

/* Open: white, lifted, with a soft grey ring around it, and a bit more
   room above and below so the ring doesn't touch the next row */
.service-tab.is-open {
  margin-block: 8px;
  border-color: var(--neutral-grey-200);
  background: var(--base-white);
  box-shadow: 0 0 0 5px var(--neutral-grey-100), 0 14px 32px rgba(20, 20, 20, 0.07);
}

.service-tab__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px 16px 18px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-tab.is-open .service-tab__head {
  cursor: default;
}

.service-tab__head:focus-visible {
  outline: 2px solid var(--base-black);
  outline-offset: -4px;
  border-radius: var(--radius-2xl);
}

/* 01, 02, 03: outlined when closed, filled with the package colour when open */
.service-tab__number {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--neutral-subtle) 50%, transparent);
  border-radius: 50%;
  corner-shape: round;
  background: none;
  color: var(--neutral-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--split-duration) var(--split-ease),
    border-color var(--split-duration) var(--split-ease),
    color var(--split-duration) var(--split-ease);
}

.service-tab.is-open .service-tab__number {
  border-color: var(--neutral-subtle);
  color: var(--base-black);
}

.service-tab__title {
  flex: 1;
  min-width: 0;
  color: var(--neutral-body);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.01em;
  transition:
    color var(--split-duration) var(--split-ease),
    font-size var(--split-duration) var(--split-ease),
    line-height var(--split-duration) var(--split-ease);
}

.service-tab.is-open .service-tab__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.service-tab:hover .service-tab__title,
.service-tab.is-open .service-tab__title {
  color: var(--base-black);
}

/* Round arrow: light when closed, black and pointing to the panel when open */
.service-tab__toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  corner-shape: round;
  background: var(--base-white);
  color: var(--neutral-body);
  transition:
    background-color var(--split-duration) var(--split-ease),
    color var(--split-duration) var(--split-ease);
}

.service-tab__toggle z-icon {
  transition: rotate var(--split-duration) var(--split-ease);
}

.service-tab.is-open .service-tab__toggle {
  background: var(--base-black);
  color: var(--base-white);
}

.service-tab.is-open .service-tab__toggle z-icon {
  rotate: -90deg;
}

/* The open row's one line slides open (0fr → 1fr) */
.service-tab__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--split-duration) var(--split-ease);
}

.service-tab.is-open .service-tab__more {
  grid-template-rows: 1fr;
}

.service-tab__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 18px 0 62px;
  opacity: 0;
  transition:
    opacity 0.3s var(--split-ease),
    padding var(--split-duration) var(--split-ease);
}

.service-tab.is-open .service-tab__inner {
  padding-bottom: 20px;
  opacity: 1;
  transition-delay: 0.1s, 0s;
}

.service-tab__summary {
  margin: 0;
  color: var(--neutral-body);
  font-size: 15px;
  line-height: 24px;
}

/* Right column: the statement panel. A deep wash of the package colour with
   soft glows and a little grain; a big line on it, the details on glass below. */
.service-panel {
  position: relative;
  isolation: isolate;
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding: 32px;
  border-radius: var(--radius-3xl);
  background:
    radial-gradient(55% 45% at 85% 8%, color-mix(in srgb, var(--glow) 45%, transparent), transparent),
    radial-gradient(60% 50% at 0% 100%, color-mix(in srgb, var(--deep-1) 80%, transparent), transparent),
    linear-gradient(155deg, var(--deep-1), var(--deep-2) 75%);
  color: var(--base-white);
}

/* Liquid animation behind the card (js/fluid.js), light → deep.
   Fades in once WebGL is ready; until then (or without WebGL) the
   gradient above shows. */
.service-panel {
  --fluid-1: var(--scale-olive-300);
  --fluid-2: var(--scale-moss-400);
  --fluid-3: var(--scale-moss-600);
  --fluid-4: var(--scale-moss-800);
}

.service-panel--stone {
  --fluid-1: var(--brand-stone);
  --fluid-2: var(--scale-olive-400);
  --fluid-3: var(--scale-olive-600);
  --fluid-4: var(--scale-olive-800);
}

.service-panel--orange {
  --fluid-1: var(--scale-orange-200);
  --fluid-2: var(--scale-orange-400);
  --fluid-3: var(--scale-orange-600);
  --fluid-4: var(--scale-orange-800);
}

.service-panel__fluid {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.service-panel__fluid.is-ready {
  opacity: 1;
}

/* Grain, so the colour reads like a surface rather than a flat fill */
.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

.service-panel[hidden] {
  display: none;
}

.service-panel__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-2xl);
  background: var(--base-white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  color: var(--neutral-body);
}

/* Business needs, How I work, Deliverables: one under the other */
.service-panel__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 600px;
}

.service-panel .service-item__block {
  gap: 8px;
}

.service-panel .service-item__label {
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.015em;
}

/* Price and timeline a step bigger than in the list layout */
.service-panel .service-item__meta {
  gap: 48px;
}

.service-panel .service-item__meta dt {
  font-size: 16px;
  line-height: 24px;
}

.service-panel .service-item__meta dd {
  font-size: 26px;
  line-height: 34px;
  letter-spacing: -0.02em;
}

/* Bottom of the card: price and timeline, "Talk about this" on the right */
.service-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

/* Switching packages: the card rises in */
.service-panel:not([hidden]) .service-panel__card {
  animation: service-rise 0.5s var(--split-ease) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .service-tab,
  .service-tab *,
  .service-panel__card {
    transition: none !important;
    animation: none !important;
  }
}

/* One column: each package's details right under its row */
@media (max-width: 1000px) {
  .services-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .service-tab,
  .service-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .service-panel {
    margin: 6px 0 10px;
  }

  /* The details are under the row now, so the open arrow turns up */
  .service-tab.is-open .service-tab__toggle z-icon {
    rotate: 180deg;
  }
}

@media (max-width: 600px) {
  .services.services--split {
    gap: 40px;
  }

  /* More room between a wrapped name and the arrow */
  .service-tab__toggle {
    margin-left: 12px;
  }

  .service-tab__inner {
    padding-left: 18px;
  }

  .service-panel {
    padding: 10px;
  }

  .service-panel__card {
    padding: 22px 18px 18px;
  }

  .service-panel__footer .button {
    width: 100%;
  }
}


/* 4. Testimonials (<testimonials-section>)
   --------------------------------------------------------------------------
   The testimonials slider (components.css) in the middle of a 1106px stage,
   with four tilted team photos in its corners. The photos are decoration only.
   ========================================================================== */

.trusted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 120px 16px;
  overflow: hidden;
}

.trusted h2 {
  text-align: center;
}

.trusted__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1106px + var(--content-extra), 100%);
  min-height: 560px;
  padding-top: 40px;
}

.trusted__photo {
  position: absolute;
  object-fit: cover;
  border: 5px solid var(--base-white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.12);
}

.trusted__photo--1 {
  top: -12px;
  left: -15px;
  width: 201px;
  height: 142px;
  rotate: -6deg;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.1);
}

.trusted__photo--2 {
  top: 323px;
  left: 9px;
  width: 161px;
  height: 211px;
  rotate: 4deg;
}

.trusted__photo--3 {
  top: -15px;
  right: -12px;
  width: 149px;
  height: 198px;
  rotate: 5deg;
}

.trusted__photo--4 {
  top: 335px;
  right: -28px;
  width: 243px;
  height: 162px;
  rotate: -3deg;
}

/* Compact (<testimonials-section compact>, services page): takes about half
   the room. The title as a smaller heading, no photos;
   a big quote mark on the left, the quote and its author on the right, then
   the progress lines stretched into one long timer, with arrows next to it. */
.trusted--compact {
  display: block;
  width: min(1106px + var(--content-extra), 100% - 48px);
  margin: 0 auto;
  padding: 160px 0;
  overflow: visible;
}

.trusted .trusted__label {
  margin: 0;
  color: var(--base-black);
  text-align: left;
}

.testimonials--compact {
  grid-template-columns: 200px minmax(0, 1fr);
  justify-items: stretch;
  gap: 40px;
  width: 100%;
  margin-top: 56px;
}

.testimonials--compact::before {
  content: "“";
  color: var(--brand-sage);
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.testimonials--compact .testimonials__slides,
.testimonials__footer {
  grid-column: 2;
}

.testimonials--compact .testimonial {
  justify-items: start;
  gap: 32px;
  text-align: left;
}

.testimonials--compact .testimonial__quote {
  max-width: 780px;
}

.testimonials--compact .testimonial__quote::before {
  content: none;
}

.testimonials--compact .testimonial__author {
  grid-auto-flow: column;
  align-items: center;
  justify-items: start;
  gap: 14px;
}

.testimonials--compact .testimonial__photo {
  width: 48px;
  height: 48px;
  border-width: 2px;
}

.testimonials--compact .testimonial__photo::before {
  font-size: 15px;
}

.testimonials--compact .testimonial__name {
  font-size: 16px;
  line-height: 24px;
}

.testimonials__footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.testimonials--compact .progress {
  flex: 1;
}

.testimonials--compact .progress__line {
  flex: 1;
  width: auto;
}

.testimonials__arrows {
  display: flex;
  gap: 8px;
}


/* 5. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .cta__card {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
    min-height: 0;
    padding: 96px 56px 56px;
  }

  .cta__text {
    gap: 40px;
    max-width: none;
  }

  /* Stacked: the heading and the list use the full width of the card */
  .cta__copy {
    width: auto;
  }

  .cta__benefits {
    width: auto;
  }

  .cta .buy-demo {
    align-self: center;
    margin: 0;
    scale: none;
  }

  /* The frame takes the column width (up to the demo's 440px + padding) */
  .cta__frame {
    align-self: center;
    width: min(488px, 100%);
    padding: 24px;
  }

  .cta__frame .buy-demo {
    width: min(440px, 100%);
  }

  .faq {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .services__aside {
    position: static;
    max-width: 560px;
  }

  /* Stacked: heading, then the questions, then "Have a different question?" */
  .faq__aside {
    display: contents;
  }

  .faq__header {
    max-width: 560px;
  }

  .faq__banner {
    order: 1;
  }

  .trusted__stage {
    flex-direction: column;
    gap: 48px;
    min-height: 0;
    padding-top: 0;
  }

  .trusted__photos {
    display: flex;
    justify-content: center;
  }

  .trusted__photo {
    position: static;
    width: 180px;
    height: 136px;
  }

  .trusted__photo + .trusted__photo {
    margin-left: -24px;
  }
}

@media (max-width: 860px) {
  .faq {
    gap: 32px;
    padding: 40px 0 96px;
  }

  .cta h2,
  .faq h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .services {
    padding: 40px 0 96px;
  }

  .services h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .trusted {
    gap: 32px;
    padding: 96px 16px;
  }

  .trusted h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .trusted__photo {
    width: 140px;
    height: 106px;
    border-width: 4px;
    border-radius: 12px;
  }

  .testimonial__quote {
    font-size: 22px;
    line-height: 32px;
  }

  .trusted.trusted--compact {
    padding: 112px 0;
  }

  .trusted .trusted__label {
    font-size: 20px;
    line-height: 28px;
  }

  .testimonials--compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 40px;
  }

  .testimonials--compact::before {
    height: 40px;
    font-size: 80px;
  }

  .testimonials--compact .testimonials__slides,
  .testimonials__footer {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .cta__frame {
    padding: 12px;
    border-radius: var(--radius-2xl);
  }

  /* On the grid edge, text on the 24px line (tokens.css) */
  .cta__card {
    width: calc(100% - 2 * var(--grid-edge));
    padding: 48px var(--grid-inset) var(--grid-inset);
    border-radius: var(--radius-2xl);
  }

  .trusted {
    padding-inline: var(--grid-margin);
  }

  .faq {
    padding-bottom: 64px;
  }

  .faq__banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .faq-item__question {
    gap: 16px;
    padding: 18px 16px;
  }

  .faq-item__answer {
    padding: 0 16px 20px;
  }

  .service-item__head {
    gap: 16px;
    padding: 20px;
  }

  .service-item__title {
    font-size: 24px;
    line-height: 32px;
  }

  .service-item__summary {
    font-size: 14px;
    line-height: 22px;
  }

  .service-item__body {
    padding: 0 20px 20px;
  }

  .service-item__footer {
    padding: 16px;
  }

  .service-item__footer .button {
    width: 100%;
  }

  .trusted__photo {
    width: 96px;
    height: 76px;
  }

  .trusted__photo + .trusted__photo {
    margin-left: -16px;
  }
}
