/* ============================================================
   6. Patient app — phone mockup + feature points
   ============================================================ */

.app { overflow: hidden; }
.app__grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

/* --- phone mockup --- */
.app__phone-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}
.phone {
    position: relative;
    width: min(280px, 74vw);
    aspect-ratio: 9 / 19;
    border-radius: 44px;
    background: #0d1526;
    padding: 12px;
    box-shadow:
        0 4px 10px  rgba(15, 23, 42, 0.15),
        0 40px 80px rgba(15, 23, 42, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: rotateY(-12deg) rotateX(4deg);
    transition: transform 0.9s var(--ease-spring);
}
[dir="ltr"] .phone { transform: rotateY(12deg) rotateX(4deg); }
.app__phone-wrap:hover .phone { transform: rotateY(0deg) rotateX(0deg); }

.phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: #0d1526;
    z-index: 2;
}
.phone__screen {
    height: 100%;
    border-radius: 34px;
    background: linear-gradient(175deg, #f2f7fd 0%, #e5eefa 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 44px 14px 12px;
}

.phone__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.phone__hello {
    width: 46%;
    height: 12px;
    border-radius: 6px;
    background: rgba(11, 18, 32, 0.18);
}
.phone__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.phone__card {
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.phone__chip {
    width: 34%;
    height: 9px;
    border-radius: 5px;
    background: rgba(31, 122, 224, 0.35);
}
.phone__line {
    height: 9px;
    border-radius: 5px;
    background: rgba(11, 18, 32, 0.1);
}
.phone__line--w70 { width: 70%; }
.phone__line--w45 { width: 45%; }
.phone__line--w60 { width: 60%; }
.phone__line--w80 { width: 80%; }
.phone__line--w50 { width: 50%; }

.phone__card--appt { border-inline-start: 4px solid var(--accent); }
.phone__promo-img {
    height: 54px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.35), transparent 45%),
        linear-gradient(135deg, #7fb4ee 0%, #3a8ee5 60%, #2c6cbf 100%);
}

.phone__tabbar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding: 9px 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
}
.phone__tab {
    width: 22px; height: 22px;
    border-radius: 7px;
    background: rgba(11, 18, 32, 0.12);
}
.phone__tab.is-on { background: var(--accent); }

/* --- content points --- */
.app__points {
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.app__point {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease-reveal), transform 0.7s var(--ease-reveal);
    transition-delay: calc(var(--i, 0) * 0.09s);
}
.app.is-revealed-points .app__point { opacity: 1; transform: none; }

.app__point-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(31, 122, 224, 0.1);
    color: var(--accent);
}
.app__point-icon svg { width: 22px; height: 22px; }
.app__point h3 {
    margin: 0 0 0.15rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}
.app__point p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--muted-2);
}

@media (max-width: 860px) {
    .app__grid { grid-template-columns: 1fr; }
    .app__phone-wrap { order: 2; margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .phone { transform: none !important; transition: none; }
    .app__point { opacity: 1; transform: none; transition: none; }
}
