/* =============================================
   AnamneSys Homepage — Medical software theme
   Purple and white brand system, scoped to .home-page.
   ============================================= */

body.home-page {
    --home-primary: #6c70d6;
    --home-primary-dark: #5558ba;
    --home-primary-deep: #46489a;
    --home-primary-soft: #eeeeff;
    --home-primary-wash: #f7f7fd;
    --home-white: #ffffff;
    --home-text: #333348;
    --home-muted: #68687a;
    --home-line: #e5e5f1;
    --home-shadow: 0 18px 50px rgba(85, 88, 186, 0.13);
    --home-shadow-soft: 0 8px 28px rgba(85, 88, 186, 0.08);
    --home-header-height: 82px;
    --home-section-lead: clamp(1rem, 1.5vw, 1.5rem);
    --home-section-space: clamp(3.5rem, 5.25vw, 5rem);
    --home-section-content-gap: clamp(2.25rem, 3.5vw, 3.25rem);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--home-text);
    background: var(--home-white);
    overflow-x: clip;
}

body.home-page:not(.pricing-page) {
    --home-section-space: clamp(2.5rem, 3.5vw, 3.5rem);
    --home-section-content-gap: clamp(1.75rem, 2.5vw, 2.5rem);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page .stat-number {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.home-page p {
    color: var(--home-muted);
}

.home-page .container {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.home-page a,
.home-page button {
    -webkit-tap-highlight-color: transparent;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
    outline: 3px solid rgba(108, 112, 214, 0.35);
    outline-offset: 4px;
}

/* Header */
.home-page .header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(108, 112, 214, 0.1);
    box-shadow: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-page .header.scrolled {
    border-bottom-color: var(--home-line);
    box-shadow: 0 8px 28px rgba(85, 88, 186, 0.08);
}

.home-page .nav {
    min-height: 82px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.home-page .nav-logo img {
    width: auto;
    height: 43px;
}

.home-page .nav-links {
    gap: clamp(1.3rem, 2.4vw, 2.5rem);
}

.home-page .nav-links a:not(.btn) {
    color: #55566c;
    font-size: 0.88rem;
    font-weight: 600;
}

.home-page .nav-links a:not(.btn)::after {
    display: none;
}

.home-page .nav-links a:not(.btn):hover {
    color: var(--home-primary-dark);
}

.home-page .nav-actions .btn-secondary,
.home-page .nav-mobile-actions .btn-secondary {
    min-width: auto;
    padding: 0.68rem 1.1rem;
    color: var(--home-white);
    background: var(--home-primary);
    border-color: var(--home-primary);
    border-radius: 9px;
    box-shadow: 0 7px 18px rgba(108, 112, 214, 0.2);
    font-size: 0.83rem;
}

.home-page .nav-actions .btn-secondary:hover,
.home-page .nav-mobile-actions .btn-secondary:hover {
    color: var(--home-white);
    background: var(--home-primary-dark);
    border-color: var(--home-primary-dark);
    box-shadow: 0 10px 24px rgba(85, 88, 186, 0.24);
    transform: translateY(-1px);
}

/* Hero */
.home-page .hero {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--home-header-height) + var(--home-section-lead)) 0 var(--home-section-content-gap);
    background: linear-gradient(145deg, var(--home-white) 0%, var(--home-primary-wash) 58%, #eeeeff 100%);
    border-bottom: 1px solid rgba(108, 112, 214, 0.12);
    overflow: hidden;
}

.home-page .hero::before {
    top: -28%;
    right: -14%;
    width: 58%;
    height: 115%;
    background: radial-gradient(circle, rgba(108, 112, 214, 0.16) 0%, rgba(108, 112, 214, 0) 70%);
    border-radius: 50%;
    filter: none;
    opacity: 1;
}

.home-page .hero-content {
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.home-page .hero-text {
    max-width: 650px;
    min-width: 0;
}

.home-page .hero-badge {
    display: inline-flex;
    max-width: 100%;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
    padding: 0.58rem 0.9rem;
    color: var(--home-primary-dark);
    background: var(--home-primary-soft);
    border: 1px solid rgba(108, 112, 214, 0.18);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-page .hero-badge svg {
    flex: 0 0 14px;
    color: var(--home-primary);
}

.home-page .hero-title {
    max-width: 700px;
    margin-bottom: 1.15rem;
    color: var(--home-text);
    font-size: clamp(2.55rem, 3.9vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.home-page .hero-title br {
    display: none;
}

.home-page .hero-title span {
    color: var(--home-primary);
}

.home-page .hero-description {
    max-width: 610px;
    margin-bottom: 1.45rem;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.72;
}

.home-page .hero-buttons .btn-primary,
.home-page .cta .btn-primary {
    min-width: 190px;
    padding: 0.95rem 1.45rem;
    color: var(--home-white);
    background: var(--home-primary);
    border: 1px solid var(--home-primary);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(108, 112, 214, 0.22);
    font-size: 0.94rem;
    font-weight: 700;
}

.home-page .hero-buttons .btn-primary::after,
.home-page .cta .btn-primary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.home-page .hero-buttons .btn-primary:hover,
.home-page .cta .btn-primary:hover {
    background: var(--home-primary-dark);
    border-color: var(--home-primary-dark);
    box-shadow: 0 14px 30px rgba(85, 88, 186, 0.27);
    transform: translateY(-2px);
}

.home-page .hero-buttons .btn-primary:hover::after,
.home-page .cta .btn-primary:hover::after {
    transform: translateX(4px) rotate(45deg);
}

.home-page .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.8rem;
    padding-top: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(108, 112, 214, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(85, 88, 186, 0.06);
}

.home-page .stat-item {
    min-width: 0;
    padding: 1rem 1.05rem;
    text-align: left;
}

.home-page .stat-item + .stat-item {
    border-left: 1px solid var(--home-line);
}

.home-page .stat-number {
    margin-bottom: 0.22rem;
    color: var(--home-primary-dark);
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    font-weight: 800;
    line-height: 1.05;
}

.home-page .stat-label {
    color: var(--home-muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Editorial product summary: communicates the workflow without imitating the software UI. */
.home-page .hero-system-map {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    color: var(--home-white);
    background: linear-gradient(145deg, var(--home-primary-deep) 0%, var(--home-primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(70, 72, 154, 0.24);
}

.home-page .hero-system-map::before {
    content: '';
    position: absolute;
    top: -42%;
    right: -27%;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.home-page .hero-system-map::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 42%);
}

.home-page .hero-system-map-header,
.home-page .hero-system-map-list,
.home-page .hero-system-map-footer {
    position: relative;
    z-index: 1;
}

.home-page .hero-system-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-page .hero-system-map-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .hero-system-map-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: clamp(1.15rem, 2.3vw, 1.65rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-page .hero-system-map-number {
    align-self: start;
    padding-top: 0.22rem;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.home-page .hero-system-map-list strong {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--home-white);
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.home-page .hero-system-map-list li div > span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.45;
}

.home-page .hero-system-map-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 1.35rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.74rem;
    font-weight: 600;
}

.home-page .hero-system-map-status {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #b8f5d2;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(184, 245, 210, 0.11);
}

/* Section headings */
.home-page .section-header {
    max-width: 800px;
    margin: 0 auto var(--home-section-content-gap);
    text-align: center;
}

.home-page .section-subtitle {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.48rem 0.85rem;
    color: var(--home-primary-dark);
    background: var(--home-primary-soft);
    border: 1px solid rgba(108, 112, 214, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.home-page .section-title {
    max-width: 780px;
    margin: 0 auto 1rem;
    color: var(--home-text);
    font-size: clamp(2.35rem, 4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.038em;
    line-height: 1.08;
}

.home-page .section-description {
    max-width: 600px;
    margin-inline: auto;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.65;
}

/* Features: editorial index instead of cards */
.home-page .features {
    padding: var(--home-section-space) 0;
    background: var(--home-white);
}

.home-page .features-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.home-page .features-intro {
    position: sticky;
    top: 120px;
    max-width: 440px;
    margin: 0;
    text-align: left;
}

.home-page .features-intro .section-title,
.home-page .features-intro .section-description {
    margin-inline: 0;
}

.home-page .features-intro .section-title {
    font-size: clamp(2.4rem, 4vw, 3.65rem);
}

.home-page .features-note {
    margin-top: 2rem;
    padding-left: 1rem;
    color: var(--home-primary-dark);
    border-left: 3px solid var(--home-primary);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
}

.home-page .feature-list {
    border-top: 1px solid var(--home-line);
}

.home-page .feature-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
    padding: 1.65rem 0;
    border-bottom: 1px solid var(--home-line);
    transition: border-color 180ms ease;
}

.home-page .feature-row:hover {
    border-bottom-color: var(--home-primary);
}

.home-page .feature-number {
    color: var(--home-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-page .feature-copy h3 {
    margin-bottom: 0.45rem;
    color: var(--home-text);
    font-size: clamp(1.12rem, 1.5vw, 1.32rem);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.home-page .feature-copy p {
    max-width: 570px;
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.home-page .feature-context {
    padding-top: 0.1rem;
    color: var(--home-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Benefits: a connected clinical workflow */
.home-page .benefits {
    padding: var(--home-section-space) 0;
    color: var(--home-white);
    background: linear-gradient(145deg, var(--home-primary-deep) 0%, var(--home-primary-dark) 100%);
}

.home-page .benefits .section-subtitle {
    color: var(--home-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-page .benefits .section-title {
    color: var(--home-white);
}

.home-page .benefits .section-description {
    color: var(--home-white);
}

.home-page .benefits-heading {
    max-width: 900px;
}

.home-page .care-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.home-page .care-step {
    position: relative;
    min-height: 260px;
    padding: clamp(1.8rem, 3vw, 2.7rem);
}

.home-page .care-step + .care-step {
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.home-page .care-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-page .care-step-number {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-page .care-step-moment {
    color: var(--home-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-page .care-step h3 {
    margin-bottom: 0.85rem;
    color: var(--home-white);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.home-page .care-step p {
    color: var(--home-white);
    font-size: 0.92rem;
    line-height: 1.7;
}

.home-page .care-flow-result {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.45rem 0 0;
}

.home-page .care-flow-result span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .care-flow-result p {
    max-width: 640px;
    color: var(--home-white);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 650;
    text-align: right;
}

/* About */
.home-page .about-section {
    padding: var(--home-section-space) 0;
    background: var(--home-white);
}

.home-page .about-title-primary {
    color: var(--home-primary);
}

.home-page .about-content {
    max-width: 1180px;
}

.home-page .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: 1.7rem clamp(3rem, 7vw, 6.5rem);
    align-items: stretch;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.home-page .about-grid > p:first-child,
.home-page .about-grid > p:nth-of-type(2) {
    grid-column: 1;
}

.home-page .about-highlight-box {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    padding: clamp(2.2rem, 5vw, 4rem);
    color: var(--home-white);
    background: linear-gradient(145deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    border: 0;
    border-radius: 22px;
    box-shadow: var(--home-shadow);
    font-size: clamp(1.45rem, 2.4vw, 2.3rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.home-page .about-highlight-box p {
    color: inherit;
}

.home-page .about-grid strong {
    color: var(--home-primary-dark);
    font-weight: 700;
}

.home-page .about-final-text {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    padding: 1.45rem 1.7rem;
    color: var(--home-primary-dark);
    background: var(--home-primary-wash);
    border: 1px solid rgba(108, 112, 214, 0.14);
    border-radius: 14px;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    text-align: center;
}

/* CTA */
.home-page .cta {
    padding: 0 0 var(--home-section-space);
    background: var(--home-white);
}

.home-page .cta-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 1rem clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    max-width: none;
    margin: 0;
    padding: clamp(3.5rem, 6vw, 5rem);
    color: var(--home-white);
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    border-radius: 24px;
    box-shadow: var(--home-shadow);
    text-align: left;
}

.home-page .cta-content::before {
    top: -65%;
    right: -12%;
    width: 44%;
    height: 220%;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    opacity: 1;
}

.home-page .cta-title {
    margin: 0;
    color: var(--home-white);
    font-size: clamp(2.25rem, 4vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.038em;
    line-height: 1.08;
}

.home-page .cta-description {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.65;
}

.home-page .cta .btn-primary {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    color: var(--home-primary-dark);
    background: var(--home-white);
    border-color: var(--home-white);
    box-shadow: 0 10px 28px rgba(55, 57, 122, 0.18);
}

.home-page .cta .btn-primary:hover {
    color: var(--home-primary-deep);
    background: var(--home-primary-soft);
    border-color: var(--home-primary-soft);
}

/* Restore the established brand footer color. */
.home-page .footer {
    background: linear-gradient(135deg, var(--c-primary-700) 0%, var(--c-primary-800) 100%);
}

.home-page .footer,
.home-page .footer p,
.home-page .footer h4,
.home-page .footer a,
.home-page .footer span,
.home-page .footer-contact-info {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1120px) {
    .home-page .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
        gap: 3rem;
    }

    .home-page .hero-title {
        font-size: clamp(2.5rem, 4.5vw, 3.45rem);
    }
}

@media (max-width: 960px) {
    .home-page .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .home-page .hero-text {
        max-width: 780px;
    }

    .home-page .hero-title {
        max-width: 780px;
        font-size: clamp(2.8rem, 6vw, 3.8rem);
    }

    .home-page .hero-buttons,
    .home-page .hero-stats {
        justify-content: start;
    }

    .home-page .hero-system-map {
        width: min(100%, 820px);
        margin-inline: auto;
    }

    .home-page .hero-system-map-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .hero-system-map-list li {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 1.35rem;
        border-bottom: 0;
    }

    .home-page .hero-system-map-list li + li {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
    }

    .home-page .features-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .home-page .features-intro {
        position: static;
        max-width: 760px;
    }

    .home-page .about-grid {
        grid-template-columns: 1fr;
    }

    .home-page .about-grid > p:first-child,
    .home-page .about-grid > p:nth-of-type(2),
    .home-page .about-highlight-box,
    .home-page .about-final-text {
        grid-column: 1;
    }

    .home-page .about-highlight-box {
        grid-row: auto;
        min-height: 280px;
        margin-block: 0.6rem;
    }
}

@media (max-width: 800px) {
    body.home-page {
        --home-header-height: 72px;
    }

    .home-page .nav {
        min-height: 72px;
    }

    .home-page .nav-logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .home-page .nav-logo img {
        height: 36px;
    }

    .home-page .nav-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .home-page .nav-actions .btn {
        display: none;
    }

    .home-page .mobile-menu-btn {
        display: block;
    }

    .home-page .mobile-menu-btn span {
        width: 25px;
        height: 2px;
        background: var(--home-primary-dark);
    }

    .home-page .mobile-menu-btn.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .home-page .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .home-page .mobile-menu-btn.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    .home-page .nav-links {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.8rem clamp(1.25rem, 4vw, 4rem) 1.4rem;
        background: var(--home-white);
        border-bottom: 1px solid var(--home-line);
        box-shadow: 0 22px 40px rgba(85, 88, 186, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
    }

    .home-page .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .home-page .nav-links li:not(.nav-mobile-actions) a {
        display: block;
        padding: 0.95rem 0;
        border-bottom: 1px solid var(--home-line);
    }

    .home-page .nav-links a:not(.btn)::after {
        display: none;
    }

    .home-page .nav-mobile-actions {
        padding-top: 1rem;
    }

    .home-page .cta-content {
        grid-template-columns: 1fr;
    }

    .home-page .care-flow {
        grid-template-columns: 1fr;
    }

    .home-page .care-step {
        min-height: auto;
    }

    .home-page .care-step + .care-step {
        border-top: 1px solid rgba(255, 255, 255, 0.32);
        border-left: 0;
    }

    .home-page .care-step-header {
        margin-bottom: 2rem;
    }

    .home-page .cta .btn-primary {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 1.4rem;
    }
}

@media (max-width: 650px) {
    .home-page .hero {
        min-height: auto;
        padding-top: calc(var(--home-header-height) + var(--home-section-lead));
        padding-bottom: var(--home-section-space);
    }

    .home-page .hero-title {
        max-width: 100%;
        font-size: clamp(2.35rem, 10.5vw, 3rem);
        line-height: 1.03;
    }

    .home-page .hero-badge {
        width: 100%;
        border-radius: 12px;
        white-space: normal;
    }

    .home-page .hero-description {
        font-size: 0.96rem;
    }

    .home-page .hero-buttons,
    .home-page .hero-buttons .btn {
        width: 100%;
    }

    .home-page .hero-stats {
        margin-top: 2.2rem;
    }

    .home-page .stat-item {
        padding-inline: 0.8rem;
    }

    .home-page .hero-system-map {
        padding: 1.4rem;
        border-radius: 18px;
    }

    .home-page .hero-system-map-list {
        display: block;
    }

    .home-page .hero-system-map-list li {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .home-page .hero-system-map-list li + li {
        border-left: 0;
    }

    .home-page .feature-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .home-page .feature-context {
        grid-column: 2;
    }

    .home-page .care-flow-result {
        flex-direction: column;
        gap: 0.65rem;
    }

    .home-page .care-flow-result p {
        text-align: left;
    }

    .home-page .section-title {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .home-page .about-highlight-box {
        min-height: 250px;
        padding: 2rem;
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .home-page .cta-content {
        padding: 2.5rem 1.5rem;
        border-radius: 18px;
    }

    .home-page .cta-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }
}

@media (max-width: 420px) {
    .home-page .hero-stats {
        grid-template-columns: 1fr;
    }

    .home-page .stat-item,
    .home-page .stat-item + .stat-item {
        display: grid;
        grid-template-columns: 0.55fr 1fr;
        align-items: baseline;
        gap: 1rem;
        padding: 0.9rem 1rem;
        border-left: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .home-page .stat-item:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
