/* Homepage â€” teal theme, fresh layout (not old card grid) */

:root {
    --home-teal: #0f766e;
    --home-teal-deep: #0d5c56;
    --home-mint: #d8efe9;
    --home-leaf: #7dd3b8;
    --home-ink: #134e4a;
    --home-muted: #6b8f8a;
    --home-field: #f3f7f6;
    --home-line: #e2ece9;
    --home-card: #ffffff;
    --r-soft: 14px;
    --r-cut: 4px 18px 14px 18px;
}

* {
    box-sizing: border-box;
}

body.home-shell {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: radial-gradient(ellipse 80% 40% at 100% 0%, rgba(125, 211, 184, 0.35), transparent 55%), radial-gradient(ellipse 60% 30% at 0% 20%, rgba(15, 118, 110, 0.08), transparent 50%), var(--home-mint);
    color: var(--home-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.home-wrap {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
}

/* â€”â€” Nav: flat bar, square-ish logo â€”â€” */

.home-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    background: var(--home-teal-deep);
    color: #fff;
    border-bottom: 3px solid var(--home-leaf);
}

.home-nav-brand {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.home-nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    color: var(--home-teal-deep);
}

.home-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.home-nav-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-nav-tag {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.home-nav-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.home-nav-actions a {
    display: grid;
    place-items: center;
    height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.home-btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .4);
    background: transparent;
}

.home-btn-solid {
    color: var(--home-teal-deep);
    background: var(--home-leaf);
}

.home-main {
    padding: 14px 2% 72px;
}

/* â€”â€” Banner: cut corner â€”â€” */

.home-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-cut);
    background: var(--home-teal-deep);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.home-banner-track {
    display: flex;
    transition: transform .5s ease;
}

.home-banner-slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.home-banner-slide img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.home-banner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 110px;
    border-radius: var(--r-cut);
    border: 2px solid rgba(15, 118, 110, 0.2);
    background: #fff;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 0 16px;
}

.home-banner-empty small {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.75;
}

.home-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.home-banner-dot.is-on {
    width: 18px;
    background: var(--home-leaf);
}

/* â€”â€” CTA strip â€”â€” */

.home-cta-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.home-cta-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-cta-primary {
    color: #fff;
    background: var(--home-teal-deep);
    box-shadow: 4px 4px 0 var(--home-leaf);
}

.home-cta-secondary {
    color: var(--home-teal-deep);
    background: #fff;
    border: 2px solid var(--home-teal);
}

/* â€”â€” Hero: slanted block + rings â€”â€” */

.home-hero {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    padding: 22px 18px 20px;
    border-radius: 0 22px 0 22px;
    background: linear-gradient(145deg, var(--home-teal) 0%, var(--home-teal-deep) 70%);
    color: #fff;
}

.home-hero-ring {
    position: absolute;
    border: 2px solid rgba(125, 211, 184, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-ring.r1 {
    width: 140px;
    height: 140px;
    top: -50px;
    right: -40px;
}

.home-hero-ring.r2 {
    width: 90px;
    height: 90px;
    bottom: -30px;
    left: -20px;
    border-color: rgba(255, 255, 255, .15);
}

.home-hero-slash {
    position: absolute;
    width: 48px;
    height: 4px;
    background: var(--home-leaf);
    top: 18px;
    right: 18px;
    transform: rotate(-35deg);
    border-radius: 2px;
    pointer-events: none;
}

.home-kicker {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0 0 10px;
    padding: 0 0 0 10px;
    border-left: 3px solid var(--home-leaf);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
}

.home-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.home-hero h1 em {
    font-style: normal;
    color: var(--home-leaf);
    display: inline;
}

.home-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 300px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.55;
    opacity: 0.9;
}

/* â€”â€” Stats: stacked bars â€”â€” */

.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.home-stat {
    padding: 12px 10px;
    background: #fff;
    border-left: 3px solid var(--home-teal);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.06);
}

.home-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--home-ink);
    line-height: 1.1;
}

.home-stat strong small {
    font-size: 10px;
    color: var(--home-muted);
    margin-left: 1px;
}

.home-stat span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--home-muted);
    text-transform: none;
}

/* â€”â€” Section headers: left bar â€”â€” */

.home-sec {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 22px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(15, 118, 110, 0.12);
}

.home-sec-mark {
    font-size: 11px;
    font-weight: 800;
    color: var(--home-leaf);
    background: var(--home-teal-deep);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.home-sec-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--home-ink);
    text-transform: none;
}

.home-sec-title em {
    font-style: normal;
    color: var(--home-teal);
}

.home-sec-hint {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    color: var(--home-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* â€”â€” Feature rails (not 2x2 icon cards) â€”â€” */

.home-rails {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.home-rail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--home-line);
}

.home-rail:last-child {
    border-bottom: 0;
}

.home-rail-ico {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--home-field);
    color: var(--home-teal);
    border-radius: 10px 4px 10px 4px;
    font-size: 15px;
}

.home-rail h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-rail p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--home-muted);
}

/* â€”â€” Panels â€”â€” */

.home-panel {
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.home-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-teal), var(--home-leaf));
}

.home-panel h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--home-ink);
}

.home-panel h2 em {
    font-style: normal;
    color: var(--home-teal);
}

.home-panel>p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--home-muted);
}

.home-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--home-teal-deep);
    background: rgba(15, 118, 110, 0.1);
    border-radius: 4px;
}

.home-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 10px;
    background: var(--home-field);
    margin-top: 8px;
    border-left: 3px solid var(--home-leaf);
}

.home-list-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    background: var(--home-teal);
    font-size: 13px;
}

.home-list-body {
    min-width: 0;
    flex: 1;
}

.home-list-body strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-list-body span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--home-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-list-meta {
    text-align: right;
    flex-shrink: 0;
}

.home-list-meta strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-list-meta small {
    font-size: 9px;
    font-weight: 700;
    color: var(--home-muted);
}

.home-unlock {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--home-teal-deep);
    color: #fff;
}

.home-unlock b {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.home-unlock span {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
}

.home-unlock a,
.home-join {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--home-leaf);
    color: var(--home-teal-deep);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.home-join {
    background: var(--home-teal-deep);
    color: #fff;
    box-shadow: 3px 3px 0 var(--home-leaf);
}

/* â€”â€” How it works: vertical timeline â€”â€” */

.home-timeline {
    position: relative;
    padding-left: 28px;
}

.home-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--home-teal), var(--home-leaf));
    border-radius: 2px;
}

.home-tl-item {
    position: relative;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px 4px 12px 4px;
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.home-tl-item:last-child {
    margin-bottom: 0;
}

.home-tl-dot {
    position: absolute;
    left: -28px;
    top: 14px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--home-teal-deep);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px var(--home-mint);
}

.home-tl-item h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-tl-item p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--home-muted);
}

/* â€”â€” Plans â€”â€” */

body.home-shell .home-plans {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 10px;
}

body.home-shell .home-plans::-webkit-scrollbar {
    display: none;
}

body.home-shell .home-plans .plan {
    scroll-snap-align: center;
    min-width: min(78%, 280px);
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 4px 18px 4px 18px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

body.home-shell .home-plans .plan::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, rgba(125, 211, 184, 0.45), transparent 70%);
    pointer-events: none;
}

.home-plan-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--home-teal-deep);
    font-size: 9px;
    font-weight: 800;
}

.home-plan-box {
    border-radius: 8px;
    background: var(--home-field);
    padding: 8px;
    border-bottom: 2px solid transparent;
}

.home-plan-box.earn {
    background: #ecfdf5;
    border-bottom-color: var(--home-leaf);
}

.home-plan-box label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--home-muted);
}

.home-plan-box strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-plan-box.earn strong {
    color: #047857;
}

.home-invest {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--home-teal-deep);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 2px 2px 0 var(--home-leaf);
}

/* â€”â€” Income sources: diagonal tiles â€”â€” */

.home-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-tile {
    padding: 14px 12px;
    background: #fff;
    border-radius: 4px 16px 4px 16px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    position: relative;
}

.home-tile .home-tag {
    margin-bottom: 8px;
}

.home-tile h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-tile p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--home-muted);
}

/* â€”â€” Commission â€”â€” */

.home-comm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-comm-cell {
    padding: 12px;
    background: var(--home-field);
    border-radius: 10px;
    text-align: center;
}

.home-comm-cell .lv {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--home-teal);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.home-comm-cell strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-comm-cell span {
    font-size: 10px;
    font-weight: 600;
    color: var(--home-muted);
}

/* â€”â€” Roadmap â€”â€” */

.home-road {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-road-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--home-line);
}

.home-road-item:last-child {
    border-bottom: 0;
}

.home-road-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--home-teal-deep);
    background: var(--home-leaf);
    border-radius: 8px;
}

.home-road-item strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
    margin-bottom: 2px;
}

.home-road-item p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--home-muted);
}

.home-road-item .st {
    display: inline-block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--home-teal);
}

/* â€”â€” Closing CTA â€”â€” */

.home-close {
    margin-top: 14px;
    padding: 20px 16px;
    border-radius: 0 20px 0 20px;
    background: linear-gradient(135deg, var(--home-teal) 0%, var(--home-teal-deep) 100%);
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.home-close::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(125, 211, 184, 0.3);
    border-radius: 50%;
    right: -20px;
    bottom: -20px;
}

.home-close h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.home-close h2 em {
    font-style: normal;
    color: var(--home-leaf);
}

.home-close p {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.9;
}

.home-close .home-join {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--home-teal-deep);
    box-shadow: 3px 3px 0 var(--home-leaf);
}

.home-foot {
    margin-top: 20px;
    padding: 16px 8px 8px;
    text-align: center;
    border-top: 2px solid rgba(15, 118, 110, 0.12);
}

.home-foot strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--home-ink);
}

.home-foot p {
    margin: 4px 0 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--home-muted);
}

.pd {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: rgba(15, 118, 110, 0.2);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.pd.on {
    width: 16px;
    background: var(--home-teal);
}

@media (min-width: 480px) {
    body.home-shell {
        padding: 18px 12px 28px;
    }
    .home-wrap {
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(15, 118, 110, 0.14);
        background: transparent;
    }
}