:root {
    --primary: #2E6B57;
    --background: #F8F7F3;
    --soft-green: #E8EFEA;
    --dark: #1F2D28;
    --muted: #6B7A72;
    --card: #FFFFFF;
    --line: rgba(46, 107, 87, 0.14);
    --shadow: 0 24px 70px rgba(31, 45, 40, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.64;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

.tinted {
    background: linear-gradient(180deg, rgba(232, 239, 234, 0.68), rgba(248, 247, 243, 0.2));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 640px;
    margin: 0;
    color: var(--dark);
    font-size: 2.18rem;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-size: 1.62rem;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.3;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(46, 107, 87, 0.1);
    background: rgba(248, 247, 243, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 800;
    font-size: 1rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 13px 22px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 14px 34px rgba(46, 107, 87, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(46, 107, 87, 0.24);
}

.btn-small {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 0.8rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--primary);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    box-shadow: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 42px;
}

.hero::before {
    position: absolute;
    top: 16%;
    right: -90px;
    width: 280px;
    height: 420px;
    border-radius: 48% 52% 45% 55%;
    background: rgba(232, 239, 234, 0.78);
    content: "";
    pointer-events: none;
    z-index: 0;
}

.hero-grid,
.split {
    display: grid;
    gap: 36px;
    align-items: center;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    max-width: 620px;
    margin-top: 22px;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.support-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.92rem;
    list-style: none;
}

.support-list li,
.feature-list p,
.mode-card li {
    position: relative;
    padding-left: 24px;
}

.support-list li::before,
.feature-list p::before,
.mode-card li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.phone-shell {
    width: min(100%, 360px);
    border: 1px solid rgba(46, 107, 87, 0.16);
    border-radius: 38px;
    background: linear-gradient(160deg, #ffffff 0%, #edf4ef 100%);
    padding: 18px;
    box-shadow: var(--shadow);
}

.phone-top,
.progress-row,
.portfolio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.phone-logo {
    width: 84px;
}

.phone-top span,
.story-card span,
.wallet-card span,
.portfolio-card span,
.market-card span,
.mode-label {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.companion-card,
.progress-card,
.story-card,
.wallet-card,
.market-card,
.portfolio-card,
.soft-card,
.mode-card,
.journey-step,
details {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 45px rgba(31, 45, 40, 0.07);
}

.companion-card {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
}

.companion-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: var(--soft-green);
    object-fit: contain;
}

.companion-card p,
.story-card p,
.wallet-card small {
    margin: 2px 0 0;
    font-size: 0.82rem;
}

.progress-card,
.story-card,
.wallet-card {
    margin-top: 14px;
    padding: 18px;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft-green);
}

.progress-track span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.steps-mini {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
    margin-top: 14px;
}

.steps-mini i {
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
}

.steps-mini .muted {
    background: #d8e4dc;
}

.wallet-card strong,
.story-card strong {
    display: block;
    color: var(--dark);
    font-size: 1.18rem;
}

/* Content Sections */
.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.soft-card,
.mode-card,
.journey-step,
.market-card,
.portfolio-card {
    padding: 20px;
}

.soft-card h3,
.mode-card h3,
.journey-step h3 {
    color: var(--dark);
}

.feature-list {
    display: grid;
    gap: 12px;
}

.section-visual {
    display: grid;
    gap: 18px;
}

.illustration-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #edf4ef 100%);
    padding: 18px;
    box-shadow: 0 16px 45px rgba(31, 45, 40, 0.07);
}

.illustration-card img,
.wide-illustration img,
.card-illustration {
    width: 100%;
}

.wide-illustration {
    overflow: hidden;
    margin: 30px 0 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 16px 45px rgba(31, 45, 40, 0.06);
}

.feature-list p {
    margin: 0;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.mode-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.mode-card.featured {
    background: linear-gradient(145deg, #fff 0%, #eef5f0 100%);
}

.mode-card ul {
    display: grid;
    gap: 9px;
    margin: 8px 0 24px;
    padding: 0;
    color: var(--muted);
    font-size: 0.9rem;
    list-style: none;
}

.mode-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.journey-grid {
    display: grid;
    gap: 16px;
}

.journey-step span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--soft-green);
    color: var(--primary);
    font-weight: 800;
}

.closing-note {
    margin: 28px 0 0;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 800;
}

.companion-panel {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.companion-large {
    width: min(220px, 70%);
}

.message-stack {
    display: grid;
    gap: 10px;
    width: 100%;
}

.message-stack p {
    margin: 0;
    border-radius: 18px;
    background: #fff;
    padding: 13px 16px;
    color: var(--dark);
    font-size: 0.9rem;
    box-shadow: 0 12px 28px rgba(31, 45, 40, 0.07);
}

.market-card {
    background: #fff;
}

.market-card .card-illustration {
    margin: -4px 0 16px;
}

.market-card h3 {
    margin-top: 8px;
    font-size: 1.42rem;
}

.market-card small {
    display: block;
    margin-top: 18px;
    border-radius: 18px;
    background: var(--soft-green);
    padding: 14px;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.flow-row {
    display: grid;
    gap: 12px;
}

.flow-pill,
.feature-cloud span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 13px 18px;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.center-action {
    margin-top: 28px;
    text-align: center;
}

.portfolio-card {
    background: var(--primary);
    color: #fff;
}

.portfolio-card p,
.portfolio-card span {
    color: rgba(255, 255, 255, 0.78);
}

.portfolio-card h3 {
    margin-top: 6px;
    color: #fff;
    font-size: 1.5rem;
}

.portfolio-card img {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    object-fit: contain;
}

.feature-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.safety {
    background: #20352d;
    color: #fff;
}

.safety .eyebrow,
.safety p {
    color: rgba(255, 255, 255, 0.78);
}

.safety h2 {
    color: #fff;
}

.narrow {
    max-width: 850px;
}

.final-cta {
    padding-top: 0;
}

.cta-panel {
    border-radius: 32px;
    background: var(--primary);
    padding: 42px 24px;
    color: #fff;
    text-align: center;
}

.cta-panel h2 {
    color: #fff;
}

.cta-panel p {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.82);
}

.cta-panel .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
}

details {
    padding: 18px 20px;
}

summary {
    cursor: pointer;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 800;
}

details p {
    margin: 12px 0 0;
}

/* Legal page */
.legal-hero {
    padding-bottom: 36px;
}

.legal-hero h1 {
    max-width: 760px;
}

.legal-section {
    padding-top: 0;
}

.legal-layout {
    display: grid;
    gap: 22px;
    align-items: start;
}

.legal-aside,
.legal-content,
.legal-callout {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 54px rgba(31, 45, 40, 0.07);
}

.legal-aside {
    padding: 22px;
}

.legal-aside p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.legal-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
}

.legal-content {
    padding: 24px;
}

.legal-content h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    font-size: 1.28rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 22px;
    color: var(--dark);
    font-size: 0.98rem;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 21px;
    color: var(--muted);
    font-size: 0.94rem;
}

.legal-content li::marker {
    color: var(--primary);
}

.legal-content a {
    color: var(--primary);
    font-weight: 800;
}

.legal-callout {
    margin-top: 34px;
    padding: 22px;
    background: var(--soft-green);
}

.legal-callout h2 {
    margin-top: 0;
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 42px 0;
    background: #fff;
}

.footer-grid {
    display: grid;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 12px;
}

.site-footer small {
    display: block;
    max-width: 560px;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (min-width: 720px) {
    body {
        font-size: 0.96rem;
    }

    .container {
        width: min(1140px, calc(100% - 56px));
    }

    .section {
        padding: 74px 0;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.06;
    }

    h2 {
        font-size: 2.05rem;
        line-height: 1.16;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-links {
        display: flex;
    }

    .hero-grid,
    .split {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    }

    .reverse {
        grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
    }

    .two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        align-items: start;
    }

    .legal-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .legal-aside {
        position: sticky;
        top: 92px;
    }
}

@media (min-width: 1020px) {
    .container {
        width: min(1180px, calc(100% - 72px));
    }

    .section {
        padding: 86px 0;
    }

    .hero {
        padding-top: 58px;
    }

    h1 {
        max-width: 680px;
        font-size: 3.65rem;
    }

    h2 {
        font-size: 2.34rem;
    }

    .card-grid {
        gap: 20px;
    }

    .soft-card,
    .mode-card,
    .journey-step,
    .market-card,
    .portfolio-card {
        padding: 22px;
    }

    .journey-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .legal-content {
        padding: 38px 44px;
    }

    .legal-content h2 {
        font-size: 1.42rem;
    }
}

@media (max-width: 719px) {
    .hero::before {
        display: none;
    }

    .hero-grid,
    .split {
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .section {
        padding: 54px 0;
    }

    h1 {
        font-size: 2.02rem;
    }

    h2 {
        font-size: 1.48rem;
    }

    h3 {
        font-size: 0.98rem;
    }

    p {
        font-size: 0.91rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-inner .btn-small {
        flex: 1 1 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .phone-shell {
        border-radius: 28px;
        padding: 14px;
    }

    .soft-card,
    .mode-card,
    .journey-step,
    .market-card,
    .portfolio-card {
        padding: 18px;
    }
}
