/* =====================================================================
   Managed Application Support section — shared styles
   Used by /services/managed-support and its five specialist pages.
   Palette: navy #07122a / #0e2744, amber #ffb703 / #ffd166, teal #2ec4b6 / #7fe7dc
   ===================================================================== */

.ms-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ms-page h1, .ms-page h2, .ms-page h3, .ms-page h4, .ms-page .ms-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

/* ---------- Hero ---------- */
.ms-hero { padding: 130px 0 90px; background: linear-gradient(180deg, #07122a 0%, #0b2740 65%, #0e2744 100%); color: #fff; position: relative; overflow: hidden; }
.ms-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); animation: ms-grid-drift 28s linear infinite; }
.ms-hero::after { content: ''; position: absolute; right: -180px; top: -80px; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(255,183,3,0.16), transparent 62%); pointer-events: none; }
.ms-hero .ms-blob { position: absolute; left: -160px; bottom: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(46,196,182,0.14), transparent 65%); pointer-events: none; animation: ms-float 12s ease-in-out infinite; }
@keyframes ms-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
@keyframes ms-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.ms-hero .container { position: relative; z-index: 1; }
.ms-hero .ms-eyebrow { color: #ffd166; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; font-size: 12px; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.ms-hero .ms-eyebrow a { color: #ffd166; text-decoration: none; }
.ms-hero .ms-eyebrow a:hover { text-decoration: underline; }
.ms-hero .ms-eyebrow .sep { opacity: .5; }
.ms-hero h1 { font-size: 44px; line-height: 1.15; margin: 8px 0 20px; color: #fff; text-shadow: 0 6px 28px rgba(3,21,34,0.6); font-weight: 700; }
.ms-hero h1 .hl { background: linear-gradient(90deg, #ffb703, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-hero p.lead { color: #eadfc2; font-size: 18px; line-height: 1.65; max-width: 760px; margin-bottom: 26px; }
.ms-hero p.lead strong { color: #ffd166; }
.ms-hero .ms-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ms-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 28px; border-radius: 10px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; font-size: 15px; line-height: 1; border: 2px solid transparent; }
.ms-btn-amber { background: #ffb703; color: #07122a !important; box-shadow: 0 8px 24px rgba(255,183,3,0.25); }
.ms-btn-amber:hover { transform: translateY(-3px); background: #ffc733; box-shadow: 0 12px 30px rgba(255,183,3,0.35); }
.ms-btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff !important; background: rgba(255,255,255,0.04); }
.ms-btn-ghost:hover { background: #fff; color: #07122a !important; transform: translateY(-3px); }
.ms-btn-dark { background: #07122a; color: #fff !important; }
.ms-btn-dark:hover { background: #0e2744; color: #ffd166 !important; transform: translateY(-3px); }
.ms-btn-outline-dark { border-color: #07122a; color: #07122a !important; background: rgba(255,255,255,0.3); }
.ms-btn-outline-dark:hover { background: #07122a; color: #ffd166 !important; transform: translateY(-3px); }
.ms-btn-teal { background: linear-gradient(135deg, #2ec4b6 0%, #1d9e92 100%); color: #07122a !important; box-shadow: 0 8px 24px rgba(46,196,182,0.25); }
.ms-btn-teal:hover { transform: translateY(-3px); }
.ms-pills { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.ms-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.07); padding: 9px 16px; border-radius: 999px; color: #ffe4a0; font-size: 13px; border: 1px solid rgba(255,209,102,0.25); font-weight: 600; }
.ms-pill i { color: #ffd166; }
.ms-pill.teal { color: #bff3ec; border-color: rgba(46,196,182,0.35); }
.ms-pill.teal i { color: #7fe7dc; }

/* ---------- Hero "ops panel" widget (playful live-monitoring mock) ---------- */
.ms-ops { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 22px 22px 18px; backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,0.35); animation: ms-float 9s ease-in-out infinite; max-width: 420px; margin: 0 auto; }
.ms-ops::before { content: ''; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(135deg, rgba(255,183,3,0.5), transparent 40%, transparent 60%, rgba(46,196,182,0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ms-ops-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ms-ops-head .t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: #fff; letter-spacing: .5px; }
.ms-ops-head .status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #9ff0e6; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ms-dot { width: 10px; height: 10px; border-radius: 50%; background: #2ec4b6; position: relative; }
.ms-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2ec4b6; opacity: 0; animation: ms-ping 1.8s ease-out infinite; }
.ms-dot.amber { background: #ffb703; } .ms-dot.amber::after { border-color: #ffb703; }
@keyframes ms-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.ms-ops-heart { display: block; width: 100%; height: 64px; }
.ms-ops-heart path { fill: none; stroke: #ffb703; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: ms-heart 4.5s linear infinite; filter: drop-shadow(0 0 6px rgba(255,183,3,0.6)); }
@keyframes ms-heart { 0% { stroke-dashoffset: 600; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ms-ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.ms-ops-metric { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px 12px; }
.ms-ops-metric .k { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #bfc9d9; font-weight: 700; }
.ms-ops-metric .v { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.ms-ops-metric .v.teal { color: #7fe7dc; } .ms-ops-metric .v.amber { color: #ffd166; }
.ms-ops-feed { list-style: none; margin: 0; padding: 0; height: 84px; overflow: hidden; position: relative; }
.ms-ops-feed li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #dfe6f1; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,0.08); opacity: 0; animation: ms-feed 12s linear infinite; }
.ms-ops-feed li:nth-child(1) { animation-delay: 0s; } .ms-ops-feed li:nth-child(2) { animation-delay: 3s; } .ms-ops-feed li:nth-child(3) { animation-delay: 6s; } .ms-ops-feed li:nth-child(4) { animation-delay: 9s; }
.ms-ops-feed li i { width: 20px; text-align: center; color: #7fe7dc; }
.ms-ops-feed li i.amber { color: #ffd166; }
.ms-ops-feed li .when { margin-left: auto; color: #8f9bb0; font-size: 11px; }
@keyframes ms-feed { 0% { opacity: 0; transform: translateY(14px); } 6% { opacity: 1; transform: translateY(0); } 24% { opacity: 1; } 30% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 0; } }
.ms-ops-feed li { position: absolute; left: 0; right: 0; top: 0; }

/* ---------- Section wrappers ---------- */
.ms-section { padding: 84px 0; position: relative; overflow: hidden; }
.ms-section-light { background: linear-gradient(180deg, #fffaf0 0%, #fdf3da 100%); }
.ms-section-light::after { content: ''; position: absolute; left: -100px; bottom: -100px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255,183,3,0.08), transparent 70%); border-radius: 50%; pointer-events: none; }
.ms-section-white { background: #ffffff; }
.ms-section-dark { background: linear-gradient(180deg, #07122a 0%, #0e2744 100%); color: #fff; }
.ms-section-dark::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, #ffb703 50%, transparent 100%); }
.ms-section-dark::after { content: ''; position: absolute; left: -140px; bottom: -140px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(46,196,182,0.08), transparent 60%); pointer-events: none; }
.ms-section-teal { background: linear-gradient(180deg, #f0fbfa 0%, #e2f6f3 100%); }
.ms-section-teal::after { content: ''; position: absolute; right: -120px; top: -100px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(46,196,182,0.12), transparent 70%); border-radius: 50%; pointer-events: none; }
.ms-section .container { position: relative; z-index: 1; }

.ms-badge { display: inline-block; padding: 8px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.ms-badge-amber { background: linear-gradient(135deg, #ffb703 0%, #e09600 100%); color: #07122a; box-shadow: 0 4px 12px rgba(255,183,3,0.3); }
.ms-badge-dark { background: rgba(255,255,255,0.1); color: #ffd166; border: 1px solid rgba(255,209,102,0.25); }
.ms-badge-teal { background: linear-gradient(135deg, #2ec4b6 0%, #1d9e92 100%); color: #07122a; box-shadow: 0 4px 12px rgba(46,196,182,0.3); }
.ms-badge-dark-teal { background: rgba(255,255,255,0.1); color: #7fe7dc; border: 1px solid rgba(46,196,182,0.35); }

.ms-h2 { font-size: 38px; font-weight: 700; margin: 16px 0 14px; line-height: 1.2; color: #07122a; }
.ms-h2.grad { background: linear-gradient(90deg, #9c6b00 0%, #d18f00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-h2.grad-teal { background: linear-gradient(90deg, #0d6b61 0%, #17968a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-section-dark .ms-h2 { color: #fff; }
.ms-sub { color: #55461f; font-size: 18px; line-height: 1.6; }
.ms-section-teal .ms-sub { color: #24504a; }
.ms-section-dark .ms-sub { color: #eadfc2; }
.ms-sub a { font-weight: 700; color: #9c6b00; }
.ms-section-teal .ms-sub a { color: #0d6b61; }
.ms-section-dark .ms-sub a { color: #ffd166; }
.ms-prose { color: #4a5d73; font-size: 16px; line-height: 1.75; }
.ms-prose a { color: #9c6b00; font-weight: 600; }
.ms-section-dark .ms-prose { color: #dfe6f1; }
.ms-section-dark .ms-prose a { color: #ffd166; }

/* ---------- Cards ---------- */
.ms-card { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-radius: 16px; padding: 34px 30px; box-shadow: 0 8px 32px rgba(7,18,42,0.08); transition: all .4s cubic-bezier(0.165,0.84,0.44,1); border: 1px solid rgba(255,255,255,0.4); height: 100%; position: relative; overflow: hidden; }
.ms-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ffb703 0%, #ffd166 100%); opacity: 0; transition: opacity .4s ease; }
.ms-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(255,183,3,0.2); border-color: rgba(255,183,3,0.35); }
.ms-card:hover::before { opacity: 1; }
.ms-card .ms-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #a97d00; margin-bottom: 22px; background: linear-gradient(135deg, #fff8e6 0%, #ffedbf 100%); border: 2px solid #ffe1a0; transition: all .3s ease; }
.ms-card:hover .ms-icon { transform: scale(1.1) rotate(6deg); background: linear-gradient(135deg, #ffb703 0%, #e09600 100%); border-color: #ffb703; color: #07122a; }
.ms-card h3, .ms-card h4 { font-weight: 700; color: #07122a; font-size: 21px; margin-bottom: 12px; }
.ms-card p { color: #4a5d73; line-height: 1.7; margin-bottom: 0; }
.ms-card p a { color: #9c6b00; font-weight: 600; }
.ms-card.teal::before { background: linear-gradient(90deg, #2ec4b6 0%, #7fe7dc 100%); }
.ms-card.teal:hover { box-shadow: 0 16px 48px rgba(46,196,182,0.2); border-color: rgba(46,196,182,0.4); }
.ms-card.teal .ms-icon { color: #157a70; background: rgba(46,196,182,0.12); border-color: rgba(46,196,182,0.35); }
.ms-card.teal:hover .ms-icon { background: linear-gradient(135deg, #2ec4b6 0%, #1d9e92 100%); border-color: #2ec4b6; color: #07122a; }
.ms-card.danger::before { background: linear-gradient(90deg, #e05252 0%, #ff8a80 100%); }
.ms-card.danger .ms-icon { color: #b91c1c; background: #fde8e8; border-color: #f7bcbc; }
.ms-card.danger:hover { box-shadow: 0 16px 48px rgba(224,82,82,0.18); border-color: rgba(224,82,82,0.35); }
.ms-card.danger:hover .ms-icon { background: linear-gradient(135deg, #e05252 0%, #b91c1c 100%); border-color: #e05252; color: #fff; }

.ms-card-dark { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 16px; padding: 32px 28px; border: 1px solid rgba(255,255,255,0.1); height: 100%; transition: all .3s ease; }
.ms-card-dark:hover { transform: translateY(-6px); border-color: rgba(255,183,3,0.4); box-shadow: 0 12px 36px rgba(255,183,3,0.14); }
.ms-card-dark h3, .ms-card-dark h4 { font-weight: 700; color: #fff; font-size: 19px; margin-bottom: 10px; }
.ms-card-dark p { color: #e6ddc0; line-height: 1.7; margin-bottom: 0; font-size: 15px; }
.ms-card-dark p a { color: #ffd166; font-weight: 600; }
.ms-card-dark .ms-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #ffd166; margin-bottom: 20px; background: rgba(255,183,3,0.12); border: 1px solid rgba(255,209,102,0.3); transition: transform .3s ease; }
.ms-card-dark:hover .ms-icon { transform: scale(1.08) rotate(-6deg); }
.ms-card-dark.teal:hover { border-color: rgba(46,196,182,0.45); box-shadow: 0 12px 36px rgba(46,196,182,0.14); }
.ms-card-dark.teal .ms-icon { color: #7fe7dc; background: rgba(46,196,182,0.12); border-color: rgba(46,196,182,0.35); }

/* ---------- Stats / counters ---------- */
.ms-stat { text-align: center; padding: 28px 20px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); transition: all .3s ease; height: 100%; }
.ms-stat:hover { border-color: rgba(255,183,3,0.4); transform: translateY(-4px); }
.ms-stat .v { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; color: #ffd166; display: block; line-height: 1.1; }
.ms-stat .l { color: #e8dcb4; font-size: 14.5px; font-weight: 500; }

/* ---------- Capability grid (the ten estate capabilities) ---------- */
.ms-cap { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 22px 22px; box-shadow: 0 6px 24px rgba(7,18,42,0.06); border: 1px solid rgba(7,18,42,0.05); height: 100%; transition: all .3s ease; position: relative; overflow: hidden; }
.ms-cap::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,183,3,0.18), transparent 70%); opacity: 0; transition: opacity .3s ease; }
.ms-cap:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(255,183,3,0.16); border-color: rgba(255,183,3,0.35); }
.ms-cap:hover::after { opacity: 1; }
.ms-cap .n { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, #ffb703 0%, #e09600 100%); color: #07122a; box-shadow: 0 6px 14px rgba(255,183,3,0.3); }
.ms-cap h4 { font-size: 16.5px; font-weight: 700; color: #07122a; margin: 2px 0 6px; }
.ms-cap p { color: #4a5d73; font-size: 14px; line-height: 1.6; margin: 0; }
.ms-cap p a { color: #9c6b00; font-weight: 600; }

/* ---------- Workflow / process flow with animated connector ---------- */
.ms-flow { position: relative; display: grid; grid-template-columns: repeat(var(--ms-steps, 3), 1fr); gap: 22px; margin-top: 12px; }
.ms-flow::before { content: ''; position: absolute; top: 34px; left: calc(100% / var(--ms-steps, 3) / 2); right: calc(100% / var(--ms-steps, 3) / 2); height: 3px; background: repeating-linear-gradient(90deg, rgba(255,183,3,0.28) 0 10px, transparent 10px 18px); border-radius: 3px; z-index: 0; }
.ms-flow::after { content: ''; position: absolute; top: 34px; left: calc(100% / var(--ms-steps, 3) / 2); width: 0; height: 3px; background: linear-gradient(90deg, #ffb703, #ffd166); border-radius: 3px; z-index: 0; transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 12px rgba(255,183,3,0.5); }
.ms-flow.is-visible::after { width: calc(100% - 100% / var(--ms-steps, 3)); }
.ms-section-dark .ms-flow::before { background: repeating-linear-gradient(90deg, rgba(127,231,220,0.3) 0 10px, transparent 10px 18px); }
.ms-section-dark .ms-flow::after { background: linear-gradient(90deg, #2ec4b6, #7fe7dc); box-shadow: 0 0 12px rgba(46,196,182,0.5); }
.ms-step { position: relative; z-index: 1; text-align: center; }
.ms-step .node { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff; border: 3px solid #ffb703; color: #a97d00; box-shadow: 0 8px 24px rgba(255,183,3,0.25); position: relative; transition: transform .35s ease, background .35s ease, color .35s ease; }
.ms-step .node::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,183,3,0.5); opacity: 0; }
.ms-flow.is-visible .ms-step .node::after { animation: ms-ping 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * .35s); }
.ms-step:hover .node { transform: scale(1.1) rotate(8deg); background: #ffb703; color: #07122a; }
.ms-step .node .num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #07122a; color: #ffd166; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ms-section-dark .ms-step .node { background: #0e2744; border-color: #2ec4b6; color: #7fe7dc; box-shadow: 0 8px 24px rgba(46,196,182,0.25); }
.ms-section-dark .ms-step .node::after { border-color: rgba(46,196,182,0.5); }
.ms-section-dark .ms-step:hover .node { background: #2ec4b6; color: #07122a; }
.ms-section-dark .ms-step .node .num { background: #ffb703; color: #07122a; border-color: #0e2744; }
.ms-step .when { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9c6b00; background: rgba(255,183,3,0.14); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.ms-section-dark .ms-step .when { color: #7fe7dc; background: rgba(46,196,182,0.14); }
.ms-step h4 { font-size: 18px; font-weight: 700; color: #07122a; margin-bottom: 8px; }
.ms-section-dark .ms-step h4 { color: #fff; }
.ms-step p { color: #4a5d73; font-size: 14.5px; line-height: 1.65; margin: 0; }
.ms-section-dark .ms-step p { color: #dfe6f1; }
.ms-step .out { margin-top: 12px; font-size: 13px; color: #07122a; background: #fff; border: 1px dashed rgba(255,183,3,0.6); border-radius: 10px; padding: 8px 12px; display: inline-block; text-align: left; }
.ms-step .out strong { color: #9c6b00; }
.ms-section-dark .ms-step .out { background: rgba(255,255,255,0.05); border-color: rgba(46,196,182,0.5); color: #dfe6f1; }
.ms-section-dark .ms-step .out strong { color: #7fe7dc; }

/* ---------- Roadmap timeline (Gantt) ---------- */
.ms-timeline { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 26px 26px 18px; overflow-x: auto; }
.ms-timeline-inner { min-width: 640px; }
.ms-tl-months { display: grid; grid-template-columns: 190px repeat(12, 1fr); margin-bottom: 10px; }
.ms-tl-months span { font-size: 11px; font-weight: 700; color: #8f9bb0; text-align: center; letter-spacing: .5px; }
.ms-tl-row { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 0; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,0.08); }
.ms-tl-row .lbl { font-size: 13.5px; font-weight: 600; color: #fff; padding-right: 12px; }
.ms-tl-row .lbl small { display: block; color: #8f9bb0; font-weight: 500; font-size: 11.5px; }
.ms-tl-track { position: relative; height: 26px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px calc(100% / 12)); border-radius: 6px; }
.ms-tl-bar { position: absolute; top: 3px; height: 20px; border-radius: 999px; left: calc((var(--start) - 1) * 100% / 12); width: calc(var(--span) * 100% / 12); background: linear-gradient(90deg, #ffb703, #ffd166); box-shadow: 0 4px 14px rgba(255,183,3,0.3); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.ms-tl-bar.teal { background: linear-gradient(90deg, #2ec4b6, #7fe7dc); box-shadow: 0 4px 14px rgba(46,196,182,0.3); }
.ms-tl-bar.soft { background: linear-gradient(90deg, #ffd166, rgba(255,209,102,0.15)); }
.ms-timeline.is-visible .ms-tl-bar { transform: scaleX(1); }
.ms-tl-note { font-size: 12.5px; color: #bfc9d9; margin-top: 12px; }

/* ---------- Decision split (rescue / rebuild) ---------- */
.ms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; position: relative; }
.ms-split-start, .ms-split-end { text-align: center; }
.ms-split-node { display: inline-flex; align-items: center; gap: 10px; background: #07122a; color: #ffd166; font-family: 'Space Grotesk', sans-serif; font-weight: 700; padding: 14px 24px; border-radius: 999px; box-shadow: 0 10px 30px rgba(7,18,42,0.25); position: relative; }
.ms-split-node.teal { background: linear-gradient(135deg, #2ec4b6 0%, #1d9e92 100%); color: #07122a; }
.ms-split-arrow { display: block; margin: 0 auto; width: 100%; max-width: 640px; height: 70px; }
.ms-split-arrow path { fill: none; stroke: #ffb703; stroke-width: 3; stroke-dasharray: 8 8; animation: ms-dash 1.2s linear infinite; }
.ms-split-arrow.teal path { stroke: #2ec4b6; }
@keyframes ms-dash { to { stroke-dashoffset: -32; } }
.ms-path { background: rgba(255,255,255,0.92); border-radius: 16px; padding: 28px 26px; box-shadow: 0 8px 32px rgba(7,18,42,0.08); border-top: 4px solid #ffb703; height: 100%; transition: transform .3s ease; }
.ms-path:hover { transform: translateY(-5px); }
.ms-path.rebuild { border-top-color: #2ec4b6; }
.ms-path h4 { font-size: 20px; font-weight: 700; color: #07122a; margin-bottom: 8px; }
.ms-path .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #9c6b00; }
.ms-path.rebuild .tag { color: #0d6b61; }
.ms-path ul { padding-left: 0; list-style: none; margin: 14px 0 0; }
.ms-path li { position: relative; padding-left: 26px; color: #4a5d73; font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }
.ms-path li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: #ffb703; font-size: 13px; }
.ms-path.rebuild li::before { color: #2ec4b6; }

/* ---------- Signals (two-column checklists) ---------- */
.ms-signals { background: rgba(255,255,255,0.92); border-radius: 16px; padding: 30px 30px; box-shadow: 0 8px 32px rgba(7,18,42,0.08); height: 100%; border-left: 5px solid #2ec4b6; }
.ms-signals.warn { border-left-color: #ffb703; }
.ms-signals h4 { font-size: 20px; font-weight: 700; color: #07122a; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ms-signals h4 i { color: #2ec4b6; }
.ms-signals.warn h4 i { color: #d18f00; }
.ms-signals ul { list-style: none; padding: 0; margin: 0; }
.ms-signals li { position: relative; padding: 8px 0 8px 30px; color: #4a5d73; font-size: 15px; line-height: 1.55; border-top: 1px dashed rgba(7,18,42,0.08); }
.ms-signals li:first-child { border-top: 0; }
.ms-signals li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 2px; top: 9px; color: #2ec4b6; }
.ms-signals.warn li::before { content: '\f071'; color: #d18f00; }

/* ---------- Comparison table ---------- */
.ms-table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(7,18,42,0.08); background: #fff; }
.ms-table { width: 100%; min-width: 720px; border-collapse: collapse; margin: 0; }
.ms-table th, .ms-table td { padding: 16px 18px; text-align: left; vertical-align: top; font-size: 14.5px; line-height: 1.55; border-bottom: 1px solid rgba(7,18,42,0.06); }
.ms-table thead th { background: #07122a; color: #ffd166; font-family: 'Space Grotesk', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.ms-table tbody th { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #07122a; background: rgba(255,183,3,0.08); width: 200px; }
.ms-table tbody th a { color: #07122a; }
.ms-table td { color: #4a5d73; }
.ms-table tbody tr:hover td { background: rgba(255,183,3,0.05); }

/* ---------- Coverage tiers ---------- */
.ms-tier { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px 24px; height: 100%; text-align: center; transition: all .3s ease; position: relative; }
.ms-tier:hover { transform: translateY(-6px); border-color: rgba(255,183,3,0.45); box-shadow: 0 12px 36px rgba(255,183,3,0.14); }
.ms-tier .clock { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; position: relative; background: conic-gradient(#ffb703 calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0); display: flex; align-items: center; justify-content: center; }
.ms-tier .clock::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #0b2740; }
.ms-tier .clock span { position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #ffd166; font-size: 15px; }
.ms-tier h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ms-tier p { color: #dfe6f1; font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Team roles ---------- */
.ms-role { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,0.92); border-radius: 14px; padding: 22px; box-shadow: 0 6px 24px rgba(7,18,42,0.06); height: 100%; transition: all .3s ease; }
.ms-role:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(46,196,182,0.18); }
.ms-role .av { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #157a70; background: rgba(46,196,182,0.12); border: 1px solid rgba(46,196,182,0.35); }
.ms-role h4 { font-size: 16.5px; font-weight: 700; color: #07122a; margin: 2px 0 6px; }
.ms-role p { color: #4a5d73; font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Rail: other managed support pages ---------- */
.ms-rail-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 26px 24px; height: 100%; color: #fff; text-decoration: none !important; transition: all .3s ease; position: relative; overflow: hidden; }
.ms-rail-card::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 20px; bottom: 18px; color: #ffd166; opacity: .5; transition: all .3s ease; }
.ms-rail-card:hover { transform: translateY(-6px); border-color: rgba(255,183,3,0.45); box-shadow: 0 12px 36px rgba(255,183,3,0.14); }
.ms-rail-card:hover::after { opacity: 1; transform: translateX(4px); }
.ms-rail-card .ms-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #ffd166; margin-bottom: 16px; background: rgba(255,183,3,0.12); border: 1px solid rgba(255,209,102,0.3); }
.ms-rail-card h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ms-rail-card p { color: #dfe6f1; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.ms-rail-card.current { border-color: rgba(46,196,182,0.5); background: rgba(46,196,182,0.08); }
.ms-rail-card.current::after { content: '\f00c'; color: #7fe7dc; opacity: 1; }
.ms-rail-card .cur { position: absolute; top: 14px; right: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7fe7dc; }

/* ---------- Quote / callout ---------- */
.ms-callout { background: linear-gradient(135deg, rgba(255,183,3,0.12) 0%, rgba(255,209,102,0.08) 100%); border: 1px solid rgba(255,183,3,0.35); border-radius: 16px; padding: 30px 34px; }
.ms-callout h4 { color: #ffd166; font-weight: 700; font-size: 20px; }
.ms-callout p { color: #f0e3bd; margin-bottom: 0; font-size: 16.5px; line-height: 1.65; }
.ms-callout p a { color: #ffd166; font-weight: 700; }
.ms-callout.teal { background: linear-gradient(135deg, rgba(46,196,182,0.12) 0%, rgba(46,196,182,0.05) 100%); border-color: rgba(46,196,182,0.35); }
.ms-callout.teal h4 { color: #7fe7dc; }
.ms-callout.teal p { color: #e3f4f1; }
.ms-callout.light { background: #fff; border-color: rgba(255,183,3,0.5); box-shadow: 0 8px 32px rgba(7,18,42,0.08); }
.ms-callout.light h4 { color: #07122a; }
.ms-callout.light p { color: #4a5d73; }
.ms-callout.light p a { color: #9c6b00; }

/* ---------- Deliverable ticks ---------- */
.ms-ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.ms-ticks li { break-inside: avoid; position: relative; padding: 6px 0 6px 30px; color: #4a5d73; font-size: 15px; line-height: 1.55; }
.ms-ticks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 2px; top: 8px; color: #2ec4b6; font-size: 13px; }
.ms-section-dark .ms-ticks li { color: #dfe6f1; }
.ms-ticks.amber li::before { color: #ffb703; }
.ms-ticks.one { columns: 1; }

/* ---------- FAQ (accessible accordion) ---------- */
.ms-faq { background: rgba(255,255,255,0.92); border-radius: 14px; margin-bottom: 14px; box-shadow: 0 6px 24px rgba(7,18,42,0.06); border-left: 4px solid #ffb703; transition: box-shadow .3s ease; }
.ms-faq.teal { border-left-color: #2ec4b6; }
.ms-faq[open] { box-shadow: 0 12px 36px rgba(255,183,3,0.16); }
.ms-faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 30px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #07122a; font-size: 17.5px; position: relative; line-height: 1.4; }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: #d18f00; transition: transform .3s ease; font-size: 14px; }
.ms-faq.teal summary::after { color: #17968a; }
.ms-faq[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.ms-faq summary:hover { color: #9c6b00; }
.ms-faq .a { padding: 0 30px 24px; color: #4a5d73; line-height: 1.75; animation: ms-fade-in .35s ease; }
.ms-faq .a a { color: #9c6b00; font-weight: 600; }
.ms-faq .a p:last-child { margin-bottom: 0; }
@keyframes ms-fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.ms-trust-card { background: #fff; border-radius: 14px; padding: 28px 26px; height: 100%; box-shadow: 0 8px 28px rgba(7,42,40,0.08); border-top: 3px solid #2ec4b6; transition: all .3s ease; display: flex; flex-direction: column; }
.ms-trust-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(46,196,182,0.2); }
.ms-trust-card .t-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #157a70; background: rgba(46,196,182,0.12); border: 1px solid rgba(46,196,182,0.3); margin-bottom: 18px; }
.ms-trust-card h4 { font-weight: 700; color: #07122a; font-size: 17.5px; margin-bottom: 10px; }
.ms-trust-card p { color: #4a5d73; font-size: 14.5px; line-height: 1.65; margin-bottom: 16px; }
.ms-trust-card a.t-link { margin-top: auto; color: #0d6b61; font-weight: 700; font-size: 14px; text-decoration: none; }
.ms-trust-card a.t-link:hover { text-decoration: underline; color: #094c45; }
.ms-trust-assure { color: #24504a; font-size: 15px; }
.ms-trust-assure a { color: #0d6b61; font-weight: 700; }

/* ---------- CTA panel ---------- */
.ms-cta { background: linear-gradient(135deg, #ffb703 0%, #e09600 100%); border-radius: 20px; padding: 56px 48px; text-align: center; color: #07122a; box-shadow: 0 20px 60px rgba(255,183,3,0.3); position: relative; overflow: hidden; }
.ms-cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.18); animation: ms-float 10s ease-in-out infinite; }
.ms-cta > * { position: relative; }
.ms-cta h3 { font-weight: 700; font-size: 32px; color: #07122a; }
.ms-cta p { color: #3d2f05; font-size: 18px; max-width: 760px; margin: 12px auto 28px; line-height: 1.6; }
.ms-cta .ms-btn { margin: 6px 8px; }
.ms-cta .fine { margin: 26px auto 0; font-size: 14px; color: #3d2f05; font-weight: 600; }
.ms-cta .fine a { color: #07122a; text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.ms-crumbs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #bfc9d9; }
.ms-crumbs a { color: #ffd166; text-decoration: none; font-weight: 600; }
.ms-crumbs a:hover { text-decoration: underline; }
.ms-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }

/* ---------- Misc ---------- */
.ms-mt-0 { margin-top: 0 !important; }
.ms-scenario { display: flex; gap: 18px; align-items: flex-start; }
.ms-scenario .ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #a97d00; background: linear-gradient(135deg, #fff8e6 0%, #ffedbf 100%); border: 2px solid #ffe1a0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ms-hero::before, .ms-hero .ms-blob, .ms-ops, .ms-ops-heart path, .ms-dot::after, .ms-split-arrow path, .ms-cta::before, .ms-flow.is-visible .ms-step .node::after { animation: none !important; }
    .ms-ops-feed li { animation: none !important; opacity: 1; position: static; }
    .ms-ops-feed { height: auto; }
    .ms-flow::after, .ms-tl-bar { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ms-flow { grid-template-columns: repeat(2, 1fr); }
    .ms-flow::before, .ms-flow::after { display: none; }
}
@media (max-width: 991px) {
    .ms-hero { padding: 150px 0 70px; }
    .ms-hero h1 { font-size: 36px; }
    .ms-ops { margin-top: 40px; }
    .ms-split { grid-template-columns: 1fr; }
    .ms-h2 { font-size: 32px; }
}
@media (max-width: 767px) {
    .ms-hero { padding: 140px 0 60px; }
    .ms-hero h1 { font-size: 30px; }
    .ms-hero::after, .ms-hero .ms-blob { display: none; }
    .ms-flow { grid-template-columns: 1fr; }
    .ms-section { padding: 64px 0; }
    .ms-h2 { font-size: 28px; }
    .ms-cta { padding: 40px 22px; }
    .ms-cta h3 { font-size: 26px; }
    .ms-ticks { columns: 1; }
    .ms-callout { padding: 24px 22px; }
    .ms-faq summary { padding: 18px 48px 18px 20px; font-size: 16px; }
    .ms-faq .a { padding: 0 20px 20px; }
    .ms-ops-grid { grid-template-columns: repeat(3, 1fr); }
    .ms-stat .v { font-size: 36px; }
}

/* ---------- Utility shims ----------
   The site ships a Bootstrap 3 era grid (float-based, no flex/spacing utilities). These scoped
   shims give the section the Bootstrap 4 helpers its markup uses, and make rows flex so cards
   equalise in height. */
.ms-page .row { display: flex; flex-wrap: wrap; }
.ms-page .row::before, .ms-page .row::after { display: none; }
.ms-page .row > [class*="col-"] { float: none; }
.ms-page .col-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; width: 100%; }
.ms-page .col-6 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; width: 50%; }
@media (min-width: 768px) { .ms-page .col-md-6.col-6 { width: 50%; } .ms-page .col-md-3.col-6 { width: 25%; } }
.ms-page .mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-page .d-block { display: block !important; }
.ms-page .d-flex { display: flex !important; }
.ms-page .flex-wrap { flex-wrap: wrap !important; }
.ms-page .align-items-center { align-items: center !important; }
.ms-page .justify-content-center { justify-content: center !important; }
.ms-page .text-center { text-align: center !important; }
.ms-page .mt-2 { margin-top: .5rem !important; }
.ms-page .mt-3 { margin-top: 1rem !important; }
.ms-page .mt-4 { margin-top: 1.5rem !important; }
.ms-page .mt-5 { margin-top: 3rem !important; }
.ms-page .mb-4 { margin-bottom: 1.5rem !important; }
.ms-page .mb-5 { margin-bottom: 3rem !important; }
.ms-page .mr-1 { margin-right: .25rem !important; }
@media (min-width: 768px) { .ms-page .mb-md-0 { margin-bottom: 0 !important; } }
.ms-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ms-page a.ms-card { display: block; }
.ms-page a.ms-card h3, .ms-page a.ms-card p { transition: none; }
