*, *::before, *::after { box-sizing: border-box; }
        :root {
            --brand-navy: #272d69;
            --brand-ink: #171b3f;
            --accent-mint: #31c7a1;
            --accent-gold: #f2b84b;
            --soft-lilac: #dfe3ff;
            --text-soft: #59607e;
            --border: rgba(35, 41, 95, 0.12);
            --card: rgba(255, 255, 255, 0.72);
        }
        html { scroll-behavior: smooth; }
        body {
            color: var(--brand-ink);
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            margin: 0;
            min-width: 320px;
        }
        a { color: inherit; text-decoration: none; }
        button, a { font: inherit; }
        main {
            background:
                radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.94), transparent 25rem),
                radial-gradient(circle at 82% 18%, rgba(49, 199, 161, 0.2), transparent 21rem),
                radial-gradient(circle at 80% 84%, rgba(242, 184, 75, 0.13), transparent 24rem),
                linear-gradient(135deg, #fbfcff 0%, #eef1fb 48%, #e8ebf7 100%);
            min-height: 100vh;
        }
        .referral-hero {
            min-height: min(820px, 90vh);
            padding: clamp(18px, 2.5vw, 28px) clamp(18px, 4vw, 64px) clamp(36px, 5vw, 60px);
        }
        .referral-nav {
            align-items: center;
            display: flex;
            justify-content: space-between;
            gap: 18px;
            margin: 0 auto clamp(26px, 5vh, 48px);
            max-width: 1180px;
        }
        .brand {
            align-items: center;
            display: flex;
            height: 44px;
        }
        .brand img {
            display: block;
            height: 38px;
            width: auto;
        }
        .home-link {
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #4f5682;
            font-size: 0.92rem;
            font-weight: 800;
            padding: 10px 14px;
        }
        .hero-grid,
        .section {
            margin: 0 auto;
            max-width: 1180px;
        }
        .hero-grid {
            align-items: center;
            display: grid;
            gap: clamp(30px, 5vw, 72px);
            grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.86fr);
        }
        .eyebrow {
            align-items: center;
            color: #5860a3;
            display: inline-flex;
            font-size: 0.82rem;
            font-weight: 800;
            gap: 8px;
            letter-spacing: 0.08em;
            margin: 0 0 18px;
            text-transform: uppercase;
        }
        h1, h2, h3, p { margin-top: 0; }
        h1, h2, h3 {
            font-family: "Plus Jakarta Sans", Inter, sans-serif;
        }
        h1 {
            font-size: clamp(3rem, 5.45vw, 4.85rem);
            letter-spacing: 0;
            line-height: 0.98;
            margin-bottom: clamp(22px, 4vh, 30px);
            max-width: 650px;
        }
        h1 span {
            color: var(--brand-navy);
            display: block;
        }
        h1 span::after {
            background: var(--accent-mint);
            border-radius: 999px;
            content: "";
            display: block;
            height: 8px;
            margin-top: 16px;
            width: min(210px, 42vw);
        }
        h2 {
            font-size: clamp(2rem, 4.2vw, 4.1rem);
            letter-spacing: 0;
            line-height: 0.98;
            margin-bottom: 20px;
        }
        h3 {
            font-size: 1.2rem;
            letter-spacing: 0;
        }
        .lead {
            color: #4e5370;
            font-size: clamp(1.04rem, 1.4vw, 1.2rem);
            line-height: 1.55;
            max-width: 610px;
        }
        .hero-proof {
            align-items: center;
            background: rgba(255, 255, 255, 0.62);
            border: 1px solid var(--border);
            border-radius: 8px;
            display: inline-flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 8px;
            max-width: 650px;
            padding: 11px 14px;
        }
        .hero-proof span {
            color: #5860a3;
            font-size: 0.78rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .hero-proof strong {
            color: var(--brand-ink);
            font-size: 0.95rem;
        }
        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: clamp(20px, 3vh, 28px) 0 14px;
        }
        .primary-button,
        .secondary-button {
            align-items: center;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            font-weight: 800;
            gap: 10px;
            min-height: 48px;
            padding: 13px 18px;
        }
        .primary-button {
            background: var(--brand-navy);
            color: #fff;
            overflow: hidden;
            position: relative;
        }
        .primary-button::after {
            background: var(--accent-mint);
            content: "";
            height: 100%;
            opacity: 0.88;
            position: absolute;
            right: 0;
            top: 0;
            transform: skewX(-16deg) translateX(62%);
            width: 34px;
        }
        .secondary-button {
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(35, 41, 95, 0.16);
            color: var(--brand-ink);
        }
        .secondary-button.dark {
            background: var(--brand-navy);
            color: #fff;
            margin-top: 16px;
        }
        .hero-visual { display: grid; gap: 18px; }
        .reward-panel,
        .step-card,
        .email-block,
        .terms {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 26px 70px rgba(33, 38, 91, 0.12);
        }
        .reward-panel {
            overflow: hidden;
            padding: clamp(22px, 3.4vw, 34px);
            position: relative;
        }
        .reward-panel::before {
            background: var(--accent-mint);
            border-radius: 999px;
            content: "";
            height: 118px;
            position: absolute;
            right: -36px;
            top: -42px;
            width: 118px;
        }
        .reward-panel::after {
            background: var(--accent-gold);
            border-radius: 999px;
            bottom: 116px;
            content: "";
            height: 16px;
            position: absolute;
            right: 42px;
            width: 16px;
        }
        .referral-path-panel { min-height: 470px; }
        .panel-top {
            align-items: center;
            color: #686f99;
            display: flex;
            font-weight: 800;
            gap: 12px;
            justify-content: space-between;
            min-height: 34px;
        }
        .panel-top span {
            max-width: 190px;
            overflow: hidden;
            position: relative;
            text-align: right;
            text-overflow: ellipsis;
            white-space: nowrap;
            z-index: 1;
        }
        .panel-top img {
            height: 34px;
            margin-right: auto;
            position: relative;
            width: 34px;
            z-index: 1;
        }
        .reward-amount {
            margin: 30px 0 24px;
            position: relative;
            z-index: 1;
        }
        .reward-amount span {
            color: #686f99;
            display: block;
            font-size: 0.82rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        .reward-amount strong {
            display: block;
            font-size: clamp(3.8rem, 6.4vw, 5.7rem);
            letter-spacing: 0;
            line-height: 0.9;
            position: relative;
            z-index: 1;
        }
        .path-list {
            display: grid;
            gap: 10px;
            position: relative;
            z-index: 1;
        }
        .path-item {
            align-items: start;
            background: rgba(247, 248, 252, 0.78);
            border: 1px solid rgba(35, 41, 95, 0.1);
            border-radius: 8px;
            display: grid;
            gap: 12px;
            grid-template-columns: 42px 1fr;
            padding: 13px;
        }
        .path-icon {
            align-items: center;
            background: var(--brand-navy);
            border-radius: 50%;
            color: #fff;
            display: inline-flex;
            font-size: 1.05rem;
            font-weight: 900;
            height: 42px;
            justify-content: center;
            width: 42px;
        }
        .path-item strong { display: block; margin-bottom: 3px; }
        .path-item p,
        .step-card p,
        .split p,
        .terms p {
            color: var(--text-soft);
            line-height: 1.6;
        }
        .path-item p {
            font-size: 0.93rem;
            line-height: 1.45;
            margin: 0;
        }
        .section { padding: 72px clamp(18px, 4vw, 64px); }
        .section-header { max-width: 760px; }
        .steps { display: none; }
        .step-grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(3, 1fr);
            margin-top: 28px;
        }
        .step-card {
            min-height: 240px;
            padding: 28px;
        }
        .step-card span {
            align-items: center;
            background: linear-gradient(135deg, var(--soft-lilac), rgba(49, 199, 161, 0.2));
            border-radius: 50%;
            color: var(--brand-navy);
            display: inline-flex;
            font-weight: 900;
            height: 40px;
            justify-content: center;
            margin-bottom: 24px;
            width: 40px;
        }
        .split {
            align-items: start;
            display: grid;
            gap: 48px;
            grid-template-columns: 0.9fr 1.1fr;
        }
        .check-list {
            display: grid;
            gap: 14px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .check-list li {
            align-items: center;
            background: rgba(255, 255, 255, 0.58);
            border: 1px solid var(--border);
            border-radius: 8px;
            display: flex;
            gap: 12px;
            min-height: 58px;
            padding: 14px 16px;
        }
        .check-icon,
        .email-block .eyebrow svg {
            color: var(--accent-gold);
            flex: 0 0 auto;
        }
        .email-block { padding: clamp(24px, 5vw, 42px); }
        pre {
            background: var(--brand-ink);
            border-radius: 8px;
            color: #fff;
            font: 0.95rem/1.62 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            margin: 8px 0 0;
            overflow-x: auto;
            padding: 24px;
            white-space: pre-wrap;
        }
        .terms {
            margin-bottom: 54px;
            padding: clamp(24px, 4vw, 40px);
        }
        .terms h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
        .terms-grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(2, 1fr);
        }
        .toast {
            background: var(--brand-navy);
            border-radius: 8px;
            bottom: 22px;
            color: #fff;
            font-weight: 800;
            left: 50%;
            opacity: 0;
            padding: 12px 16px;
            pointer-events: none;
            position: fixed;
            transform: translate(-50%, 10px);
            transition: opacity 160ms ease, transform 160ms ease;
            z-index: 10;
        }
        .toast.is-visible {
            opacity: 1;
            transform: translate(-50%, 0);
        }
        @media (min-width: 901px) and (max-height: 920px) and (max-width: 1500px) {
            .hero-grid {
                align-items: start;
                gap: clamp(24px, 3vw, 42px);
                grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.82fr);
            }
            h1 {
                font-size: clamp(2.7rem, 4.6vw, 4.1rem);
                max-width: 570px;
            }
            .lead {
                font-size: 1rem;
                max-width: 540px;
            }
            .hero-proof { padding: 9px 12px; }
            .hero-proof strong { font-size: 0.88rem; }
            .referral-path-panel { min-height: 410px; }
        }
        @media (max-width: 900px) {
            .referral-hero {
                min-height: auto;
                padding-bottom: 36px;
            }
            .referral-nav {
                align-items: flex-start;
                flex-direction: column;
                margin-bottom: 42px;
            }
            .hero-grid,
            .split,
            .step-grid,
            .terms-grid {
                grid-template-columns: 1fr;
            }
            .hero-grid { gap: 38px; }
            h1 {
                font-size: clamp(3.15rem, 9vw, 5.3rem);
                max-width: 820px;
            }
            .hero-visual { display: none; }
            .steps { display: block; }
            .section {
                padding-bottom: 44px;
                padding-top: 44px;
            }
        }
        @media (max-width: 520px) {
            .referral-hero { padding: 18px 18px 28px; }
            .referral-nav { margin-bottom: 28px; }
            .brand { height: 36px; }
            .brand img { height: 30px; }
            .home-link { display: none; }
            .hero-grid { gap: 24px; }
            .eyebrow {
                font-size: 0.72rem;
                margin-bottom: 14px;
            }
            h1 {
                font-size: clamp(2.55rem, 13.4vw, 3.35rem);
                line-height: 1.02;
                margin-bottom: 18px;
                max-width: 360px;
            }
            h1 span::after {
                height: 7px;
                margin-top: 12px;
                width: 165px;
            }
            .lead {
                font-size: 0.95rem;
                line-height: 1.45;
                margin-bottom: 12px;
            }
            .hero-proof {
                display: flex;
                margin-top: 4px;
                padding: 10px 12px;
                width: 100%;
            }
            .hero-proof strong {
                font-size: 0.9rem;
                line-height: 1.25;
            }
            .actions,
            .primary-button,
            .secondary-button { width: 100%; }
            .actions {
                gap: 10px;
                margin: 16px 0 0;
            }
            .primary-button,
            .secondary-button {
                justify-content: center;
                min-height: 46px;
                padding: 12px 16px;
            }
            .section { padding: 34px 18px; }
            .step-card {
                min-height: 0;
                padding: 22px;
            }
            .terms { margin-bottom: 34px; }
        }
