/* SOP Driver — colorful, mobile-first three-stage guide. */
.sop-page { background: #fafaff; color: #142343; }
.sop-page :where(a, button):focus-visible { outline: 3px solid #dc5626; outline-offset: 5px; }
.sop-page [hidden] { display: none !important; }
.sop-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #f1edff 0%, #f1f6ff 55%, #dff8f4 100%); border-bottom: 1px solid #dfe6f1; }
.sop-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; animation: sop-drift 12s ease-in-out infinite alternate; }
.sop-orb--one { width: 360px; height: 360px; background: #dacdfb60; left: -230px; bottom: -120px; }
.sop-orb--two { width: 380px; height: 380px; border: 60px solid #b4e9e650; right: -160px; top: -220px; animation-delay: -5s; }
.sop-hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; padding-block: 24px 54px; }
.sop-back { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #5e637e; font-size: 14px; }
.sop-back span { color: #8b8aa5; }
.sop-eyebrow { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; color: #655297; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.sop-eyebrow > span, .sop-live-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #8156ce; box-shadow: 0 0 0 5px #8156ce12; animation: sop-beacon 2.8s ease-in-out infinite; }
.sop-hero h1 { margin: 0; color: #6550a0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sop-hero h1 > span { display: block; margin-top: 10px; color: #132751; font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; line-height: 1.13; letter-spacing: -.055em; }
.sop-hero h1 em { position: relative; font-style: normal; color: #d43757; }
.sop-intro { max-width: 460px; margin: 23px 0; color: #56647c; font-size: 16px; line-height: 1.85; }
.sop-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.sop-read-button { display: inline-flex; align-items: center; gap: 22px; min-height: 50px; padding: 13px 20px; background: #122b57; color: white; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: 0 6px 15px #122b5718; transition: transform .25s, background .25s; }
.sop-read-button:hover { transform: translateY(-3px); background: #244577; }
.sop-read-button > span { font-size: 22px; animation: sop-arrow 1.8s ease-in-out infinite; }
.sop-motion-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 3px; background: none; border: 0; color: #58627d; font: inherit; font-size: 12px; cursor: pointer; }
.sop-motion-button svg { width: 18px; height: 18px; }
.sop-motion-button:disabled { cursor: default; }
.sop-journey { position: relative; min-width: 0; margin-top: 46px; }
.sop-journey-caption { display: flex; align-items: center; justify-content: center; gap: 10px; color: #327c76; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.sop-live-dot { background: #14877f; box-shadow: 0 0 0 5px #14877f12; }
.sop-truck-wrap { position: relative; margin-top: 23px; padding: 12px 28px 0; }
.sop-truck-halo { position: absolute; left: 12%; right: 12%; top: 3%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #d6cef8, #aee4e2); border: 14px solid #ffffff80; box-shadow: 0 0 0 1px #c7dce560; animation: sop-halo 7s ease-in-out infinite; }
.sop-truck-wrap img { position: relative; z-index: 2; width: 100%; height: 270px; object-fit: contain; filter: drop-shadow(0 17px 10px #1e3a5730); animation: sop-truck 3.2s ease-in-out infinite; }
.sop-floating-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid #ffffffd9; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px #32456812; color: #594488; font-size: 12px; font-weight: 700; animation: sop-float 4s ease-in-out infinite; }
.sop-floating-tag svg { width: 23px; height: 23px; }
.sop-floating-tag--box { left: 0; top: 7%; transform: rotate(-5deg); }
.sop-floating-tag--temp { right: 0; bottom: 20%; color: #087f81; animation-delay: -2s; }
.sop-road { position: relative; z-index: 1; height: 22px; margin-top: -4px; border-top: 1px solid #baceda; border-bottom: 1px solid #baceda; border-radius: 7px; background: repeating-linear-gradient(90deg, #789aaa 0 22px, transparent 22px 45px) left center / auto 2px repeat-x, #e4edf2; animation: sop-road-move 1.5s linear infinite; }
.sop-journey-bottom { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; color: #437173; font-size: 12px; }
.sop-journey-bottom svg { width: 21px; height: 21px; flex-shrink: 0; }
.sop-content { padding-bottom: 56px; }
.sop-safety { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 21px 0; color: #626b80; font-size: 14px; }
.sop-safety svg { width: 22px; height: 22px; color: #7d6ca1; flex-shrink: 0; }
.sop-phase-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sop-phase-nav a { --phase: #7153b5; --tint: #f0eafa; display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 90px; border: 1px solid #e1ddeb; border-radius: 17px; background: #fff; color: #263858; font-size: 14px; font-weight: 700; transition: background .25s, border-color .25s, transform .25s; }
.sop-phase-nav a:nth-child(2) { --phase: #087fa1; --tint: #e6f4fa; }
.sop-phase-nav a:nth-child(3) { --phase: #16816c; --tint: #e5f6ed; }
.sop-phase-nav a > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; color: var(--phase); background: var(--tint); font-size: 22px; font-weight: 800; }
.sop-phase-nav small { display: block; margin-bottom: 4px; color: var(--phase); font-size: 12px; font-weight: 600; letter-spacing: .045em; }
.sop-phase-nav b { margin-left: auto; color: var(--phase); font-size: 18px; font-weight: 400; }
.sop-phase-nav a:hover, .sop-phase-nav a[aria-current="location"] { border-color: var(--phase); background: var(--tint); }
.sop-phase { --phase: #7153b5; --tint: #f0eafa; --line: #e2d8f3; position: relative; margin-top: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, #f3edfc, #f8f6ff); scroll-margin-top: 94px; }
.sop-phase#perjalanan { --phase: #087fa1; --tint: #e6f4fa; --line: #cde7f0; background: linear-gradient(135deg, #e4f4fb, #f0faff); }
.sop-phase#setelah-tiba { --phase: #16816c; --tint: #e5f6ed; --line: #c9e7da; background: linear-gradient(135deg, #e4f5ed, #f2fbf4); }
.sop-phase-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 25px; }
.sop-phase-index { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 19px; background: var(--phase); color: #fff; font-size: 34px; font-weight: 800; box-shadow: 0 6px 0 var(--line); }
.sop-phase-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.045em; line-height: 1.3; }
.sop-phase-heading p { margin: 5px 0 0; color: #647087; font-size: 14px; }
.sop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sop-card { --icon-color: var(--phase); --icon-bg: var(--tint); position: relative; min-width: 0; overflow: hidden; padding: 25px; border: 1px solid #ffffff; border-radius: 19px; background: #fff; box-shadow: 0 4px 12px #19295804; transition: transform .3s, box-shadow .3s; }
.sop-card--clean { --icon-color: #148675; --icon-bg: #e2f6ed; }
.sop-card--cargo { --icon-color: #a46613; --icon-bg: #fff2d7; }
.sop-card--temperature { --icon-color: #167ea3; --icon-bg: #e3f5fb; }
.sop-card--report { --icon-color: #c3405d; --icon-bg: #ffe7ec; background: #fffafb; border-color: #f4dce3; }
.sop-card--attendance { --icon-color: #6e58b7; --icon-bg: #eee9fc; }
.sop-card-top { display: flex; align-items: center; margin-bottom: 20px; }
.sop-icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; color: var(--icon-color); background: var(--icon-bg); }
.sop-icon::after { content: ""; position: absolute; right: -5px; top: 4px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--icon-color); }
.sop-icon svg { width: 32px; height: 32px; stroke-width: 1.65; }
.sop-card h3 { margin: 0 0 9px; font-size: 20px; font-weight: 700; letter-spacing: -.035em; line-height: 1.4; }
.sop-card > p { margin: 0; color: #58647a; font-size: 16px; line-height: 1.8; }
.sop-card.sop-in-view .sop-icon svg { animation: sop-icon-float 3.2s ease-in-out infinite; }
.sop-card.sop-in-view .sop-icon::after { animation: sop-spark 2.4s ease-in-out infinite; }
.sop-card:nth-child(even) .sop-icon svg { animation-delay: -.8s; }
.sop-card--report.sop-in-view .sop-icon svg { animation-name: sop-ring; animation-duration: 3s; }
.sop-card--clean.sop-in-view .sop-icon svg, .sop-card--attendance.sop-in-view .sop-icon svg { animation-name: sop-icon-tilt; }
.sop-card--traffic.sop-in-view .sop-icon svg circle:last-of-type { fill: #1ba986; animation: sop-beacon 2.5s ease-in-out infinite; }
.sop-card--vehicle.sop-in-view .sop-icon svg { animation-name: sop-icon-drive; }
.sop-contact-chain { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.sop-contact-chain span { padding: 6px 10px; color: #a7314b; background: #ffedf1; border-radius: 8px; font-size: 12px; font-weight: 600; }
.sop-finish { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding: 28px 30px; border-radius: 22px; color: white; background: linear-gradient(115deg, #172b54, #294a6e); }
.sop-finish-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: #baf0d9; color: #136c56; }
.sop-finish-icon svg { width: 26px; height: 26px; }
.sop-finish h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.sop-finish p { margin: 6px 0 0; color: #d1ddec; font-size: 14px; line-height: 1.7; }
.sop-finish > a { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-left: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
.sop-footer { border-top: 1px solid #e1e5ef; background: white; }
.sop-footer .container { display: flex; align-items: center; gap: 24px; padding-block: 24px; }
.sop-footer img { width: 120px; height: auto; }
.sop-footer p { margin: 0; font-size: 14px; font-weight: 700; }
.sop-footer p span { display: inline-block; margin-top: 3px; color: #657389; font-size: 12px; font-weight: 400; }
.sop-footer .container > a:last-child { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: auto; color: #536179; font-size: 14px; }
@keyframes sop-drift { to { transform: translate(35px, -20px); } }
@keyframes sop-beacon { 50% { opacity: .5; } }
@keyframes sop-arrow { 50% { transform: translateY(4px); } }
@keyframes sop-halo { 50% { transform: scale(.95) rotate(7deg); } }
@keyframes sop-truck { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(3px, -5px) rotate(-.6deg); } }
@keyframes sop-float { 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes sop-road-move { to { background-position: -45px center, 0 0; } }
@keyframes sop-icon-float { 50% { transform: translateY(-4px); } }
@keyframes sop-icon-tilt { 50% { transform: rotate(7deg) scale(1.04); } }
@keyframes sop-icon-drive { 50% { transform: translateX(3px) translateY(-2px); } }
@keyframes sop-ring { 0%, 60%, 100% { transform: rotate(0); } 68%, 84% { transform: rotate(-8deg); } 76%, 92% { transform: rotate(8deg); } }
@keyframes sop-spark { 50% { transform: translateY(-4px) scale(.7); opacity: .55; } }
@media (hover: hover) {
  .sop-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #25386412; }
  .sop-phase-nav a:hover { transform: translateY(-3px); }
}
@media (max-width: 900px) {
  .sop-hero-layout { gap: 26px; }
  .sop-truck-wrap { padding-inline: 8px; }
  .sop-truck-wrap img { height: 230px; }
  .sop-floating-tag { padding: 8px; font-size: 12px; }
  .sop-phase-nav a { gap: 8px; padding: 12px; }
  .sop-phase-nav b { display: none; }
  .sop-phase { padding: 24px; }
  .sop-finish { flex-wrap: wrap; }
  .sop-finish > div { flex: 1; }
}
@media (max-width: 640px) {
  .sop-hero-layout { grid-template-columns: 1fr; gap: 22px; padding-block: 12px 26px; }
  .sop-eyebrow { margin-top: 18px; font-size: 12px; }
  .sop-hero h1 { font-size: 16px; }
  .sop-hero h1 > span { font-size: clamp(36px, 10vw, 48px); }
  .sop-intro { margin-block: 17px 20px; line-height: 1.75; }
  .sop-read-button { padding-inline: 17px; gap: 14px; }
  .sop-hero-actions { gap: 6px 13px; }
  .sop-journey { width: min(100%, 390px); margin: 4px auto 0; }
  .sop-journey-caption { font-size: 12px; letter-spacing: .06em; }
  .sop-truck-wrap { margin-top: 15px; padding: 0 24px; }
  .sop-truck-halo { top: 0; left: 19%; right: 19%; border-width: 10px; }
  .sop-truck-wrap img { height: 190px; }
  .sop-floating-tag { min-height: 36px; padding: 7px 9px; border-radius: 10px; font-size: 12px; gap: 5px; }
  .sop-floating-tag svg { width: 19px; height: 19px; }
  .sop-floating-tag--box { top: 5%; }
  .sop-floating-tag--temp { bottom: 16%; }
  .sop-road { height: 19px; margin-top: 0; }
  .sop-journey-bottom { margin-top: 15px; font-size: 12px; text-align: center; line-height: 1.6; }
  .sop-safety { align-items: flex-start; justify-content: flex-start; padding-block: 20px; font-size: 12px; line-height: 1.7; }
  .sop-phase-nav { gap: 7px; }
  .sop-phase-nav a { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 9px; padding: 12px 9px; border-radius: 13px; font-size: 14px; line-height: 1.35; }
  .sop-phase-nav a > span { width: 33px; height: 33px; border-radius: 10px; font-size: 18px; }
  .sop-phase-nav small { display: none; }
  .sop-phase { margin-top: 23px; padding: 18px 12px 12px; border-radius: 20px; }
  .sop-phase-heading { gap: 12px; margin: 0 4px 19px; }
  .sop-phase-index { width: 46px; height: 49px; border-radius: 14px; font-size: 27px; box-shadow: 0 4px 0 var(--line); }
  .sop-phase-heading h2 { font-size: 22px; }
  .sop-phase-heading p { font-size: 12px; line-height: 1.6; }
  .sop-grid { grid-template-columns: 1fr; gap: 11px; }
  .sop-card { padding: 21px 19px; border-radius: 15px; }
  .sop-card-top { margin-bottom: 17px; }
  .sop-icon { width: 52px; height: 52px; border-radius: 15px; }
  .sop-icon svg { width: 29px; height: 29px; }
  .sop-card h3 { font-size: 20px; }
  .sop-card > p { line-height: 1.75; }
  .sop-finish { padding: 23px 20px; gap: 14px; margin-top: 24px; border-radius: 19px; }
  .sop-finish-icon { width: 41px; height: 44px; border-radius: 13px; }
  .sop-finish h2 { font-size: 17px; }
  .sop-finish > a { margin-left: 55px; }
  .sop-content { padding-bottom: 32px; }
  .sop-footer .container { gap: 14px; flex-wrap: wrap; }
  .sop-footer img { width: 85px; }
  .sop-footer p { font-size: 12px; }
  .sop-footer .container > a:last-child { margin: 0; width: 100%; border-top: 1px solid #e5eaf2; padding-top: 10px; }
}
html.sop-motion-paused { scroll-behavior: auto; }
.sop-motion-paused .sop-page *, .sop-motion-paused .sop-page *::before, .sop-motion-paused .sop-page *::after { animation-play-state: paused !important; transition: none !important; }
.sop-tab-hidden .sop-page *, .sop-tab-hidden .sop-page *::before, .sop-tab-hidden .sop-page *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html:has(.sop-page) { scroll-behavior: auto; }
  .sop-page *, .sop-page *::before, .sop-page *::after { animation: none !important; transition: none !important; }
}
