:root{
    --grounding-navy:#102A43;
    --grounding-blue:#78C0E0;
    --grounding-blue-dark:#3E8FB3;
    --grounding-bg:#EAF6FB;
    --grounding-surface:#FFFFFF;
    --grounding-border:#CDE7F2;
    --grounding-text:#18384F;
    --grounding-muted:#587386;
}

body.grounding-theme{
    background:var(--grounding-bg);
    color:var(--grounding-text);
}

.grounding-theme .logo,
.grounding-theme nav a:hover,
.grounding-theme a{
    color:var(--grounding-blue-dark);
}

.grounding-theme main.app-page{
    max-width:860px;
    border-color:var(--grounding-border);
    box-shadow:0 18px 50px rgba(16,42,67,0.10);
}

.app-hero,
.policy-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;
    margin-bottom:46px;
    text-align:left;
}

.app-icon-large{
    width:132px;
    height:132px;
    flex-basis:132px;
    border-radius:30px;
}

.app-icon-large span{
    font-size:5.1rem;
}

.eyebrow{
    margin-bottom:4px;
    color:var(--grounding-blue-dark);
    font-size:0.8rem;
    font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
}

.grounding-theme h1,
.grounding-theme h2,
.grounding-theme h3{
    color:var(--grounding-navy);
}

.grounding-theme .subtitle{
    color:var(--grounding-muted);
    margin-bottom:0;
}

.app-page-content,
.policy-content{
    text-align:left;
    color:var(--grounding-text);
}

.app-page-content > p,
.policy-content > p{
    margin-bottom:24px;
}

.app-page-content h2,
.policy-content h2{
    margin-top:34px;
    margin-bottom:10px;
    font-size:1.55rem;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin:34px 0 42px;
}

.feature-card{
    padding:22px;
    background:#F6FBFD;
    border:1px solid var(--grounding-border);
    border-radius:16px;
}

.feature-card h3{
    margin-bottom:8px;
    font-size:1.05rem;
}

.feature-card p{
    color:var(--grounding-muted);
    font-size:0.94rem;
}

.store-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;
    padding:26px;
    background:var(--grounding-navy);
    color:#FFFFFF;
    border-radius:18px;
}

.store-panel h2{
    margin:0 0 6px;
    color:#FFFFFF;
    font-size:1.4rem;
}

.store-panel p{
    color:#D4E8F2;
}

.store-button{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:10px 18px;
    border-radius:12px;
    background:var(--grounding-blue);
    color:var(--grounding-navy) !important;
    font-weight:700;
    text-decoration:none;
    cursor:not-allowed;
}

.page-links{
    margin-top:34px;
    text-align:center;
}

.page-links a{
    font-weight:600;
    text-decoration:none;
}

.page-links a:hover,
.policy-content a:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}

.policy-page{
    max-width:800px !important;
}

.policy-heading{
    justify-content:flex-start;
}

.policy-icon{
    width:82px;
    height:82px;
    flex-basis:82px;
    border-radius:20px;
}

.policy-icon span{
    font-size:3.2rem;
}

.policy-heading h1{
    font-size:3.1rem;
}

.policy-content{
    max-width:680px;
    margin:0 auto;
}

.policy-content h2:first-of-type{
    margin-top:24px;
}

.grounding-theme footer{
    border-color:var(--grounding-border);
}

@media (max-width:700px){
    .app-hero,
    .policy-heading{
        flex-direction:column;
        text-align:center;
        gap:20px;
    }

    .feature-grid{
        grid-template-columns:1fr;
    }

    .store-panel{
        flex-direction:column;
        align-items:flex-start;
    }

    .store-button{
        width:100%;
    }

    .policy-heading h1{
        font-size:2.5rem;
    }
}
