.app-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
@media (max-width: 880px) {
    .app-hero-layout {
        grid-template-columns: 1fr;
    }
    .app-hero-phone {
        display: none;
    }
}

.app-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.app-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s var(--ease-out-expo);
    white-space: nowrap;
}
.app-hero-cta.primary {
    background: var(--gold);
    color: var(--ink-900);
    box-shadow: 0 8px 28px var(--gold-glow);
}
.app-hero-cta.primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--gold-glow);
}
.app-hero-cta.secondary {
    background: rgba(245, 236, 216, 0.06);
    border: 1px solid rgba(245, 236, 216, 0.18);
    color: rgba(245, 236, 216, 0.78);
    font-weight: 600;
    cursor: default;
}

.app-hero-phone {
    display: flex;
    justify-content: center;
    position: relative;
}
.app-hero-phone::before {
    /* Soft gold glow behind the phone */
    content: "";
    position: absolute;
    inset: -10% -20%;
    background: radial-gradient(
        ellipse at center,
        rgba(228, 204, 122, 0.18),
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}
.app-hero-phone .phone-mock {
    position: relative;
    z-index: 1;
    max-width: 260px;
}

/* Feature tile grid (light surface) */
.app-features-v2 {
    padding: clamp(56px, 7vw, 96px) 0;
}
.app-features-v2-head {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 56px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.app-features-v2-head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 var(--sp-md);
}
.app-features-v2-head p {
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.app-features-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 880px) {
    .app-features-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 540px) {
    .app-features-v2-grid {
        grid-template-columns: 1fr;
    }
}

.app-feature-tile {
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-xl);
    padding: 24px 22px;
    transition:
        transform 0.25s var(--ease-out-expo),
        border-color 0.2s,
        box-shadow 0.25s var(--ease-out-expo);
}
.app-feature-tile:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-elevated);
}
.app-feature-tile-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        rgba(228, 204, 122, 0.18),
        rgba(167, 137, 52, 0.12)
    );
    border: 1px solid rgba(201, 168, 76, 0.32);
    color: var(--gold-deep);
    border-radius: 14px;
    margin-bottom: 16px;
}
.app-feature-tile h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin: 0 0 var(--sp-sm);
}
.app-feature-tile p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
[data-theme="dark"] .app-feature-tile-icon {
    color: var(--gold-light);
}

/* App page: features as a ruled list instead of icon tiles */
.app-features-v2-grid {
    column-gap: clamp(28px, 5vw, 72px);
    row-gap: 0;
}
.app-feature-tile {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 16px;
    align-content: start;
    padding: 24px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--card-separator);
    border-radius: 0;
    box-shadow: none;
}
.app-feature-tile:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gold);
}
.app-feature-tile-icon {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--gold-deep);
}
.app-feature-tile-icon svg {
    width: 26px;
    height: 26px;
}
:root:not([data-theme="dark"]) .app-feature-tile-icon {
    color: #7a6120;
}

/* Stats strip */
.stats-strip {
    background: var(--felt-dark);
    background-image: var(--felt-texture);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    position: relative;
    z-index: 9;
}
.stats-strip .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stats-strip .stat {
    padding: var(--sp-lg) var(--sp-xl);
    border-right: 1px solid rgba(245, 236, 216, 0.08);
    color: var(--text-cream);
}
.stats-strip .stat:last-child {
    border-right: 0;
}
.stats-strip .stat .v {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1;
    color: var(--gold-light);
    letter-spacing: -0.01em;
}
.stats-strip .stat .v .plus {
    color: var(--accent);
}
.stats-strip .stat .k {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 236, 216, 0.6);
}
@media (max-width: 700px) {
    /* Single inline row: each stat is a tight value+label pair. */
    .stats-strip {
        padding: var(--sp-sm) 0;
    }
    .stats-strip .stats-row {
        display: flex;
        grid-template-columns: none;
        justify-content: space-around;
        align-items: center;
        flex-wrap: nowrap;
        gap: var(--sp-sm);
    }
    .stats-strip .stat {
        padding: 0;
        border: 0;
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        flex: 0 0 auto;
    }
    .stats-strip .stat .v {
        font-size: 13px;
        line-height: 1;
    }
    .stats-strip .stat .k {
        font-size: 12px;
        margin: 0;
        letter-spacing: 0.04em;
    }
}
