/* ---------------------------------------------------------------------------
   Why ScalperSense
   ---------------------------------------------------------------------------
   One idea carries this page: the market speaks in numbers, the app answers in
   sentences. So every section is the same two columns — JetBrains Mono on the
   left for what the exchange actually publishes, Inter on the right for what it
   means — with a hairline spine between them. The typeface split isn't
   decoration; it's the argument. Read the page down the middle and you're
   watching data turn into a decision, over and over.

   Colour is inherited from screener.css and stays disciplined: violet/indigo is
   the brand, and green/red appear ONLY where they carry their trading meaning.
   In this world those two are semantic, never palette.
--------------------------------------------------------------------------- */

.wy {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px 120px;
}

/* Shared: the mono voice. Small, wide-tracked, quiet — a machine label. */
.wy-eyebrow {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--violet);
}

/* --- Hero ---------------------------------------------------------------- */
.wy-hero {
    padding: 68px 0 12px;
    border-bottom: 1px solid var(--card-brd);
}

.wy-thesis {
    margin: 20px 0 0;
    font-size: clamp(38px, 6.6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.042em;
    line-height: 1.02;
    max-width: 16ch;
}
/* The second clause is the promise, so it gets the brand gradient — once on the
   page, nowhere else. */
.wy-thesis em {
    font-style: normal;
    background: linear-gradient(96deg, var(--violet), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wy-sub {
    margin: 26px 0 54px;
    font-size: clamp(16px, 1.9vw, 19px);
    line-height: 1.62;
    color: var(--muted);
    max-width: 58ch;
}
.wy-sub b {
    color: var(--txt);
    font-weight: 600;
}

/* --- The signature: raw → read ------------------------------------------- */
.wy-pair {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) 1px minmax(0, 1.14fr);
    gap: 0;
    align-items: stretch;
}
.wy-pair + .wy-pair {
    margin-top: 2px;
}

/* Left: what the exchange publishes. Dense, dim, unmistakably machine output. */
.wy-raw {
    padding: 26px 30px 26px 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    line-height: 1.95;
    color: var(--faint);
    white-space: pre-wrap;
    word-break: break-word;
}
.wy-raw .k {
    color: var(--muted);
}
.wy-raw .up {
    color: var(--up);
}
.wy-raw .dn {
    color: var(--down);
}

/* The spine. A single hairline that brightens where the reading lands. */
.wy-spine {
    position: relative;
    background: var(--card-brd);
}
.wy-spine::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

/* Right: the sentence a person can act on. */
.wy-read {
    padding: 26px 0 26px 30px;
}
.wy-read h3 {
    margin: 0;
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
.wy-read p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 46ch;
}
.wy-read .wy-where {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--txt);
    text-decoration: none;
    padding: 7px 13px;
    border: 1px solid var(--card-brd);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}
.wy-read .wy-where:hover,
.wy-read .wy-where:focus-visible {
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(2px);
}

/* --- Sections ------------------------------------------------------------ */
.wy-sec {
    padding-top: 74px;
}
.wy-sec-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--card-brd);
    margin-bottom: 8px;
}
.wy-sec-head h2 {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -0.032em;
}
.wy-sec-head .wy-count {
    margin-left: auto;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--faint);
    white-space: nowrap;
}

/* --- The map: every destination, grouped as the sidebar groups them ------- */
.wy-group + .wy-group {
    margin-top: 34px;
}
.wy-glabel {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 26px 0 12px;
}
.wy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 10px;
}
.wy-card {
    display: block;
    padding: 17px 18px;
    border: 1px solid var(--card-brd);
    border-radius: 14px;
    background: var(--card);
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}
.wy-card:hover,
.wy-card:focus-visible {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.07);
    transform: translateY(-2px);
}
.wy-card b {
    display: block;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.012em;
}
.wy-card span {
    display: block;
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
}
.wy-card .wy-ico {
    display: inline;
    margin-right: 8px;
    font-size: 14px;
}

/* --- A day with it: the market's own clock as the spine ------------------ */
/* The times are real — 08:00 pre-open prep, 09:15 the bell, 15:30 the close.
   Ordering by the trading day carries information a reader needs; generic
   01/02/03 markers would not. */
.wy-day {
    margin-top: 26px;
}
.wy-slot {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) 1px minmax(0, 1.14fr);
    align-items: stretch;
}
.wy-when {
    padding: 24px 30px 24px 0;
    text-align: right;
}
.wy-when .t {
    display: block;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: clamp(20px, 2.8vw, 27px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--txt);
}
.wy-when .z {
    display: block;
    margin-top: 4px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}
.wy-do {
    padding: 24px 0 24px 30px;
}
.wy-do h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.018em;
}
.wy-do p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.66;
    color: var(--muted);
    max-width: 52ch;
}
.wy-do a {
    color: var(--txt);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.5);
}
.wy-do a:hover,
.wy-do a:focus-visible {
    border-bottom-color: var(--violet);
    color: #fff;
}

/* --- Honest limits ------------------------------------------------------- */
.wy-limits {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}
.wy-limit {
    padding: 20px 21px;
    border: 1px solid var(--card-brd);
    border-left: 2px solid rgba(245, 182, 81, 0.5);
    border-radius: 0 14px 14px 0;
    background: rgba(245, 182, 81, 0.035);
}
.wy-limit b {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
    margin-bottom: 6px;
}
.wy-limit span {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* --- Close --------------------------------------------------------------- */
.wy-close {
    margin-top: 78px;
    padding: 46px 40px;
    border: 1px solid var(--card-brd);
    border-radius: var(--radius);
    background:
        radial-gradient(
            120% 160% at 12% 0%,
            rgba(139, 92, 246, 0.16) 0%,
            rgba(139, 92, 246, 0) 62%
        ),
        var(--card);
    text-align: center;
}
.wy-close h2 {
    margin: 0 0 10px;
    font-size: clamp(23px, 3.4vw, 33px);
    font-weight: 800;
    letter-spacing: -0.032em;
}
.wy-close p {
    margin: 0 auto 26px;
    max-width: 46ch;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--muted);
}
.wy-btns {
    display: flex;
    gap: 11px;
    justify-content: center;
    flex-wrap: wrap;
}
.wy-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        border-color 0.18s ease;
}
.wy-btn.primary {
    background: linear-gradient(135deg, var(--violet), var(--indigo));
    color: #fff;
}
.wy-btn.ghost {
    border-color: var(--card-brd);
    color: var(--txt);
    background: rgba(255, 255, 255, 0.03);
}
.wy-btn:hover,
.wy-btn:focus-visible {
    transform: translateY(-2px);
}
.wy-btn.primary:hover {
    filter: brightness(1.08);
}
.wy-btn.ghost:hover {
    border-color: rgba(139, 92, 246, 0.55);
}

/* --- Motion: one gesture, on entry, and only when it's welcome ----------- */
.wy-in {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}
.wy-in.shown {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wy-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .wy-card,
    .wy-btn,
    .wy-read .wy-where {
        transition: none;
    }
    .wy-card:hover,
    .wy-btn:hover,
    .wy-read .wy-where:hover {
        transform: none;
    }
}

/* --- Narrow: the two voices stack, and the spine turns on its side ------- */
@media (max-width: 760px) {
    .wy {
        padding: 0 16px 90px;
    }
    .wy-pair,
    .wy-slot {
        grid-template-columns: 1fr;
    }
    .wy-raw {
        padding: 20px 0 18px;
        font-size: 12px;
    }
    .wy-spine {
        height: 1px;
        background: var(--card-brd);
    }
    .wy-spine::after {
        left: 0;
        top: -2px;
    }
    .wy-read,
    .wy-do {
        padding: 20px 0 26px;
    }
    .wy-when {
        text-align: left;
        padding: 22px 0 10px;
    }
    .wy-sec-head .wy-count {
        display: none;
    }
    .wy-close {
        padding: 34px 22px;
    }
}
