/* Homepage v2: enterprise AI training, diagnosis and workflow pilots. */

#path,
#scenarios {
  scroll-margin-top: 64px;
}

.anchor-target {
  display: block;
  position: relative;
  top: -64px;
  height: 0;
  visibility: hidden;
}

.hero-content {
  padding-top: 82px;
  padding-bottom: 62px;
}

.hero h1 {
  max-width: 1040px;
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero .lede {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.72;
}

.hero-belief {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.hero-offer {
  max-width: 820px;
  display: grid;
  gap: 5px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

img.footer-logo-mark {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

.hero-offer strong {
  color: var(--ink);
}

.challenge-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.challenge-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
}

.challenge-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 24px 22px 25px 0;
}

.challenge-list li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.challenge-list li > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
}

.challenge-list strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.challenge-list p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.65;
}

.path-section {
  border-top: 0;
  background: var(--surface);
}

.delivery-path li {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 22px 15px;
}

.delivery-path p b {
  color: var(--ink);
  font-weight: 650;
}

.delivery-path em {
  min-height: 48px;
}

.delivery-path small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scenario-section {
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.scenario-card:hover,
.scenario-card[open] {
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(36, 60, 90, 0.06);
}

.scenario-card summary {
  min-height: 116px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  padding: 21px 20px;
  cursor: pointer;
  list-style: none;
}

.scenario-card summary::-webkit-details-marker {
  display: none;
}

.scenario-card summary::after {
  content: "+";
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.scenario-card[open] summary::after {
  content: "−";
}

.scenario-card summary > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.scenario-card summary strong {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.scenario-card summary p {
  margin: 7px 0 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
}

.scenario-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 20px 20px 66px;
  border-top: 1px solid var(--line);
}

.scenario-card dl > div {
  min-width: 0;
  padding: 13px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-card dl > div:nth-child(even) {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.scenario-card dt {
  color: var(--blue);
  font-size: 11px;
  font-weight: 680;
}

.scenario-card dd {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.55;
}

.scenario-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: -8px 20px 16px 66px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.sales-samples {
  margin-top: 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.sales-samples > summary {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.sales-samples > summary::-webkit-details-marker {
  display: none;
}

.sales-samples > summary > span:first-child {
  display: grid;
  gap: 4px;
}

.sales-samples > summary strong {
  font-size: 15px;
}

.sales-samples > summary small {
  color: var(--muted);
  font-size: 12px;
}

.sales-samples > summary > span:last-child {
  color: var(--blue);
  font-size: 22px;
}

.sales-samples[open] > summary > span:last-child {
  transform: rotate(45deg);
}

.sales-samples .agent-grid {
  padding: 8px 0 18px;
}

.pilot-section {
  background: var(--accent-soft);
}

.pilot-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
}

.pilot-heading h2 {
  max-width: 460px;
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.18;
}

.pilot-heading > p {
  margin: 18px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.pilot-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 102, 204, 0.28);
  list-style: none;
}

.pilot-steps li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.pilot-steps li > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 680;
}

.pilot-steps strong {
  font-size: 15px;
}

.pilot-steps p {
  margin: 5px 0 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.55;
}

.about-summary blockquote {
  margin: 22px 0 26px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
  }

  .home-account {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 21px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    display: none;
    width: auto;
    gap: 0;
    justify-content: stretch;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(33, 48, 68, 0.08);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero h1 {
    font-size: 46px;
  }

  .challenge-list {
    grid-template-columns: 1fr;
  }

  .challenge-list li,
  .challenge-list li + li {
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .challenge-list li:last-child {
    border-bottom: 0;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .pilot-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .hero-content {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.3;
  }

  .hero .lede {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.72;
  }

  .service-scope {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-offer {
    width: 100%;
    margin-top: 18px;
    padding: 0;
    font-size: 15px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .challenge-list strong {
    font-size: 15px;
  }

  .delivery-path em {
    min-height: 0;
  }

  .delivery-path small {
    margin-top: 6px;
  }

  .scenario-card summary {
    min-height: 96px;
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 9px;
    padding: 17px 15px;
  }

  .scenario-card summary strong {
    font-size: 15px;
  }

  .scenario-card summary p {
    font-size: 12.5px;
  }

  .scenario-card dl {
    grid-template-columns: 1fr;
    margin: 0 15px 14px 50px;
  }

  .scenario-card dl > div,
  .scenario-card dl > div:nth-child(even) {
    padding: 10px 0;
    border-left: 0;
  }

  .scenario-link {
    margin-left: 50px;
  }

  .sales-samples > summary {
    min-height: 70px;
  }

  .sales-samples > summary small {
    max-width: 260px;
    line-height: 1.5;
  }

  .pilot-heading h2 {
    font-size: 28px;
  }

  .pilot-steps li {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .about-summary blockquote {
    margin: 18px 0 22px;
    padding-left: 15px;
    font-size: 15px;
  }
}
.brand .brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  border-radius: 0;
}

/* The homepage is an overview; detailed service descriptions live on their own pages. */
.home-compact .section { padding: 44px 0; }
.home-compact .hero { padding: 52px 0 42px; }
.home-compact .hero-content { padding-block: 0; }
.home-compact .hero .lede { max-width: 960px; }
.home-compact .hero-offer { margin: 16px 0; }
.home-compact .hero-belief { margin-bottom: 0; }
.home-compact h2 { font-family: inherit; font-size: 28px; line-height: 1.4; margin: 0 0 16px; }
.home-compact h3 { font-size: 19px; line-height: 1.5; }
.home-compact p { line-height: 1.75; }
.compact-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.compact-heading h2 { margin-bottom: 0; }
.home-compact a:not(.button):not(.article-title-link) { color: #0066cc; }
.compact-training, .compact-library { background: #f4f8fc; border-block: 1px solid #e1e8ef; }
.section-anchor { display: block; scroll-margin-top: 90px; }
.compact-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 24px 0 0; gap: 32px; }
.compact-steps li { position: relative; }
.step-number { font-size: 13px; color: #0066cc; font-weight: 700; }
.compact-steps h3, .compact-example h3 { margin: 6px 0; }
.compact-steps p, .compact-example p { margin: 0; color: #4c5967; font-size: 16px; }
.compact-steps a { display: inline-block; padding-top: 8px; }
.home-compact .compact-note { margin: 18px 0 0; color: #657281; font-size: 14px; }
.compact-note a { display: inline-block; }
.compact-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.compact-example { padding-left: 14px; border-left: 2px solid #b8d5ee; }
.compact-intro { margin: 12px 0 20px; color: #4c5967; }
.home-resource-list { border-top: 1px solid #ccd8e4; }
.home-resource-list > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid #ccd8e4; text-decoration: none; }
.home-resource-list strong { color: #18212a; font-size: 18px; }
.home-resource-list small { display: block; font-size: 14px; color: #566474; margin-top: 4px; }
.resource-kind { font-size: 14px; white-space: nowrap; }
.home-compact .compact-about { padding-bottom: 24px; }
.compact-about p { max-width: 850px; margin: 0 0 12px; }
.home-compact .content-section-head { margin-bottom: 16px; }
.home-compact .article-board { padding-top: 0; }
.home-compact .essay-row { padding-block: 17px; gap: 16px; }
.home-compact .essay-row h3 { margin: 5px 0 0; font-size: 18px; }
.home-compact .essay-copy > p { display: none; }
.home-compact .article-pagination { margin-top: 18px; }
.home-compact .faq-list { display: block; }
.home-compact .faq-list details { border: 0; border-bottom: 1px solid #dde3ea; border-radius: 0; background: transparent; padding: 0; }
.home-compact .faq-list summary { padding: 16px 0; min-height: 44px; }
.home-compact .faq-list details p { padding: 0 0 16px; margin: 0; }
.home-compact .contact-section { padding: 32px 0; }
.home-compact .contact-section p { margin: 8px 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mobile-contact-bar { display: none; }
.inline-contact { max-width: 760px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce2e9; scroll-margin-top: 90px; }
.inline-contact-title { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #263248; }
.inline-contact-fields { display: grid; grid-template-columns: minmax(100px,1fr) minmax(160px,2fr) auto; gap: 12px; align-items: end; }
.inline-contact-fields label { display: grid; gap: 6px; min-width: 0; font-size: 13px; color: #46566a; }
.inline-contact-fields input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid #bfc9d4; border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: #172033; }
.inline-contact-fields input:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.inline-contact-submit { min-height: 46px; padding: 10px 22px; border: 1px solid #0066cc; border-radius: 6px; background: #0066cc; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.inline-contact-submit:disabled { opacity: .6; cursor: wait; }
.inline-contact-notice { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #657185; }
.inline-contact [data-contact-message]:empty { display: none; }
body:has(.inline-contact:focus-within) .xiaoyang-root { visibility: hidden; pointer-events: none; }
@media (max-width: 680px) {
  body.inline-contact-in-view .xiaoyang-root { visibility: hidden; pointer-events: none; }
  body:has(.inline-contact:focus-within) .mobile-contact-bar { display: none; }
}
@media (max-width: 480px) {
  .inline-contact { margin-top: 20px; padding-top: 16px; }
  .inline-contact-fields { grid-template-columns: minmax(90px,1fr) minmax(150px,1.7fr); gap: 10px; }
  .inline-contact-submit { grid-column: 1 / -1; }
}
.home-compact ~ .footer { padding-top: 32px; }
.home-compact ~ .footer .footer-made { display: none; }
@media (max-width: 680px) {
  .home-compact .section { padding: 28px 0; }
  .home-compact .hero { padding: 30px 0; }
  .home-compact h2 { font-size: 22px; }
  .home-compact h3 { font-size: 17px; }
  .home-compact .hero h1 { font-size: 29px; line-height: 1.4; }
  .home-compact .hero .lede { font-size: 16px; line-height: 1.75; margin-top: 16px; }
  .home-compact .hero-offer { font-size: 15px; }
  .home-compact .service-scope { font-size: 15px; margin: 20px 0 14px; }
  .home-compact .hero-actions { gap: 10px; margin-top: 0; }
  .home-compact .hero-actions .button { min-height: 44px; padding: 11px 16px; font-size: 15px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; min-height: 44px; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 38;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #d7e0e8;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 22px rgba(24, 33, 42, 0.08);
  }
  .mobile-contact-button {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #91a5b8;
    border-radius: 6px;
    background: #ffffff;
    color: #18212a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }
  .mobile-contact-button.is-primary {
    border-color: #0066cc;
    background: #0066cc;
    color: #ffffff;
  }
  .mobile-contact-button.is-copied { border-color: #0f9f7a; background: #eaf8f2; color: #0a755e; }
  .home-compact ~ .footer .footer-bottom { padding-bottom: 118px; }
  .compact-steps, .compact-examples { grid-template-columns: minmax(0,1fr); gap: 18px; margin-top: 18px; }
  .compact-steps li { padding-left: 34px; }
  .step-number { position: absolute; top: 8px; left: 0; }
  .compact-steps h3 { margin-top: 0; }
  .compact-steps p, .compact-example p { font-size: 15px; }
  .compact-heading { gap: 8px; }
  .compact-heading > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
  .home-resource-list > a { gap: 8px; padding-block: 14px; }
  .home-resource-list strong { font-size: 16px; }
  .home-resource-list small, .resource-kind { font-size: 12px; }
  .home-compact .content-section-head h2 { font-size: 22px; }
  .home-compact .essay-row h3 { font-size: 17px; }
  .home-compact .essay-row { padding-block: 15px; }
  .home-compact .faq-list summary { font-size: 15px; }
  .home-compact .compact-about p { font-size: 15px; }
  .home-compact ~ .footer .footer-grid { gap: 24px; }
  .home-compact ~ .footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .home-compact ~ .footer .footer-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .mobile-contact-bar ~ .xiaoyang-root { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
