/* Homepage expansion only. All selectors are scoped to new content. */
#home-expansion {
  --p2-ink: #092750;
  --p2-copy: #466486;
  --p2-blue: #087aff;
  --p2-cyan: #17c7f6;
  --p2-edge: #cfe3fb;
  --p2-radius: 20px;
  --p2-space: clamp(29.33px, 3vw, 45.33px);
  color: var(--p2-ink);
  display: flow-root;
}
#home-expansion .p2-section {
  width: var(--page);
  margin-inline: auto;
  padding-top: var(--p2-space);
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  scroll-margin-top: 82px;
}
#home-expansion .p2-kicker { margin: 0 0 10px; color: var(--p2-blue); font: 800 11px/1.4 Arial, sans-serif; letter-spacing: .12em; }
#home-expansion .p2-heading { margin: 0; font-size: clamp(25px, 2.3vw, 32px); font-weight: 750; line-height: 1.35; }
#home-expansion .p2-lead { max-width: 610px; margin: 12px 0 0; color: var(--p2-copy); font-size: 14px; line-height: 1.8; }
#home-expansion .p2-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
#home-expansion .scene-jumps { display: flex; flex-wrap: wrap; gap: 8px; }
#home-expansion .scene-jumps a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--p2-edge); border-radius: 999px; color: #235e98; background: #f8fcff; font-size: 12px; font-weight: 650; }
#home-expansion .scene-jumps a:hover { border-color: #64b5ff; color: #0068d5; background: #fff; }
#home-expansion #business-scenes { --p2-space: clamp(26.67px, 2.53vw, 37.33px); }
#home-expansion #delivery-system { --p2-space: clamp(30.67px, 2.6vw, 38.67px); }
#home-expansion #business-scenes .p2-section-head { margin-bottom: 26px; }
#home-expansion .scenario { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(24px, 3.5vw, 52px); padding-block: 18px; scroll-margin-top: 82px; }
#home-expansion .scenario + .scenario { margin-top: 10px; }
#home-expansion .scenario--reverse { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
#home-expansion .scenario--reverse .scenario-copy { grid-column: 2; grid-row: 1; }
#home-expansion .scenario--reverse .scenario-figure { grid-column: 1; grid-row: 1; }
#home-expansion .scenario-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #0876e7; font-size: 12px; font-weight: 650; }
#home-expansion .scenario-label::before { content: ''; width: 18px; height: 2px; background: #12b9ed; }
#home-expansion .scenario h3 { margin: 0; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.4; font-weight: 750; }
#home-expansion .scenario-description { margin: 13px 0 0; color: var(--p2-copy); font-size: 14px; line-height: 1.8; }
#home-expansion .scenario-points { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
#home-expansion .scenario-points li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 7px; color: #375b80; font-size: 13px; line-height: 1.65; }
#home-expansion .scenario-points li::before { content: '✓'; color: #0788ee; font-weight: 700; }
#home-expansion .scenario-points b { color: #123c69; font-weight: 650; }
#home-expansion .scenario-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #0876e7; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; }
#home-expansion .scenario-link span { transition: transform .18s ease; }
#home-expansion .scenario-link:hover { color: #005fca; }
#home-expansion .scenario-link:hover span { transform: translateX(3px); }
#home-expansion .scenario-link:focus-visible { outline: 3px solid #8dd5ff; outline-offset: 4px; border-radius: 4px; }
#home-expansion .scenario-figure { --scenario-radius: 20px; position: relative; margin: 0; overflow: hidden; border: 1px solid #bcdcff; border-radius: var(--scenario-radius); background: radial-gradient(ellipse at 65% 100%, #0863bd, transparent 70%), linear-gradient(135deg, #072359, #0c438c); background-clip: padding-box; box-shadow: 0 16px 32px rgb(17 80 157 / 18%), inset 0 1px #c5ebff; }
#home-expansion .scenario-figure--light { background: radial-gradient(ellipse at 80% 20%, #e2f6ff, transparent 70%), linear-gradient(135deg, #e5f0ff, #f9fcff); }
#home-expansion .scenario-picture { display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: calc(var(--scenario-radius) - 2px); clip-path: inset(0 round calc(var(--scenario-radius) - 2px)); isolation: isolate; }
#home-expansion .scenario-art { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; clip-path: inset(0 round calc(var(--scenario-radius) - 2px)); }
#home-expansion .scenario-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 11px 18px 13px; border-top: 1px solid rgb(147 206 255 / 25%); border-radius: 0 0 var(--scenario-radius) var(--scenario-radius); color: #d0eaff; font-size: 11px; line-height: 1.6; }
#home-expansion .scenario-figure--light figcaption { border-color: #cbdff5; color: #446b94; }
#home-expansion .scenario-figure figcaption span:last-child { opacity: .85; }
#home-expansion #delivery-system { background: transparent; border-block: 0; }
#home-expansion .delivery-experience { display: grid; gap: 16px; }
#home-expansion .delivery-stage-tabs { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; }
#home-expansion .delivery-stage-tabs::before { content: ''; position: absolute; z-index: 0; top: 34px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, #a8d7fa, #1688ef 50%, #a8d7fa); }
#home-expansion .delivery-stage { position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; width: 100%; min-width: 0; min-height: 116px; padding: 14px 16px 15px; border: 1px solid rgb(198 220 244 / 88%); border-radius: 15px; color: #163c68; background: rgb(255 255 255 / 86%); box-shadow: 0 4px 12px rgb(29 91 157 / 5%); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
#home-expansion .delivery-stage:hover { border-color: #7bbcff; transform: translateY(-2px); }
#home-expansion .delivery-stage:focus-visible { outline: 3px solid #009bff; outline-offset: 3px; }
#home-expansion .delivery-stage.is-active { border-color: #49a4f8; background: rgb(238 248 255 / 96%); box-shadow: 0 9px 20px rgb(20 111 203 / 13%), inset 0 0 0 1px rgb(111 184 246 / 23%); }
#home-expansion .delivery-stage.is-active::after { content: ''; position: absolute; right: 15px; bottom: -1px; left: 15px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #19c5ee, #087aff); }
#home-expansion .delivery-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#home-expansion .delivery-stage-number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d4e8fb; border-radius: 12px; color: #1379d8; background: #eaf5ff; font: 750 13px/1 Arial, sans-serif; }
#home-expansion .delivery-stage.is-active .delivery-stage-number { border-color: transparent; color: #fff; background: linear-gradient(145deg, #16bfe9, #0875ec); box-shadow: 0 4px 10px rgb(8 122 255 / 24%); }
#home-expansion .delivery-stage-code { color: #6683a5; font: 700 9px/1 Arial, sans-serif; }
#home-expansion .delivery-stage strong { font-size: 15px; line-height: 1.35; }
#home-expansion .delivery-stage small { color: #5c7898; font-size: 12px; line-height: 1.45; }
#home-expansion .delivery-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; gap: 20px 34px; min-height: 276px; overflow: hidden; padding: 25px 30px 16px; border: 1px solid rgb(198 220 244 / 88%); border-radius: 19px; background: rgb(255 255 255 / 88%); box-shadow: 0 12px 28px rgb(20 75 135 / 8%), inset 0 1px rgb(255 255 255 / 90%); transition: opacity .16s, transform .16s; }
#home-expansion .delivery-panel::before { content: ''; position: absolute; z-index: -1; top: -120px; right: -90px; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle, rgb(45 161 255 / 7%), transparent 70%); pointer-events: none; }
#home-expansion .delivery-panel.is-switching { opacity: .72; transform: translateY(3px); }
#home-expansion .delivery-panel-summary { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
#home-expansion .delivery-panel-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#home-expansion .delivery-panel-phase { color: #2584d8; font: 750 10px/1.4 Arial, sans-serif; }
#home-expansion .delivery-panel-demo { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #cce5fa; border-radius: 999px; color: #507397; background: #f5fbff; font-size: 11px; }
#home-expansion .delivery-panel-demo i { width: 6px; height: 6px; border-radius: 50%; background: #16bca0; box-shadow: 0 0 0 3px rgb(22 188 160 / 12%); }
#home-expansion .delivery-panel-summary h3 { margin: 18px 0 0; color: #0b2d57; font-size: 25px; font-weight: 750; line-height: 1.35; }
#home-expansion .delivery-focus { margin-top: 16px; }
#home-expansion .delivery-focus > span { color: #3376b3; font-size: 12px; font-weight: 700; }
#home-expansion .delivery-focus p { margin: 7px 0 0; color: #476687; font-size: 14px; line-height: 1.8; }
#home-expansion .delivery-panel-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; min-width: 0; }
#home-expansion .delivery-detail { min-width: 0; padding: 17px; border: 1px solid #d2e4f7; border-radius: 14px; background: rgb(255 255 255 / 84%); box-shadow: 0 4px 12px rgb(44 110 181 / 5%); }
#home-expansion .delivery-detail h4 { display: flex; align-items: center; gap: 9px; margin: 0; color: #183f6c; font-size: 14px; font-weight: 700; line-height: 1.5; }
#home-expansion .delivery-detail-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; color: #0879e7; background: #e9f5ff; font: 750 9px/1 Arial, sans-serif; }
#home-expansion .delivery-output-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
#home-expansion .delivery-output-list li { display: flex; align-items: center; gap: 8px; color: #3e6185; font-size: 13px; line-height: 1.5; }
#home-expansion .delivery-output-list li::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #16a9ea; box-shadow: 0 0 0 3px #e7f5ff; }
#home-expansion .delivery-detail-result p { margin: 15px 0 0; color: #315b83; font-size: 14px; font-weight: 600; line-height: 1.75; }
#home-expansion .delivery-detail-result small { display: block; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e0edf8; color: #718aa5; font-size: 11px; line-height: 1.5; }
#home-expansion .delivery-panel-note { grid-column: 1 / -1; margin: 0; padding-top: 11px; border-top: 1px solid #dfebf7; color: #728ba7; font-size: 11px; line-height: 1.55; }
#home-expansion .faq-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
#home-expansion .faq-head .p2-lead { margin-top: 0; justify-self: end; }
#home-expansion .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; }
#home-expansion .faq-item { border: 1px solid var(--p2-edge); border-radius: 14px; background: linear-gradient(120deg, #fff, #f3f9ff); box-shadow: 0 4px 12px rgb(40 110 200 / 5%); }
#home-expansion .faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 15px 19px; border: 0; border-radius: 14px; color: var(--p2-ink); background: transparent; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.6; text-align: left; cursor: pointer; }
#home-expansion .faq-question:hover { color: #0870df; }
#home-expansion .faq-question span { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #b7d7f6; border-radius: 50%; color: #087aff; font: 400 18px/1 Arial; transition: transform .18s; }
#home-expansion .faq-question[aria-expanded='true'] span { transform: rotate(45deg); }
#home-expansion .faq-answer { padding: 0 19px 20px; color: var(--p2-copy); font-size: 14px; line-height: 1.8; }
#home-expansion .faq-answer[hidden] { display: none; }
#home-expansion .faq-answer p { margin: 0; }
#home-expansion :is(a, button):focus-visible { outline: 3px solid #009bff; outline-offset: 4px; }
#home-expansion .home-consultation { position: relative; isolation: isolate; display: grid; width: var(--page); grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 28px; margin: clamp(32px, 2.6667vw, 42.67px) auto; padding: clamp(28px, 3.4vw, 46px) clamp(24px, 4vw, 58px); overflow: hidden; border: 1px solid #1686e7; border-radius: 22px; color: #fff; background: linear-gradient(115deg, #06266e, #0a56c0 53%, #04256b); box-shadow: 0 18px 38px rgb(10 79 160 / 18%); }
#home-expansion .home-consultation::before { content: ''; position: absolute; z-index: -1; right: -8%; bottom: -75%; width: 56%; aspect-ratio: 1; border: 1px solid rgb(126 229 255 / 42%); border-radius: 50%; box-shadow: 0 0 0 22px rgb(126 229 255 / 8%), 0 0 0 55px rgb(126 229 255 / 5%); }
#home-expansion .home-consultation::after { content: ''; position: absolute; z-index: -1; right: -8%; bottom: -90px; left: -8%; width: auto; height: 190px; border-top: 1px solid rgb(82 210 255 / 65%); border-radius: 50%; transform: rotate(-3deg); box-shadow: 0 -10px 30px rgb(24 182 255 / 25%); }
#home-expansion .home-consultation .p2-kicker { margin-bottom: 9px; color: #91eaff; }
#home-expansion .home-consultation h2 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.35; }
#home-expansion .home-consultation-copy > p:last-child { max-width: 650px; margin: 12px 0 0; color: #c7e7ff; font-size: 14px; line-height: 1.8; }
#home-expansion .home-consultation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
#home-expansion .home-consultation-actions .button { min-height: 45px; }
#home-expansion .home-consultation-actions .button-outline { border-color: rgb(174 231 255 / 58%); color: #e8f8ff; background: rgb(255 255 255 / 10%); }
#home-expansion .home-consultation-actions .button-outline:hover { border-color: #fff; background: rgb(255 255 255 / 18%); }
@media (max-width: 1000px) {
  #home-expansion .p2-section-head { display: block; }
  #home-expansion .scene-jumps { margin-top: 18px; }
  #home-expansion .scenario, #home-expansion .scenario--reverse { gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #home-expansion .scenario h3 { font-size: 23px; }
  #home-expansion .scenario-points { margin-top: 14px; gap: 8px; }
  #home-expansion .scenario-picture { aspect-ratio: 390 / 300; }
  #home-expansion .delivery-stage-tabs { gap: 8px; }
  #home-expansion .delivery-stage { padding-inline: 12px; }
  #home-expansion .delivery-stage strong { font-size: 14px; }
  #home-expansion .delivery-stage small { font-size: 11px; }
  #home-expansion .delivery-panel { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 18px; padding: 22px 20px 15px; }
  #home-expansion .delivery-panel-details { gap: 9px; }
  #home-expansion .delivery-detail { padding: 13px; }
}
@media (max-width: 760px) {
  #home-expansion { --p2-space: 28px; }
  #home-expansion #business-scenes { --p2-space: 22.67px; }
  #home-expansion #business-scenes .p2-section-head { margin-bottom: 22px; }
  #home-expansion #delivery-system { --p2-space: 28px; }
  #home-expansion .p2-heading { font-size: 26px; }
  #home-expansion .p2-section-head { margin-bottom: 22px; }
  #home-expansion .scenario, #home-expansion .scenario--reverse { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-block: 13px; }
  #home-expansion .scenario + .scenario { margin-top: 20px; }
  #home-expansion .scenario--reverse .scenario-copy { grid-column: 1; grid-row: 1; }
  #home-expansion .scenario--reverse .scenario-figure { grid-column: 1; grid-row: 2; }
  #home-expansion .scenario-picture { aspect-ratio: 390 / 300; }
  #home-expansion .scenario-points { margin-top: 12px; gap: 7px; }
  #home-expansion .scenario-figure { --scenario-radius: 18px; }
  #home-expansion .scenario-description { margin-top: 10px; }
  #home-expansion .scenario-figure figcaption { margin-inline: 0; padding: 10px 14px 11px; font-size: 10px; }
  #home-expansion .delivery-experience { gap: 12px; }
  #home-expansion .delivery-stage-tabs { gap: 6px; margin-top: 20px; }
  #home-expansion .delivery-stage-tabs::before { top: 19px; left: 8%; right: 8%; }
  #home-expansion .delivery-stage { justify-items: center; align-content: center; gap: 5px; min-height: 67px; padding: 7px 2px; border-radius: 12px; text-align: center; }
  #home-expansion .delivery-stage-top { justify-content: center; }
  #home-expansion .delivery-stage-number { width: 23px; height: 23px; border-radius: 8px; font-size: 10px; }
  #home-expansion .delivery-stage-code, #home-expansion .delivery-stage small { display: none; }
  #home-expansion .delivery-stage strong { font-size: 11px; line-height: 1.25; white-space: nowrap; }
  #home-expansion .delivery-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding: 18px 16px 13px; border-radius: 16px; }
  #home-expansion .delivery-panel-meta { gap: 7px; }
  #home-expansion .delivery-panel-demo { padding: 5px 9px; font-size: 10px; }
  #home-expansion .delivery-panel-summary h3 { margin-top: 14px; font-size: 22px; }
  #home-expansion .delivery-focus { margin-top: 12px; }
  #home-expansion .delivery-focus p { font-size: 14px; line-height: 1.7; }
  #home-expansion .delivery-panel-details { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  #home-expansion .delivery-detail { padding: 13px 14px; border-radius: 12px; }
  #home-expansion .delivery-output-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  #home-expansion .delivery-output-list li { font-size: 12px; }
  #home-expansion .delivery-detail-result p { margin-top: 10px; font-size: 13px; }
  #home-expansion .delivery-detail-result small { margin-top: 9px; padding-top: 8px; }
  #home-expansion .delivery-panel-note { padding-top: 9px; font-size: 10px; }
  #home-expansion .faq-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 23px; }
  #home-expansion .faq-head .p2-lead { justify-self: start; }
  #home-expansion .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #home-expansion .faq-question { padding: 15px; min-height: 60px; }
  #home-expansion .faq-answer { padding: 0 15px 18px; }
  #home-expansion .home-consultation { grid-template-columns: 1fr; gap: 21px; margin-block: clamp(18.67px, 5.3333vw, 26.67px); padding: 27px 20px; border-radius: 18px; }
  #home-expansion .home-consultation h2 { font-size: 25px; }
  #home-expansion .home-consultation-copy > p:last-child { font-size: 13px; line-height: 1.75; }
  #home-expansion .home-consultation-actions { justify-content: flex-start; }
  #home-expansion .home-consultation-actions .button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #home-expansion .faq-question span,
  #home-expansion .delivery-stage,
  #home-expansion .delivery-panel { transition: none; }
}

/* Keep the homepage expansion on the shared fixed section rhythm. */
#home-expansion > .p2-section {
  padding-block: var(--page-section-space);
}

#home-expansion > .home-consultation {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  margin: 0;
  padding: var(--page-section-space) max(12px, calc((100vw - var(--page)) / 2));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Keep the homepage CTA visually aligned with the development service CTA. */
#home-expansion > .home-consultation::before {
  inset: 0;
  right: auto;
  bottom: auto;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(ellipse at 82% 18%, rgb(31 182 255 / 28%), transparent 42%);
}
#home-expansion > .home-consultation h2 {
  max-width: 700px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
}
#home-expansion > .home-consultation-copy > p:last-child {
  max-width: 660px;
  margin: 15px 0 0;
  color: #c3e2fb;
  font-size: 14px;
  line-height: 1.8;
}
#home-expansion > .home-consultation-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
#home-expansion > .home-consultation > .home-consultation-actions .button {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 25px;
}

/* Legacy homepage sections use the same token as the Plan-E pages. */
#products.section,
#ai-flow.section,
#solutions.section,
#contact.stats-cta {
  padding-block: var(--page-section-space);
}

@media (min-width: 1181px) {
  #ai-flow .flow-step > span::before {
    width: 22px;
    height: 22px;
  }

  #ai-flow .flow-step > span svg,
  #solutions .solution-icon svg {
    display: none;
  }
}

@media (max-width: 900px) {
  #home-expansion > .home-consultation {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  #home-expansion > .home-consultation-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #home-expansion > .home-consultation h2 { font-size: 29px; }
  #home-expansion > .home-consultation-copy > p:last-child { font-size: 13px; }
  #home-expansion > .home-consultation > .home-consultation-actions .button { min-height: 48px; }
}
