/* GleeHouse home page sections. Shared parts live in site.css. */

/* ---------- Services ---------- */
/* Services follows straight on from the hero, so it needs less space above */
.services {
  padding-top: calc(var(--section-pad) * 0.4);
}

/* ---------- Why a game: four reasons as small cards ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -38px color-mix(in srgb, var(--ink) 30%, transparent);
}

.why-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card__title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.why-card__text {
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 1199.98px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-card__title { font-size: 22px; }
}

@media (max-width: 809.98px) {
  /* Phones: full cards, icon on top, nothing shrunk */
  .why__grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 26px 24px; }
}

/* ---------- About: who we are, heading on the left, the story on the right ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.about__title { max-width: 520px; }

.about__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.about__lede {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.about__note {
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.about__facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

/* Small sticker icons, matching "What we build", so these read as facts about the studio, not features */
.about__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: #ece5ff;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  rotate: -3deg;
}

.about__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__icon--pin { background: #ffd9e7; }
.about__icon--pin circle { fill: var(--logo-3); stroke: none; }
.about__icon--home { background: #d8f5ea; rotate: 3deg; }
.about__icon--home path:last-child { stroke: var(--accent); }
.about__icon--phone { background: #dcebff; rotate: -2deg; }
.about__icon--phone path { stroke: var(--logo-3); }

@media (max-width: 809.98px) {
  .about__grid { grid-template-columns: 1fr; gap: 20px; }
  .about__lede { font-size: 18px; }
}

/* ---------- Process ---------- */
.process__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--stack-gap);
}

.process__intro {
  position: sticky;
  top: 100px;
  z-index: 1;
  flex: 1 1 0;
  align-items: flex-start;
  text-align: left;
}

.process__intro .section-head__text { align-items: flex-start; }

/* The steps stack like the service cards: each sticks near the top and the next slides over it,
   while the one underneath shrinks back (data-stack, motion.js) */
.process__steps {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  max-width: 460px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: sticky;
  top: 140px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-height: 250px;
  padding: 32px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -34px color-mix(in srgb, var(--ink) 35%, transparent);
  transform-origin: 50% 0;
}

/* A neat pile: each step sticks a little lower than the one before, all the same width, so the
   ones underneath show as even, lined-up edges along the top */
/* White cards in a pile: a hairline and a soft shadow cast upward, so each card's top edge reads
   clearly against the one behind it */
.step { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent), 0 -6px 16px -12px color-mix(in srgb, var(--ink) 35%, transparent), 0 24px 50px -34px color-mix(in srgb, var(--ink) 35%, transparent); }
/* All steps stick at the same line and the step-down edges are drawn with a transform, so the
   finished pile holds its shape and leaves together (staggered sticky tops would let the last card
   slide over the edges as the section scrolls away) */
.step { top: 164px; }
.step:nth-child(1) { transform: translateY(-24px); }
.step:nth-child(2) { transform: translateY(-12px); }
/* an empty spacer after the last step, so the finished pile holds a moment before it scrolls away */
.process__steps::after { content: ""; height: 60px; }

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  color: var(--off-white);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.step__title {
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1em;
  letter-spacing: -0.04em;
}

@media (max-width: 1199.98px) {
  .process__grid { flex-direction: column; align-items: center; }

  .process__intro {
    position: relative;
    top: auto;
    flex: none;
    align-items: center;
    text-align: center;
  }

  .process__intro .section-head__text { align-items: center; }

  /* side by side on tablets, no stacking */
  .process__steps {
    display: grid;
    flex: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: none;
  }

  .step { position: relative; top: auto; min-height: 0; padding: 26px; }
  .step:nth-child(n) { transform: none; }
  .process__steps::after { display: none; }
  .step__title { font-size: 26px; }
}

@media (max-width: 809.98px) {
  .process__grid { align-items: stretch; }
  .process__steps { display: flex; gap: 14px; }
  .step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px; }
  .step__num { flex: none; width: 40px; height: 40px; font-size: 15px; }
  .step__title { font-size: 22px; }
}

/* Phones: only the process steps stack as you scroll (a 1, 2, 3 sequence suits a pile); "What we
   build" and the "Why" cards scroll normally. All steps stick at one line and the step-down edges are a
   transform, so the pile shows even, lined-up edges and leaves in one piece. */
@media (max-width: 809.98px) {
  .step { position: sticky; top: 108px; }
  .step:nth-child(1) { transform: translateY(-24px); }
  .step:nth-child(2) { transform: translateY(-12px); }
  .step:nth-child(3) { transform: none; }
  /* motion.js gives every card in a pile the same height, so they all let go at the same moment.
     Room to scroll, so each step sticks before the next arrives; the empty spacer after the last step
     lets the finished pile stay a moment (a margin or padding would stop the last step sticking) */
  .process__steps { row-gap: 16vh; }
  .process__steps::after { content: ""; display: block; height: 0; }
}

/* ---------- Comparison ---------- */
.compare__board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  padding: 10px 15px 15px 10px; /* room for the sticker's shadow */
  border-radius: 24px;
  background: var(--white);
}

.compare__col {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border-radius: 14px;
}

.compare__title { white-space: nowrap; }

.compare__col--us {
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 809.98px) {
  .compare__board { flex-direction: column; }
  .compare__col { flex: none; width: 100%; }
}

/* ---------- Packages ---------- */
.pricing__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1080px; /* same gap under the heading as every other section */
}

/* Every card has the same parts in the same places: name, one line, ticks, button */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px color-mix(in srgb, var(--ink) 30%, transparent);
}

.plan__name {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.plan__desc {
  min-height: 2.8em; /* two lines, so the ticks line up across the cards */
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.plan__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.plan__points .i {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* A quiet note for the hosting-only option, inside the Always on card, above its button */
.plan__note {
  margin: -8px 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f2ff;
  color: var(--soft-ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}


/* the button sits at the foot of every card, all in line */
.plan__cta { width: 100%; margin-top: auto; }

/* The main package: a dark card with a small badge */
.plan--featured {
  background: var(--ink);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent);
}

.plan--featured .plan__name,
.plan--featured .plan__points li { color: var(--white); }
.plan--featured .plan__desc { color: color-mix(in srgb, var(--white) 65%, transparent); }
.plan--featured .plan__points { border-top-color: color-mix(in srgb, var(--white) 14%, transparent); }
.plan--featured .plan__points .i { color: #c9b8fa; }

.plan__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--logo-2, #6a35ee), var(--logo-3, #ff3d81));
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Extras: a dark banner closing the pricing, text and button on the left, add-ons listed on the right */
.extras {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1080px;
  padding: 40px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}

.extras__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.extras__title {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.extras__line {
  max-width: 360px;
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--white) 68%, transparent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* plain rows, two columns, thin lines between: nothing that looks like a button */
.extras__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extras__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.extras__list li:nth-child(-n+2) { border-top: 0; }

.extras__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ece5ff;
  box-shadow: 3px 3px 0 var(--accent);
  color: var(--ink);
  rotate: -3deg;
}

.extras__list li:nth-child(2) .extras__icon { background: #ffd9e7; rotate: 3deg; }
.extras__list li:nth-child(3) .extras__icon { background: #d8f5ea; rotate: 2deg; }
.extras__list li:nth-child(4) .extras__icon { background: #dcebff; rotate: -2deg; }

.extras__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199.98px) {
  /* Tablets: the main package full width on top, the other two side by side below */
  .pricing__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .plan--featured { grid-column: 1 / -1; }
  .plan--featured .plan__desc { min-height: 0; }
  .plan--featured .plan__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .plan { padding: 28px 24px 24px; }

  .extras { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
}

@media (max-width: 809.98px) {
  .pricing__body { gap: 20px; }
  .pricing__cards { grid-template-columns: 1fr; gap: 16px; }
  .plan--featured .plan__points { display: flex; }
  .plan { padding: 26px 22px 22px; }
  .plan__desc { min-height: 0; }
  .extras { padding: 28px 22px; }
  .extras__list { grid-template-columns: 1fr; }
  .extras__list li:nth-child(2) { border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent); }
}

/* ---------- Scroll-in motion for the comparison and the packages ----------
   motion.js adds .is-in when a block scrolls into view; these play off that. */
@media (prefers-reduced-motion: no-preference) {
  .js .compare__board :is(.compare__col, li),
  .js .plan :is(.plan__points li, .plan__badge) {
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1), scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* The two sides come in from either side, then their rows one by one */
  .js .compare__board:not(.is-in) .compare__col { opacity: 0; translate: -48px 0; }
  .js .compare__board:not(.is-in) .compare__col--us { translate: 48px 0; }
  .js .compare__board .compare__col--us { transition-delay: 0.12s; }

  .js .compare__board:not(.is-in) li { opacity: 0; translate: 0 10px; }
  .js .compare__board li { transition-delay: calc(0.25s + var(--i, 0) * 0.08s); }
  .js .compare__board .compare__col--us li { transition-delay: calc(0.4s + var(--i, 0) * 0.08s); }

  /* GleeHouse's ticks pop in */
  .js .compare__col--us .i { transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(0.5s + var(--i, 0) * 0.08s); }
  .js .compare__board:not(.is-in) .compare__col--us .i { scale: 0; }

  /* and our sticker lifts off the page as it lands: its shadow grows in */
  .js .compare__board:not(.is-in) .compare__col--us { box-shadow: 0 0 0 var(--ink); }
  .js .compare__board .compare__col--us { transition-property: opacity, translate, box-shadow; }
  .js .compare__board.is-in .compare__col--us { animation: sticker-lift 0.5s 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

  @keyframes sticker-lift {
    from { box-shadow: 0 0 0 var(--ink); }
    to { box-shadow: 3px 3px 0 var(--ink); }
  }

  /* Each package's ticks follow the card in; the badge pops */
  .js .plan:not(.is-in) .plan__points li { opacity: 0; translate: 0 10px; }
  .js .plan .plan__points li { transition-delay: calc(0.3s + var(--i, 0) * 0.06s); }
  .js .plan:not(.is-in) .plan__badge { opacity: 0; scale: 0.5; }
  .js .plan .plan__badge { transition-delay: 0.45s; }
}

/* Going out, everything folds away quickly and in reverse (last row first) */
@media (prefers-reduced-motion: no-preference) {
  .js .compare__board:not(.is-in) :is(li, .i, .compare__col),
  .js .plan:not(.is-in) :is(.plan__points li, .plan__badge) {
    transition-duration: 0.28s;
    transition-delay: calc((6 - var(--i, 0)) * 0.025s);
  }
}

.compare__board li:nth-child(1), .plan__points li:nth-child(1) { --i: 0; }
.compare__board li:nth-child(2), .plan__points li:nth-child(2) { --i: 1; }
.compare__board li:nth-child(3), .plan__points li:nth-child(3) { --i: 2; }
.compare__board li:nth-child(4), .plan__points li:nth-child(4) { --i: 3; }
.compare__board li:nth-child(5), .plan__points li:nth-child(5) { --i: 4; }
.compare__board li:nth-child(6), .plan__points li:nth-child(6) { --i: 5; }
.compare__board li:nth-child(7), .plan__points li:nth-child(7) { --i: 6; }

/* ---------- Sticker style: services, Why cards and process numbers, matching the cards in play mode ---------- */

.page-home {
  --stick: 2.5px solid var(--ink);
  --stick-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Why: plain white cards like "What we build" (the base .why-card style); only the
   icons are stickers, so the sticker style stays on small things ---------- */

.why-card__icon {
  border: 2.5px solid var(--ink);
  background: #ece5ff;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}

.why-card:nth-child(2) .why-card__icon { background: #ffd9e7; }
.why-card:nth-child(3) .why-card__icon { background: #d8f5ea; }
.why-card:nth-child(4) .why-card__icon { background: #dcebff; }

@media (max-width: 809.98px) {
  .why-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    padding: 20px;
  }
  .why-card__icon { width: 46px; height: 46px; margin: 0; }
  .why-card__icon svg { width: 26px; height: 26px; }
  .why-card__text { grid-column: 1 / -1; font-size: 15px; }
}

/* ---------- What we build: three plain cards, no pictures ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px color-mix(in srgb, var(--ink) 30%, transparent);
}

.svc-card__title {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.svc-card__text {
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.svc-card__link span { transition: translate 0.2s; }
.svc-card__link:hover span { translate: 4px 0; }

@media (max-width: 1199.98px) {
  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 26px 24px; }
  .svc-card__title { font-size: 24px; }
}

/* Sticker icons on the service cards, matching the "Why" cards */
.svc-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border: 2.5px solid var(--ink);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}

.svc-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-card__icon--game { background: #ffd9e7; rotate: -4deg; }
.svc-card__icon--site { background: #ece5ff; rotate: 3deg; }
.svc-card__icon--dash { background: #d8f5ea; rotate: -3deg; }
.svc-card__icon--dash circle { fill: #17a57b; stroke: none; }

/* "Play a demo" lands on the hero phone, clear of the nav */
#demo { scroll-margin-top: 110px; }

/* Bolder icon symbols, so they look drawn for the stickers rather than dropped in,
   each with a splash of brand colour */
:is(.svc-card__icon, .why-card__icon) svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.svc-card__icon--game circle { fill: var(--logo-3); stroke: none; }
.svc-card__icon--site path:last-child { stroke: var(--logo-3); }
.svc-card__icon--dash path:nth-of-type(2) { stroke: var(--accent); }

.why-card:nth-child(1) .why-card__icon path { fill: var(--logo-3); }
.why-card:nth-child(2) .why-card__icon path { fill: var(--accent); }
.why-card:nth-child(3) .why-card__icon path:last-child { stroke: var(--logo-3); }
.why-card:nth-child(4) .why-card__icon circle { fill: var(--accent); }

/* A touch less padding inside the sticker cards, so each title fits on one line */
@media (min-width: 1200px) {
  .why-card { padding: 28px 20px; }
}

/* ---------- Process: sticker number badges, matching the icon tiles ---------- */
.step__num {
  width: 50px;
  height: 50px;
  border: 2.5px solid var(--ink);
  border-radius: 15px;
  background: #ece5ff;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  rotate: -4deg;
}

.step:nth-child(2) .step__num { background: #ffd9e7; rotate: 3deg; }
.step:nth-child(3) .step__num { background: #d8f5ea; rotate: -3deg; }

@media (max-width: 809.98px) {
  .step__num { width: 44px; height: 44px; font-size: 17px; }
}

/* The service and "Why" cards rise in one by one (motion.js), and each sticker icon pops in just after its card lands */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.svc-card, .why-card) :is(.svc-card__icon, .why-card__icon) { transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; transition-delay: 0.25s; }
  .js :is(.svc-card, .why-card):not(.is-in) :is(.svc-card__icon, .why-card__icon) { opacity: 0; scale: 0.4; }
}

/* ---------- Hero: three quick facts under the button, as one quiet line ---------- */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* plain text, with a small dot between the facts */
.hero__facts li + li::before {
  content: "·";
  margin: 0 10px;
  color: color-mix(in srgb, var(--soft-ink) 55%, transparent);
  font-weight: 700;
}

/* The line sits right under the button: centred when stacked, left-aligned beside the phone */
.hero__buttons:has(.hero__facts) { flex-direction: column; gap: 22px; }

@media (min-width: 1000px) {
  .hero--split .hero__buttons:has(.hero__facts) { align-items: flex-start; }
  .hero--split .hero__facts { justify-content: flex-start; }
}

/* Phones: left out, so the first demo card still fits in the first screen */
@media (max-width: 809.98px) {
  .hero__facts { display: none; }
}
