/* What changes: a Today / With Dassential switch flips six outcome cards.
   State lives on the section: data-ba="before" or data-ba="after". */

.outcomes { background: #F6F6FA; overflow: hidden; isolation: isolate; }
.outcomes::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; transition: opacity .8s ease;
  background: radial-gradient(40% 35% at 85% 10%, rgba(108,99,255,.16), transparent 70%), radial-gradient(35% 30% at 5% 70%, rgba(92,170,255,.10), transparent 70%); }
.outcomes[data-ba="after"]::before { opacity: 1; }
.outcomes .pr-head h2 span { color: #8A8A96; }
.outcomes .pr-aside p { margin-bottom: 20px; }

/* Switch, styled like the services tab track */
.ba-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 16px; background: #ECECF3; border: 1px solid #E3E3EC; }
.ba-switch button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 11px; color: #5A5A66; white-space: nowrap; transition: color .4s var(--ease); }
.ba-switch button[aria-pressed="true"] { color: var(--ink); }
.outcomes[data-ba="after"] .ba-switch button[aria-pressed="true"] { color: #fff; }
.ba-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(30,27,110,.08), 0 10px 22px -12px rgba(30,27,110,.4); overflow: hidden;
  transition: transform .6s var(--ease), background-color .5s var(--ease), box-shadow .5s; }
.outcomes[data-ba="after"] .ba-thumb { transform: translateX(100%); background: var(--brand); box-shadow: 0 10px 24px -10px rgba(55,48,200,.8); }
.ba-switch.is-auto .ba-thumb::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: currentColor; opacity: .25; transform-origin: left; animation: baTimer 4.2s linear infinite; }
.outcomes[data-ba="after"] .ba-switch.is-auto .ba-thumb::after { background: #fff; opacity: .45; }
@keyframes baTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Cards, matching the problem and services cards */
.oc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .oc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .oc-grid { grid-template-columns: 1fr; } }

.oc { position: relative; border-radius: 20px; padding: 24px 24px 22px; background: #fff; border: 1px solid #ECECF2; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30,27,110,.04), 0 24px 48px -36px rgba(30,27,110,.35);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease), transform .5s var(--ease), opacity var(--t-slow) var(--ease); }
.oc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(70% 55% at 100% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%); }
.outcomes[data-ba="after"] .oc { border-color: color-mix(in srgb, var(--c) 28%, #ECECF2); box-shadow: 0 1px 2px rgba(30,27,110,.04), 0 28px 52px -34px color-mix(in srgb, var(--c) 55%, transparent); }
.outcomes[data-ba="after"] .oc::before { opacity: 1; }
.js .oc.in:hover { transform: translateY(-4px); }

.oc-top { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.oc-top b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.oc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 18%, #fff); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s; }
.oc-ic svg { width: 20px; height: 20px; }
.outcomes[data-ba="after"] .oc-ic { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--c) 80%, transparent); }

.oc-st { margin-left: auto; position: relative; height: 24px; min-width: 76px; }
.oc-st em { position: absolute; right: 0; top: 0; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.oc-st .b { background: #F1F1F6; color: #6B6B78; }
.oc-st .a { background: #E7F6EE; color: #1F8F57; opacity: 0; transform: translateY(6px); }
.outcomes[data-ba="after"] .oc-st .b { opacity: 0; transform: translateY(-6px); }
.outcomes[data-ba="after"] .oc-st .a { opacity: 1; transform: none; }

.oc-num { position: relative; height: clamp(52px, 4.8vw, 66px); overflow: hidden; margin-bottom: 6px; }
.oc-num span { position: absolute; left: 0; top: 0; font-size: clamp(46px, 4.5vw, 62px); line-height: 1; letter-spacing: -.055em; font-weight: 500; white-space: nowrap; padding-right: 4px; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.oc-num .b { color: #2B2B33; }
.oc-num .a { color: var(--c); transform: translateY(105%); opacity: 0; }
.outcomes[data-ba="after"] .oc-num .b { transform: translateY(-105%); opacity: 0; }
.outcomes[data-ba="after"] .oc-num .a { transform: none; opacity: 1; }
.oc:nth-child(3n+2) .oc-num span { transition-delay: .06s; }
.oc:nth-child(3n) .oc-num span { transition-delay: .12s; }

.oc-desc { position: relative; display: grid; font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; min-height: 2.9em; }
.oc-desc span { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.oc-desc .a { opacity: 0; transform: translateY(6px); color: var(--ink); }
.outcomes[data-ba="after"] .oc-desc .b { opacity: 0; transform: translateY(-6px); }
.outcomes[data-ba="after"] .oc-desc .a { opacity: 1; transform: none; }

.oc-bar { position: relative; padding-top: 14px; border-top: 1px solid #F0F0F5; }
.oc-bl { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.oc-bl small { font-size: 12.5px; color: #7A7A88; }
.oc-was { font-weight: 600; color: #9A9AA6 !important; text-decoration: line-through; text-decoration-color: rgba(229,72,77,.6); opacity: 0; transition: opacity .5s var(--ease); }
.outcomes[data-ba="after"] .oc-was { opacity: 1; }
.oc-bar > span { display: block; height: 8px; border-radius: 8px; background: #F1F1F6; overflow: hidden; }
.oc-bar i { display: block; height: 100%; width: var(--b); border-radius: 8px; background: linear-gradient(90deg, #F2A4A7, #E5484D); transition: width 1s var(--ease), background .6s; }
.oc.up .oc-bar i { background: linear-gradient(90deg, #CFCFD8, #ADADB9); }
.outcomes[data-ba="after"] .oc-bar i { width: var(--a); background: var(--c); }

/* Closing banner, same style as the problem section */
.oc-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 28px; border-radius: 20px; color: #fff;
  background: radial-gradient(60% 140% at 100% 0%, rgba(139,133,255,.45), transparent 60%), linear-gradient(120deg, #1C1C21 30%, #26206E); }
.oc-foot p { margin: 0; flex: 1; min-width: 260px; font-size: 16.5px; line-height: 1.5; color: #C9C9D6; max-width: none; }
.oc-foot strong { color: #fff; font-weight: 600; }
@media (max-width: 600px) { .oc-foot .btn { width: 100%; justify-content: center; } .ba-switch { width: 100%; } .ba-switch button { padding: 13px 10px; } }

@media (prefers-reduced-motion: reduce) { .ba-switch.is-auto .ba-thumb::after { display: none; } }
