﻿/* ============================================================
   investors.css — Investor Service sign-up page (EW2027)
   Rebuilt from the EW2023 Bootstrap page onto EW2027 design tokens.
   No Bootstrap. Uses --ew-* / --surface / --text / --border tokens so
   it matches the rest of the site and respects light/dark theming.
   ============================================================ */

.isu-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    color: var(--text);
}

/* ---------- Hero ---------- */
.isu-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.isu-hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.isu-hero-sub {
    margin: 0.75rem auto 0;
    max-width: 40ch;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--text-muted);
}

/* ---------- Section headings ---------- */
.isu-h2 {
    font-size: 1.35rem;
    font-weight: 750;
    margin: 0 0 0.75rem;
    color: var(--text);
}

/* ---------- Truths + grade summary ---------- */
.isu-truths {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 1.5rem;
    align-items: start;
    margin: 2rem 0;
}

.isu-gradesum-mount {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
}

.isu-truthlist {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    line-height: 1.55;
}

    .isu-truthlist li {
        margin-bottom: 0.5rem;
    }

.isu-truths-close {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Explainer ---------- */
.isu-explainer {
    margin: 2rem 0;
    line-height: 1.65;
    font-size: 1.02rem;
}

    .isu-explainer p {
        margin: 0 0 1rem;
    }

.isu-stat {
    color: var(--positive);
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.isu-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.isu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 60ms ease;
}

    .isu-btn:active {
        transform: translateY(1px);
    }

.isu-btn-primary {
    background: var(--ew-brand, #334E68);
    color: #fff;
}

    .isu-btn-primary:hover {
        background: color-mix(in srgb, var(--ew-brand, #334E68) 88%, #000);
    }

.isu-btn-gold {
    background: var(--ew-gold, #DDB785);
    color: var(--ew-dark, #12181f);
}

    .isu-btn-gold:hover {
        background: color-mix(in srgb, var(--ew-gold, #DDB785) 88%, #000);
    }

.isu-btn-icon {
    flex: 0 0 auto;
}

/* ---------- Already-a-subscriber panel ---------- */
.isu-already {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

    .isu-already .isu-cta-row {
        justify-content: center;
    }

/* ---------- Sign-up ---------- */
.isu-signup {
    margin: 2.5rem 0;
}

.isu-signup-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.isu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.isu-card-title {
    font-size: 1.1rem;
    font-weight: 750;
    margin: 0 0 1rem;
}

.isu-pay-title {
    margin-top: 1.75rem;
}

/* ---------- Form ---------- */
.isu-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.isu-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

    .isu-field label {
        font-size: 0.85rem;
        font-weight: 650;
        color: var(--text-muted);
    }

    .isu-field input {
        padding: 0.6rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface);
        color: var(--text);
        font: inherit;
    }

        .isu-field input:focus-visible {
            outline: 2px solid var(--ew-gold, #DDB785);
            outline-offset: 1px;
            border-color: var(--ew-gold, #DDB785);
        }

    .isu-field select {
        padding: 0.6rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface);
        color: var(--text);
        font: inherit;
    }

        .isu-field select:focus-visible {
            outline: 2px solid var(--ew-gold, #DDB785);
            outline-offset: 1px;
            border-color: var(--ew-gold, #DDB785);
        }

.isu-field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* EU right-of-withdrawal consent block (shown only for EU billing country) */
.isu-eu-consent {
    margin: 0.75rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--warning, #b7791f);
    border-radius: 11px;
    background: var(--warning-soft, rgba(183, 121, 31, 0.08));
}

    .isu-eu-consent .isu-consent {
        margin: 0;
    }

.isu-eu-note {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ---------- Payment slot ---------- */
.isu-payment-slot {
    min-height: 90px;
    border: 1px dashed var(--border-strong, var(--border));
    border-radius: 11px;
    padding: 1rem;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
}

.isu-payment-placeholder {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- Consent ---------- */
.isu-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-muted);
}

    .isu-consent input {
        margin-top: 0.15rem;
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        accent-color: var(--ew-gold, #DDB785);
    }

.isu-form-error {
    color: var(--negative, #cd5959);
    font-size: 0.9rem;
    min-height: 1.2em;
    margin-bottom: 0.5rem;
}

.isu-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.02rem;
    padding: 0.85rem;
}

/* ---------- Pricing ---------- */
.isu-pricing {
    align-self: stretch;
}

.isu-plan {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    color: var(--text);
    transition: border-color 120ms ease, background 120ms ease;
}

    .isu-plan:hover {
        border-color: var(--ew-gold, #DDB785);
    }

    .isu-plan[aria-pressed="true"] {
        border-color: var(--ew-gold, #DDB785);
        background: color-mix(in srgb, var(--ew-gold, #DDB785) 12%, transparent);
    }

.isu-plan-name {
    font-weight: 750;
    font-size: 1.05rem;
}

.isu-plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.isu-plan-per {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.isu-plan-trial {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--positive, #0f8a3b);
}

.isu-plan-save {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--ew-red, #cd5959);
}

.isu-plan-featured {
    border-color: color-mix(in srgb, var(--ew-gold, #DDB785) 55%, var(--border));
}

.isu-pricing-fine {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ---------- History / snowball ---------- */
.isu-history {
    margin: 2.5rem 0 0;
    line-height: 1.65;
}

    .isu-history p {
        margin: 0 0 1rem;
    }

.isu-aplushist {
    min-height: 260px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Widget loading ---------- */
.isu-widget-loading {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .isu-truths {
        grid-template-columns: 1fr;
    }

    .isu-signup-grid {
        grid-template-columns: 1fr;
    }

    .isu-field-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Step 1 — inline auth gate (create account / login / social)
   ============================================================ */
.isu-authgate {
    display: flex;
    justify-content: center;
}

.isu-auth-card {
    width: 100%;
    max-width: 460px;
}

.isu-auth-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.isu-auth-sub {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.isu-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.isu-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

    .isu-social-btn:hover {
        background: var(--surface-alt);
        border-color: var(--border-strong, var(--border));
    }

.isu-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.75rem 0 1rem;
}

    .isu-or::before,
    .isu-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .isu-or span {
        padding: 0 0.75rem;
    }

.isu-auth-form {
    margin: 0;
}

.isu-login-help {
    text-align: right;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.isu-auth-toggle {
    text-align: center;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- What's included ----------
   A compact list of the services detailed on /investor. Deliberately quieter than
   the cards on that page: this is a sign-up page, and the reader is on their way
   to the form. */
.isu-services {
    margin: 40px 0;
}

.isu-svc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 4px 18px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.isu-svc a {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 10px 10px 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

    .isu-svc a:hover {
        background: color-mix(in srgb, var(--ew-color, #ddb785) 12%, transparent);
    }

    .isu-svc a:focus-visible {
        outline: 2px solid var(--ew-color, #ddb785);
        outline-offset: 2px;
    }

.isu-svc-icon {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    color: var(--ew-color, #ddb785);
}

    /* The card icons on /investor get their colour from that page's stylesheet.
       They're reused here under a different class, so the fill rule has to come
       with them or they fall back to black. */
    .isu-svc-icon path,
    .isu-svc-icon polygon,
    .isu-svc-icon rect,
    .isu-svc-icon circle {
        fill: currentColor;
    }

    /* icons drawn with strokes set fill="none" on purpose */
    .isu-svc-icon [fill="none"],
    .isu-svc-icon [fill="none"] path,
    .isu-svc-icon [fill="none"] circle {
        fill: none;
    }

.isu-svc-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.isu-svc-note {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-muted, #5b6472);
}

/* the quarterly-returns chart beside the truths */
.isu-gradechart {
    margin: 0;
}

.isu-gradechart-cap {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted, #5b6472);
}

@media (max-width: 520px) {
    .isu-svc-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- A+ track record vs the S&P 500 ---------- */
.isu-aplusfig {
    margin: 0 0 18px;
}

.isu-apluscap {
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text, #323232);
}

.isu-aplushist {
    position: relative;
    width: 100%;
    min-height: 320px;
}

/* Two unlabelled lines are a puzzle, so the chart names them. Positioned over the
   plot rather than below it so the label sits with the thing it describes. */
.isu-chartkey {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text, #323232);
    pointer-events: none;
}

    .isu-chartkey b {
        margin-left: 6px;
        font-weight: 800;
    }

    .isu-chartkey i {
        display: inline-block;
        width: 16px;
        height: 3px;
        margin-right: 5px;
        vertical-align: middle;
        border-radius: 2px;
    }



/* ---------- Partner-offer disclosure ----------
   ew-investors.js toggles .is-hidden on the panel, but nothing ever defined the
   class, so the terms rendered open and the "+" appeared to do nothing. The panel
   must start collapsed: it's long legal copy sitting in the middle of a payment
   form, and showing it by default buries the checkout button. */
.is-hidden {
    display: none !important;
}

.isu-disc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 3px 9px 3px 6px;
    border: 1px solid var(--border, #d6dce6);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted, #5b6472);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

    .isu-disc-toggle:hover {
        border-color: var(--ew-color, #ddb785);
        color: var(--text, #323232);
    }

    .isu-disc-toggle:focus-visible {
        outline: 2px solid var(--ew-color, #ddb785);
        outline-offset: 2px;
    }

.isu-disc-sign {
    display: inline-block;
    width: 0.85em;
    text-align: center;
    font-weight: 800;
}

/* The disclosure itself: quieter and tighter than the offer copy above it, so it
   reads as the fine print it is rather than competing with the offer. */
.isu-disc {
    margin-top: 8px;
    padding: 10px 12px;
    border-left: 2px solid var(--border, #d6dce6);
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-muted, #5b6472);
}

    .isu-disc p {
        margin: 0 0 8px;
    }

        .isu-disc p:last-child {
            margin-bottom: 0;
        }

.isu-disc-shared {
    font-style: italic;
}

/* ---------- A+ returns chart overlays ----------
   drawTrackRecord() is lifted from ew-aplus.js and builds the same overlay markup
   (watermark, badge, legend, stats). Those classes are styled in the A+ page's own
   stylesheet, which this page doesn't load — so the rules are repeated here, scoped
   to #aplushist so they can't reach anything else. */
#aplushist .aplus-returns-wm {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34%;
    max-width: 220px;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

#aplushist .aplus-returns-badge {
    position: absolute;
    top: 14%;
    left: 12%;
    width: 42px;
    height: 42px;
    color: var(--ew-color, #ddb785);
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}

    #aplushist .aplus-returns-badge svg {
        width: 100%;
        height: 100%;
    }

#aplushist .aplus-returns-legend {
    position: absolute;
    top: 10px;
    left: 58px;
    z-index: 2;
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text, #323232);
    pointer-events: none;
}

#aplushist .arl-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#aplushist .arl-sw {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
}

/* the totals box — the persuasive part, so it sits inside the plot rather than under it */
#aplushist .aplus-returns-stats {
    position: absolute;
    top: 78px;
    left: 58px;
    z-index: 2;
    min-width: 218px;
    padding: 10px 12px;
    border: 1px solid var(--border, #d6dce6);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
    font-size: 0.82rem;
    pointer-events: none;
}

#aplushist .ars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 3px 0;
}

#aplushist .ars-compare {
    margin-top: 4px;
    padding-top: 7px;
    border-top: 1px solid var(--border, #d6dce6);
    font-weight: 800;
}

#aplushist .ars-lbl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text, #323232);
    font-weight: 700;
}

#aplushist .ars-sw {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
}

#aplushist .ars-val {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

    #aplushist .ars-val.up {
        color: var(--positive, #0f8a3b);
    }

    #aplushist .ars-val.down {
        color: var(--negative, #e13232);
    }

#aplushist .aplus-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted, #5b6472);
    font-size: 0.9rem;
}

@media (max-width: 620px) {
    /* the stats box would cover the plot on a phone; the caption still carries the story */
    #aplushist .aplus-returns-stats {
        display: none;
    }

    #aplushist .aplus-returns-legend {
        left: 12px;
    }
}
