/* Why LogicFlux page: short on phones, things to look at instead of text walls */
.wy-page { --wy-a: #2563eb; --wy-b: #1d4ed8; }

/* Hero */
.wy-hero { position: relative; overflow: hidden; padding-bottom: 12px; text-align: center; }
.wy-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none;
    background: radial-gradient(40% 50% at 20% 30%, rgba(37, 99, 235, .14), transparent 70%), radial-gradient(40% 50% at 80% 20%, rgba(29, 78, 216, .14), transparent 70%); }
.wy-hero .container { position: relative; }
.wy-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    color: var(--wy-a); background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .22); }
.wy-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: wy-ping 2s infinite; }
@keyframes wy-ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.wy-title { margin: 14px 0 8px; font-size: clamp(34px, 7vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--text-main); }
.wy-title span { background: linear-gradient(135deg, var(--wy-a), var(--wy-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wy-lead { max-width: 520px; margin: 0 auto 18px; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.wy-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.wy-proof > span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-glass); }
.wy-proof .wy-ico { width: 26px; height: 26px; }
.wy-proof .wy-ico svg { width: 14px; height: 14px; }
.wy-jump { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.wy-jump a { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--text-muted);
    border: 1px solid var(--border-glass); transition: color .15s, border-color .15s, background .15s; }
.wy-jump a:hover, .wy-jump a.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--wy-a), var(--wy-b)); }
@media (max-width: 640px) {
    .wy-jump { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .wy-jump::-webkit-scrollbar { display: none; }
    .wy-jump a { flex: none; }
}

/* Sections: a numbered kicker above each title */
.wy-sec { scroll-margin-top: 72px; }
.wy-sec .container { text-align: center; }
.wy-sec .section-desc { max-width: 560px; margin-left: auto; margin-right: auto; }
.wy-kicker { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 11px; font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--wy-a), var(--wy-b)); box-shadow: 0 10px 22px -10px rgba(29, 78, 216, .7); }
.wy-sec .why-compare-wrap, .wy-sec .why-foot, .wy-flow, .wy-tiles, .wy-pipe, .wy-fold { text-align: left; }

/* Round icon with a soft tint of its colour */
.wy-ico { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--c, #2563eb);
    background: color-mix(in srgb, var(--c, #2563eb) 13%, transparent); }

/* Compare: on phones pick one option to see beside LogicFlux */
.wy-vs { display: none; }
@media (max-width: 640px) {
    .wy-vs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 14px; max-width: 360px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-glass); }
    .wy-vs button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; font: 700 13px var(--font-main, inherit); color: var(--text-muted); background: transparent; cursor: pointer; }
    .wy-vs button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--wy-a), var(--wy-b)); }
    .why-compare-wrap[data-vs] td:not(.why-lf) { display: none; }
    .why-compare-wrap[data-vs="3"] td:nth-child(3), .why-compare-wrap[data-vs="4"] td:nth-child(4), .why-compare-wrap[data-vs="5"] td:nth-child(5) { display: block; }
    .why-compare tr { display: grid !important; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
    .why-compare th[scope="row"] { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px 8px; }
    .why-compare td { border-bottom: 0 !important; padding: 10px 12px; }
    .why-compare td.why-lf { border-right: 1px solid var(--border-glass); }
}

/* Managed for you: the trade's path */
.wy-path { max-width: 640px; margin: 4px auto 22px; padding: 14px 12px 8px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px -30px rgba(37, 99, 235, .5); }
.wy-path svg { display: block; width: 100%; height: auto; overflow: visible; }
.wy-grid line { stroke: var(--border-glass, #e4e4e7); stroke-width: 1; stroke-dasharray: 3 4; }
.wy-price { fill: none; stroke: url(#wy-g); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wy-stop { fill: none; stroke: #ef4444; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wy-area { opacity: 0; transition: opacity .8s 1.6s; }
.wy-mark { opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity .4s var(--d), transform .4s var(--d); }
.wy-mark circle { fill: var(--bg-card, #fff); stroke: #1d4ed8; stroke-width: 2.5; }
.wy-mark.is-exit circle { fill: #22c55e; stroke: #22c55e; }
.wy-mark text, .wy-stop-l { font: 700 10px var(--font-main, system-ui); fill: var(--text-main); text-anchor: middle; }
.wy-stop-l { fill: #ef4444; text-anchor: start; font-size: 9px; opacity: 0; transition: opacity .4s 2.3s; }
.wy-path.is-in .wy-price { animation: wy-draw 2.2s ease-out forwards; }
.wy-path.is-in .wy-stop { animation: wy-draw 2.2s .2s ease-out forwards, wy-stop-c 2.2s .2s forwards; }
.wy-path.is-in .wy-mark { opacity: 1; transform: none; }
.wy-path.is-in .wy-area, .wy-path.is-in .wy-stop-l { opacity: 1; }
@keyframes wy-draw { to { stroke-dashoffset: 0; } }
@keyframes wy-stop-c { 0%, 45% { stroke: #ef4444; } 60%, 100% { stroke: #22c55e; } }

/* Steps: a rail that fills once in view */
.wy-flow { position: relative; }
.wy-step { opacity: 0; transform: translateY(10px); transition: opacity .45s calc(var(--i) * .12s), transform .45s calc(var(--i) * .12s), border-color .2s; }
.wy-flow.is-in .wy-step { opacity: 1; transform: none; }
.wy-step:hover { border-color: rgba(29, 78, 216, .45); }
.wy-step .auto-tag { padding: 3px 9px; border-radius: 999px; background: rgba(37, 99, 235, .1); }
@media (max-width: 560px) {
    .wy-flow { gap: 10px; padding-left: 26px; }
    .wy-flow::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--border-glass);
        transform-origin: top; }
    .wy-flow::after { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; transform: scaleY(0); transform-origin: top;
        background: linear-gradient(var(--wy-a), var(--wy-b)); transition: transform 1.2s ease-out; }
    .wy-flow.is-in::after { transform: scaleY(1); }
    .wy-step { padding: 12px 14px; }
    .wy-step::before { left: -26px !important; top: 12px !important; width: 20px !important; height: 20px !important; font-size: 11px !important; }
    .wy-step h3 { margin: 4px 0 2px; font-size: 14.5px; }
}

/* Tiles: icon and name; tap for the detail on phones, shown on wide screens */
.wy-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1040px; margin: 0 auto; }
.wy-tile { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; padding: 16px; text-align: left;
    font: inherit; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 18px; cursor: default; overflow: hidden;
    transition: transform .15s, border-color .15s, box-shadow .15s; }
.wy-tile::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--c, #2563eb) 14%, transparent), transparent 70%); }
.wy-tile:has(.wy-ico) { --c: inherit; }
.wy-tile:hover { transform: translateY(-2px); border-color: rgba(29, 78, 216, .35); box-shadow: 0 16px 30px -22px rgba(37, 99, 235, .6); }
.wy-tile b { font-size: 14.5px; line-height: 1.3; }
.wy-tile-more { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.wy-shield .wy-tile { background: linear-gradient(160deg, rgba(16, 185, 129, .06), transparent 60%), var(--bg-card); }
@media (max-width: 900px) { .wy-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .wy-tiles { gap: 8px; }
    .wy-tile { grid-template-columns: 1fr; align-content: start; padding: 12px; cursor: pointer; border-radius: 16px; }
    .wy-tile .wy-ico { width: 34px; height: 34px; border-radius: 10px; }
    .wy-tile b { font-size: 13.5px; padding-right: 14px; }
    .wy-tile b::after { content: "+"; position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
        font-size: 14px; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border-glass); transition: transform .2s; }
    .wy-tile .wy-tile-more { display: none; font-size: 12.5px; }
    .wy-tile.is-open { grid-column: 1 / -1; border-color: rgba(29, 78, 216, .4); }
    .wy-tile.is-open .wy-tile-more { display: block; }
    .wy-tile.is-open b::after { transform: rotate(45deg); }
}

/* Folding note */
.wy-fold { max-width: 1040px; margin: 14px auto 0; border-radius: 14px; border: 1px dashed var(--border-glass); background: var(--bg-card); }
.wy-fold summary { padding: 12px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text-main); list-style: none; display: flex; justify-content: space-between; }
.wy-fold summary::-webkit-details-marker { display: none; }
.wy-fold summary::after { content: "+"; color: var(--text-muted); }
.wy-fold[open] summary::after { content: "–"; }
.wy-fold .broker-note { margin: 0; padding: 0 16px 14px; font-size: 13px; line-height: 1.55; color: var(--text-muted); text-align: left; }

/* How it works: four nodes on a rail with a travelling pulse */
.wy-pipe { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wy-pipe::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; background: linear-gradient(90deg, #3b82f6, #0ea5e9, #10b981, #f59e0b); opacity: .35; }
.wy-pipe::after { content: ""; position: absolute; top: 29px; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 3px #2563eb, 0 0 16px 4px rgba(37, 99, 235, .55); opacity: 0; }
.wy-pipe.is-in::after { animation: wy-run 3.2s ease-in-out infinite; }
@keyframes wy-run { 0% { left: 12%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(88% - 12px); opacity: 0; } }
.wy-node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.wy-node-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--bg-card);
    border: 1px solid var(--border-glass); box-shadow: 0 14px 28px -18px var(--c); }
.wy-node-ico .wy-ico { width: 46px; height: 46px; border-radius: 15px; }
.wy-node small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.wy-node h3 { margin: 2px 0 4px; font-size: 15.5px; color: var(--text-main); }
.wy-node p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 760px) {
    .wy-pipe { grid-template-columns: 1fr; gap: 14px; }
    .wy-pipe::before { left: 33px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(#3b82f6, #0ea5e9, #10b981, #f59e0b); }
    .wy-pipe::after { left: 28px; top: 30px; }
    .wy-pipe.is-in::after { animation: wy-run-v 3.2s ease-in-out infinite; }
    @keyframes wy-run-v { 0% { top: 30px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 42px); opacity: 0; } }
    .wy-node { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
    .wy-node-ico { flex: none; width: 66px; height: 60px; border-radius: 18px; }
    .wy-node h3 { font-size: 14.5px; }
    .wy-node p { font-size: 12.5px; }
}

.wy-cta { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .wy-price, .wy-stop { stroke-dashoffset: 0; animation: none !important; }
    .wy-mark, .wy-step, .wy-area, .wy-stop-l { opacity: 1; transform: none; transition: none; }
    .wy-pipe::after, .wy-eyebrow i { animation: none !important; }
}
