/* Extends the approved business-page foundation; applies only to system customization. */
.mazai-custom-services { --custom-muted: #5c557e; background: #fdfcff; }
.mazai-custom-services .header-section { position: sticky; top: 0; }
.mazai-custom-services main > section[id] { scroll-margin-top: 112px; }
.mazai-custom-services :is(button, a, summary):focus-visible { outline: 3px solid #7240da; outline-offset: 5px; }
.custom-eyebrow { color: #7946cf; font-size: 16px; line-height: 1.6; font-weight: 650; letter-spacing: .3px; margin-bottom: 14px !important; }
.custom-hero { position: relative; overflow: hidden; background: #f1edff; }
.custom-hero-inner { position: relative; min-height: 520px; display: flex; align-items: center; padding-block: 52px; }
.custom-hero-copy { position: relative; z-index: 2; padding-left: 24px; max-width: 650px; }
.custom-hero .custom-eyebrow { font-size: 24px; color: #6100ff; margin-bottom: 18px !important; }
.custom-hero h1 { font-size: 60px; line-height: 1.32; letter-spacing: -.5px; }
.custom-hero h1 span { display: block; }
.custom-hero-description { margin-top: 22px !important; color: #514578; font-size: 22px; line-height: 1.8; }
.custom-hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.custom-secondary { display: inline-flex; gap: 13px; align-items: center; color: #44347b; font-size: 18px; font-weight: 600; padding-block: 12px; }
.custom-secondary:hover { color: #6100ff; }
.custom-hero-art { position: absolute; z-index: 1; right: 0; bottom: 58px; width: 650px; height: auto; }
.custom-hero-ring { position: absolute; width: 870px; height: 870px; top: -205px; right: -200px; opacity: .2; pointer-events: none; }
.custom-hero-soft { position: absolute; width: 370px; bottom: -270px; left: -210px; opacity: .45; pointer-events: none; }
.custom-section { padding-block: 86px; }
.custom-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.custom-section-heading h2 { font-size: 40px; line-height: 1.45; letter-spacing: -.4px; }
.custom-section-heading > p { color: var(--custom-muted); font-size: 18px; line-height: 1.85; flex-shrink: 0; padding-bottom: 5px; }
.custom-direction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.custom-direction-card { display: flex; flex-direction: column; min-width: 0; padding: 30px 26px 25px; border: 1px solid #e9e3f5; border-radius: 17px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.custom-direction-card:hover { border-color: #c6b1ef; box-shadow: 0 8px 28px #231d7009; }
.custom-direction-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 25px; color: #7645c5; background: #f0eaff; border-radius: 15px; font-size: 26px; }
.custom-direction-content { display: flex; flex-direction: column; flex: 1; }
.custom-direction-card h3 { font-size: 24px; line-height: 1.6; margin-bottom: 12px; }
.custom-direction-card p { color: var(--custom-muted); font-size: 17px; line-height: 1.9; }
.custom-direction-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block: 20px 24px !important; }
.custom-direction-tags li { color: #79698c; font-size: 14px; line-height: 1.7; }
.custom-text-link { display: inline-flex; align-items: center; gap: 14px; color: #1645b3; font-size: 17px; font-weight: 650; line-height: 1.6; width: fit-content; }
.custom-direction-card .custom-text-link { margin-top: auto; }
.custom-text-link:hover { color: #6100ff; }
.custom-text-link i { font-size: 14px; }
.custom-scenarios { background: #f5f2ff; }
.custom-scenario-tabs { display: flex; gap: 40px; border-bottom: 1px solid #dcd3ed; overflow-x: auto; padding-inline: 2px; scrollbar-width: thin; }
.custom-scenario-tabs button { position: relative; border: 0; background: transparent; padding: 0 12px 20px; color: #6f637f; font-size: 20px; line-height: 1.6; white-space: nowrap; font-weight: 600; flex-shrink: 0; }
.custom-scenario-tabs button[aria-selected="true"] { color: #6100ff; }
.custom-scenario-tabs button[aria-selected="true"]::after { content: ""; position: absolute; height: 4px; background: #823bef; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.custom-scenario-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 66px; padding-top: 42px; }
.custom-scenario-visual { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #eee8ff; }
.custom-scenario-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1365 / 1152; object-fit: contain; }
.custom-scenario-visual figcaption { position: absolute; bottom: 14px; left: 16px; padding: 4px 12px; border-radius: 15px; background: #fff; color: #6f638a; font-size: 12px; box-shadow: 0 2px 8px #231d7009; }
.custom-scenario-copy { padding-right: 36px; }
.custom-scenario-label { margin-bottom: 12px !important; font-size: 15px; color: #8153b8; }
.custom-scenario-copy h3 { font-size: 34px; line-height: 1.5; max-width: 440px; text-wrap: balance; }
.custom-scenario-copy h3 > span { display: block; }
.custom-scenario-description { margin-top: 20px !important; color: #615478; font-size: 18px; line-height: 1.9; max-width: 470px; }
.custom-scenario-copy ul { margin-block: 24px 30px !important; display: grid; gap: 13px; }
.custom-scenario-copy li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: #554572; }
.custom-scenario-copy li i { color: #8c5ed1; font-size: 13px; }
.custom-scenario-note { margin-top: 22px !important; color: #766482; font-size: 13px; line-height: 1.7; }
.custom-process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; gap: 36px; }
.custom-process-list > li { position: relative; padding: 26px 8px 0 0; border-top: 2px solid #e6dff1; }
.custom-process-list h3 { font-size: 26px; margin-top: 14px; line-height: 1.5; }
.custom-process-number { color: #a985d7; font-size: 35px; line-height: 1.3; font-weight: 650; letter-spacing: 1px; }
.custom-process-list p { color: var(--custom-muted); font-size: 17px; line-height: 1.9; margin-top: 14px; }
.custom-process-output { display: inline-block; margin-top: 22px; color: #8055b3; font-size: 14px; }
.custom-delivery { background: #f0eafa; }
.custom-delivery-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding-block: 72px; }
.custom-delivery-copy h2 { font-size: 40px; line-height: 1.55; }
.custom-delivery-copy > p:last-child { margin-top: 24px; font-size: 18px; line-height: 1.9; color: #6a547e; }
.custom-delivery-list { display: grid; gap: 0; }
.custom-delivery-list li { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid #dcd0e9; }
.custom-delivery-list li:last-child { border: 0; }
.custom-delivery-list i { width: 32px; flex-shrink: 0; text-align: center; font-size: 26px; color: #9270be; }
.custom-delivery-list h3 { font-size: 22px; line-height: 1.6; }
.custom-delivery-list p { margin-top: 3px; font-size: 16px; color: #746185; }
.custom-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 90px; }
.custom-faq-intro h2 { font-size: 40px; line-height: 1.5; }
.custom-faq-intro > p:not(.custom-eyebrow) { margin-top: 20px; color: var(--custom-muted); font-size: 19px; line-height: 1.8; }
.custom-faq-intro .custom-text-link { margin-top: 28px; }
.custom-faq-list details { border-bottom: 1px solid #e4ddec; }
.custom-faq-list details:first-child { border-top: 1px solid #e4ddec; }
.custom-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0; cursor: pointer; color: #392764; font-size: 20px; font-weight: 600; line-height: 1.7; list-style: none; }
.custom-faq-list summary::-webkit-details-marker { display: none; }
.custom-faq-list summary i { color: #9a7cc3; font-size: 15px; transition: transform .2s; }
.custom-faq-list details[open] summary i { transform: rotate(45deg); }
.custom-faq-list details p { color: #766584; font-size: 17px; line-height: 1.9; padding-bottom: 27px; }
.custom-cta { margin-bottom: 12px; }
.custom-cta-inner { display: flex; gap: 28px; align-items: center; min-height: 200px; padding: 25px 42px 25px 24px; background: #e9dfff; border-radius: 24px; }
.custom-cta-inner > img { width: 245px; height: 145px; object-fit: contain; flex-shrink: 0; }
.custom-cta-inner > div { flex: 1; }
.custom-cta h2 { font-size: 30px; line-height: 1.6; }
.custom-cta p { color: #6a5084; font-size: 17px; margin-top: 10px; line-height: 1.8; max-width: 590px; }
.custom-footer .source-footer-meta, .custom-footer .source-footer-meta a { color: #71628f; }
.custom-footer .source-footer-meta a:hover { color: #6100ff; }
@media (max-width: 1399px) {
  .custom-hero h1 { font-size: 54px; }
  .custom-hero-art { width: 570px; right: -8px; bottom: 72px; }
  .custom-hero-copy { max-width: 600px; padding-left: 12px; }
  .custom-direction-card { padding-inline: 22px; }
  .custom-direction-card h3 { font-size: 22px; }
  .custom-direction-card p { font-size: 16px; }
  .custom-direction-tags { gap: 4px 8px; }
  .custom-direction-tags li { font-size: 13px; }
  .custom-section-heading h2, .custom-delivery-copy h2, .custom-faq-intro h2 { font-size: 36px; }
  .custom-scenario-panel { gap: 46px; }
  .custom-scenario-copy { padding-right: 12px; }
  .custom-scenario-copy h3 { font-size: 31px; }
  .custom-cta-inner { padding-inline: 24px; gap: 22px; }
  .custom-cta-inner > img { width: 210px; }
  .custom-cta h2 { font-size: 26px; }
  .custom-cta p { font-size: 16px; }
}
@media (max-width: 1199px) {
  .custom-hero-inner { min-height: 490px; }
  .custom-hero h1 { font-size: 48px; }
  .custom-hero-description { font-size: 19px; }
  .custom-hero-art { width: 480px; right: -20px; bottom: 82px; }
  .custom-direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .custom-direction-card { flex-direction: row; gap: 23px; padding: 28px; }
  .custom-direction-icon { flex-shrink: 0; margin-bottom: 0; }
  .custom-direction-card h3 { font-size: 24px; }
  .custom-direction-tags { margin-block: 16px 18px !important; }
  .custom-section-heading h2, .custom-delivery-copy h2, .custom-faq-intro h2 { font-size: 32px; }
  .custom-section-heading > p { font-size: 16px; }
  .custom-scenario-panel { gap: 34px; }
  .custom-scenario-copy h3 { font-size: 28px; }
  .custom-scenario-description { font-size: 16px; }
  .custom-scenario-copy li { font-size: 15px; }
  .custom-scenario-copy ul { gap: 10px; margin-block: 18px 22px !important; }
  .custom-process-list { gap: 24px; }
  .custom-process-list h3 { font-size: 23px; }
  .custom-process-list p { font-size: 16px; }
  .custom-delivery-inner { gap: 56px; }
  .custom-delivery-copy > p:last-child { font-size: 16px; }
  .custom-delivery-list p { font-size: 15px; }
  .custom-faq { gap: 60px; }
  .custom-faq-list summary { font-size: 18px; }
  .custom-cta-inner > img { width: 160px; }
  .custom-cta h2 { font-size: 23px; }
  .custom-cta p { font-size: 15px; }
  .custom-cta .source-primary { padding-inline: 20px; font-size: 16px; }
}
@media (max-width: 991px) {
  .mazai-custom-services main > section[id] { scroll-margin-top: 104px; }
  .custom-hero-inner { min-height: 480px; padding-block: 44px; }
  .custom-hero-copy { padding-left: 0; max-width: 450px; }
  .custom-hero h1 { font-size: 42px; }
  .custom-hero .custom-eyebrow { font-size: 21px; }
  .custom-hero-description { font-size: 17px; }
  .custom-hero-art { width: 375px; right: 0; bottom: 80px; }
  .custom-hero-actions { gap: 20px; margin-top: 24px; }
  .custom-secondary, .custom-hero-actions .source-primary { font-size: 16px; }
  .custom-hero-actions .source-primary { padding: 12px 20px; }
  .custom-section { padding-block: 62px; }
  .custom-section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .custom-section-heading > p { padding: 0; }
  .custom-section-heading > p br { display: none; }
  .custom-direction-card { flex-direction: column; gap: 20px; padding: 25px; }
  .custom-direction-card h3 { font-size: 23px; }
  .custom-direction-content { width: 100%; }
  .custom-direction-card p { font-size: 16px; }
  .custom-scenario-tabs { gap: 24px; }
  .custom-scenario-tabs button { font-size: 18px; padding-bottom: 16px; }
  .custom-scenario-panel { grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: 28px; padding-top: 30px; }
  .custom-scenario-copy { padding-right: 0; }
  .custom-scenario-copy h3 { font-size: 25px; }
  .custom-scenario-description { font-size: 15px; margin-top: 14px !important; }
  .custom-scenario-label { font-size: 13px; }
  .custom-scenario-copy li { font-size: 14px; }
  .custom-scenario-copy ul { margin-block: 16px 20px !important; gap: 9px; }
  .custom-scenario-note { font-size: 12px; margin-top: 15px !important; }
  .custom-scenario-visual figcaption { bottom: 10px; left: 10px; font-size: 11px; }
  .custom-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .custom-delivery-inner { grid-template-columns: 1fr 1fr; gap: 36px; padding-block: 50px; }
  .custom-delivery-copy h2 { font-size: 28px; }
  .custom-delivery-copy > p:last-child { font-size: 15px; }
  .custom-delivery-copy > p:last-child br { display: none; }
  .custom-delivery-list li { gap: 17px; padding-block: 17px; }
  .custom-delivery-list h3 { font-size: 20px; }
  .custom-delivery-list p { font-size: 14px; }
  .custom-delivery-list i { font-size: 23px; width: 28px; }
  .custom-faq { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 35px; }
  .custom-faq-intro h2 { font-size: 28px; }
  .custom-faq-intro > p:not(.custom-eyebrow) { font-size: 16px; }
  .custom-faq-list summary { font-size: 17px; gap: 18px; padding-block: 22px; }
  .custom-faq-list details p { font-size: 15px; }
  .custom-cta-inner { flex-wrap: wrap; gap: 14px 20px; }
  .custom-cta-inner > img { width: 150px; height: 115px; }
  .custom-cta h2 { font-size: 23px; }
  .custom-cta-inner > .source-primary { margin-left: auto; }
}
@media (max-width: 575px) {
  .custom-hero-inner { flex-direction: column; align-items: flex-start; min-height: auto; padding-top: 30px; padding-bottom: 10px; }
  .custom-hero-copy { width: 100%; }
  .custom-hero .custom-eyebrow { font-size: 17px; margin-bottom: 14px !important; }
  .custom-hero h1 { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.45; letter-spacing: 0; }
  .custom-hero-description { font-size: 16px; margin-top: 15px !important; line-height: 1.85; }
  .custom-hero-actions { gap: 20px; margin-top: 22px; }
  .custom-hero-actions .source-primary { font-size: 15px; padding: 12px 17px; gap: 10px; }
  .custom-secondary { font-size: 15px; gap: 10px; }
  .custom-hero-art { position: relative; width: 100%; right: auto; bottom: auto; margin: 28px auto 4px; }
  .custom-hero-ring { width: 750px; height: 750px; right: -530px; top: 50px; opacity: .16; }
  .custom-hero-soft { width: 300px; left: -180px; bottom: -230px; }
  .custom-eyebrow { font-size: 14px; margin-bottom: 12px !important; }
  .custom-section { padding-block: 46px; }
  .custom-section-heading { gap: 14px; margin-bottom: 26px; }
  .custom-section-heading h2 { font-size: 27px; line-height: 1.55; letter-spacing: 0; text-wrap: balance; }
  .custom-section-heading > p { font-size: 15px; line-height: 1.8; }
  .custom-direction-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .custom-direction-card { flex-direction: row; gap: 17px; padding: 24px 20px; border-radius: 14px; }
  .custom-direction-icon { width: 43px; height: 43px; font-size: 21px; border-radius: 12px; }
  .custom-direction-card h3 { font-size: 21px; line-height: 1.6; margin-bottom: 9px; }
  .custom-direction-card p { font-size: 15px; line-height: 1.85; }
  .custom-direction-tags { margin-block: 13px 16px !important; gap: 4px 12px; }
  .custom-direction-tags li { font-size: 12px; }
  .custom-text-link { font-size: 15px; gap: 11px; }
  .custom-scenario-tabs { gap: 20px; }
  .custom-scenario-tabs button { font-size: 16px; padding-inline: 3px; padding-bottom: 14px; }
  .custom-scenario-panel { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 25px; }
  .custom-scenario-visual { border-radius: 14px; }
  .custom-scenario-copy h3 { font-size: 26px; line-height: 1.5; text-wrap: balance; }
  .custom-scenario-description { font-size: 16px; line-height: 1.85; }
  .custom-scenario-copy li { font-size: 15px; }
  .custom-scenario-copy ul { margin-block: 20px 23px !important; gap: 12px; }
  .custom-scenario-note { font-size: 12px; margin-top: 19px !important; }
  .custom-process-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .custom-process-list > li { padding-top: 20px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 19px; }
  .custom-process-number { grid-row: 1 / 4; font-size: 30px; line-height: 1.5; }
  .custom-process-list h3 { font-size: 22px; margin-top: 0; }
  .custom-process-list p { font-size: 15px; margin-top: 8px; }
  .custom-process-output { font-size: 13px; margin-top: 14px; }
  .custom-delivery-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 43px; }
  .custom-delivery-copy h2 { font-size: 28px; line-height: 1.5; }
  .custom-delivery-copy > p:last-child { margin-top: 18px; font-size: 15px; }
  .custom-delivery-list li { gap: 20px; }
  .custom-delivery-list h3 { font-size: 20px; }
  .custom-delivery-list p { font-size: 14px; line-height: 1.8; }
  .custom-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .custom-faq-intro h2 { font-size: 28px; }
  .custom-faq-intro > p:not(.custom-eyebrow) { margin-top: 13px; font-size: 15px; }
  .custom-faq-intro > p:not(.custom-eyebrow) br { display: none; }
  .custom-faq-intro .custom-text-link { margin-top: 20px; }
  .custom-faq-list summary { padding-block: 21px; font-size: 16px; gap: 14px; }
  .custom-faq-list summary i { font-size: 13px; flex-shrink: 0; }
  .custom-faq-list details p { font-size: 15px; padding-bottom: 22px; }
  .custom-cta-inner { flex-direction: column; justify-content: center; text-align: center; padding: 15px 22px 29px; gap: 8px; border-radius: 20px; }
  .custom-cta-inner > img { width: 175px; height: 100px; }
  .custom-cta h2 { font-size: 24px; line-height: 1.55; text-wrap: balance; }
  .custom-cta p { font-size: 15px; margin-top: 11px; }
  .custom-cta-inner > .source-primary { margin: 15px 0 0; }
  .custom-footer .source-footer-meta { font-size: 12px; line-height: 1.8; }
}
@media (max-width: 359px) {
  .custom-hero-actions { gap: 12px; }
  .custom-hero-actions .source-primary { font-size: 14px; padding-inline: 14px; }
  .custom-secondary { font-size: 14px; gap: 7px; }
  .custom-hero-description { font-size: 15px; }
  .custom-direction-card { padding: 22px 16px; gap: 13px; }
  .custom-direction-card h3 { font-size: 19px; }
  .custom-direction-icon { width: 36px; height: 36px; font-size: 18px; }
  .custom-process-list > li { gap: 0 14px; grid-template-columns: 43px minmax(0, 1fr); }
  .custom-faq-list summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mazai-custom-services { scroll-behavior: auto; }
}
