/* Homepage redesign — docupipe-inspired, friendly & interactive */

/* ========== Unified homepage canvas (single brand field) ========== */
body.home-page {
    --home-bg: #f4f6f9;
    --home-bg-soft: #eef2f6;
    background-color: var(--home-bg);
    background-image: linear-gradient(180deg, #f7f9fc 0%, var(--home-bg) 45%, var(--home-bg-soft) 100%);
    background-attachment: scroll;
}

body.home-page > section,
body.home-page > footer,
body.home-page .home-site-header {
    position: relative;
    z-index: 1;
    background: transparent;
}

body.home-page .example-questions-section,
body.home-page .home-section,
body.home-page .home-section-alt,
body.home-page .home-how-section,
body.home-page .pricing,
body.home-page .home-cta-section,
body.home-page section.home-why {
    background: transparent !important;
}

body.home-page .pricing::before {
    display: none !important;
}

body.home-page .site-footer {
    background: transparent;
    border-top: 1px solid rgba(222, 229, 236, 0.85);
}

/* ========== Unified homepage header (nav + hero + logos) — full-bleed ========== */
.home-site-header {
    padding: 0;
    margin-bottom: 0;
}

.home-site-header-shell {
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

/* Nav + hero share one edge-to-edge gradient band */
.home-hero-band {
    background-color: #e8eef3;
    background-image: url('../images/gradient1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

/* Fade hero band into page canvas (replaces former logo strip transition) */
.home-hero-band::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(5rem, 16vw, 10rem);
    background: linear-gradient(180deg, transparent 0%, var(--home-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.home-header-nav {
    background: transparent;
    overflow: visible;
}

.home-header-nav .container-lg,
.home-header-nav .row,
.home-header-nav .col-12,
.home-header-nav .navbar,
.home-header-nav .navbar-collapse {
    overflow: visible;
}

.home-header-nav nav {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

body.home-page .home-site-header .featured-home {
    margin: 0;
    max-width: none;
    width: 100%;
    height: auto;
    min-height: 58vh;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 2rem 0 clamp(4rem, 8vw, 5.5rem);
    position: relative;
    z-index: 2;
}

body.home-page .home-site-header .featured-home::after {
    display: none;
}

body.home-page .home-site-header .featured-home .container-lg {
    position: relative;
    z-index: 2;
}

body.home-page .home-site-header .navbar {
    --bs-navbar-color: #4D5D6E;
    --bs-navbar-hover-color: #000a10;
    --bs-navbar-active-color: #000a10;
    --bs-navbar-toggler-border-color: rgba(77, 93, 110, 0.35);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234D5D6E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.home-page .home-site-header .navbar-nav .nav-link,
body.home-page .home-site-header .navbar-nav .nav-link.active,
body.home-page .home-site-header .navbar-nav .nav-link.show,
body.home-page .home-site-header .navbar-nav .nav-link:focus {
    color: #4D5D6E;
}

body.home-page .home-site-header .navbar-nav .nav-link:hover,
body.home-page .home-site-header .navbar-nav .nav-link.active,
body.home-page .home-site-header .navbar-nav .show > .nav-link {
    color: #000a10;
}

body.home-page .home-site-header .navbar-nav .nav-link.active {
    font-family: mollen-bold, sans-serif;
}

@media (max-width: 991.98px) {
    body.home-page .home-site-header .navbar-collapse {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        margin-top: 0.75rem;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid rgba(222, 229, 236, 0.9);
        border-radius: var(--btn-radius);
    }

    body.home-page .home-site-header .navbar-nav .nav-item .solid-btn {
        display: inline-block;
        margin-top: 0.5rem;
    }

    body.home-page .home-site-header .featured-home {
        min-height: auto;
    }
}

/* Logo marquee */
.logo-marquee {
    padding: 2.5rem 0 3rem;
    background: transparent;
    border-bottom: none;
    overflow: hidden;
}

body.home-page .home-header-logos {
    margin: 0;
    max-width: none;
    padding: 1.35rem clamp(1rem, 3vw, 2rem) 1.5rem;
    background: #fff;
    border: none;
    border-top: 1px solid rgba(222, 229, 236, 0.65);
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

body.home-page .logo-marquee-label {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
}

body.home-page .logo-marquee-logo {
    height: 88px;
    width: auto;
    max-width: 320px;
}

body.home-page .logo-marquee-set {
    gap: 2.25rem;
    padding-right: 2.25rem;
}

.logo-marquee-label {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4D5D6E;
    opacity: 0.7;
    margin-bottom: 1.25rem;
    font-family: mollen-bold, sans-serif;
}

.logo-marquee-viewport {
    overflow: hidden;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    pointer-events: none;
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: logoMarquee var(--logo-marquee-duration, 45s) linear infinite;
}

.logo-marquee-set {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}

/* Individual logos from images/manuf_logos/ */
.logo-marquee-logo {
    height: 96px;
    width: auto;
    max-width: 360px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.95;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

@keyframes logoMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-1 * var(--logo-marquee-shift, 50%)), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    .logo-marquee-set:nth-child(n + 2) {
        display: none;
    }
}

/* Section shared */
.home-section {
    padding: 4.5rem 0;
    background: transparent;
}

.home-section-alt {
    background: transparent;
}

body.home-page .example-questions-section {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
}

/* Document Intelligence — homepage polish */
.home-docintel-intro .home-eyebrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(222, 229, 236, 0.9);
    padding: 0.35rem 0.9rem;
    border-radius: var(--btn-radius, 4px);
}

.home-docintel-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.home-docintel-tags li {
    font-family: mollen-bold, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: var(--btn-radius, 4px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(222, 229, 236, 0.95);
    color: #4D5D6E;
    box-shadow: 0 2px 8px rgba(77, 93, 110, 0.06);
}

.home-docintel-panel {
    position: relative;
    background: #fff;
    border: 1px solid rgba(222, 229, 236, 0.95);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(77, 93, 110, 0.1);
    overflow: hidden;
}

.home-docintel .example-questions-picker {
    background: #f8fafb;
    border-right: 1px solid rgba(222, 229, 236, 0.85);
    padding: 1.65rem 1.5rem;
}

.home-docintel .example-questions-demo {
    background: #fff;
    padding: 1.65rem 1.5rem;
}

.home-docintel .example-panel-step {
    width: 2rem;
    height: 2rem;
    border-radius: var(--btn-radius, 4px);
    background: linear-gradient(135deg, #4D5D6E 0%, #3d4b5a 100%);
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(77, 93, 110, 0.2);
}

.home-docintel .example-questions-demo .example-panel-step {
    background: linear-gradient(135deg, #4a7c9b 0%, #356580 100%);
}

.home-docintel .example-panel-title {
    font-size: 1.05rem;
}

.home-docintel .example-q-chip {
    min-height: 4.5rem;
    border-radius: 14px;
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(77, 93, 110, 0.05);
    position: relative;
    overflow: hidden;
}

.home-docintel .example-q-chip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #DEE5EC;
    transition: background 0.2s ease, width 0.2s ease;
}

.home-docintel .example-q-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 124, 155, 0.12);
    border-color: #a8c7ff;
}

.home-docintel .example-q-chip:hover::before {
    background: #4a7c9b;
    width: 4px;
}

.home-docintel .example-q-chip.is-active {
    background: linear-gradient(135deg, #4D5D6E 0%, #3d4b5a 100%);
    border-color: #4D5D6E;
    box-shadow: 0 10px 28px rgba(77, 93, 110, 0.22);
    transform: translateY(-2px);
}

.home-docintel .example-q-chip.is-active::before {
    background: #f5a3c7;
    width: 4px;
}

.home-docintel .example-q-category {
    border-radius: var(--btn-radius, 4px);
    letter-spacing: 0.08em;
}

.home-docintel .example-q-chip[data-index="0"] .example-q-category,
.home-docintel .example-q-chip[data-index="1"] .example-q-category { background: #e3eef5; color: #356580; }
.home-docintel .example-q-chip[data-index="2"] .example-q-category,
.home-docintel .example-q-chip[data-index="5"] .example-q-category { background: #eeeaf5; color: #5c4f7a; }
.home-docintel .example-q-chip[data-index="3"] .example-q-category { background: #fceee9; color: #a84a3a; }
.home-docintel .example-q-chip[data-index="4"] .example-q-category { background: #e4f2e9; color: #2d6342; }

.home-docintel .example-q-chip.is-active .example-q-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.home-docintel-chat {
    border-radius: 16px;
    border: 1px solid rgba(222, 229, 236, 0.9);
    box-shadow:
        0 12px 36px rgba(74, 124, 155, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-docintel .chat-header {
    background: linear-gradient(90deg, #4D5D6E 0%, #4a7c9b 100%);
    padding: 0.85rem 1.15rem;
    gap: 0.75rem;
}

.home-docintel-chat-brand {
    font-family: mollen-bold, sans-serif;
    letter-spacing: 0.04em;
}

.home-docintel-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
    font-family: mollen-bold, sans-serif;
}

.home-docintel-chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8dcc4;
    box-shadow: 0 0 0 0 rgba(184, 220, 196, 0.6);
    animation: homeDocintelPulse 2s ease infinite;
}

@keyframes homeDocintelPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 220, 196, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(184, 220, 196, 0); }
}

.home-docintel .example-questions-demo .chat-body {
    background: #f8fafb;
    min-height: 300px;
}

.home-docintel .user-query {
    background: linear-gradient(135deg, #4D5D6E 0%, #3d4b5a 100%);
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 4px 14px rgba(77, 93, 110, 0.15);
}

.home-docintel .assistant-response {
    background: #fff;
    border: 1px solid rgba(222, 229, 236, 0.95);
    border-left: 3px solid #4a7c9b;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 4px 16px rgba(77, 93, 110, 0.06);
}

.home-docintel .assistant-response strong {
    color: #356580;
}

.home-docintel .example-chat-body.is-fading-in {
    animation: homeDocintelChatIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeDocintelChatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-docintel-chat-dot {
        animation: none;
    }

    .home-docintel .example-q-chip:hover,
    .home-docintel .example-q-chip.is-active {
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .home-docintel .example-questions-picker,
    .home-docintel .example-questions-demo {
        padding: 1.25rem 1.15rem;
    }
}

/* ========== Pricing — high-contrast tiers + billing toggle ========== */
body.home-page .pricing.pricing--interactive {
    position: relative;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    background: transparent;
}

body.home-page .pricing.pricing--interactive::before {
    display: none;
}

body.home-page .pricing.pricing--interactive .container-lg {
    position: relative;
    z-index: 1;
}

.pricing-intro .home-eyebrow {
    margin-bottom: 0.65rem;
}

.pricing-intro-lead {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    color: #4D5D6E;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(77, 93, 110, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(26, 35, 45, 0.08);
}

.pricing-toggle-label {
    font-family: mollen-bold, sans-serif;
    font-size: 0.9rem;
    color: #8a9aa8;
    transition: color 0.2s ease;
    user-select: none;
    cursor: pointer;
}

.pricing-toggle-label.is-active {
    color: #1a232d;
}

.pricing-save-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #3d7a55 0%, #2d6344 100%);
    border-radius: 999px;
    vertical-align: middle;
}

.pricing-toggle-switch {
    margin: 0;
    cursor: pointer;
}

.pricing-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-toggle-track {
    display: block;
    width: 52px;
    height: 28px;
    background: #c5d0db;
    border-radius: 999px;
    position: relative;
    transition: background 0.25s ease;
}

.pricing-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-toggle-input:checked + .pricing-toggle-track {
    background: #4D5D6E;
}

.pricing-toggle-input:checked + .pricing-toggle-track .pricing-toggle-thumb {
    transform: translateX(24px);
}

.pricing-toggle-input:focus-visible + .pricing-toggle-track {
    outline: 2px solid #4a7c9b;
    outline-offset: 2px;
}

body.home-page .pricing .price-card {
    background: #fff;
    border: 1px solid rgba(77, 93, 110, 0.14);
    box-shadow: 0 16px 48px rgba(26, 35, 45, 0.09);
    border-radius: 1.25rem;
    padding: 2rem 1.65rem 1.85rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.home-page .pricing .price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(26, 35, 45, 0.12);
}

body.home-page .pricing .price-card--starter {
    border-top: 4px solid #4a7c9b;
}

/* Growth — same card style as Starter */
body.home-page .pricing .price-card--growth.featured {
    background: #fff;
    background-color: #fff;
    border: 1px solid rgba(77, 93, 110, 0.14);
    border-top: 4px solid #4a7c9b;
    box-shadow: 0 16px 48px rgba(26, 35, 45, 0.09);
}

body.home-page .pricing .price-card--enterprise {
    background: #f7f9fb;
    border-style: dashed;
    border-color: rgba(77, 93, 110, 0.28);
    box-shadow: none;
}

body.home-page .pricing .price-header .price {
    transition: opacity 0.15s ease;
}

body.home-page .pricing[data-billing="monthly"] .price-card[data-monthly] .price.is-updating,
body.home-page .pricing[data-billing="annual"] .price-card[data-monthly] .price.is-updating {
    opacity: 0.45;
}

body.home-page .pricing .price-annual-perk {
    margin: 0.5rem 0 0.65rem;
    min-height: 2.35rem;
}

body.home-page .pricing[data-billing="monthly"] .price-annual-perk {
    visibility: hidden;
}

body.home-page .pricing .price-free-badge {
    display: inline-block;
    padding: 0.45rem 1.15rem;
    font-family: mollen-bold, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f5c38;
    background: linear-gradient(135deg, #ecf8f0 0%, #d8f0df 100%);
    border: 1.5px solid rgba(61, 122, 85, 0.4);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(61, 122, 85, 0.18);
}

body.home-page .pricing .price-tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #7a8a9a;
}

.pricing-disclaimer {
    margin: 0 auto 1.25rem;
    max-width: 42rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #6b7a88;
}

body.home-page .pricing .pricing-note {
    margin: 0;
}

@media (max-width: 575.98px) {
    .pricing-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem 0.85rem;
        border-radius: 1rem;
        padding: 0.75rem 1rem;
    }

    .pricing-save-badge {
        display: block;
        margin: 0.25rem 0 0;
    }
}

body.home-page section.home-why {
    padding-left: clamp(1rem, 3vw, 1.75rem);
    padding-right: clamp(1rem, 3vw, 1.75rem);
    padding-top: 1.25rem;
}

.home-eyebrow {
    display: inline-block;
    font-family: mollen-bold, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4D5D6E;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.home-section-intro {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-section-intro .section-heading {
    margin-bottom: 0.75rem;
}

.home-section-intro p {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #4D5D6E;
    opacity: 0.9;
}

/* Hero — half-height marker highlight (InfinityRx-style) */
section.featured-home h1 .alessia-hero-mark {
    font-style: italic;
    color: inherit;
    background-image: linear-gradient(
        180deg,
        transparent 0%,
        transparent 52%,
        #f5a3c7 52%,
        #fde2ef 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 0.06em;
}

/* Hero CTAs */
.featured-home .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.featured-home .hero-cta-row .solid-btn,
.featured-home .hero-cta-row .outline-btn {
    padding: 0.85rem 1.75rem;
}

/* Why Alessia — editorial spine (hero blue gradient) */
.home-why {
    padding: 4.25rem 1.75rem 4.75rem;
    max-width: 1450px;
    margin: 0 auto 2.5rem;
    background-image: url('../images/gradient1.jpg');
    background-size: cover;
    background-position: center center;
    border-radius: 2rem;
    color: #4D5D6E;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 24px 56px rgba(74, 124, 155, 0.28),
        0 8px 20px rgba(77, 93, 110, 0.1);
}

.home-why::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 60% at 100% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 58%),
        radial-gradient(ellipse 50% 45% at 0% 100%, rgba(255, 255, 255, 0.35) 0%, transparent 52%);
    pointer-events: none;
}

.home-why::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 163, 199, 0.35) 0%, transparent 68%);
    pointer-events: none;
}

.home-why .container-lg {
    position: relative;
    z-index: 1;
}

.home-why-header {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-why-header .home-eyebrow {
    color: #4D5D6E;
    opacity: 0.75;
    background: rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.home-why-title {
    font-family: mollen-bold, sans-serif;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.12;
    color: #4D5D6E;
    margin: 0 0 0.85rem;
    text-shadow: 0 2px 24px rgba(255, 255, 255, 0.85);
}

.home-why-title-word {
    display: inline;
    background-image: linear-gradient(
        180deg,
        transparent 0%,
        transparent 52%,
        #f5a3c7 52%,
        #fde2ef 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 0.08em;
}

.home-why-title-word--save {
    background-image: linear-gradient(
        180deg,
        transparent 0%,
        transparent 52%,
        #b8dcc4 52%,
        #e4f2e9 100%
    );
}

.home-why-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4D5D6E;
    opacity: 0.92;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Alessia — interactive impact tabs */
.home-why-interactive {
    max-width: 1000px;
    margin: 0 auto;
}

.home-why-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.home-why-tab {
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.35);
    color: #4D5D6E;
    font-family: mollen-bold, sans-serif;
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 0.5rem;
    border-radius: var(--btn-radius, 4px);
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-why-tab:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
}

.home-why-tab.is-active {
    background: #fff;
    border-color: #fff;
    color: #2d6342;
    box-shadow: 0 8px 24px rgba(77, 93, 110, 0.15);
    transform: translateY(-3px);
}

.home-why-tab[data-why="service"].is-active { color: #356580; }
.home-why-tab[data-why="save"].is-active { color: #a84a3a; }
.home-why-tab[data-why="onboard"].is-active { color: #5c4f7a; }

.home-why-stage {
    position: relative;
    min-height: 320px;
    padding: 2rem 2.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 16px 48px rgba(77, 93, 110, 0.12);
    overflow: hidden;
}

.home-why-impact {
    display: none;
    animation: homeWhyFadeOut 0.35s ease forwards;
}

.home-why-impact.is-active {
    display: block;
    animation: homeWhyFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-why-impact.is-exiting {
    display: block;
    animation: homeWhyFadeOut 0.28s ease forwards;
}

@keyframes homeWhyFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes homeWhyFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.home-why-impact-head {
    margin-bottom: 1.25rem;
}

.home-why-impact-eyebrow {
    font-family: mollen-bold, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4D5D6E;
    opacity: 0.65;
    margin: 0 0 0.5rem;
}

.home-why-stat-value {
    display: block;
    font-family: mollen-bold, sans-serif;
    font-size: clamp(3.25rem, 9vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #2d6342;
    transition: color 0.35s ease;
}

.home-why-impact--service .home-why-stat-value { color: #356580; }
.home-why-impact--save .home-why-stat-value { color: #a84a3a; }
.home-why-impact--onboard .home-why-stat-value { color: #5c4f7a; }

.home-why-stat-value.is-counting {
    animation: homeWhyStatPulse 0.6s ease;
}

@keyframes homeWhyStatPulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.04); }
}

.home-why-stat-caption {
    font-size: 1rem;
    line-height: 1.45;
    color: #4D5D6E;
    opacity: 0.85;
    margin: 0.5rem 0 0;
    max-width: 28rem;
}

.home-why-impact-copy {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #4D5D6E;
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

.home-why-compare-row {
    display: grid;
    gap: 0.65rem;
}

.home-why-compare-label {
    font-family: mollen-bold, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4D5D6E;
    opacity: 0.7;
}

.home-why-compare-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.home-why-compare-before,
.home-why-compare-after {
    display: flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.75rem;
    font-family: mollen-bold, sans-serif;
    font-size: 0.8rem;
    border-radius: var(--btn-radius, 4px);
    width: var(--w, 50%);
    max-width: 100%;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-why-impact.is-active .home-why-compare-before,
.home-why-impact.is-active .home-why-compare-after {
    width: 0;
    animation: homeWhyBarGrow 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-why-impact.is-active .home-why-compare-after {
    animation-delay: 0.15s;
}

@keyframes homeWhyBarGrow {
    to { width: var(--w, 50%); }
}

.home-why-compare-before {
    background: rgba(77, 93, 110, 0.12);
    color: #4D5D6E;
}

.home-why-compare-after {
    background: #3d7a55;
    color: #fff;
}

.home-why-impact--service.is-active .home-why-compare-after { background: #4a7c9b; }
.home-why-impact--save.is-active .home-why-compare-after { background: #c45c4a; }
.home-why-impact--onboard.is-active .home-why-compare-after { background: #7a6b9e; }

.home-why-compare-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 0.35rem;
}

.home-why-compare-legend span::before {
    content: "";
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: rgba(77, 93, 110, 0.25);
}

.home-why-compare-legend .home-why-legend-after::before {
    background: #3d7a55;
}

.home-why-impact--service .home-why-legend-after::before { background: #4a7c9b; }
.home-why-impact--save .home-why-legend-after::before { background: #c45c4a; }
.home-why-impact--onboard .home-why-legend-after::before { background: #7a6b9e; }

.home-why-progress {
    display: none;
}

.home-why-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #3d7a55;
    transition: width 0.1s linear, background 0.35s ease;
}

.home-why-interactive[data-active-why="service"] .home-why-progress-fill { background: #4a7c9b; }
.home-why-interactive[data-active-why="save"] .home-why-progress-fill { background: #c45c4a; }
.home-why-interactive[data-active-why="onboard"] .home-why-progress-fill { background: #7a6b9e; }

.home-why-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: #4D5D6E;
    opacity: 0.75;
    margin: 1rem 0 0;
}

.home-why-footnote a {
    color: #4D5D6E;
    font-family: mollen-bold, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    .home-why-impact.is-active,
    .home-why-impact.is-exiting {
        animation: none;
    }

    .home-why-impact.is-active .home-why-compare-before,
    .home-why-impact.is-active .home-why-compare-after {
        animation: none;
        width: var(--w, 50%);
    }

    .home-why-stat-value.is-counting {
        animation: none;
    }
}

/* How it works — illustrative animated pipeline */
.home-how-intro {
    margin-bottom: 2rem;
}

.home-how-intro p {
    display: none;
}

.home-how-visual {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.25rem;
    background: #fff;
    border: 1px solid rgba(222, 229, 236, 0.95);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(77, 93, 110, 0.1);
    position: relative;
    overflow: hidden;
}

.home-how-track {
    position: absolute;
    top: 3.25rem;
    left: 12%;
    right: 12%;
    height: 4px;
    background: #DEE5EC;
    border-radius: 4px;
    z-index: 0;
    overflow: hidden;
}

.home-how-track-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #4D5D6E 0%, #4a7c9b 50%, #3d7a55 100%);
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.home-how-visual.is-visible .home-how-track-fill {
    width: 100%;
}

.home-how-track-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4a7c9b;
    box-shadow: 0 0 0 4px rgba(74, 124, 155, 0.2);
    opacity: 0;
    transform: translateX(-50%);
}

.home-how-visual.is-visible .home-how-track-pulse {
    animation: homeHowTrackPulse 2.8s ease-in-out 0.6s infinite;
}

@keyframes homeHowTrackPulse {
    0% { left: 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.home-how-panels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.home-how-panel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-how-visual.is-visible .home-how-panel:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.home-how-visual.is-visible .home-how-panel:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.45s;
}

.home-how-visual.is-visible .home-how-panel:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.75s;
}

.home-how-arrow {
    flex: 0 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.home-how-arrow svg {
    width: 2rem;
    height: auto;
}

.home-how-arrow-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    transition: stroke-dashoffset 0.6s ease;
}

.home-how-visual.is-visible .home-how-arrow:nth-child(2) {
    opacity: 1;
    transition-delay: 0.35s;
}

.home-how-visual.is-visible .home-how-arrow:nth-child(4) {
    opacity: 1;
    transition-delay: 0.65s;
}

.home-how-visual.is-visible .home-how-arrow:nth-child(2) .home-how-arrow-path,
.home-how-visual.is-visible .home-how-arrow:nth-child(4) .home-how-arrow-path {
    stroke-dashoffset: 0;
}

.home-how-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #4D5D6E;
    color: #fff;
    font-family: mollen-bold, sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(77, 93, 110, 0.25);
}

.home-how-badge--blue {
    background: #4a7c9b;
}

.home-how-badge--green {
    background: #3d7a55;
}

.home-how-figure {
    width: 100%;
    aspect-ratio: 220 / 180;
    max-height: 200px;
}

.home-how-title {
    font-family: mollen-bold, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4D5D6E;
    margin: 0.65rem 0 0;
    text-align: center;
}

.home-how-panel:nth-child(3) .home-how-title {
    color: #4a7c9b;
}

.home-how-panel:nth-child(5) .home-how-title {
    color: #3d7a55;
}

.home-how-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Step 1 — documents upload */
.home-how-float {
    opacity: 0;
    transform: translateY(-12px);
}

.home-how-visual.is-visible .home-how-float--d1 {
    animation: homeHowDocIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.home-how-visual.is-visible .home-how-float--d2 {
    animation: homeHowDocIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.home-how-visual.is-visible .home-how-float--d3 {
    animation: homeHowDocIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.home-how-upload-arrow {
    opacity: 0;
    transform: scale(0.5);
    transform-origin: 110px 98px;
}

.home-how-visual.is-visible .home-how-upload-arrow {
    animation: homeHowPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

@keyframes homeHowDocIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step 2 — configure / merge */
.home-how-orbit {
    transform-origin: 110px 90px;
    opacity: 0;
}

.home-how-visual.is-visible .home-how-orbit {
    animation: homeHowSpin 12s linear 0.5s infinite;
    opacity: 0.5;
}

.home-how-core-pulse {
    transform-origin: 110px 90px;
}

.home-how-visual.is-visible .home-how-core-pulse {
    animation: homeHowCorePulse 2s ease-in-out 0.6s infinite;
}

.home-how-side-doc {
    opacity: 0;
}

.home-how-visual.is-visible .home-how-side-doc:nth-of-type(1) {
    animation: homeHowDocIn 0.5s ease 0.55s both;
}

.home-how-visual.is-visible .home-how-side-doc:nth-of-type(2) {
    animation: homeHowDocIn 0.5s ease 0.65s both;
}

.home-how-merge {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    opacity: 0;
}

.home-how-visual.is-visible .home-how-merge--l,
.home-how-visual.is-visible .home-how-merge--r {
    animation: homeHowMerge 0.8s ease 0.75s forwards;
}

.home-how-spark {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
}

.home-how-visual.is-visible .home-how-spark--1 {
    animation: homeHowPop 0.4s ease 0.9s both;
}

.home-how-visual.is-visible .home-how-spark--2 {
    animation: homeHowPop 0.4s ease 1s both;
}

.home-how-visual.is-visible .home-how-spark--3 {
    animation: homeHowPop 0.4s ease 1.1s both;
}

@keyframes homeHowSpin {
    to { transform: rotate(360deg); }
}

@keyframes homeHowCorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes homeHowMerge {
    to { stroke-dashoffset: 0; opacity: 1; }
}

/* Step 3 — team chat live */
.home-how-bubble {
    opacity: 0;
    transform: scale(0.85);
    transform-origin: center;
}

.home-how-visual.is-visible .home-how-bubble--user {
    animation: homeHowPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.home-how-visual.is-visible .home-how-bubble--ai {
    animation: homeHowPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.home-how-avatars circle {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
}

.home-how-visual.is-visible .home-how-avatars circle:nth-child(1) {
    animation: homeHowPop 0.35s ease 0.95s both;
}

.home-how-visual.is-visible .home-how-avatars circle:nth-child(2) {
    animation: homeHowPop 0.35s ease 1.05s both;
}

.home-how-visual.is-visible .home-how-avatars circle:nth-child(3) {
    animation: homeHowPop 0.35s ease 1.15s both;
}

@keyframes homeHowPop {
    0% { opacity: 0; transform: scale(0.7); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-how-panel,
    .home-how-arrow,
    .home-how-float,
    .home-how-upload-arrow,
    .home-how-side-doc,
    .home-how-bubble,
    .home-how-avatars circle,
    .home-how-spark,
    .home-how-merge {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .home-how-track-fill {
        width: 100%;
        transition: none;
    }

    .home-how-track-pulse,
    .home-how-orbit,
    .home-how-core-pulse {
        animation: none !important;
        opacity: 1;
    }

    .home-how-arrow-path {
        stroke-dashoffset: 0;
    }

}

/* Industries — visual cards */
.home-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-industry-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(222, 229, 236, 0.95);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.home-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(77, 93, 110, 0.12);
    color: inherit;
}

.home-industry-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #DEE5EC 0%, #f0f3f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #4D5D6E;
}

.home-industry-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.home-industry-card h2 {
    font-family: mollen-bold, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: #4D5D6E;
}

.home-industry-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4D5D6E;
    opacity: 0.88;
    flex: 1;
    margin-bottom: 1.25rem;
}

.home-industry-link {
    font-family: mollen-bold, sans-serif;
    font-size: 0.88rem;
    color: #4D5D6E;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-industry-link img {
    width: 14px;
    transition: transform 0.2s ease;
}

.home-industry-card:hover .home-industry-link img {
    transform: translateX(4px);
}

/* Demo section wrapper */
.home-demo-wrap {
    background: linear-gradient(180deg, #fff 0%, #f5f7fa 50%, #fff 100%);
}

.home-demo-wrap .demo-chat {
    padding-top: 0;
    padding-bottom: 4.5rem;
}

.home-demo-wrap .chat-container {
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(77, 93, 110, 0.1);
    border: 1px solid rgba(222, 229, 236, 0.95);
}

/* Services grid */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(222, 229, 236, 0.95);
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-service-card:hover {
    box-shadow: 0 10px 32px rgba(77, 93, 110, 0.1);
    transform: translateY(-3px);
}

.home-service-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.home-service-card h2 {
    font-family: mollen-bold, sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    color: #4D5D6E;
}

.home-service-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4D5D6E;
    opacity: 0.88;
    margin: 0;
}

/* CTA — full-width panel */
.home-cta-section {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.home-cta-panel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    color: #4D5D6E;
    box-shadow:
        0 20px 56px rgba(74, 124, 155, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.home-page .home-cta-panel {
    background: #fff;
    border: 1px solid rgba(222, 229, 236, 0.95);
    box-shadow: 0 16px 48px rgba(77, 93, 110, 0.1);
}

.home-cta-heading {
    font-family: mollen-bold, sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    max-width: none;
}

.home-cta-text {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}

.home-cta-section .hero-cta-row {
    justify-content: center;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-industries-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .home-how-visual {
        padding: 1.75rem 1rem 2.25rem;
    }

    .home-how-track {
        display: none;
    }

    .home-how-panels {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }

    .home-how-panel {
        max-width: 100%;
        width: 100%;
        padding: 0.25rem 0;
    }

    .home-how-title {
        font-size: 1.15rem;
        letter-spacing: 0.05em;
        margin-top: 0.85rem;
    }

    .home-how-arrow {
        flex: none;
        transform: rotate(90deg);
        margin: 0.35rem 0;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

}

@media (max-width: 991.98px) {
    .home-why-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-why-stage {
        min-height: 340px;
        padding: 1.5rem 1.35rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .home-how-panels {
        gap: 2.5rem;
    }

    .home-how-title {
        font-size: 1.25rem;
    }

    .home-how-arrow {
        margin: 0.5rem 0;
    }

    .home-how-figure {
        max-height: 180px;
    }

    .home-why {
        padding: 3rem 1rem 3.5rem;
        border-radius: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .home-why-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .home-why-tab {
        padding: 0.7rem 0.4rem;
        font-size: 0.68rem;
    }

    .home-why-stage {
        min-height: 300px;
        padding: 1.35rem 1.1rem 1.75rem;
    }

    .home-why-stat-value {
        font-size: 3rem;
    }

    .home-why-title-word {
        display: inline;
    }
}

/* Customer quote — Sensotec */
.home-quote-section {
    padding-top: 0;
    padding-bottom: 4.5rem;
}

.home-quote-panel {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(77, 93, 110, 0.12);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 12px 40px rgba(26, 35, 45, 0.06);
}

.home-quote-photo-wrap {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f3f5;
}

.home-quote-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.home-quote-content {
    max-width: 36rem;
}

.home-quote-heading {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a232d;
    margin: 0.5rem 0 1.25rem;
}

.home-quote-text {
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}

.home-quote-text p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #4D5D6E;
}

.home-quote-attribution {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.home-quote-name {
    font-weight: 700;
    color: #1a232d;
    font-size: 1rem;
}

.home-quote-role {
    font-size: 0.95rem;
    color: #6b7a88;
}

.home-quote-role::before {
    content: "·";
    margin-right: 0.75rem;
    color: rgba(77, 93, 110, 0.45);
}

@media (max-width: 767.98px) {
    .home-quote-panel {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin: 0 auto;
        padding: 1.5rem 1.35rem 1.75rem;
        text-align: center;
    }

    .home-quote-photo-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .home-quote-content {
        max-width: none;
    }

    .home-quote-attribution {
        justify-content: center;
    }

    .home-quote-role::before {
        display: none;
    }

    .home-quote-role {
        flex-basis: 100%;
    }
}
