/* ============================================
   Sewgo Marketing Site — how-jit-works.css
   ============================================ */

.cta-band-final.jit-cta-final { flex-wrap: nowrap; justify-content: space-between; gap: 40px; padding: 40px 44px; }
.jit-cta-final .cta-band-final-text { text-align: left; min-width: 0; }
.jit-cta-final .cta-band-final-text h3 { white-space: nowrap; }
.jit-cta-final .actions { flex-shrink: 0; flex-wrap: nowrap; }

@media (max-width: 900px) {
    .cta-band-final.jit-cta-final { flex-direction: column; flex-wrap: wrap; text-align: center; }
    .jit-cta-final .cta-band-final-text { text-align: center; }
    .jit-cta-final .cta-band-final-text h3 { white-space: normal; }
}

section.jit-hero.wrap { max-width: none; 
    /* padding: 0; margin: 0;  */
}
.jit-hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; background: #fff; }
.jit-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.jit-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, #fff 0%, #fff 36%, rgba(255,255,255,.82) 0%, rgba(255,255,255,0) 50%);
}
.jit-hero-content {
    position: relative; z-index: 2; max-width: 700px;
    padding: 60px 24px;
}
.flow-diagram { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.flow-box { background:#fff; border:1px solid var(--border); border-radius:12px; padding:16px; min-width:150px; text-align:center; font-size:.82rem; }
.flow-arrow { color: var(--teal-dark); font-size: 1.2rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none; display:flex; justify-content:space-between; }
.faq-item summary::-webkit-details-marker { display: none; }

.jit-flow-row { display: flex; align-items: flex-start; gap: 30px; }
.jit-flow-head { flex: 0 0 220px; text-align: left; max-width: 220px; margin: 0; }
.jit-flow-head h2 { font-size: 1.5rem; margin-bottom: 8px; }
.jit-flow-head p { color: var(--muted); font-size: .85rem; margin: 0; }

.jit-flow { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 6px; }
.jit-flow .step {
    flex: 1; min-width: 0; text-align: left; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; padding: 18px 14px;
    box-shadow: 0 8px 20px rgba(15,42,74,.04);
}
.jit-flow .step-icon-box { width: 100%; height: auto; background: none; border: none; box-shadow: none; margin: 0 0 10px; text-align: center; }
.jit-flow .step-icon-box img { width: 70px; height: 70px; object-fit: contain; display: inline-block; }
.jit-flow .num-badge {
    display: block; width: auto; height: auto; border-radius: 0; background: none;
    color: var(--muted); font-size: .78rem; font-weight: 700; margin: 0 0 6px;
}
.jit-flow .step h4 { font-size: .82rem; margin-bottom: 6px; line-height: 1.3; }
.jit-flow .step p { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.4; }
.jit-flow .step-arrow { color: var(--muted); font-size: .78rem; align-self: center; flex-shrink: 0; }

.trigger-row { display: flex; align-items: center; gap: 50px; }
.trigger-text { flex: 0 0 400px; max-width: 400px; }
.trigger-text h2 { font-size: 1.6rem; margin-bottom: 10px; }
.trigger-text > p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.trigger-checklist { list-style: none; margin: 0; padding: 0; }
.trigger-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--ink); line-height: 1.4; margin-bottom: 14px; }
.trigger-checklist li:last-child { margin-bottom: 0; }
.trigger-checklist li i { color: var(--teal-dark); margin-top: 3px; flex-shrink: 0; }
.trigger-checklist li strong { color: var(--navy); font-weight: 700; }

.trigger-media { flex: 1; min-width: 0; }
.trigger-media img { width: 100%; height: auto; display: block; }

.diff-cards { display: flex; gap: 14px; align-items: stretch; }
.diff-card {
    flex: 1; min-width: 0; text-align: center; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; padding: 22px 12px;
    box-shadow: 0 8px 20px rgba(15,42,74,.04);
}
.diff-icon { 
    /* width: 46px; height: 46px;  */

    margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.diff-icon img { width: 60px; height: 60px; object-fit: contain; }
.diff-card h4 { font-size: .82rem; margin-bottom: 6px; line-height: 1.3; }
.diff-card p { font-size: .74rem; color: var(--muted); margin: 0; line-height: 1.4; }

.dispatch-panel {
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
    padding: 22px; box-shadow: 0 8px 20px rgba(15,42,74,.04);
}
.dispatch-flow { display: flex; align-items: stretch; gap: 14px; }
.dispatch-item {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
    padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15,42,74,.04);
}
.dispatch-text { flex: 1 1 auto; min-width: 0; }
.dispatch-num {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; font-size: .74rem; margin-bottom: 8px;
}
.dispatch-text h4 { font-size: .86rem; margin-bottom: 4px; color: var(--navy); }
.dispatch-text p { font-size: .73rem; color: var(--muted); margin: 0; line-height: 1.35; }
.dispatch-media { flex: 0 0 38%; height: 90px; border-radius: 10px; overflow: hidden; }
.dispatch-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dispatch-arrow { color: var(--muted); font-size: .8rem; align-self: center; flex-shrink: 0; }

.tech-faq-row { display: flex; align-items: stretch; gap: 20px; }
.tech-panel, .faq-panel {
    flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px;
}
.tech-panel h2, .faq-panel h2 { font-size: 1.25rem; margin-bottom: 6px; text-align: left; }
.tech-panel > p { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }

.tech-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.tech-item { flex: 1 1 0; min-width: 95px; text-align: center; position: relative; padding-left: 12px; }
.tech-item:first-child { padding-left: 0; }
.tech-item:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.tech-icon { width: 100%; margin-bottom: 10px; text-align: center; }
.tech-icon img { width: 32px; height: 32px; object-fit: contain; display: inline-block; }
.tech-item h4 { font-size: .76rem; margin-bottom: 4px; color: var(--navy); line-height: 1.25; }
.tech-item p { font-size: .68rem; color: var(--muted); margin: 0; line-height: 1.3; }

.faq-list .faq-item {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 2px 16px; margin-bottom: 10px;
}
.faq-list .faq-item:last-child { margin-bottom: 0; }
.faq-list .faq-item summary { font-size: .85rem; }

.codesign-panel { background: var(--bg-mint); border-radius: 24px; padding: 25px 20px; }
.codesign-grid { display: grid; grid-template-columns: .50fr 1fr; gap: 50px; align-items: center; margin-bottom: 15px; }

.codesign-text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.codesign-text h2 .line-navy { color: var(--navy); display: block; }
.codesign-text h2 .line-teal { color: var(--teal-dark); display: block; }
.codesign-text > p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.codesign-checklist { list-style: none; margin: 0 0 26px; padding: 0; }
.codesign-checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: 14px; }
.codesign-checklist li:last-child { margin-bottom: 0; }
.check-badge {
    width: 22px; height: 22px; border-radius: 50%; background: var(--teal-dark); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .68rem; flex-shrink: 0;
}
.codesign-cta { border-radius: 10px; padding: 14px 26px; font-size: .95rem; }

.codesign-flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
.codesign-step { flex: 1; min-width: 0; text-align: center; }
.codesign-step-icon {
    width: 68px; height: 68px; border-radius: 50%; background: #fff; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 10px; box-shadow: 0 6px 16px rgba(15,42,74,.06);
}
.codesign-step-icon img { width: 38px; height: 38px; object-fit: contain; }
.codesign-step span { font-size: .74rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.codesign-arrow { color: var(--muted); font-size: .8rem; flex-shrink: 0; margin-top: 26px; }

/* .codesign-media { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,42,74,.1); background: #fff; } */
.codesign-media { border-radius: 16px; overflow: hidden; 
    /* box-shadow: 0 16px 40px rgba(15,42,74,.1); 
    background: #fff;  */
}
/* .codesign-media img { width: 100%; height: 320px; object-fit: contain; object-position: left center; display: block; } */
.codesign-media img { width: 100%; height: 320px; object-fit: contain; object-position: center; display: block; }

.codesign-stats {
    background: #fff; border-radius: 16px; padding: 22px 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.codesign-stats .item { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 18px; position: relative; }
.codesign-stats .item:first-child { padding-left: 0; }
.codesign-stats .item:last-child { padding-right: 0; }
.codesign-stats .item:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--border); }
.codesign-stats .item img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.codesign-stats .item strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.codesign-stats .item span { font-size: .78rem; color: var(--muted); }

@media (max-width: 1150px) {
    .codesign-grid { grid-template-columns: 1fr; }
    .codesign-stats { flex-wrap: wrap; gap: 16px 0; }
    .codesign-stats .item { flex: 1 1 45%; padding: 8px 18px; }
    .codesign-stats .item:not(:first-child)::before { display: none; }
}

@media (max-width: 900px) {
    .jit-hero { min-height: 0; flex-direction: column; align-items: stretch; }
    .jit-hero-bg { position: relative; height: 220px; }
    .jit-hero::before { display: none; }
    .jit-hero-content { padding: 30px 24px; }
    .tech-faq-row { flex-direction: column; }
    .tech-icons { flex-direction: column; gap: 16px; }
    .tech-item { padding-left: 0; }
    .tech-item:not(:first-child)::before { display: none; }
    .jit-flow-row { flex-direction: column; }
    .jit-flow-head { flex: none; max-width: none; }
    .jit-flow { flex-direction: column; }
    .jit-flow .step-arrow { transform: rotate(90deg); align-self: center; }
    .trigger-row { flex-direction: column; }
    .trigger-text { flex: none; max-width: none; }
    .diff-cards { flex-wrap: wrap; }
    .diff-card { flex: 1 1 45%; }
    .dispatch-flow { flex-direction: column; }
    .dispatch-item { flex-direction: column; align-items: stretch; }
    .dispatch-media { flex: none; height: 160px; }
    .dispatch-arrow { transform: rotate(90deg); align-self: center; }
    .codesign-panel { padding: 32px 20px; }
    .codesign-flow { flex-direction: column; align-items: stretch; gap: 16px; }
    .codesign-step { display: flex; align-items: center; gap: 14px; text-align: left; }
    .codesign-step-icon { margin: 0; flex-shrink: 0; }
    .codesign-arrow { transform: rotate(90deg); margin: 0 auto; }
    .codesign-stats .item { flex: 1 1 100%; padding: 10px 0; }
    .codesign-stats .item:not(:first-child) { border-top: 1px solid var(--border); }
}
