/* SAP at AiSolv: the AISOLV conversion toolset hub. Builds on flow.css. */
.sap-hero { padding-bottom: 40px; }
.sap-hero .flow-hero-center { max-width: 1240px; }
.sap-hero .flow-hero-center h1 { font-size: clamp(42px, 5.4vw, 86px); }
.sap-hero .flow-description { max-width: 760px; }
.sap-scan { max-width: 1080px; margin: 70px auto 0; border: 1px solid #afc2d333; background: #101a22cc; border-radius: 4px; font: 11px/1.5 var(--mono); }
.sap-scan-bar, .sap-scan-foot { display: flex; justify-content: space-between; gap: 15px; padding: 12px 16px; font-size: 9px; color: #8faac0; }
.sap-scan-bar { border-bottom: 1px solid #afc2d322; }
.sap-scan-bar > span:first-child { display: flex; align-items: center; gap: 9px; }
.sap-scan-bar i { width: 6px; height: 6px; background: #98d9c8; display: inline-block; }
.sap-scan-foot { border-top: 1px solid #afc2d322; }
.sap-scan ul { list-style: none; margin: 0; padding: 6px 16px; }
.sap-scan li { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 9px 0; color: #dce6ee; }
.sap-scan li + li { border-top: 1px solid #afc2d314; }
.sap-scan li b { font-weight: 400; color: #9fc0ef; font-size: 10px; }
.sap-scan li b small { display: block; color: #6f8aa0; font-size: 8px; }
.sap-scan li > span { font-family: var(--sans); font-size: 14px; letter-spacing: -.01em; }
.sap-scan li > i { font-style: normal; font-size: 8px; padding: 4px 7px; border: 1px solid #98d9c855; color: #98d9c8; text-transform: uppercase; }
.sap-scan li > i.scan-designed, .sap-scan li > i.scan-stated { border-color: #f5d58a55; color: #f5d58a; }
.sap-stats { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #a0b6c933; }
.sap-stats li { padding: 22px 20px 0 0; font: 9px/1.6 var(--mono); color: #8faac0; text-transform: uppercase; }
.sap-stats li + li { padding-left: 20px; border-left: 1px solid #a0b6c933; }
.sap-stats strong { display: block; font: 400 clamp(28px, 2.8vw, 44px)/1 var(--sans); letter-spacing: -.05em; color: #fff; margin-bottom: 10px; text-transform: none; }

.sap-timing { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7%; align-items: start; }
.sap-timing h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 18px; }
.sap-timing > div > p:not(.flow-eyebrow) { font-size: 14px; line-height: 1.8; color: #5e6f7c; }
.sap-timing-table { width: 100%; border-collapse: collapse; text-align: left; background: #f3f4f1; border: 1px solid #cfd8da; }
.sap-timing-table caption { text-align: left; font: 9px/1.5 var(--mono); color: #657581; padding-bottom: 12px; }
.sap-timing-table thead th { font: 9px/1.5 var(--mono); color: #536572; padding: 14px 18px; background: #dae2e2; }
.sap-timing-table tbody th, .sap-timing-table td { padding: 18px; border-top: 1px solid #cfd8da; font-size: 14px; line-height: 1.5; font-weight: 400; vertical-align: top; }
.sap-timing-table td:nth-child(2) { color: #6b7a85; }
.sap-timing-table td:last-child { color: #0c4ba9; }

.sap-module-index { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid #c5ced2; border-bottom: 1px solid #c5ced2; margin-bottom: 30px; position: sticky; top: 92px; z-index: 5; background: #f1f2efee; backdrop-filter: blur(12px); }
.sap-module-index a { padding: 16px 14px; font-size: 17px; letter-spacing: -.02em; }
.sap-module-index a + a { border-left: 1px solid #c5ced2; }
.sap-module-index a:hover { color: #0f62fe; }
.sap-module-index span { display: block; font: 9px var(--mono); color: #0f62fe; margin-bottom: 8px; }
.sap-module-index small { display: block; font-size: 10px; color: #6b7a85; margin-top: 4px; letter-spacing: 0; }
.sap-module { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 4%; padding: 44px 0; border-top: 1px solid #c5ced2; scroll-margin-top: 190px; }
.sap-module-num { display: block; font: 10px var(--mono); color: #0f62fe; margin-bottom: 20px; }
.sap-module-head h3 { font-size: clamp(40px, 4vw, 60px); letter-spacing: -.06em; line-height: 1; margin-bottom: 18px; }
.sap-module-head h3 small { font-size: 15px; letter-spacing: -.01em; color: #6b7a85; }
.sap-question { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; color: #26323c; max-width: 360px; }
.sap-module-demo, .sap-module-cta { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 12px; border-bottom: 1px solid currentColor; padding-bottom: 7px; }
.sap-module-demo:hover { color: #0f62fe; }
.sap-module-cta { border: 0; padding: 14px 16px; background: #0f62fe; color: #fff; }
.sap-module-cta:hover { background: #0353e9; }
.sap-module-steps { list-style: none; margin: 0; padding: 0; }
.sap-module-steps li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid #d5dcdf; }
.sap-module-steps li:first-child { border-top: 0; padding-top: 0; }
.sap-module-steps li > span { font: 9px/2 var(--mono); color: #0f62fe; }
.sap-module-steps h4 { font-size: 16px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 6px; }
.sap-module-steps p { font-size: 13px; line-height: 1.7; color: #61707b; }
.sap-measured { background: #15212b; color: #e2ebf2; padding: 24px; border-radius: 3px; align-self: start; }
.sap-measured > p:first-child { font: 8px/1.5 var(--mono); color: #8faac0; margin-bottom: 14px; }
.sap-measured ul { list-style: none; margin: 0; padding: 0; }
.sap-measured li { padding: 12px 0; border-top: 1px solid #ffffff18; }
.sap-measured li:first-child { border-top: 0; padding-top: 0; }
.sap-measured strong { display: block; font-weight: 400; font-size: 28px; letter-spacing: -.045em; line-height: 1.1; margin-bottom: 6px; }
.sap-measured li span { font-size: 11px; line-height: 1.6; color: #a9bccb; }
.sap-measured-note { margin-top: 12px; padding-top: 14px; border-top: 1px solid #ffffff18; font-size: 11px; line-height: 1.65; color: #9fc0ef; }
.sap-module-flow { background: linear-gradient(90deg, #dfe9f6, #f1f2ef 70%); margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
.sap-module-next { grid-template-columns: 1fr 2.29fr; }
.sap-next-copy p { font-size: 15px; line-height: 1.8; color: #61707b; max-width: 620px; padding: 22px; border: 1px solid #c5ced2; background: #f3f4f1; }

.sap-spine { display: grid; gap: 14px; align-self: center; }
.spine-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.spine-fit, .spine-reads > div, .spine-direct > * { padding: 18px; border: 1px solid #819db155; background: #1d2d3a; }
.spine-fit { border-color: #78a9ff99; background: linear-gradient(140deg, #2663ad66, #1d2d3a 75%); display: flex; flex-direction: column; justify-content: center; }
.spine-fit small, .spine-label { font: 8px/1.5 var(--mono); color: #8faac0; }
.spine-fit strong { font-size: 44px; font-weight: 400; letter-spacing: -.05em; margin: 10px 0; }
.spine-fit span, .spine-reads span, .spine-direct span { font-size: 11px; color: #a9bccb; }
.spine-reads { display: grid; gap: 10px; }
.spine-reads strong, .spine-direct strong { display: block; font-size: 19px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 4px; }
.spine-label { margin-top: 10px; }
.spine-direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spine-direct a { border-color: #78a9ff99; }
.spine-direct a:hover { background: #24405a; }

.sap-demo { background: #e9edeb; }
.sap-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sap-demo-shot { display: block; padding: 8px; background: #15212b; border-radius: 6px; box-shadow: 0 25px 60px #15212b30; transition: transform .25s; }
.sap-demo-shot:hover { transform: translateY(-4px); }
.sap-demo-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 8px 12px; font: 8px/1.4 var(--mono); color: #a9bed0; }
.sap-demo-bar > span:first-child { display: flex; align-items: center; gap: 9px; }
.sap-demo-bar i { width: 6px; height: 6px; background: #78a9ff; display: inline-block; }
.sap-demo-shot img { border-radius: 2px; }
.sap-demo-note { margin-top: 22px; font-size: 12px; line-height: 1.7; color: #5a6e7c; }

.sap-step-list { list-style: none; margin: 0; padding: 0; }
.sap-step-list li { padding: 10px 0; border-top: 1px solid #d5dcdf; font-size: 13px; line-height: 1.6; color: #61707b; }
.sap-step-list small { display: inline-block; margin-left: 6px; font: 9px var(--mono); color: #0f62fe; }
.sap-pilot-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-link { color: #0f62fe; text-decoration: underline; text-underline-offset: 3px; }
.module-list a:hover { color: #0f62fe; }

@media (max-width: 1100px) {
  .sap-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sap-stats li:nth-child(4) { padding-left: 0; border-left: 0; }
  .sap-stats li:nth-child(n+4) { margin-top: 18px; }
  .sap-timing { grid-template-columns: 1fr; gap: 34px; }
  .sap-module-index { grid-template-columns: repeat(4, minmax(0, 1fr)); position: static; }
  .sap-module-index a:nth-child(5) { border-left: 0; }
  .sap-module-index a:nth-child(n+5) { border-top: 1px solid #c5ced2; }
  .sap-module { grid-template-columns: 1fr 1fr; }
  .sap-module-head { grid-column: 1 / -1; }
  .sap-module-next { grid-template-columns: 1fr; }
  .flow-steps.three, .sap-pilot-steps { grid-template-columns: 1fr; }
  .flow-steps.three article { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid #c5ced2; }
}
@media (max-width: 800px) {
  .sap-scan li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .sap-scan li > span { grid-column: 1 / -1; grid-row: 2; }
  .sap-module { grid-template-columns: 1fr; gap: 26px; }
  .sap-demo-grid, .spine-top, .spine-direct { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sap-stats { grid-template-columns: 1fr 1fr; }
  .sap-stats li, .sap-stats li + li { padding-left: 0; border-left: 0; }
  .sap-stats li:nth-child(n+3) { margin-top: 14px; }
  .sap-module-index { grid-template-columns: 1fr 1fr; }
  .sap-module-index a:nth-child(odd) { border-left: 0; }
  .sap-module-index a:nth-child(n+3) { border-top: 1px solid #c5ced2; }
  .sap-timing-table thead { display: none; }
  .sap-timing-table tr { display: block; padding: 14px; border-top: 1px solid #cfd8da; }
  .sap-timing-table tbody th, .sap-timing-table td { display: block; padding: 3px 0; border: 0; }
  .sap-module-head h3 { font-size: 42px; }
}

/* Migrations & Conversions */
.mig-hero { padding-bottom: 34px; }
.mig-hero .flow-hero-center { max-width: 1200px; }
.mig-group { font: 9px/1.5 var(--mono); color: #617687; margin: 50px 0 16px; letter-spacing: .03em; }
.mig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mig-move { padding: 28px; background: #f3f4f1; border: 1px solid #cfd8da; }
.mig-move .move-num { margin-bottom: 26px; }
.mig-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 18px; color: #15212b; }
.mig-route b { font-weight: 300; color: #0f62fe; }
.mig-move h3 { font-size: 14px; font-weight: 400; color: #3d5262; margin-bottom: 10px; }
.mig-move > p:last-child { font-size: 13px; line-height: 1.75; color: #61707b; }
@media (max-width: 800px) { .mig-grid { grid-template-columns: 1fr; } }
