/*
 * DiaryVault Website Phase 2A
 * Shared visual foundation aligned with native iOS and Android Home.
 */

:root {
    --dv-ink: #0c1a2e;
    --dv-vault-700: #1e3a5f;
    --dv-vault-600: #315a7d;
    --dv-gold-top: #e8c96e;
    --dv-gold: #d4a937;
    --dv-gold-bottom: #b8912a;
    --dv-gold-text: #4a3818;
    --dv-cream: #fdf8ec;
    --dv-cream-deep: #f5efdf;
    --dv-paper: rgba(255, 255, 255, 0.78);
    --dv-paper-solid: #fffdf8;
    --dv-text-muted: rgba(12, 26, 46, 0.62);
    --dv-border: rgba(30, 58, 95, 0.08);
    --dv-shadow-soft: 0 18px 54px rgba(12, 26, 46, 0.08);
    --dv-shadow-card: 0 10px 28px rgba(12, 26, 46, 0.065);
    --dv-radius-xl: 30px;
    --dv-radius-lg: 22px;
    --dv-radius-md: 16px;
}

body {
    background:
        radial-gradient(
            circle at 50% 0%,
            var(--dv-cream) 0,
            var(--dv-cream-deep) 72%
        );
    color: var(--dv-ink);
}

.site-header {
    height: 64px;
    background: rgba(253, 248, 236, 0.82);
    border-bottom: 1px solid rgba(30, 58, 95, 0.055);
    box-shadow: 0 8px 30px rgba(12, 26, 46, 0.035);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.site-header.transparent {
    background: rgba(12, 26, 46, 0.72);
    border-bottom-color: rgba(232, 201, 110, 0.12);
}

.site-header-inner {
    max-width: 1240px;
    padding-inline: clamp(18px, 3.8vw, 54px);
}

.site-main {
    padding-top: 64px;
}

.logo-link {
    gap: 0.72rem;
}

.logo-link img {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(232, 201, 110, 0.52);
    border-radius: 11px;
    box-shadow:
        0 7px 18px rgba(12, 26, 46, 0.11),
        0 0 0 3px rgba(232, 201, 110, 0.08);
}

.logo-link span {
    color: var(--dv-ink);
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

.nav-links {
    gap: 0.18rem;
}

.nav-link,
.nav-group-label {
    padding: 0.5rem 0.8rem;
    color: rgba(12, 26, 46, 0.65);
    border-radius: 999px;
    font-size: 0.82rem;
}

.nav-link:hover,
.nav-link.active,
.nav-chevron:hover,
.nav-chevron[aria-expanded="true"] {
    color: var(--dv-vault-700);
    background: rgba(30, 58, 95, 0.065);
}

.nav-link-cta,
.btn-gold,
.current-access-button {
    position: relative;
    overflow: hidden;
    color: var(--dv-gold-text);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.34) 0%,
            rgba(255, 255, 255, 0.07) 44%,
            rgba(255, 255, 255, 0) 45%
        ),
        linear-gradient(
            180deg,
            var(--dv-gold-top) 0%,
            var(--dv-gold) 58%,
            var(--dv-gold-bottom) 100%
        );
    border: 1px solid rgba(255, 239, 190, 0.74);
    border-radius: 14px;
    box-shadow:
        0 12px 30px rgba(90, 60, 15, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -1px 0 rgba(80, 49, 8, 0.16);
    font-weight: 750;
    letter-spacing: 0.012em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-link-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0.55rem 1rem;
    margin-left: 0.35rem;
}

.nav-link-cta:hover,
.btn-gold:hover,
.current-access-button:hover {
    color: var(--dv-gold-text);
    filter: brightness(1.035);
    transform: translateY(-1px);
}

.nav-dropdown {
    padding: 0.45rem;
    background: rgba(255, 253, 248, 0.98);
    border-color: rgba(30, 58, 95, 0.09);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(12, 26, 46, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-dropdown-item {
    border-radius: 11px;
}

.mobile-menu {
    background:
        radial-gradient(
            circle at 40% 0%,
            var(--dv-cream),
            var(--dv-cream-deep)
        );
}

.site-footer {
    background: rgba(255, 253, 248, 0.86);
    border-top-color: rgba(30, 58, 95, 0.065);
}

/* Homepage */

.home-v2 {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 8%,
            #fffdf7 0,
            var(--dv-cream) 36%,
            var(--dv-cream-deep) 100%
        );
}

.home-v2 .hero {
    min-height: 790px;
    padding:
        clamp(52px, 7vw, 92px)
        clamp(20px, 4vw, 56px)
        68px;
    display: flex;
    align-items: center;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 72% 42%,
            rgba(212, 169, 55, 0.12),
            transparent 28%
        ),
        linear-gradient(
            165deg,
            #081523 0%,
            #0c1a2e 44%,
            #152841 100%
        );
}

.home-v2 .hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 130px;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(8, 21, 35, 0.34)
        );
    content: "";
    pointer-events: none;
    z-index: -1;
}

.home-v2 .hero-grid {
    opacity: 0.24;
}

.home-v2 .hero-glow-1 {
    width: 620px;
    height: 620px;
    top: 80px;
    right: -220px;
    background:
        radial-gradient(
            circle,
            rgba(212, 169, 55, 0.16),
            transparent 68%
        );
}

.home-v2 .hero-glow-2 {
    width: 480px;
    height: 480px;
    bottom: -120px;
    left: -210px;
    background:
        radial-gradient(
            circle,
            rgba(49, 90, 125, 0.28),
            transparent 70%
        );
}

.home-v2 .hero-top.dv-hero-layout {
    position: relative;
    width: min(1180px, 100%);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(360px, 0.82fr);
    gap: clamp(44px, 7vw, 88px);
    align-items: center;
    text-align: left;
    z-index: 3;
}

.home-v2 .dv-hero-copy {
    min-width: 0;
}

.home-v2 .hero-badge {
    width: fit-content;
    margin: 0 0 1.35rem;
    padding: 0.5rem 0.82rem;
    color: rgba(255, 244, 210, 0.82);
    background: rgba(232, 201, 110, 0.1);
    border: 1px solid rgba(232, 201, 110, 0.23);
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.home-v2 .hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(3.15rem, 5.8vw, 5.45rem);
    line-height: 0.98;
    letter-spacing: -0.047em;
    text-align: left;
    text-wrap: balance;
}

.home-v2 .hero h1 em {
    display: inline;
    color: var(--dv-gold-top);
    font-style: normal;
}

.home-v2 .hero-sub {
    max-width: 590px;
    margin: 1.55rem 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
    text-align: left;
}

.home-v2 .hero-sub-extra {
    color: rgba(255, 244, 210, 0.88);
}

.home-v2 .hero-actions {
    margin-top: 1.8rem;
    justify-content: flex-start;
}

.home-v2 .btn-gold,
.home-v2 .btn-ghost {
    min-height: 50px;
    padding: 0.82rem 1.38rem;
    border-radius: 15px;
}

.home-v2 .btn-ghost {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-v2 .btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.home-v2 .dv-hero-store-badges {
    margin-top: 1.25rem !important;
    justify-content: flex-start !important;
}

.home-v2 .dv-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1.05rem;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.72rem;
}

.home-v2 .dv-hero-proof span {
    position: relative;
    padding-left: 0.8rem;
}

.home-v2 .dv-hero-proof span::before {
    position: absolute;
    top: 0.44em;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--dv-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(212, 169, 55, 0.08);
    content: "";
}

.home-v2 .dv-app-home-wrap {
    position: relative;
    width: min(430px, 100%);
    margin-left: auto;
}

.home-v2 .dv-app-home-wrap::before {
    position: absolute;
    inset: 8% -12% -6% 10%;
    background:
        radial-gradient(
            circle,
            rgba(232, 201, 110, 0.24),
            transparent 66%
        );
    filter: blur(16px);
    content: "";
    pointer-events: none;
}

.home-v2 .dv-app-home {
    position: relative;
    overflow: hidden;
    padding: 12px 16px 24px;
    background:
        radial-gradient(
            circle at 50% -15%,
            #fffdf7 0,
            var(--dv-cream) 55%,
            var(--dv-cream-deep) 100%
        );
    border: 1px solid rgba(255, 244, 210, 0.72);
    border-radius: 34px;
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.36),
        0 0 0 8px rgba(255, 255, 255, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transform: rotate(1.15deg);
}

.home-v2 .dv-app-status {
    display: flex;
    justify-content: space-between;
    padding: 0 6px 10px;
    color: rgba(12, 26, 46, 0.72);
    font-size: 0.61rem;
    font-weight: 750;
}

.home-v2 .dv-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 14px;
}

.home-v2 .dv-app-identity {
    display: flex;
    align-items: center;
    gap: 0.58rem;
}

.home-v2 .dv-app-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--dv-gold-text);
    background:
        linear-gradient(
            180deg,
            var(--dv-gold-top),
            var(--dv-gold)
        );
    border: 1px solid rgba(185, 145, 42, 0.3);
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(185, 145, 42, 0.2);
    font-size: 1rem;
}

.home-v2 .dv-app-identity > span:last-child {
    display: flex;
    flex-direction: column;
}

.home-v2 .dv-app-identity strong {
    color: var(--dv-vault-700);
    font-family: "DM Serif Display", serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.home-v2 .dv-app-identity small {
    margin-top: 0.22rem;
    color: rgba(30, 58, 95, 0.5);
    font-size: 0.57rem;
    font-weight: 650;
}

.home-v2 .dv-app-actions {
    display: flex;
    gap: 0.45rem;
}

.home-v2 .dv-app-actions span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--dv-vault-700);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(30, 58, 95, 0.055);
    border-radius: 10px;
    font-size: 1rem;
}

.home-v2 .dv-app-signal {
    padding: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.78),
            rgba(255, 253, 248, 0.56)
        );
    border: 1px solid rgba(30, 58, 95, 0.07);
    border-radius: 22px;
    box-shadow: var(--dv-shadow-card);
}

.home-v2 .dv-app-kicker {
    color: #946f24;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-v2 .dv-app-signal h2 {
    margin: 0.46rem 0 0;
    color: var(--dv-ink);
    font-family: "DM Serif Display", serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.16;
}

.home-v2 .dv-app-signal p {
    margin: 0.58rem 0 0;
    color: var(--dv-text-muted);
    font-size: 0.67rem;
    line-height: 1.48;
}

.home-v2 .dv-app-capture {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.78rem;
    padding: 0.44rem 0.7rem;
    color: var(--dv-gold-text);
    background:
        linear-gradient(
            180deg,
            var(--dv-gold-top),
            var(--dv-gold)
        );
    border: 1px solid rgba(185, 145, 42, 0.22);
    border-radius: 11px;
    box-shadow: 0 6px 13px rgba(185, 145, 42, 0.18);
    font-size: 0.64rem;
    font-weight: 800;
    text-decoration: none;
}

.home-v2 .dv-app-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px 7px;
}

.home-v2 .dv-app-section-title strong {
    color: var(--dv-ink);
    font-family: "DM Serif Display", serif;
    font-size: 0.96rem;
    font-weight: 400;
}

.home-v2 .dv-app-section-title span {
    color: rgba(12, 26, 46, 0.38);
    font-size: 0.58rem;
    font-weight: 750;
}

.home-v2 .dv-app-memory-list {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(30, 58, 95, 0.055);
    border-radius: 18px;
}

.home-v2 .dv-app-memory-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 0.68rem;
    align-items: center;
    padding: 8px 10px;
}

.home-v2 .dv-app-memory-row + .dv-app-memory-row {
    border-top: 1px solid rgba(30, 58, 95, 0.045);
}

.home-v2 .dv-app-memory-photo {
    width: 45px;
    height: 42px;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.home-v2 .dv-app-memory-photo-one {
    background:
        linear-gradient(
            145deg,
            rgba(246, 231, 207, 0.15),
            rgba(49, 90, 125, 0.18)
        ),
        url("/static/img/baby-card-demo.jpg") center / cover;
}

.home-v2 .dv-app-memory-photo-two {
    background:
        radial-gradient(
            circle at 28% 28%,
            #f7d9c2,
            transparent 20%
        ),
        linear-gradient(
            140deg,
            #b56d58,
            #e7bd94 48%,
            #6f8c98
        );
}

.home-v2 .dv-app-memory-photo-three {
    background:
        radial-gradient(
            circle at 65% 24%,
            rgba(255, 245, 204, 0.95),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #c7dbe5,
            #f1c98f 54%,
            #8b6b57
        );
}

.home-v2 .dv-app-memory-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-v2 .dv-app-memory-copy strong {
    overflow: hidden;
    color: var(--dv-ink);
    font-family: "DM Serif Display", serif;
    font-size: 0.79rem;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v2 .dv-app-memory-copy small {
    margin-top: 0.15rem;
    overflow: hidden;
    color: rgba(12, 26, 46, 0.44);
    font-size: 0.54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v2 .dv-app-memory-star {
    color: var(--dv-gold);
    font-size: 0.7rem;
}

.home-v2 .dv-app-era {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.68rem;
    align-items: center;
    margin-top: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(30, 58, 95, 0.055);
    border-radius: 17px;
}

.home-v2 .dv-app-era-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #9a4b2f;
    background: rgba(154, 75, 47, 0.1);
    border-radius: 11px;
}

.home-v2 .dv-app-era > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-v2 .dv-app-era small {
    color: rgba(12, 26, 46, 0.42);
    font-size: 0.52rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-v2 .dv-app-era strong {
    margin-top: 0.14rem;
    overflow: hidden;
    color: var(--dv-ink);
    font-family: "DM Serif Display", serif;
    font-size: 0.72rem;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v2 .dv-app-era-arrow {
    color: rgba(12, 26, 46, 0.35);
}

.home-v2 .dv-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.home-v2 .dv-app-grid span {
    display: flex;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: rgba(12, 26, 46, 0.54);
    background: rgba(255, 255, 255, 0.53);
    border: 1px solid rgba(30, 58, 95, 0.05);
    border-radius: 13px;
    font-size: 0.48rem;
    font-weight: 700;
    text-align: center;
}

.home-v2 .dv-app-grid i {
    color: var(--dv-vault-600);
    font-size: 0.78rem;
    font-style: normal;
}

.home-v2 .dv-app-echo {
    position: absolute;
    right: 18px;
    bottom: 15px;
    display: flex;
    min-height: 33px;
    align-items: center;
    gap: 0.34rem;
    padding: 0.43rem 0.65rem;
    color: #fff;
    background: var(--dv-vault-700);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 9px 22px rgba(12, 26, 46, 0.24);
    font-size: 0.58rem;
    font-weight: 750;
}

.home-v2 .dv-app-echo span {
    color: var(--dv-gold-top);
}

/* Existing homepage sections */

.home-v2 .baby-sec,
.home-v2 .trust-sec,
.home-v2 .faq-sec,
.home-v2 .current-access-strip {
    width: min(1100px, calc(100% - 32px));
    max-width: 1100px !important;
    margin-inline: auto !important;
}

.home-v2 #baby-first-year {
    padding: 78px 0 48px !important;
}

.home-v2 #baby-first-year .baby-grid {
    padding: clamp(24px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-xl);
    box-shadow: var(--dv-shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-v2 #baby-first-year .baby-grid > div:last-child > div {
    border: 1px solid rgba(232, 201, 110, 0.46);
    box-shadow:
        0 28px 70px rgba(12, 26, 46, 0.22),
        0 0 0 7px rgba(30, 58, 95, 0.035) !important;
}

.home-v2 .section-divider {
    width: min(840px, calc(100% - 48px));
    opacity: 0.58;
}

.home-v2 #child-spaces {
    margin-top: 12px !important;
    padding:
        40px
        clamp(24px, 5vw, 64px) !important;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-lg);
    box-shadow: var(--dv-shadow-card);
}

.home-v2 .values {
    width: min(1100px, calc(100% - 32px));
    margin: 22px auto 0;
    padding: 0;
    gap: 12px;
}

.home-v2 .val {
    min-height: 210px;
    padding: 24px 22px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--dv-border);
    border-radius: 21px;
    box-shadow: var(--dv-shadow-card);
}

.home-v2 .val-icon {
    width: 42px;
    height: 42px;
    color: #9a7427;
    background: rgba(212, 169, 55, 0.12);
    border: 1px solid rgba(212, 169, 55, 0.18);
    border-radius: 14px;
}

.home-v2 .how {
    width: min(940px, calc(100% - 32px));
    max-width: 940px;
    margin: 72px auto 58px;
    padding: clamp(30px, 5vw, 54px);
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(232, 201, 110, 0.1),
            transparent 38%
        ),
        rgba(255, 255, 255, 0.62);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-xl);
    box-shadow: var(--dv-shadow-soft);
}

.home-v2 .how-step .num {
    color: var(--dv-gold-text);
    background:
        linear-gradient(
            180deg,
            var(--dv-gold-top),
            var(--dv-gold)
        );
    box-shadow: 0 8px 18px rgba(185, 145, 42, 0.17);
}

.home-v2 .trust-sec {
    padding: 0 0 58px !important;
}

.home-v2 .trust-grid > div,
.home-v2 .trust-sec > div[style*="grid-template-columns:1fr 1fr 1fr"] > div,
.home-v2 .faq-sec details {
    background: rgba(255, 255, 255, 0.62) !important;
    border-color: var(--dv-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--dv-shadow-card);
}

.home-v2 .current-access-strip {
    padding: 0 0 66px;
}

.home-v2 .current-access-panel {
    padding: clamp(22px, 3vw, 34px);
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232, 201, 110, 0.13),
            transparent 42%
        ),
        rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(212, 169, 55, 0.26);
    border-left: 1px solid rgba(212, 169, 55, 0.26);
    border-radius: 24px;
    box-shadow: var(--dv-shadow-soft);
}

.home-v2 .faq-sec {
    padding: 12px 0 72px !important;
}

.home-v2 .faq-sec details {
    padding: 1.1rem 1.25rem !important;
}

.home-v2 .final-cta {
    position: relative;
    overflow: hidden;
    padding: 92px 24px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(232, 201, 110, 0.14),
            transparent 34%
        ),
        linear-gradient(
            165deg,
            #081523,
            #0c1a2e 54%,
            #152841
        );
}

.home-v2 .final-cta::before {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle,
            rgba(232, 201, 110, 0.52) 0 1px,
            transparent 1.2px
        );
    background-size: 64px 64px;
    opacity: 0.12;
    content: "";
}

.home-v2 .final-cta-in {
    position: relative;
    z-index: 1;
}

.home-v2 .sec-tag {
    color: #946f24;
    background: rgba(212, 169, 55, 0.1);
    border: 1px solid rgba(212, 169, 55, 0.18);
    border-radius: 999px;
}

.home-v2 .sec-h2 {
    color: var(--dv-ink);
    letter-spacing: -0.025em;
}

@media (max-width: 980px) {
    .home-v2 .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .home-v2 .hero-top.dv-hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .home-v2 .dv-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-v2 .hero h1,
    .home-v2 .hero-sub {
        text-align: center;
    }

    .home-v2 .hero-actions,
    .home-v2 .dv-hero-store-badges {
        justify-content: center !important;
    }

    .home-v2 .dv-app-home-wrap {
        width: min(410px, 92%);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 60px;
    }

    .site-main {
        padding-top: 60px;
    }

    .home-v2 .hero {
        padding: 42px 16px 48px;
    }

    .home-v2 .hero-top.dv-hero-layout {
        gap: 34px;
    }

    .home-v2 .hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.65rem);
        line-height: 1.01;
    }

    .home-v2 .hero-sub {
        font-size: 0.94rem;
    }

    .home-v2 .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-v2 .hero-actions > .btn-gold,
    .home-v2 .hero-actions > .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .home-v2 .dv-hero-proof {
        justify-content: center;
    }

    .home-v2 .dv-app-home-wrap {
        width: 100%;
    }

    .home-v2 .dv-app-home {
        padding: 10px 12px 20px;
        border-radius: 28px;
        transform: none;
    }

    .home-v2 .dv-app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-v2 .dv-app-grid span {
        min-height: 46px;
    }

    .home-v2 #baby-first-year {
        padding-top: 42px !important;
    }

    .home-v2 #baby-first-year .baby-grid {
        padding: 22px !important;
        border-radius: 24px;
    }

    .home-v2 #child-spaces {
        padding: 28px 20px !important;
    }

    .home-v2 .val {
        min-height: 0;
    }

    .home-v2 .how {
        margin-top: 48px;
        padding: 30px 22px !important;
    }

    .home-v2 .final-cta {
        padding: 70px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 .dv-app-home,
    .nav-link-cta,
    .btn-gold,
    .current-access-button {
        transition: none;
        transform: none;
    }
}


/* PHASE 2A VISUAL POLISH: LOGO AND SECTION RHYTHM */

/* Real DiaryVault icon inside the native Home preview. */
.home-v2 .dv-app-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 11px;
    box-shadow: none;
}

.home-v2 .dv-app-mark-image {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 11px;
    box-shadow:
        0 7px 16px rgba(12, 26, 46, 0.16),
        0 0 0 1px rgba(30, 58, 95, 0.05);
}

/*
 * Remove detached miniature rules between sections.
 * The section label itself now provides the visual transition.
 */
.home-v2 .section-divider {
    display: none !important;
}

/* Shared section eyebrow treatment for the three major transitions. */
.home-v2 #baby-first-year .sec-tag,
.home-v2 #child-spaces > .sec-tag,
.home-v2 #how-it-works > .sec-tag {
    display: flex;
    width: min(100%, 520px);
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin:
        0
        auto
        0.75rem;
    padding: 0;
    color: #997126;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.home-v2 #baby-first-year .sec-tag::before,
.home-v2 #baby-first-year .sec-tag::after,
.home-v2 #child-spaces > .sec-tag::before,
.home-v2 #child-spaces > .sec-tag::after,
.home-v2 #how-it-works > .sec-tag::before,
.home-v2 #how-it-works > .sec-tag::after {
    width: clamp(28px, 6vw, 72px);
    height: 1px;
    flex: 0 1 72px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(185, 137, 42, 0.46)
        );
    content: "";
}

.home-v2 #baby-first-year .sec-tag::after,
.home-v2 #child-spaces > .sec-tag::after,
.home-v2 #how-it-works > .sec-tag::after {
    background:
        linear-gradient(
            90deg,
            rgba(185, 137, 42, 0.46),
            transparent
        );
}

.home-v2 #baby-first-year {
    padding-top: 84px !important;
}

.home-v2 #baby-first-year .sec-h2,
.home-v2 #child-spaces > .sec-h2,
.home-v2 #how-it-works > .sec-h2 {
    margin-top: 0;
}

.home-v2 #child-spaces {
    margin-top: 24px !important;
}

.home-v2 #how-it-works {
    margin-top: 58px;
}

@media (max-width: 640px) {
    .home-v2 #baby-first-year {
        padding-top: 54px !important;
    }

    .home-v2 #child-spaces {
        margin-top: 12px !important;
    }

    .home-v2 #how-it-works {
        margin-top: 38px;
    }

    .home-v2 #baby-first-year .sec-tag,
    .home-v2 #child-spaces > .sec-tag,
    .home-v2 #how-it-works > .sec-tag {
        gap: 0.6rem;
        font-size: 0.6rem;
    }

    .home-v2 #baby-first-year .sec-tag::before,
    .home-v2 #baby-first-year .sec-tag::after,
    .home-v2 #child-spaces > .sec-tag::before,
    .home-v2 #child-spaces > .sec-tag::after,
    .home-v2 #how-it-works > .sec-tag::before,
    .home-v2 #how-it-works > .sec-tag::after {
        width: 26px;
        flex-basis: 26px;
    }
}


/* PHASE 2A CONSTELLATION REVEAL */

.home-v2 .dv-constellation-reveal {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 82px;
}

.home-v2 .dv-constellation-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(320px, 0.82fr);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 14% 0%,
            rgba(232, 201, 110, 0.1),
            transparent 32%
        ),
        linear-gradient(
            155deg,
            #081523 0%,
            #0c1a2e 52%,
            #142942 100%
        );
    border: 1px solid rgba(232, 201, 110, 0.18);
    border-radius: 32px;
    box-shadow:
        0 30px 78px rgba(12, 26, 46, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-v2 .dv-constellation-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    border-right: 1px solid rgba(232, 201, 110, 0.1);
}

.home-v2 .dv-constellation-stage::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 52% 47%,
            rgba(212, 169, 55, 0.13),
            transparent 31%
        ),
        radial-gradient(
            circle at 10% 86%,
            rgba(49, 90, 125, 0.28),
            transparent 37%
        );
    content: "";
    pointer-events: none;
}

.home-v2 .dv-constellation-stage::after {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle,
            rgba(232, 201, 110, 0.28) 0 1px,
            transparent 1.2px
        );
    background-position: 8px 12px;
    background-size: 78px 78px;
    opacity: 0.18;
    content: "";
    pointer-events: none;
    z-index: -1;
}

.home-v2 .dv-constellation-stage-label {
    position: absolute;
    top: 24px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    color: rgba(255, 244, 210, 0.62);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.home-v2 .dv-constellation-stage-label span {
    color: var(--dv-gold-top);
}

.home-v2 .dv-constellation-map {
    position: absolute;
    inset: 38px 18px 18px;
    width: calc(100% - 36px);
    height: calc(100% - 56px);
    overflow: visible;
}

.home-v2 .dv-constellation-ambient circle {
    fill: #e8c96e;
    opacity: 0.28;
    animation:
        dvConstellationTwinkle
        8s
        ease-in-out
        infinite;
}

.home-v2
.dv-constellation-ambient
circle:nth-child(3n + 2) {
    animation-delay: -2.7s;
}

.home-v2
.dv-constellation-ambient
circle:nth-child(3n + 3) {
    animation-delay: -5.1s;
}

.home-v2 .dv-constellation-edges line {
    stroke: url("#dvConstellationEdge");
    stroke-width: 1.25;
    opacity: 0.7;
    animation:
        dvConstellationBreathe
        7s
        ease-in-out
        infinite;
}

.home-v2
.dv-constellation-edges
line:nth-child(even) {
    animation-delay: -3.4s;
}

.home-v2 .dv-constellation-anchor-halo {
    fill: url("#dvConstellationAnchorGlow");
    opacity: 0.7;
    animation:
        dvConstellationHalo
        5.5s
        ease-in-out
        infinite;
}

.home-v2 .dv-constellation-anchor-ring {
    fill: rgba(8, 21, 35, 0.84);
    stroke: rgba(232, 201, 110, 0.78);
    stroke-width: 2;
    filter:
        drop-shadow(
            0 0 13px
            rgba(232, 201, 110, 0.23)
        );
}

.home-v2 .dv-constellation-node > circle:first-child {
    fill: rgba(16, 39, 63, 0.9);
    stroke: rgba(232, 201, 110, 0.35);
    stroke-width: 1.4;
    filter:
        drop-shadow(
            0 7px 14px
            rgba(0, 0, 0, 0.3)
        );
}

.home-v2 .dv-constellation-node-core {
    fill: #e8c96e;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1;
    filter:
        drop-shadow(
            0 0 7px
            rgba(232, 201, 110, 0.56)
        );
}

.home-v2 .dv-constellation-node text,
.home-v2 .dv-constellation-anchor-label {
    fill: rgba(255, 255, 255, 0.68);
    font-family:
        "DM Sans",
        sans-serif;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-anchor: middle;
}

.home-v2 .dv-constellation-anchor-label {
    fill: rgba(255, 244, 210, 0.72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v2 .dv-constellation-stage-note {
    position: absolute;
    right: 26px;
    bottom: 23px;
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    padding: 0.44rem 0.68rem;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(8, 21, 35, 0.7);
    border: 1px solid rgba(232, 201, 110, 0.13);
    border-radius: 999px;
    font-size: 0.61rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-v2 .dv-constellation-stage-note span {
    color: var(--dv-gold-top);
    font-size: 0.68rem;
    font-weight: 800;
}

.home-v2 .dv-constellation-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        clamp(34px, 5vw, 64px)
        clamp(28px, 4.4vw, 58px);
}

.home-v2 .dv-constellation-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.48rem;
    color: var(--dv-gold-top);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-v2 .dv-constellation-copy h2 {
    margin: 1.05rem 0 0;
    color: #fffdf8;
    font-family:
        "DM Serif Display",
        serif;
    font-size:
        clamp(
            2rem,
            3.2vw,
            3.15rem
        );
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home-v2 .dv-constellation-copy > p {
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.91rem;
    line-height: 1.72;
}

.home-v2 .dv-constellation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.47rem;
    margin-top: 1.35rem;
}

.home-v2 .dv-constellation-pills span {
    padding: 0.42rem 0.7rem;
    color: rgba(255, 244, 210, 0.74);
    background: rgba(232, 201, 110, 0.07);
    border: 1px solid rgba(232, 201, 110, 0.16);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 680;
}

.home-v2 .dv-constellation-doctrine {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: start;
    margin-top: 1.45rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

.home-v2 .dv-constellation-doctrine > span:first-child {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: var(--dv-gold-text);
    background:
        linear-gradient(
            180deg,
            var(--dv-gold-top),
            var(--dv-gold)
        );
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 850;
}

.home-v2
.dv-constellation-doctrine
> span:last-child {
    display: flex;
    flex-direction: column;
}

.home-v2 .dv-constellation-doctrine strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
}

.home-v2 .dv-constellation-doctrine small {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.67rem;
    line-height: 1.45;
}

.home-v2 .dv-constellation-cta {
    width: fit-content;
    min-height: 46px;
    margin-top: 1.45rem;
    gap: 0.55rem;
    padding: 0.76rem 1.08rem;
    text-decoration: none;
}

@keyframes dvConstellationTwinkle {
    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.54;
    }
}

@keyframes dvConstellationBreathe {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes dvConstellationHalo {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.96);
        transform-origin: center;
    }

    50% {
        opacity: 0.78;
        transform: scale(1.035);
        transform-origin: center;
    }
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-panel {
        grid-template-columns: 1fr;
    }

    .home-v2 .dv-constellation-stage {
        min-height: 500px;
        border-right: 0;
        border-bottom:
            1px solid
            rgba(232, 201, 110, 0.1);
    }

    .home-v2 .dv-constellation-copy {
        padding: 38px 32px 42px;
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-reveal {
        width: calc(100% - 24px);
        margin:
            8px
            auto
            54px;
    }

    .home-v2 .dv-constellation-panel {
        border-radius: 25px;
    }

    .home-v2 .dv-constellation-stage {
        min-height: 390px;
    }

    .home-v2 .dv-constellation-map {
        inset: 42px 5px 8px;
        width: calc(100% - 10px);
        height: calc(100% - 50px);
    }

    .home-v2 .dv-constellation-stage-label {
        top: 18px;
        left: 20px;
    }

    .home-v2 .dv-constellation-stage-note {
        right: 17px;
        bottom: 15px;
    }

    .home-v2 .dv-constellation-copy {
        padding: 30px 22px 34px;
    }

    .home-v2 .dv-constellation-copy h2 {
        font-size: 2rem;
    }

    .home-v2 .dv-constellation-copy > p {
        font-size: 0.84rem;
    }

    .home-v2 .dv-constellation-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 .dv-constellation-ambient circle,
    .home-v2 .dv-constellation-edges line,
    .home-v2 .dv-constellation-anchor-halo {
        animation: none;
    }
}


/* PHASE 2A CONSTELLATION AESTHETIC POLISH */

.home-v2 .dv-constellation-panel {
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(340px, 0.92fr);
    box-shadow:
        0 34px 88px rgba(12, 26, 46, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-v2 .dv-constellation-stage {
    min-height: 620px;
}

.home-v2 .dv-constellation-stage::before {
    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(223, 193, 98, 0.14),
            transparent 23%
        ),
        radial-gradient(
            circle at 14% 16%,
            rgba(255, 236, 168, 0.08),
            transparent 18%
        ),
        radial-gradient(
            circle at 10% 86%,
            rgba(49, 90, 125, 0.24),
            transparent 37%
        );
}

.home-v2 .dv-constellation-stage::after {
    background-image:
        radial-gradient(
            circle,
            rgba(255, 235, 159, 0.46) 0 1.1px,
            transparent 1.3px
        );
    background-position: 8px 12px;
    background-size: 72px 72px;
    opacity: 0.22;
}

.home-v2 .dv-constellation-map {
    inset: 32px 10px 14px;
    width: calc(100% - 20px);
    height: calc(100% - 46px);
}

.home-v2 .dv-constellation-ambient circle {
    fill: #ffefb4;
    opacity: 0.32;
}

.home-v2 .dv-constellation-edges line {
    stroke-width: 1.15;
    opacity: 0.58;
}

.home-v2 .dv-constellation-anchor-halo {
    opacity: 0.86;
    filter:
        drop-shadow(
            0 0 30px rgba(232, 201, 110, 0.22)
        );
}

.home-v2 .dv-constellation-anchor-ring {
    fill: rgba(8, 21, 35, 0.68);
    stroke: rgba(244, 223, 161, 0.84);
    stroke-width: 2.4;
    filter:
        drop-shadow(
            0 0 22px rgba(232, 201, 110, 0.16)
        )
        drop-shadow(
            0 12px 24px rgba(0, 0, 0, 0.22)
        );
}

.home-v2 .dv-constellation-node-glow {
    fill: url("#dvConstellationNodeGlow");
    opacity: 0.85;
}

.home-v2 .dv-constellation-node > circle:nth-child(2) {
    fill: rgba(9, 27, 46, 0.6);
    stroke: rgba(244, 223, 161, 0.82);
    stroke-width: 1.6;
    filter:
        drop-shadow(
            0 0 18px rgba(232, 201, 110, 0.16)
        );
}

.home-v2 .dv-constellation-star-flare {
    stroke: rgba(255, 244, 210, 0.5);
    stroke-width: 1.1;
    stroke-linecap: round;
    opacity: 0.72;
}

.home-v2 .dv-constellation-node-core {
    fill: #ffefb4;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 0.8;
    filter:
        drop-shadow(
            0 0 10px rgba(255, 239, 180, 0.8)
        );
}

.home-v2 .dv-constellation-node text,
.home-v2 .dv-constellation-anchor-label {
    fill: rgba(255, 255, 255, 0.8);
}

.home-v2 .dv-constellation-copy {
    padding:
        clamp(34px, 5vw, 64px)
        clamp(28px, 4vw, 50px);
}

.home-v2 .dv-constellation-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 3vw, 2.8rem);
    line-height: 1.06;
}

.home-v2 .dv-constellation-copy > p {
    max-width: 34ch;
    font-size: 0.88rem;
    line-height: 1.68;
}

.home-v2 .dv-constellation-pills {
    gap: 0.42rem;
}

.home-v2 .dv-constellation-pills span {
    font-size: 0.63rem;
}

.home-v2 .dv-constellation-doctrine {
    max-width: 360px;
}

.home-v2 .dv-constellation-cta {
    min-width: 184px;
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-stage {
        min-height: 520px;
    }

    .home-v2 .dv-constellation-copy h2 {
        max-width: none;
    }

    .home-v2 .dv-constellation-copy > p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-stage {
        min-height: 410px;
    }

    .home-v2 .dv-constellation-map {
        inset: 40px 4px 10px;
        width: calc(100% - 8px);
        height: calc(100% - 50px);
    }

    .home-v2 .dv-constellation-copy h2 {
        font-size: 1.85rem;
    }
}


/* PHASE 2A REAL CONSTELLATION STARS */

/*
 * The visible connection object is now a pointed eight ray star.
 * Circles are used only as invisible radial glow behind the star.
 */
.home-v2 .dv-constellation-star {
    transform-box: fill-box;
    transform-origin: center;
    animation:
        dvRealStarFloat
        7.5s
        ease-in-out
        infinite;
}

.home-v2
.dv-constellation-star-node:nth-of-type(even)
.dv-constellation-star {
    animation-delay: -3.4s;
}

.home-v2 .dv-constellation-star-glow {
    fill: url("#dvConstellationNodeGlow");
    opacity: 0.72;
    animation:
        dvRealStarGlow
        4.8s
        ease-in-out
        infinite;
}

.home-v2 .dv-constellation-star-shape {
    fill: #f2cf70;
    stroke: #fff4c7;
    stroke-width: 0.85;
    stroke-linejoin: round;
    filter:
        drop-shadow(
            0 0 4px
            rgba(255, 245, 205, 0.96)
        )
        drop-shadow(
            0 0 12px
            rgba(232, 201, 110, 0.64)
        )
        drop-shadow(
            0 0 25px
            rgba(212, 169, 55, 0.28)
        );
}

.home-v2 .dv-constellation-star-core {
    fill: #fffbe6;
    stroke: none;
    filter:
        drop-shadow(
            0 0 5px
            rgba(255, 255, 255, 0.92)
        );
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 1)
.dv-constellation-star-shape {
    fill: #f7d982;
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 2)
.dv-constellation-star-shape {
    fill: #eec45a;
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 3)
.dv-constellation-star-shape {
    fill: #f5d476;
}

@keyframes dvRealStarGlow {
    0%,
    100% {
        opacity: 0.52;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes dvRealStarFloat {
    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 .dv-constellation-star,
    .home-v2 .dv-constellation-star-glow {
        animation: none;
    }
}


/* PHASE 2A COMPACT STAR CORRECTION */

/*
 * Stars are direct local SVG paths rather than symbol viewports.
 * This guarantees a compact visual size at every node.
 */
.home-v2 .dv-constellation-star-shape {
    fill: #f3cf6e;
    stroke: #fff4c5;
    stroke-width: 0.8;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter:
        drop-shadow(
            0 0 3px
            rgba(255, 252, 231, 0.96)
        )
        drop-shadow(
            0 0 9px
            rgba(240, 205, 110, 0.7)
        )
        drop-shadow(
            0 0 18px
            rgba(212, 169, 55, 0.3)
        );
}

.home-v2 .dv-constellation-star-glow {
    opacity: 0.48;
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 1)
.dv-constellation-star-shape {
    fill: #f6d87d;
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 2)
.dv-constellation-star-shape {
    fill: #edc55c;
}

.home-v2
.dv-constellation-star-node:nth-of-type(3n + 3)
.dv-constellation-star-shape {
    fill: #f1ce6c;
}

/* PHASE 2A CONSTELLATION SCALE PASS */

/*
 * The previous panel measured approximately 1180 by 620.
 * This version is approximately 960 by 470 on desktop,
 * reducing its visual area to roughly sixty percent.
 */
.home-v2 .dv-constellation-reveal {
    width: min(960px, calc(100% - 32px));
    margin:
        4px
        auto
        58px;
}

.home-v2 .dv-constellation-panel {
    grid-template-columns:
        minmax(0, 1.07fr)
        minmax(320px, 0.93fr);
    border-radius: 27px;
}

.home-v2 .dv-constellation-stage {
    min-height: 470px;
}

.home-v2 .dv-constellation-map {
    inset: 27px 8px 10px;
    width: calc(100% - 16px);
    height: calc(100% - 37px);
}

.home-v2 .dv-constellation-stage-label {
    top: 18px;
    left: 21px;
    font-size: 0.59rem;
}

.home-v2 .dv-constellation-stage-note {
    right: 17px;
    bottom: 15px;
    padding: 0.38rem 0.58rem;
    font-size: 0.55rem;
}

.home-v2 .dv-constellation-copy {
    padding:
        28px
        32px
        30px;
}

.home-v2 .dv-constellation-kicker {
    gap: 0.4rem;
    font-size: 0.59rem;
}

.home-v2 .dv-constellation-copy h2 {
    max-width: 13ch;
    margin-top: 0.78rem;
    font-size:
        clamp(
            1.72rem,
            2.45vw,
            2.24rem
        );
    line-height: 1.06;
}

.home-v2 .dv-constellation-copy > p {
    max-width: 37ch;
    margin-top: 0.82rem;
    font-size: 0.76rem;
    line-height: 1.62;
}

.home-v2 .dv-constellation-pills {
    gap: 0.34rem;
    margin-top: 0.9rem;
}

.home-v2 .dv-constellation-pills span {
    padding: 0.34rem 0.56rem;
    font-size: 0.56rem;
}

.home-v2 .dv-constellation-doctrine {
    max-width: 330px;
    gap: 0.58rem;
    margin-top: 0.95rem;
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
}

.home-v2
.dv-constellation-doctrine
> span:first-child {
    width: 22px;
    height: 22px;
    font-size: 0.59rem;
}

.home-v2 .dv-constellation-doctrine strong {
    font-size: 0.69rem;
}

.home-v2 .dv-constellation-doctrine small {
    margin-top: 0.14rem;
    font-size: 0.59rem;
    line-height: 1.4;
}

.home-v2 .dv-constellation-cta {
    min-width: 160px;
    min-height: 40px;
    margin-top: 1rem;
    padding: 0.64rem 0.92rem;
    font-size: 0.73rem;
}

.home-v2 .dv-constellation-node text,
.home-v2 .dv-constellation-anchor-label {
    font-size: 11.5px;
}

.home-v2 .dv-constellation-anchor-label {
    font-size: 10.5px;
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-reveal {
        width: min(680px, calc(100% - 32px));
    }

    .home-v2 .dv-constellation-panel {
        grid-template-columns: 1fr;
    }

    .home-v2 .dv-constellation-stage {
        min-height: 420px;
    }

    .home-v2 .dv-constellation-copy {
        padding: 30px 30px 34px;
    }

    .home-v2 .dv-constellation-copy h2 {
        max-width: 20ch;
        font-size: 2rem;
    }

    .home-v2 .dv-constellation-copy > p {
        max-width: 58ch;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-reveal {
        width: calc(100% - 24px);
        margin-bottom: 46px;
    }

    .home-v2 .dv-constellation-panel {
        border-radius: 23px;
    }

    .home-v2 .dv-constellation-stage {
        min-height: 350px;
    }

    .home-v2 .dv-constellation-map {
        inset: 38px 2px 7px;
        width: calc(100% - 4px);
        height: calc(100% - 45px);
    }

    .home-v2 .dv-constellation-stage-label {
        top: 16px;
        left: 18px;
    }

    .home-v2 .dv-constellation-stage-note {
        right: 14px;
        bottom: 12px;
    }

    .home-v2 .dv-constellation-copy {
        padding: 27px 21px 31px;
    }

    .home-v2 .dv-constellation-copy h2 {
        max-width: none;
        font-size: 1.72rem;
    }

    .home-v2 .dv-constellation-copy > p {
        font-size: 0.8rem;
    }

    .home-v2 .dv-constellation-cta {
        width: 100%;
    }
}


/* PHASE 2A WIDE DENSE STARFIELD */

/*
 * Match the hero content width.
 * The current section height remains controlled by the earlier scale pass.
 */
.home-v2 .dv-constellation-reveal {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
}

/* Give the map substantially more horizontal space. */
.home-v2 .dv-constellation-panel {
    grid-template-columns:
        minmax(0, 1.34fr)
        minmax(330px, 0.66fr);
}

.home-v2 .dv-constellation-stage {
    border-right:
        1px solid
        rgba(232, 201, 110, 0.09);
}

.home-v2 .dv-constellation-copy {
    padding-left:
        clamp(
            28px,
            3vw,
            42px
        );
    padding-right:
        clamp(
            28px,
            3vw,
            42px
        );
}

/*
 * Dense small pointed stars.
 * These replace the earlier circular ambient dots.
 */
.home-v2 .dv-constellation-real-starfield {
    pointer-events: none;
}

.home-v2 .dv-constellation-field-star {
    fill: #f4d77c;
    opacity: 0.25;
    filter:
        drop-shadow(
            0 0 1.8px
            rgba(255, 245, 207, 0.62)
        );
    animation:
        dvDenseFieldTwinkle
        10s
        ease-in-out
        infinite;
}

.home-v2
.dv-constellation-field-star:nth-child(5n + 1) {
    fill: #fff0b7;
    opacity: 0.19;
    animation-duration: 8.3s;
    animation-delay: -1.7s;
}

.home-v2
.dv-constellation-field-star:nth-child(5n + 2) {
    fill: #e9c05c;
    opacity: 0.34;
    animation-duration: 12.4s;
    animation-delay: -5.2s;
}

.home-v2
.dv-constellation-field-star:nth-child(5n + 3) {
    fill: #f8dfa0;
    opacity: 0.22;
    animation-duration: 14s;
    animation-delay: -7.1s;
}

.home-v2
.dv-constellation-field-star:nth-child(5n + 4) {
    fill: #dcb54f;
    opacity: 0.3;
    animation-duration: 9.4s;
    animation-delay: -3.8s;
}

.home-v2
.dv-constellation-field-star:nth-child(5n + 5) {
    fill: #fff4ca;
    opacity: 0.42;
    animation-duration: 11.2s;
    animation-delay: -6.4s;
}

@keyframes dvDenseFieldTwinkle {
    0%,
    100% {
        opacity: 0.18;
    }

    37% {
        opacity: 0.48;
    }

    62% {
        opacity: 0.26;
    }

    81% {
        opacity: 0.38;
    }
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-reveal {
        width: min(720px, calc(100% - 32px));
    }

    .home-v2 .dv-constellation-panel {
        grid-template-columns: 1fr;
    }

    .home-v2 .dv-constellation-stage {
        border-right: 0;
        border-bottom:
            1px solid
            rgba(232, 201, 110, 0.09);
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-reveal {
        width: calc(100% - 24px);
    }

    /*
     * Reduce visual density on smaller screens while retaining
     * the richer desktop field.
     */
    .home-v2
    .dv-constellation-field-star:nth-child(3n) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 .dv-constellation-field-star {
        animation: none;
    }
}


/* PHASE 2A FULL BLEED CONSTELLATION */

/*
 * The dark constellation field now spans the complete viewport.
 * The map and supporting copy remain aligned to the hero content width.
 * No desktop height is overridden in this pass.
 */
.home-v2 .dv-constellation-reveal {
    position: relative;
    width: 100vw;
    max-width: none;
    margin:
        0
        calc(50% - 50vw)
        58px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 20% 38%,
            rgba(232, 201, 110, 0.08),
            transparent 29%
        ),
        radial-gradient(
            circle at 77% 34%,
            rgba(49, 90, 125, 0.2),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #071421 0%,
            #0b1b2e 52%,
            #132b46 100%
        );
    border-top:
        1px solid
        rgba(232, 201, 110, 0.1);
    border-bottom:
        1px solid
        rgba(232, 201, 110, 0.1);
}

/* Background starfield covering the entire section. */
.home-v2 .dv-constellation-fullbleed-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.home-v2 .dv-fullbleed-field-star {
    fill: #f2d16f;
    opacity: 0.2;
    filter:
        drop-shadow(
            0 0 1.5px
            rgba(255, 246, 207, 0.52)
        );
    animation:
        dvFullBleedStarTwinkle
        11s
        ease-in-out
        infinite;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 1) {
    fill: #fff0b7;
    opacity: 0.13;
    animation-duration: 8.4s;
    animation-delay: -1.8s;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 2) {
    fill: #e8bd52;
    opacity: 0.28;
    animation-duration: 13.2s;
    animation-delay: -5.6s;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 3) {
    fill: #f7dc91;
    opacity: 0.17;
    animation-duration: 15s;
    animation-delay: -7.3s;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 4) {
    fill: #d7ad47;
    opacity: 0.24;
    animation-duration: 9.8s;
    animation-delay: -3.9s;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 5) {
    fill: #fff4c8;
    opacity: 0.34;
    animation-duration: 12s;
    animation-delay: -6.5s;
}

.home-v2
.dv-fullbleed-field-star:nth-child(6n + 6) {
    fill: #e7c263;
    opacity: 0.19;
    animation-duration: 10.6s;
    animation-delay: -4.7s;
}

/*
 * The previous rounded card becomes a transparent inner layout.
 * It stays centered at the same width as the hero content.
 */
.home-v2 .dv-constellation-panel {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
    z-index: 1;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Keep the map open to the larger surrounding field. */
.home-v2 .dv-constellation-stage {
    background:
        radial-gradient(
            circle at 52% 48%,
            rgba(232, 201, 110, 0.07),
            transparent 35%
        );
    border-right:
        1px solid
        rgba(232, 201, 110, 0.1);
}

/* Preserve copy readability while retaining the full-bleed field. */
.home-v2 .dv-constellation-copy {
    background:
        linear-gradient(
            90deg,
            rgba(7, 20, 33, 0.12),
            rgba(7, 20, 33, 0.54) 24%,
            rgba(7, 20, 33, 0.72) 100%
        );
}

@keyframes dvFullBleedStarTwinkle {
    0%,
    100% {
        opacity: 0.14;
    }

    36% {
        opacity: 0.38;
    }

    61% {
        opacity: 0.2;
    }

    82% {
        opacity: 0.31;
    }
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-panel {
        width: min(720px, calc(100% - 32px));
    }

    .home-v2 .dv-constellation-stage {
        border-right: 0;
        border-bottom:
            1px solid
            rgba(232, 201, 110, 0.1);
    }

    .home-v2 .dv-constellation-copy {
        background:
            linear-gradient(
                180deg,
                rgba(7, 20, 33, 0.28),
                rgba(7, 20, 33, 0.66)
            );
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-reveal {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 46px;
    }

    .home-v2 .dv-constellation-panel {
        width: 100%;
    }

    .home-v2 .dv-constellation-fullbleed-stars {
        opacity: 0.78;
    }

    .home-v2
    .dv-fullbleed-field-star:nth-child(3n) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 .dv-fullbleed-field-star {
        animation: none;
    }
}

/* PHASE 2A SEAMLESS FULL BLEED NAVY */

/*
 * One continuous background belongs to the full-bleed section.
 * Inner map and copy columns no longer paint rectangular surfaces.
 */
.home-v2 .dv-constellation-reveal {
    background:
        linear-gradient(
            180deg,
            rgba(253, 248, 236, 0.025) 0%,
            transparent 11%,
            transparent 89%,
            rgba(253, 248, 236, 0.018) 100%
        ),
        radial-gradient(
            circle at 35% 48%,
            rgba(232, 201, 110, 0.075),
            transparent 31%
        ),
        radial-gradient(
            circle at 79% 46%,
            rgba(49, 90, 125, 0.14),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #071421 0%,
            #09192a 46%,
            #0c2036 72%,
            #102943 100%
        );
    border-top: 0;
    border-bottom: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018),
        inset 0 -1px 0 rgba(255, 255, 255, 0.012);
}

/* The centered layout is structure only, never a visual card. */
.home-v2 .dv-constellation-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove the darker rectangular map slab and its divider. */
.home-v2 .dv-constellation-stage {
    background: transparent !important;
    border: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

/*
 * Earlier iterations used stage pseudo-elements for local gradients
 * and a repeated dot texture. The full-bleed field replaces them.
 */
.home-v2 .dv-constellation-stage::before,
.home-v2 .dv-constellation-stage::after {
    display: none !important;
    content: none !important;
}

/* Remove the rectangular copy-column overlay. */
.home-v2 .dv-constellation-copy {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border: 0 !important;
}

/*
 * A soft radial veil supports text contrast without creating
 * a visible rectangle or a hard vertical edge.
 */
.home-v2 .dv-constellation-copy::before {
    position: absolute;
    inset:
        -18%
        -32vw
        -18%
        -34%;
    background:
        radial-gradient(
            ellipse at 40% 50%,
            rgba(5, 16, 28, 0.54) 0%,
            rgba(5, 16, 28, 0.33) 39%,
            rgba(5, 16, 28, 0.12) 62%,
            transparent 78%
        );
    content: "";
    pointer-events: none;
    z-index: -1;
}

.home-v2 .dv-constellation-copy h2 {
    text-shadow:
        0 2px 22px rgba(0, 0, 0, 0.18);
}

.home-v2 .dv-constellation-copy > p,
.home-v2 .dv-constellation-kicker,
.home-v2 .dv-constellation-doctrine,
.home-v2 .dv-constellation-pills,
.home-v2 .dv-constellation-cta {
    position: relative;
    z-index: 1;
}

/* Keep the constellation lines quiet within the continuous field. */
.home-v2 .dv-constellation-edges line {
    opacity: 0.48;
}

/*
 * Fade the background stars slightly beneath the copy without
 * introducing a column boundary.
 */
.home-v2 .dv-constellation-fullbleed-stars {
    opacity: 0.88;
}

@media (max-width: 900px) {
    .home-v2 .dv-constellation-stage {
        border: 0 !important;
    }

    .home-v2 .dv-constellation-copy::before {
        inset:
            -30%
            -20%
            -18%;
        background:
            radial-gradient(
                ellipse at 50% 40%,
                rgba(5, 16, 28, 0.48),
                rgba(5, 16, 28, 0.16) 62%,
                transparent 82%
            );
    }
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-copy::before {
        inset:
            -20%
            -24%
            -16%;
    }
}


/* PHASE 2A COHESIVE DEMO IMAGERY */

/* Distinct imagery for the three hero Memory Cards. */
.home-v2 .dv-app-memory-photo-one {
    background:
        url("/static/img/demo/family/hero-first-smile.webp")
        center 42% / cover
        no-repeat;
}

.home-v2 .dv-app-memory-photo-two {
    background:
        url("/static/img/demo/family/hero-grandma-visiting.webp")
        center 43% / cover
        no-repeat;
}

.home-v2 .dv-app-memory-photo-three {
    background:
        url("/static/img/demo/family/hero-morning-light.webp")
        center 48% / cover
        no-repeat;
}

/* Give the Era row its own wider milestone scene. */
.home-v2 .dv-app-era-photo {
    overflow: hidden;
    background:
        linear-gradient(
            rgba(12, 26, 46, 0.035),
            rgba(12, 26, 46, 0.035)
        ),
        url("/static/img/demo/family/hero-era-milestone.webp")
        center 46% / cover
        no-repeat;
    border:
        1px solid
        rgba(154, 75, 47, 0.08);
    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.24);
}

/* Additional photo memories within the constellation. */
.home-v2 .dv-constellation-photo-halo {
    fill:
        url("#dvConstellationNodeGlow");
    opacity: 0.46;
    filter:
        drop-shadow(
            0 0 12px
            rgba(232, 201, 110, 0.24)
        );
}

.home-v2 .dv-constellation-photo-ring {
    fill:
        rgba(7, 20, 33, 0.82);
    stroke:
        rgba(232, 201, 110, 0.72);
    stroke-width: 1.5;
    filter:
        drop-shadow(
            0 0 9px
            rgba(232, 201, 110, 0.24)
        )
        drop-shadow(
            0 7px 14px
            rgba(0, 0, 0, 0.22)
        );
}

.home-v2 .dv-constellation-photo-node text {
    fill:
        rgba(255, 255, 255, 0.72);
    font-family:
        "DM Sans",
        sans-serif;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-anchor: middle;
}

@media (max-width: 640px) {
    .home-v2 .dv-constellation-photo-node text {
        font-size: 9px;
    }
}

/* PHASE 2A LARGER DEMO PHOTOS */

/*
 * Let the hero Memory Card photos read as real memories rather
 * than small list icons.
 */
.home-v2 .dv-app-memory-row {
    min-height: 68px;
    gap: 0.72rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.home-v2 .dv-app-memory-photo {
    width: 62px;
    height: 58px;
    flex: 0 0 62px;
    border-radius: 15px;
    box-shadow:
        0 7px 17px rgba(12, 26, 46, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.home-v2 .dv-app-memory-photo-one {
    background-position: center 39%;
}

.home-v2 .dv-app-memory-photo-two {
    background-position: center 41%;
}

.home-v2 .dv-app-memory-photo-three {
    background-position: center 46%;
}

/* Give the Era image matching visual weight. */
.home-v2 .dv-app-era {
    min-height: 64px;
    gap: 0.72rem;
}

.home-v2 .dv-app-era-icon.dv-app-era-photo {
    width: 62px;
    height: 52px;
    flex: 0 0 62px;
    border-radius: 14px;
    background-position: center 44%;
    box-shadow:
        0 7px 17px rgba(12, 26, 46, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/*
 * Target the large phone Memory Card by image filename.
 * relational selector avoids relying on the wrapper's current inline markup.
 */
.home-v2 divdiv.dv-phone-memory-draft-frame {
    height: 300px !important;
    overflow: hidden;
}

.home-v2 img[src*="phone-memory-draft.webp"] {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.055);
    transform-origin: center;
}

/* Controlled sizes on smaller screens. */
@media (max-width: 640px) {
    .home-v2 .dv-app-memory-row {
        min-height: 61px;
        gap: 0.6rem;
    }

    .home-v2 .dv-app-memory-photo {
        width: 54px;
        height: 51px;
        flex-basis: 54px;
        border-radius: 13px;
    }

    .home-v2 .dv-app-era {
        min-height: 58px;
    }

    .home-v2 .dv-app-era-icon.dv-app-era-photo {
        width: 54px;
        height: 47px;
        flex-basis: 54px;
        border-radius: 13px;
    }

    .home-v2 divdiv.dv-phone-memory-draft-frame {
        height: 270px !important;
    }
}

/* PHASE 2A DIRECT HERO PHONE POLISH */

/*
 * The phone already has a stable wrapper class, so target it
 * directly instead of modifying or rediscovering the markup.
 */
.home-v2
.hero-top.dv-hero-layout
> .dv-app-home-wrap.fu2 {
    position: relative;
    justify-self: center;
    scale: 1.085;
    translate: 14px 0;
    transform-origin: 50% 52%;
    z-index: 3;
}

/* Slightly stronger device shadow after enlargement. */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
> .dv-app-home {
    box-shadow:
        0 34px 82px rgba(2, 11, 22, 0.35),
        0 8px 24px rgba(2, 11, 22, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/*
 * Tighten the Moments card so it stops consuming a large blank
 * area above the Memory Cards.
 */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-signal {
    min-height: 0 !important;
    padding:
        17px
        18px
        16px !important;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-signal h2 {
    max-width: 94%;
    margin:
        5px
        0
        7px;
    font-size: 17px;
    line-height: 1.18;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-signal p {
    max-width: 96%;
    margin:
        0
        0
        12px;
    font-size: 10.5px;
    line-height: 1.42;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-capture {
    min-height: 34px;
    padding:
        0
        14px;
}

/*
 * Rebuild each Memory Card row as a real three-column layout:
 * image, copy, and star.
 */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-row {
    display: grid !important;
    grid-template-columns:
        70px
        minmax(0, 1fr)
        18px;
    column-gap: 13px;
    align-items: center;
    min-height: 77px;
    padding:
        7px
        13px !important;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-row
+ .dv-app-memory-row {
    border-top:
        1px solid
        rgba(16, 36, 63, 0.075);
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-photo {
    width: 70px;
    height: 64px;
    min-width: 70px;
    max-width: 70px;
    flex: none;
    grid-column: 1;
    border-radius: 16px;
    box-shadow:
        0 8px 19px rgba(12, 26, 46, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-copy {
    min-width: 0;
    grid-column: 2;
    align-self: center;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-copy strong {
    display: block;
    overflow: hidden;
    margin: 0 0 3px;
    color: #10243f;
    font-size: 13px;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-copy small {
    display: block;
    overflow: hidden;
    color: rgba(61, 74, 91, 0.59);
    font-size: 9.5px;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-star {
    grid-column: 3;
    justify-self: end;
    align-self: center;
}

/* Give the section title a little separation from the signal card. */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-section-title {
    margin-top: 4px;
    padding:
        0
        3px
        7px;
}

/* The three cards should read as one clean app surface. */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-memory-list {
    overflow: hidden;
    border-radius: 19px;
    box-shadow:
        0 8px 22px rgba(12, 26, 46, 0.055);
}

/* Rebalance the Era row around its larger photo. */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era {
    display: grid !important;
    grid-template-columns:
        70px
        minmax(0, 1fr)
        18px;
    column-gap: 13px;
    align-items: center;
    min-height: 75px;
    padding:
        8px
        13px !important;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era-icon.dv-app-era-photo {
    width: 70px;
    height: 60px;
    min-width: 70px;
    max-width: 70px;
    flex: none;
    grid-column: 1;
    border-radius: 16px;
    box-shadow:
        0 8px 19px rgba(12, 26, 46, 0.13),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era
> span:nth-child(2) {
    min-width: 0;
    grid-column: 2;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era
> span:nth-child(2)
small {
    display: block;
    margin-bottom: 3px;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era
> span:nth-child(2)
strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.23;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-era-arrow {
    grid-column: 3;
    justify-self: end;
}

/* Keep the bottom navigation visually subordinate. */
.home-v2
.hero-top
.dv-app-home-wrap.fu2
.dv-app-grid {
    margin-top: 6px;
}

/* Responsive control for narrower desktop windows. */
@media (max-width: 1240px) {
    .home-v2
    .hero-top.dv-hero-layout
    > .dv-app-home-wrap.fu2 {
        scale: 1.05;
        translate: 6px 0;
    }
}

@media (max-width: 980px) {
    .home-v2
    .hero-top.dv-hero-layout
    > .dv-app-home-wrap.fu2 {
        scale: 1;
        translate: 0;
    }
}

@media (max-width: 640px) {
    .home-v2
    .hero-top
    .dv-app-home-wrap.fu2
    .dv-app-memory-row {
        grid-template-columns:
            60px
            minmax(0, 1fr)
            16px;
        column-gap: 10px;
        min-height: 68px;
        padding:
            6px
            10px !important;
    }

    .home-v2
    .hero-top
    .dv-app-home-wrap.fu2
    .dv-app-memory-photo {
        width: 60px;
        height: 55px;
        min-width: 60px;
        max-width: 60px;
        border-radius: 14px;
    }

    .home-v2
    .hero-top
    .dv-app-home-wrap.fu2
    .dv-app-era {
        grid-template-columns:
            60px
            minmax(0, 1fr)
            16px;
        column-gap: 10px;
        min-height: 67px;
        padding:
            6px
            10px !important;
    }

    .home-v2
    .hero-top
    .dv-app-home-wrap.fu2
    .dv-app-era-icon.dv-app-era-photo {
        width: 60px;
        height: 53px;
        min-width: 60px;
        max-width: 60px;
        border-radius: 14px;
    }
}

/* KOREAN HERO WORD INTEGRITY
   Preserve the designed line rhythm and keep Hangul words intact. */
html[lang^="ko"] .home-v2 h1,
html[lang^="ko"] .home-v2 h1 *,
html[lang^="ko"] .home-v2 .dv-hero-copy,
html[lang^="ko"] .home-v2 .dv-hero-copy * {
    word-break: keep-all;
    overflow-wrap: normal;
}

/* HOMEPAGE TYPOGRAPHY SPACING HOTFIX
   Give the homepage hero and Constellation story a calmer vertical rhythm. */

/* Main homepage hero */
.home-v2 h1.fu1 {
    line-height: 1.04;
}

.home-v2 h1.fu1 em {
    line-height: inherit;
}

.home-v2 h1.fu1 + * {
    margin-top: 24px;
    line-height: 1.66;
}

/* Lower Constellation story */
.home-v2 .dv-constellation-copy h2 {
    line-height: 1.09;
}

.home-v2 .dv-constellation-copy h2 + * {
    margin-top: 20px;
}

.home-v2 .dv-constellation-copy p {
    line-height: 1.68;
}

@media (max-width: 768px) {
    .home-v2 h1.fu1 {
        line-height: 1.06;
    }

    .home-v2 h1.fu1 + * {
        margin-top: 20px;
        line-height: 1.62;
    }

    .home-v2 .dv-constellation-copy h2 {
        line-height: 1.11;
    }

    .home-v2 .dv-constellation-copy h2 + * {
        margin-top: 17px;
    }

    .home-v2 .dv-constellation-copy p {
        line-height: 1.64;
    }
}


/* PHASE 3B HOMEPAGE MOBILE CONSTELLATION CENTERING */

/*
 * Center the public homepage Constellation showcase on phones.
 * Desktop and tablet layouts above 640px remain unchanged.
 */
@media (max-width: 640px) {
    .home-v2 .dv-constellation-panel {
        justify-items: center;
    }

    .home-v2 .dv-constellation-stage {
        width: calc(100% - 24px);
        max-width: 560px;
        margin-inline: auto;
        justify-self: center;
    }

    .home-v2 .dv-constellation-stage-label,
    .home-v2 .dv-constellation-stage-note {
        right: 20px;
        left: 20px;
        width: auto;
        transform: none;
        justify-content: center;
        text-align: center;
    }

    .home-v2 .dv-constellation-copy {
        display: flex;
        width: 100%;
        max-width: 720px;
        min-width: 0;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        padding-left:
            max(
                24px,
                env(safe-area-inset-left)
            );
        padding-right:
            max(
                24px,
                env(safe-area-inset-right)
            );
        text-align: center;
    }

    .home-v2 .dv-constellation-kicker {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-v2 .dv-constellation-copy h2 {
        width: 100%;
        max-width: 22ch;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .home-v2 .dv-constellation-copy > p {
        width: 100%;
        max-width: 38rem;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .home-v2 .dv-constellation-pills {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
    }

    .home-v2 .dv-constellation-pills > span {
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .home-v2 .dv-constellation-doctrine {
        width: min(100%, 420px);
        min-width: 0;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
        text-align: left;
    }

    .home-v2
    .dv-constellation-doctrine
    > span:last-child {
        min-width: 0;
    }

    .home-v2 .dv-constellation-doctrine strong,
    .home-v2 .dv-constellation-doctrine small {
        overflow-wrap: anywhere;
    }

    .home-v2 .dv-constellation-cta {
        width: min(100%, 320px);
        margin-right: auto;
        margin-left: auto;
        align-self: center;
    }
}


/* PHASE 3B HOMEPAGE MOBILE CONSTELLATION MAP CLEARANCE */

/*
 * Reserve a dedicated bottom band for the confirmed-connections bar.
 * Increasing the stage height preserves the map's visual scale while
 * preventing lower nodes and connecting lines from entering the bar.
 */
@media (max-width: 640px) {
    .home-v2 .dv-constellation-stage {
        min-height: 410px;
    }

    .home-v2 .dv-constellation-map {
        inset: 38px 2px 76px;
        width: calc(100% - 4px);
        height: auto;
    }

    .home-v2 .dv-constellation-stage-note {
        z-index: 4;
    }
}
