:root {
    --primary: #7b0b73;
    --primary-dark: #5f005f;
    --button-primary: #4F94F1;
    --button-primary-dark: #3D7FD7;
    --button-primary-gradient: var(--affina-primary-gradient, linear-gradient(90deg, #4F94F1 0%, #7D7BFF 48%, #FF51FF 100%));
    --button-primary-gradient-hover: var(--affina-primary-gradient-hover, linear-gradient(90deg, #3D7FD7 0%, #6E6BEE 46%, #F616B9 100%));
    --button-primary-shadow: var(--affina-primary-shadow, 0 12px 24px rgba(79, 148, 241, 0.22), inset 0 7px 10px rgba(255, 255, 255, 0.32));
    --pink: #ff51ff;
    --pink-soft: #fff2fc;
    --section-soft: #faf4fb;
    --text: #171717;
    --muted: #6f6b76;
    --stroke: #ebdeef;
    --shadow: 0 12px 35px rgba(40, 12, 41, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
}

/* Figma refresh: shared home presentation */
.home-refresh {
    background: #fff;
}

.home-hero {
    min-height: clamp(560px, 72vw, 820px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #fff 100%),
        url("../images/final/hero-banner.png") center bottom / cover no-repeat;
    text-align: center;
    padding: clamp(110px, 13vw, 170px) 0 clamp(90px, 14vw, 150px);
}

.home-hero-inner {
    width: min(760px, 100%);
    margin: 0 auto;
}

.home-hero .eyebrow {
    width: fit-content;
    margin: 0 auto 18px;
}

.home-hero h1 {
    margin: 0;
    color: #072d41;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.home-hero h1 span,
.section-heading h2 span {
    background: linear-gradient(88deg, #ff51ff 0.34%, #f616b9 63.37%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero p:not(.eyebrow) {
    margin: 18px auto 24px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.3;
}

.home-protect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 940px;
    margin: 28px auto 0;
}

.home-protect-card {
    overflow: hidden;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.home-protect-media {
    aspect-ratio: 1.8;
    overflow: hidden;
}

.home-protect-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-protect-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.home-protect-body h3 {
    margin: 0 0 12px;
    color: #1c1a20;
    font-size: 24px;
    font-weight: 700;
}

.home-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-product-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fbff;
    color: #595463;
    font-size: 14px;
    font-weight: 600;
}

.home-product-chips img {
    width: 18px;
    height: 18px;
}

.home-protect-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ff9cf6;
    color: #ff51ff;
    font-weight: 700;
}

.home-testimonial-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.home-testimonial-card {
    min-height: 260px;
    padding: 22px;
    border: 1px solid rgba(79, 148, 241, 0.2);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf6ff 100%);
    box-shadow: 0 14px 28px rgba(79, 148, 241, 0.12);
}

.home-testimonial-card .stars {
    color: #ffc642;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.home-testimonial-card p {
    color: #45404b;
    font-size: 16px;
    line-height: 1.55;
}

.home-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.home-app-banner {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: url("../images/final/hero-banner.png") center / cover no-repeat;
    padding: clamp(42px, 6vw, 74px) 24px 0;
}

.home-app-banner .app-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.home-app-banner .app-copy h2 {
    color: #fff;
}

.home-app-banner .app-copy p,
.home-app-banner .app-stats {
    color: rgba(255, 255, 255, 0.9);
}

.home-app-preview {
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: min(420px, 72vw);
    transform: translateX(-50%);
}

@media (max-width: 991.98px) {
    .home-protect-grid,
    .home-testimonial-strip,
    .home-community-grid {
        grid-template-columns: 1fr;
    }

    .home-testimonial-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }

    .home-testimonial-card {
        min-width: min(82vw, 360px);
        scroll-snap-align: center;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 620px;
        padding-top: 92px;
    }

    .home-hero h1 {
        font-size: 40px;
    }

    .home-protect-body h3 {
        font-size: 22px;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Familjen Grotesk', sans-serif;
    color: var(--text);
    background: #fff;
}

.affina-route-home {
    overflow-x: hidden;
}

.affina-route-home .site-main {
    padding-top: 0 !important;
}

.affina-route-home .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020;
}

.affina-route-home .home-refresh {
    padding-top: 69px;
}

body.admin-bar .site-header {
    top: 32px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.affina-container {
    max-width: 1240px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(235, 222, 239, 0.7);
}

.site-header .affina-navbar {
    min-height: 68px;
    padding: 12px 0 !important;
}

.site-header .affina-container {
    max-width: 1280px;
    padding-inline: 48px;
}

.affina-navbar .nav-item {
    padding: 0;
}

.brand-logo img,
.footer-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.affina-navbar .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #45414d;
    padding: 10px 14px !important;
}

.affina-navbar .nav-link:hover,
.affina-navbar .nav-link:focus,
.affina-navbar .nav-link.show {
    color: var(--text);
}

.header-actions {
    min-height: 44px;
    gap: 44px !important;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.affina-phosphor-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: currentColor;
}

body.affina-search-open {
    overflow: hidden;
}

.affina-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 10, 17, 0.76);
    padding: 18px 14px 30px;
    overflow-y: auto;
}

.affina-search-panel {
    width: min(100%, 960px);
    margin: 0 auto;
}

.affina-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 0 16px;
    border: 2px solid #ff4df2;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.affina-search-bar-icon {
    color: #ff4df2;
}

.affina-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #1b1720;
}

.affina-search-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #171717;
    border-radius: 999px;
}

.affina-search-suggest,
.affina-search-results {
    margin-top: 14px;
    border-radius: 26px;
}

.affina-search-suggest {
    background: #fff;
    box-shadow: 0 22px 46px rgba(5, 5, 8, 0.28);
    padding: 20px 18px 14px;
}

.affina-search-suggest-title {
    margin: 0 0 10px;
    color: #d1ced6;
    font-size: 14px;
    font-weight: 600;
}

.affina-search-suggest-list {
    display: flex;
    flex-direction: column;
}

.affina-search-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #f0ebf2;
    background: transparent;
    color: #25212b;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.18s ease;
}

.affina-search-suggest-item:hover,
.affina-search-suggest-item:focus-visible {
    background: #f3f3f5;
}

.affina-search-suggest-item:last-child {
    border-bottom: 0;
}

.affina-search-suggest-item span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.affina-search-suggest-item i {
    color: #2f2a35;
    font-size: 20px;
}

.affina-search-results {
    padding: 24px 18px 28px;
    background: transparent;
    box-shadow: none;
}

.affina-search-results-head {
    margin-bottom: 22px;
}

.affina-search-results-head h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.affina-search-results-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 500;
}

.affina-search-results-inner {
    color: #fff;
}

.affina-search-page {
    background: #fff;
    padding: 32px 0 72px;
}

.affina-search-page-container {
    max-width: 1240px;
}

.affina-search-page-back {
    margin-bottom: 16px;
}

.affina-search-page-back a,
.affina-search-page-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid #fcc5ff;
    background: #fff;
    color: #ff51ff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.affina-search-results-inner--light {
    color: #1f1a24;
}

.affina-search-results-head--light h3 {
    color: #1f1a24;
}

.affina-search-results-head--light p {
    color: rgba(31, 26, 36, 0.62);
}

.affina-search-empty--light {
    color: rgba(31, 26, 36, 0.68);
}

.affina-search-page-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.affina-search-benefits,
.affina-search-topics {
    margin-top: 56px;
}

.affina-search-benefits h2,
.affina-search-topics h2 {
    margin: 0 0 24px;
    text-align: center;
    color: #1c1a20;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.affina-search-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.affina-search-benefit-card {
    min-height: 176px;
    padding: 24px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    text-align: center;
}

.affina-search-benefit-card i {
    display: inline-flex;
    margin-bottom: 12px;
    color: #ff51ff;
    font-size: 24px;
}

.affina-search-benefit-card h3 {
    margin: 0 0 10px;
    color: #1c1a20;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.affina-search-benefit-card p {
    margin: 0;
    color: rgba(28, 26, 32, 0.68);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.affina-search-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.affina-search-topic-card {
    display: block;
    text-decoration: none;
}

.affina-search-topic-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f6f1f8;
}

.affina-search-topic-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.affina-search-topic-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(134, 36, 192, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.affina-search-topic-title {
    margin-top: 12px;
    color: #1c1a20;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.affina-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.affina-search-card {
    min-height: 420px;
    border-radius: 22px;
    background: #fff;
    color: #16131a;
    overflow: hidden;
}

.affina-search-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
}

.affina-search-logo {
    width: 92px;
    height: 28px;
    object-fit: contain;
    object-position: left center;
}

.affina-search-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffe28a;
    color: #7b5b00;
    font-size: 11px;
    font-weight: 700;
}

.affina-search-card-body {
    padding: 0 18px 20px;
}

.affina-search-card-body h4 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.affina-search-card-body p {
    min-height: 64px;
    margin: 0 0 12px;
    color: #7c7785;
    font-size: 14px;
    line-height: 1.5;
}

.affina-search-term {
    margin-bottom: 18px;
    color: #7c7785;
    font-size: 16px;
}

.affina-search-price {
    margin-bottom: 18px;
    color: #151219;
    font-size: 28px;
    font-weight: 700;
}

.affina-search-price span {
    color: #7c7785;
    font-size: 16px;
    font-weight: 400;
}

.affina-search-buy,
.affina-search-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.affina-search-buy {
    min-height: 50px;
    margin-bottom: 14px;
    border: 1px solid #ffb3fb;
    color: #ff40ef;
}

.affina-search-detail {
    min-height: 44px;
    color: #54545b;
}

.affina-search-empty {
    padding: 36px 20px;
    text-align: center;
    color: #7c7785;
    font-size: 18px;
    font-weight: 600;
}

.lang-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lang-link span {
    font-weight: 500;
}

.btn-pill {
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    border-color: transparent;
    background: var(--button-primary-gradient);
    box-shadow: var(--button-primary-shadow);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: transparent;
    background: var(--button-primary-gradient-hover);
    box-shadow: 0 10px 20px rgba(246, 22, 185, 0.18), inset 0 7px 10px rgba(255, 255, 255, 0.24);
}

.btn-outline-primary {
    --bs-btn-color: #ff51ff;
    --bs-btn-border-color: #ff51ff;
    --bs-btn-hover-color: #ff51ff;
    --bs-btn-hover-bg: #fff3fe;
    --bs-btn-hover-border-color: #ff51ff;
    --bs-btn-focus-shadow-rgb: 255, 81, 255;
    --bs-btn-active-color: #ff51ff;
    --bs-btn-active-bg: #fff3fe;
    --bs-btn-active-border-color: #ff51ff;
    --bs-btn-disabled-color: #ff51ff;
    --bs-btn-disabled-border-color: #ff51ff;
}

.header-cta {
    color: #ff51ff;
    border-color: #ff51ff;
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.mega-menu {
    position: fixed;
    top: 76px;
    left: 50%;
    right: auto;
    width: min(100%, 1600px) !important;
    padding: 0;
    margin-top: 0 !important;
    z-index: 1010;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 40px rgba(29, 19, 44, 0.18);
    background: #f5f3f6;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    display: block;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

body.admin-bar .mega-menu {
    top: 108px;
}

.mega-menu-inner {
    background: #f5f3f6;
    padding: 0px 36px;
}

.mega-col.right-border {
    border-right: 1px solid #d8d2dc;
}

.mega-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #67616e;
}

.mega-link-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mega-link-item strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mega-link-item small {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.mega-icon {
    width: 42px;
    height: 42px;
    color: #4F94F1;
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-footer {
    background: #f1eef2;
    border-top: 1px solid #ddd5e1;
    padding: 18px 16px;
}

.mega-footer-link {
    color: var(--pink);
    font-size: 15px;
    font-weight: 700;
}

.affina-offcanvas {
    width: min(88vw, 380px);
}

.mobile-menu>li+li {
    border-top: 1px solid #f0e8f3;
}

.mobile-menu-link {
    width: 100%;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text);
    background: none;
    border: 0;
}

.menu-group {
    padding: 8px 0 16px;
}

.menu-group h6 {
    font-weight: 800;
    color: #797380;
    margin-bottom: 12px;
}

.mobile-submenu-group a {
    display: flex;
    padding: 9px 0;
    color: #413d48;
    align-items: center;
    gap: 12px;
}

.mobile-submenu-group a > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.mobile-submenu-group a > span:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-space-top {
    padding: 42px 0 70px;
}

.hero-section {
    background: linear-gradient(180deg, #C4E2FB 0%, #FCFCFD 100%);
}

.section-space {
    padding: 70px 0;
}

.section-soft {
    background: var(--section-soft);
}

.online-experience {
    background: #fff;
}

.hero-copy {
    max-width: 540px;
}

.eyebrow {
    color: #645e68;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #53db92;
    display: inline-block;
}

.hero-copy h1,
.section-heading h2,
.app-copy h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-copy h1 span,
.section-heading span {
    color: var(--pink);
    font-family: "Familjen Grotesk", sans-serif;
    font-style: normal;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
}

.section-heading span {
    background: linear-gradient(90deg, #FF51FF 0.34%, #F616B9 63.37%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-style: normal;
    -webkit-text-fill-color: transparent;
}

.hero-copy h1 .hero-title-line:not(.hero-title-accent) {
    color: inherit;
    font-style: normal;
}

.hero-copy h1 .hero-title-accent {
    background: linear-gradient(90deg, #FF51FF 0.34%, #F616B9 63.37%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-style: normal;
    -webkit-text-fill-color: transparent;
}

.hero-copy p,
.section-heading p,
.app-copy p,
.footer-signup p,
.footer-contact p {
    color: var(--muted);
}

.hero-copy p {
    font-size: 18px;
    margin-bottom: 28px;
}

.btn-main {
    min-width: 166px;
}

.image-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-banner {
    background: transparent;
}

.hero-banner img {
    min-height: 340px;
    object-fit: cover;
}

.section-heading h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-heading.narrow {
    max-width: 780px;
    margin-inline: auto;
}

.protect-card,
.testimonial-card,
.app-card {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.protect-card {
    overflow: hidden;
}

.card-media.tall img {
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 26px 22px 22px;
}

.card-content h3,
.experience-item h3,
.footer-links h4,
.footer-signup h3 {
    font-weight: 800;
}

.card-content h3 {
    font-size: 30px;
    margin-bottom: 18px;
}

.product-list {
    row-gap: 0;
    margin-bottom: 24px;
}

.product-list a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #5f5968;
    font-size: 16px;
    padding: 4px 0;
}

.product-list i {
    color: #4F94F1;
}

.testimonial-card {
    padding: 24px;
    background: transparent;
}

.stars {
    color: #f6a400;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial-card p {
    color: #524d59;
    min-height: 92px;
    margin-bottom: 20px;
}

.user-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-meta img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-meta strong,
.user-meta span {
    display: block;
}

.user-meta span {
    color: #8b8392;
    font-size: 14px;
}

.overlay-card {
    position: relative;
    display: block;
}

.community-card img {
    width: 100%;
    height: 291px;
    object-fit: cover;
}

.overlay-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 122, 161, 0.01) 55.66%, rgba(61, 122, 161, 0.48) 100%);
}

.badge-label,
.overlay-content {
    position: absolute;
    z-index: 2;
}

.badge-label {
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 103px;
    padding: 7px 10px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #ff51ff;
    background: #fcfdff;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.03),
        inset 0 -5px 7px rgba(191, 207, 246, 0.56),
        inset 0 -66px 33px rgba(255, 255, 255, 0.1);
}

.badge-label.secondary {
    background: #9d6cff;
}

.badge-label.tertiary {
    background: #d345d8;
}

.overlay-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 32px;
    max-width: 860px;
    margin-inline: auto;
}

.experience-item {
    text-align: center;
}

.experience-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: #ECF6FF;
    color: #4F94F1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.experience-item h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.experience-item p {
    max-width: 300px;
    margin: 0 auto;
    color: var(--muted);
}

.experience-curve {
    align-self: top;
    opacity: 0.75;
}

.app-card {
    padding: 48px;
    background: linear-gradient(90deg, #FCD0FF 0%, #FFE2FF 100%);
    border: none;
    box-shadow: none;
}

.app-copy h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.store-buttons img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.app-preview {
    max-height: 420px;
    margin-inline: auto;
}

.app-stats {
    font-size: 16px;
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #8a7f8f;
}

.partners-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 28px;
    align-items: center;
}

.partners-logos img {
    max-height: 44px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.site-footer {
    margin-top: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.16) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%),
        linear-gradient(180deg, #FFFFFF 0%, #98C6ED 78%, #81ABE5 91%, #81ABE5 100%);
    border-top: 0;
}

.footer-top {
    padding: 0;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.subscribe-form .form-control {
    height: 48px;
    border-radius: 999px;
    border: 1px solid #eadff0;
    padding-inline: 18px;
}

.footer-links a,
.footer-links p,
.license {
    display: block;
    color: #595463;
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 18px;
}

.certification {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #efc8e8;
    color: var(--pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    padding: 16px 0 28px;
    border-top: 0;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 1199.98px) {
    .hero-copy h1 {
        font-size: 48px;
    }

    .card-content h3,
    .overlay-content,
    .experience-item h3 {
        font-size: 26px;
    }

    .partners-logos {
        grid-template-columns: repeat(4, minmax(90px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .section-space-top {
        padding: 24px 0 44px;
    }

    .section-space {
        padding: 44px 0;
    }

    .brand-logo img,
    .footer-logo {
        height: 26px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-banner img {
        min-height: 220px;
    }

    .card-media.tall img,
    .community-card img {
        height: 240px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-item h3,
    .card-content h3,
    .overlay-content,
    .app-copy h2 {
        font-size: 22px;
    }

    .app-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .partners-slider {
        gap: 8px;
    }

    .partners-logos {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
        gap: 20px;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .affina-container {
        padding-inline: 16px;
    }

    .mobile-nav-icons {
        margin-right: -4px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .hero-copy h1 {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-title-line {
        display: block;
        white-space: normal;
    }

    .hero-copy p,
    .section-heading p,
    .experience-item p,
    .app-copy p,
    .testimonial-card p {
        font-size: 16px;
    }

    .footer-links a,
    .footer-links p,
    .license,
    .footer-signup p,
    .footer-contact p {
        font-size: 16px;
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .btn-pill {
        padding: 11px 18px;
        font-size: 13px;
    }

    .hero-banner img {
        min-height: 150px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .protect-card,
    .testimonial-card,
    .app-card {
        border-radius: 18px;
    }

    .card-media.tall img,
    .community-card img {
        height: 170px;
    }

    .card-content {
        padding: 16px 14px 14px;
    }

    .card-content h3,
    .experience-item h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .overlay-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 16px;
    }

    .badge-label {
        top: 12px;
        left: 12px;
        font-size: 10px;
        padding: 6px 10px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .testimonial-card p {
        min-height: auto;
        margin-bottom: 14px;
    }

    .user-meta img {
        width: 36px;
        height: 36px;
    }

    .experience-icon {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 28px;
        margin-bottom: 14px;
    }

    .app-stats {
        font-size: 13px;
    }

    .store-buttons img {
        height: 34px;
    }

    .app-preview {
        max-height: 220px;
    }

    .partners-logos {
        grid-template-columns: repeat(3, minmax(60px, 1fr));
        gap: 14px;
    }

    .partners-logos img {
        max-height: 28px;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
    }

    .footer-top {
        padding: 0;
    }

    .footer-links h4,
    .footer-signup h3 {
        font-size: 16px;
    }

    .social-links a {
        width: 34px;
        height: 34px;
    }
}

.footer-signup{
    margin-top: 48px;
}

.footer-signup-form{
    display:flex; justify-content:flex-end;
}

.btn-register {
    flex:1;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 6px;
    width: 40%;
    height: 44px;
    background: var(--button-primary-gradient);
    border: 1px solid transparent;
    color: #FFFFFF;
    box-shadow: var(--button-primary-shadow);
    border-radius: 9999px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.btn-register:hover,
.btn-register:focus,
.btn-register:active {
    background: var(--button-primary-gradient-hover);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(246, 22, 185, 0.18), inset 0 7px 10px rgba(255, 255, 255, 0.24);
}

.footer-signup-input{
    flex:2; margin-right:16px;
    border:none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 6px;
    width: 60%;
    height: 44px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.footer-signup-input.is-invalid{
    outline: 1px solid #d92d20;
}

.footer-signup-feedback{
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #595463;
}

.footer-signup-feedback.is-error{
    color: #b42318;
}

.footer-signup-feedback.is-success{
    color: #027a48;
}

.logo-item {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.carousel-item {
  padding: 20px 0;
  transition: transform 0.6s ease-in-out;
}

.nav-link:hover{
    color: var(--pink)!important;
}

.menu-phone-color{
   color: var(--pink)!important;
}

.mmenuitem:hover{
    color: var(--pink)!important;
}

.mmenuitemh:hover{
    color: var(--pink)!important;
}

.footer-links h4{
    margin-top: 18px;
}

.footer-signup h3,
.footer-links h4 {
    color: #1C1A20 !important;
}

@media (max-width: 767.98px) {
    .affina-search-overlay {
        padding: 12px 10px 22px;
    }

    .affina-search-bar {
        gap: 10px;
        min-height: 52px;
        padding: 0 10px 0 14px;
        border-width: 1.5px;
    }

    .affina-search-input {
        font-size: 16px;
        font-weight: 500;
    }

    .affina-search-close {
        width: 32px;
        height: 32px;
    }

    .affina-search-suggest-title {
        font-size: 13px;
    }

    .affina-search-suggest-item {
        padding: 14px 0;
        font-size: 16px;
    }

    .affina-search-results-head h3 {
        font-size: 24px;
    }

    .affina-search-page {
        padding: 22px 0 44px;
    }

    .affina-search-benefits,
    .affina-search-topics {
        margin-top: 40px;
    }

    .affina-search-benefits h2,
    .affina-search-topics h2 {
        font-size: 28px;
    }

    .affina-search-benefits-grid,
    .affina-search-topics-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .affina-search-topic-media img {
        height: 200px;
    }

    .affina-search-topic-title {
        font-size: 20px;
    }

    .affina-search-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .affina-search-card {
        min-height: auto;
    }

    .affina-search-card-body h4 {
        font-size: 20px;
    }

    .affina-search-price {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .affina-search-overlay {
        padding: 16px 20px 28px;
    }

    .affina-search-panel {
        width: min(100%, 720px);
    }

    .affina-search-bar {
        min-height: 56px;
        padding: 0 14px;
    }

    .affina-search-input {
        font-size: 16px;
        font-weight: 500;
    }

    .affina-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affina-search-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affina-search-topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Refresh overrides kept last for cascade */
.home-refresh .home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --home-hero-header-offset: 70px;
    min-height: calc(100vh - var(--home-hero-header-offset));
    min-height: calc(100svh - var(--home-hero-header-offset));
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 8%, rgba(79, 148, 241, 0.18), transparent 30%),
        radial-gradient(ellipse at 76% 100%, rgba(255, 81, 255, 0.14), transparent 38%),
        #fff;
    text-align: center;
    padding: 0;
}

.home-refresh .home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 78%);
    pointer-events: none;
}

.home-hero-visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.home-hero-bg,
.home-hero-hand {
    position: absolute;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.home-hero-bg-base {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.home-hero-bg-light {
    left: 50%;
    bottom: 0;
    width: max(100%, 1814px);
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.6;
    mix-blend-mode: soft-light;
    transform: translateX(-50%);
}

.home-hero-hand-digital {
    top: clamp(-460px, -24vw, -240px);
    right: clamp(-260px, -12vw, -90px);
    width: clamp(560px, 56vw, 1080px);
    transform: rotate(-28deg);
    transform-origin: center center;
}

.home-hero-hand-human {
    left: clamp(24px, 3vw, 56px);
    bottom: clamp(-116px, -3.2vw, -44px);
    width: clamp(420px, 56vw, 965px);
    transform: rotate(5deg);
}

.home-refresh .home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    transform: translateY(-4px);
}

.home-refresh .home-protect {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}

.home-refresh .home-testimonials {
    background:
        radial-gradient(ellipse at 78% 0%, rgba(255, 81, 255, 0.16), transparent 42%),
        linear-gradient(180deg, #fff6ff 0%, #fff 78%);
}

.home-refresh .home-hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.56px;
}

.home-refresh h1 {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 22%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(0deg, #072D41, #072D41);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: "Familjen Grotesk", sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.56px;
    text-shadow: none;
    filter: none;
}

.home-refresh h2 {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(0deg, #072D41, #072D41);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: "Familjen Grotesk", sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.56px;
    text-shadow: none;
    filter: none;
}

.home-refresh h1 span,
.home-refresh h2 span {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.18) 22%, rgba(255, 255, 255, 0) 46%),
        var(--main-gradient, linear-gradient(90deg, #FF51FF 0.34%, #F616B9 63.37%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

.home-protect-grid,
.home-testimonial-strip,
.home-community-grid {
    display: grid;
    gap: 24px;
}

.home-protect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 28px);
    max-width: 820px;
    margin: 36px auto 0;
}

.home-protect .affina-container {
    max-width: 960px;
}

.home-testimonial-strip,
.home-community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.home-community-grid {
    gap: 22px;
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
}

.home-community-grid .community-card {
    border-radius: 20px;
}

.home-refresh .home-testimonial-strip {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -120px;
    padding: 8px 120px 18px;
    scroll-padding-inline: 120px;
    scrollbar-width: none;
}

.home-refresh .home-testimonials,
.home-refresh .home-testimonials .affina-container {
    overflow: visible;
}

.home-refresh .home-testimonial-strip::-webkit-scrollbar {
    display: none;
}

.home-protect-card,
.home-testimonial-card {
    border: 1px solid rgba(32,32,32,0.08);
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-protect-card {
    position: relative;
    padding: 14px 14px 24px;
    border: 0;
    box-shadow: 0 7px 14px rgba(1, 9, 83, 0.04), inset 0 -4px 14px rgba(58, 126, 252, 0.065);
}

.home-protect-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-radius: 24px;
}

.home-protect-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-protect-ai-badge {
    position: absolute;
    top: 22px;
    left: 42px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 86px;
    pointer-events: none;
}

.home-protect-ai-badge strong {
    display: block;
    width: fit-content;
    background: linear-gradient(180deg, #e986ee 0%, #ff51ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 600;
    line-height: 1;
    transform: rotate(6deg);
}

.home-protect-ai-badge span {
    color: #4f94f1;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.06px;
}

.home-protect-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0 18px;
    text-align: left;
}

.home-protect-summary h3 {
    margin: 0;
    color: #312e2e;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.home-protect-summary {
    flex: 1 1 auto;
    min-width: 0;
}

.home-protect-summary p {
    margin: 4px 0 0;
    color: #8e8e93;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.home-product-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: wrap;
    gap: 10px 12px;
}

.home-product-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.home-product-chips img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.home-protect-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 96px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.6px solid #ff51ff;
    color: #ff51ff;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.home-testimonial-card {
    min-height: 260px;
    padding: 22px;
    background: linear-gradient(180deg, #fff 0%, #eaf6ff 100%);
}

.home-testimonial-card .stars {
    color: #ffc642;
}

.home-refresh .home-testimonial-card {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    flex: 0 0 min(720px, 82vw);
    gap: 24px;
    align-items: stretch;
    min-height: 320px;
    padding: 0 22px 0 0;
    border: 1px solid #ecf6ff;
    border-radius: 32px;
    background: linear-gradient(180deg, #fff 0%, #e0f3ff 100%);
    box-shadow: 0 12px 13px rgba(1, 9, 83, 0.04), inset 0 -5px 16px rgba(58, 126, 252, 0.08);
    scroll-snap-align: center;
}

.home-testimonial-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: 22px;
}

.home-testimonial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial-media > img {
    display: block;
}

.home-testimonial-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 10, 18, 0.05) 20%, rgba(13, 10, 18, 0.58) 100%);
}

.home-testimonial-logo {
    position: absolute;
    left: 12px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}

.home-testimonial-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-testimonial-logo:has(img[src*="dien-may-xanh-logo"]) {
    background: #08aeea;
}

.home-testimonial-logo img[src*="dien-may-xanh-logo"] {
    object-fit: cover;
}

.home-testimonial-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0;
}

.home-testimonial-card .stars {
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}

.home-testimonial-title {
    margin: 0 0 12px;
    color: #171717;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.home-refresh .home-testimonial-card p {
    margin: 0;
    color: #524d59;
    font-size: 16px;
    line-height: 1.5;
}

.home-testimonial-card .user-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-testimonial-card .user-meta img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.home-testimonial-card .user-meta strong {
    display: block;
    color: #404040;
    font-size: 18px;
    line-height: 1.25;
}

.home-testimonial-card .user-meta span {
    display: block;
    color: #404040;
    font-size: 15px;
    line-height: 1.35;
}

.home-testimonial-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.home-testimonial-arrow {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4f8ff7;
    font-size: 28px;
    line-height: 1;
}

.home-testimonial-dots {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.home-testimonial-dots span {
    width: 10px;
    height: 8px;
    border-radius: 999px;
    background: #c7c7c7;
}

.home-testimonial-dots span:first-child {
    width: 64px;
    background: #ff51ff;
}

.home-testimonial-dot {
    width: 10px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c7c7c7;
    cursor: pointer;
    transition:
        width 260ms ease-in-out,
        background-color 260ms ease-in-out;
}

.home-testimonial-dot.is-active {
    width: 64px;
    background: #ff51ff;
}

.home-app-banner {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 52vw, 680px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 4vw, 48px);
    background: url("../images/home/app/app-bg.png") center / cover no-repeat;
    border-radius: clamp(28px, 3vw, 48px);
    padding: clamp(42px, 5vw, 60px) 24px;
}

.home-app-preview {
    position: relative;
    z-index: 1;
    bottom: auto;
    left: auto;
    width: min(420px, 56vw);
    transform: none;
}

.home-app-banner .app-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
}

.home-app-banner .app-copy h2 {
    margin-bottom: 10px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 3px 4px rgba(96, 179, 235, 0.55);
}

.home-app-banner .app-copy h2 span {
    display: block;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.home-app-banner .app-copy p {
    max-width: 420px;
    margin: 0 auto 10px;
    color: #e4e4e4;
}

.home-app-banner .store-buttons img {
    height: 45px;
}

.home-app-banner .app-stats {
    margin-top: 8px !important;
    color: #171717;
}

@media (max-width: 991.98px) {
    .home-protect-grid,
    .home-community-grid {
        grid-template-columns: 1fr;
    }

    .home-protect-grid {
        max-width: 440px;
    }

    .home-refresh .home-testimonial-card {
        grid-template-columns: 150px minmax(0, 1fr);
        flex-basis: min(640px, 88vw);
        min-height: 300px;
        gap: 20px;
    }

    .home-testimonial-title {
        font-size: 22px;
    }

    .home-app-banner {
        min-height: 560px;
    }

    .home-app-preview {
        width: min(390px, 72vw);
    }

    .home-refresh .home-testimonial-card p {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .home-refresh .home-hero {
        --home-hero-header-offset: 70px;
        min-height: calc(100svh - var(--home-hero-header-offset));
        padding: 0 0 24px;
    }

    .home-hero-bg-light {
        width: 1280px;
        opacity: 0.52;
    }

    .home-hero-hand-digital {
        top: -176px;
        right: -156px;
        width: 430px;
        opacity: 0.78;
        transform: rotate(-28deg);
    }

    .home-hero-hand-human {
        left: -178px;
        bottom: -70px;
        width: 430px;
        opacity: 0.9;
    }

    .home-refresh .home-hero h1 {
        font-size: 34px;
    }

    .home-refresh .home-hero-inner {
        transform: translateY(-8px);
    }

    .home-protect-grid {
        gap: 24px;
        margin-top: 32px;
    }

    .home-protect-card {
        padding: 12px 12px 24px;
        border-radius: 24px;
    }

    .home-protect-media {
        height: 180px;
        border-radius: 22px;
    }

    .home-protect-ai-badge {
        top: 20px;
        left: 42px;
        width: 82px;
    }

    .home-protect-ai-badge strong {
        font-size: 24px;
    }

    .home-protect-ai-badge span {
        font-size: 10px;
    }

    .home-protect-body {
        align-items: flex-start;
        padding: 20px 0 18px;
    }

    .home-protect-summary h3 {
        font-size: 22px;
    }

    .home-protect-summary p {
        font-size: 14px;
    }

    .home-protect-link {
        min-width: 96px;
        min-height: 36px;
        padding-inline: 14px;
        font-size: 16px;
    }

    .home-product-chips {
        gap: 10px 12px;
    }

    .home-product-chips span {
        gap: 6px;
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
    }

    .home-product-chips img {
        width: 20px;
        height: 20px;
    }

    .home-refresh .home-testimonial-strip {
        gap: 18px;
        margin-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .home-refresh .home-testimonial-card {
        display: flex;
        flex-direction: column;
        flex-basis: 86vw;
        min-height: 0;
        padding: 0 18px 22px;
        border-radius: 24px;
    }

    .home-testimonial-media {
        height: 220px;
        min-height: 0;
        flex: 0 0 220px;
        margin-inline: -18px;
        border-radius: 22px 22px 0 0;
    }

    .home-testimonial-content {
        padding: 22px 0 0;
    }

    .home-testimonial-title {
        font-size: 21px;
    }

    .home-refresh .home-testimonial-card p {
        font-size: 15px;
    }

    .home-testimonial-card .user-meta strong {
        font-size: 18px;
    }

    .home-testimonial-card .user-meta span {
        font-size: 15px;
    }
}

/* Compact the refreshed home sections after the hero; the hero keeps its own scale. */
.home-refresh > section:not(.home-hero).section-space {
    padding: 52px 0;
}

.home-refresh > .home-testimonials.section-space {
    background: #fff;
}

.home-refresh > section:not(.home-hero) .section-heading h2 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.home-refresh > section:not(.home-hero) .section-heading p {
    max-width: 520px;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.45;
}

.home-protect .affina-container {
    max-width: 1040px;
}

.home-protect-grid {
    grid-template-columns: repeat(2, minmax(430px, 1fr));
    max-width: 920px;
    gap: 44px;
    margin-top: 28px;
}

.home-protect-card {
    padding: 0 0 22px;
    border-radius: 24px;
}

.home-protect-media {
    width: 100%;
    height: 170px;
    border-radius: 24px 24px 18px 18px;
}

.home-protect-ai-badge {
    top: 17px;
    left: 32px;
    width: 72px;
}

.home-protect-ai-badge strong {
    font-size: 21px;
}

.home-protect-ai-badge span {
    font-size: 9px;
}

.home-protect-body {
    gap: 16px;
    padding: 22px 20px 16px;
}

.home-protect-summary h3 {
    font-size: 20px;
    letter-spacing: 0;
    white-space: nowrap;
}

.home-protect-summary p {
    font-size: 13px;
}

.home-protect-link {
    min-width: 82px;
    min-height: 31px;
    padding: 7px 12px;
    font-size: 13px;
}

.home-product-chips {
    gap: 11px 16px;
    padding: 0 20px;
}

.home-product-chips span {
    gap: 8px;
    font-size: 12px;
}

.home-product-chips img {
    width: 17px;
    height: 17px;
}

.home-refresh .home-testimonial-strip {
    gap: 20px;
    margin-top: 24px;
}

.home-refresh .home-testimonial-card {
    grid-template-columns: 130px minmax(0, 1fr);
    flex-basis: min(620px, 82vw);
    min-height: 270px;
    gap: 18px;
    padding-right: 18px;
    border-radius: 24px;
}

.home-testimonial-media {
    border-radius: 18px;
}

.home-testimonial-content {
    gap: 14px;
    padding: 20px 0;
}

.home-testimonial-title {
    margin-bottom: 8px;
    font-size: 18px;
}

.home-refresh .home-testimonial-card p {
    font-size: 13px;
    line-height: 1.45;
}

.home-testimonial-card .stars {
    font-size: 14px;
}

.home-testimonial-card .user-meta img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.home-testimonial-card .user-meta strong {
    font-size: 14px;
}

.home-testimonial-card .user-meta span {
    font-size: 12px;
}

.home-community-grid {
    max-width: 790px;
    gap: 16px;
    margin-top: 24px;
}

.community-card img {
    height: 218px;
}

.home-community-grid .community-card {
    border-radius: 16px;
}

.badge-label {
    top: 12px;
    left: 12px;
    min-width: 78px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 8px;
}

.overlay-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 20px;
    line-height: 1.1;
}

.experience-grid {
    max-width: 760px;
    margin-inline: auto;
}

.experience-icon {
    width: 62px;
    height: 62px;
    font-size: 28px;
}

.experience-item h3 {
    font-size: 22px;
}

.experience-item p {
    max-width: 260px;
    font-size: 14px;
}

.home-app-banner {
    min-height: 510px;
    gap: 34px;
    padding: 44px 20px;
}

.home-app-banner .app-copy h2 {
    font-size: 34px;
}

.home-app-banner .app-copy p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.45;
}

.home-app-banner .store-buttons img {
    height: 36px;
}

.home-app-banner .app-stats {
    font-size: 14px;
}

.home-app-preview {
    width: min(315px, 46vw);
}

.partners-legacy {
    display: none;
}

.partner-ecosystem .affina-container {
    max-width: 940px;
}

.partner-ecosystem-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 24px;
    margin: 28px auto 0;
}

.partner-ecosystem-column,
.partner-ecosystem-stack {
    display: grid;
    gap: 20px;
}

.partner-ecosystem-column-left {
    grid-template-rows: repeat(2, minmax(160px, 1fr));
}

.partner-ecosystem-column-right {
    grid-template-rows: repeat(3, minmax(102px, 1fr));
}

.partner-ecosystem-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: auto;
    min-height: 0;
    padding: 18px 28px;
    overflow: hidden;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(1, 9, 83, 0.04), inset 0 -4px 14px rgba(58, 126, 252, 0.075);
}

.partner-ecosystem-card-large {
    min-height: 0;
}

.partner-ecosystem-card h3 {
    margin: 0;
    color: #4F94F1;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.partner-ecosystem-card img {
    display: block;
    width: auto;
    max-width: 88%;
    max-height: 86px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .home-refresh > section:not(.home-hero).section-space {
        padding: 42px 0;
    }

    .home-refresh > section:not(.home-hero) .section-heading h2 {
        font-size: 28px;
    }

    .home-protect .affina-container {
        max-width: 540px;
    }

    .home-protect-grid {
        max-width: 360px;
    }

    .home-community-grid {
        max-width: 360px;
    }

    .community-card img {
        height: 238px;
    }

    .home-app-preview {
        width: min(330px, 68vw);
    }

    .partner-ecosystem .affina-container {
        max-width: 560px;
    }

    .partner-ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .partner-ecosystem-card {
        padding: 22px 24px;
    }
}

@media (max-width: 575.98px) {
    .home-refresh > section:not(.home-hero).section-space {
        padding: 36px 0;
    }

    .home-refresh > section:not(.home-hero) .section-heading h2 {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .home-refresh > section:not(.home-hero) .section-heading p {
        font-size: 14px;
    }

    .home-protect-grid {
        margin-top: 24px;
    }

    .home-protect-summary h3 {
        font-size: 18px;
    }

    .home-protect-summary p,
    .home-product-chips span {
        font-size: 12px;
    }

    .home-refresh .home-testimonial-card {
        flex-basis: 84vw;
    }

    .home-testimonial-title {
        font-size: 18px;
    }

    .home-refresh .home-testimonial-card p {
        font-size: 13px;
    }

    .home-app-banner {
        min-height: 500px;
    }

    .home-app-banner .app-copy h2 {
        font-size: 24px;
    }
}

/* Figma video hero refresh - final cascade */
@media (min-width: 1400px) {
    .affina-route-home .affina-container {
        max-width: min(1600px, calc(100vw - 320px));
    }

    .affina-route-home .site-header .affina-container {
        max-width: calc(100vw - 320px);
        padding-inline: 0;
    }
}

.affina-route-home .site-header .navbar-nav,
.affina-route-home .site-header .header-actions {
    flex-wrap: nowrap;
}

.affina-route-home .site-header .nav-link,
.affina-route-home .site-header .header-cta,
.affina-route-home .site-header .lang-link {
    white-space: nowrap;
}

.affina-route-home .site-header .header-actions {
    gap: 24px !important;
}

.home-refresh .home-hero {
    min-height: calc(100vh - var(--home-hero-header-offset, 70px));
    min-height: calc(100svh - var(--home-hero-header-offset, 70px));
    align-items: center;
    text-align: left;
    background: #dff5ff;
}

.home-refresh .home-hero::after {
    display: none;
}

.home-refresh .home-hero .affina-container {
    position: relative;
    z-index: 1;
}

.home-refresh .home-hero-visual {
    background: url("../images/home/hero-video/hero-sky.png") center bottom / cover no-repeat;
}

.home-refresh .home-hero-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 40vw);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
    width: 100%;
    max-width: 100%;
    transform: none;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.home-refresh .home-hero h1 {
    font-size: clamp(42px, 4vw, 52px);
    letter-spacing: -1.12px;
}

.home-refresh .home-hero p {
    margin: 0;
    color: #183b4e;
    font-size: clamp(16px, 1.38vw, 20px);
    line-height: 1.3;
}

.home-refresh .home-hero .btn-main {
    width: 180px;
    min-height: 48px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 16px 28px -12px rgba(215, 40, 175, 0.32);
}

.home-refresh .home-hero .btn-main::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: url("../images/home/hero-video/hero-button-icon.svg") center / contain no-repeat;
}

.home-hero-video-shell {
    width: clamp(360px, 40vw, 620px);
    min-width: 0;
    justify-self: end;
    position: relative;
    padding-top: 27px;
}

.home-hero-video-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.home-hero-video-layer-back {
    top: 0;
    width: 82%;
    height: 13px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(7px);
}

.home-hero-video-layer-front {
    top: 13px;
    width: 92%;
    height: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.home-hero-video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 11px 11px 0 0;
    background: #fff;
    box-shadow: 0 20px 36px -28px rgba(7, 45, 65, 0.35);
}

.home-hero-video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.home-hero-video-frame.is-ended::after {
    opacity: 1;
}

.home-hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-video-replay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 40px;
    padding: 10px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.home-hero-video-sound {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.home-hero-video-replay[hidden] {
    display: none;
}

@media (max-width: 991.98px) {
    .home-refresh .home-hero {
        padding: 56px 0 72px;
    }

    .home-refresh .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .home-hero-copy {
        align-items: center;
    }

    .home-hero-video-shell {
        width: min(100%, 720px);
        min-width: 0;
        justify-self: center;
    }
}

@media (max-width: 575.98px) {
    .home-refresh .home-hero {
        min-height: auto;
        padding: 44px 0 56px;
    }

    .home-refresh .home-hero-inner {
        gap: 32px;
    }

    .home-refresh .home-hero h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .home-refresh .home-hero .btn-main {
        width: 168px;
    }
}

.home-refresh > section:not(.home-hero).section-space {
    padding: 80px 0;
}

.home-refresh > section:not(.home-hero) .section-heading {
    margin-bottom: 40px;
}

.home-protect-grid {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .home-refresh > section:not(.home-hero).section-space {
        padding: 64px 0;
    }

    .home-refresh > section:not(.home-hero) .section-heading {
        margin-bottom: 32px;
    }
}

@media (max-width: 575.98px) {
    .home-refresh > section:not(.home-hero).section-space {
        padding: 52px 0;
    }
}

body,
body *:not(h1):not(h1 *):not(h2):not(h2 *) {
    font-family: "Be Vietnam Pro", sans-serif;
}

h1,
h1 *,
h2,
h2 * {
    font-family: "Familjen Grotesk", sans-serif;
}

.site-header .affina-navbar .nav-link {
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 10px !important;
}

.site-header .lang-link {
    font-size: 14px;
    line-height: 1.2;
}

.site-header .header-cta {
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
    line-height: 1.15;
}

.site-header .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.site-footer {
    font-size: 14px;
}

.site-footer .footer-links h4,
.site-footer .footer-signup h3 {
    font-size: 18px;
    line-height: 1.25;
}

.site-footer .footer-links a,
.site-footer .footer-links p,
.site-footer .footer-signup p,
.site-footer .footer-contact p,
.site-footer .license {
    font-size: 14px;
    line-height: 1.55;
}

.site-footer .footer-bottom {
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .site-footer .footer-links h4,
    .site-footer .footer-signup h3 {
        font-size: 16px;
    }

    .site-footer .footer-links a,
    .site-footer .footer-links p,
    .site-footer .footer-signup p,
    .site-footer .footer-contact p,
    .site-footer .license {
        font-size: 13px;
    }
}

.home-refresh .home-protect,
.home-refresh > .home-protect.section-space {
    background: #fff !important;
}

/* Home testimonials split: enterprise + personal */
.home-refresh {
    --home-testimonial-old-card-width: min(780px, calc(100vw - 48px));
    --home-testimonial-ticker-gap: 20px;
}

.home-refresh .home-testimonial-section-title + h2 {
    display: none;
}

.home-refresh .home-testimonials,
.home-refresh .home-testimonials .affina-container {
    overflow: visible;
}

.home-refresh .home-testimonials .section-heading {
    margin-bottom: 36px;
}

.home-refresh .home-testimonials--enterprise .affina-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    padding: 52px clamp(24px, 4vw, 72px) 34px;
    border-radius: 28px;
    background: #e7f1ff;
}

.home-refresh .home-testimonial-strip {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(24px, calc((100vw - min(1120px, calc(100vw - 48px))) / 2));
    overflow-x: auto;
    overflow-y: visible;
}

.home-refresh .home-testimonials--enterprise .home-testimonial-strip {
    display: flex;
    position: relative;
    justify-content: center;
    width: 100%;
    height: var(--home-testimonial-active-height, auto);
    margin: 0;
    padding: 0;
    overflow: visible;
    transition: height 360ms ease-in-out;
}

.home-refresh .home-testimonials--enterprise .home-testimonial-card {
    width: min(860px, 100%);
    flex: 0 1 auto;
    min-height: 0;
    height: var(--home-testimonial-active-height, auto);
    transition:
        opacity 360ms ease-in-out,
        transform 360ms ease-in-out;
}

.home-refresh .home-testimonials--single .home-testimonial-card {
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
}

.home-refresh .home-testimonials--single .home-testimonial-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.home-refresh .home-testimonials--single .home-testimonial-card:not(.is-active) {
    position: absolute;
    inset: 0;
    margin: auto;
}

.home-refresh .home-testimonials--single .home-testimonial-card[hidden] {
    display: grid;
}

.home-refresh .home-testimonials--personal {
    padding-top: 0;
}

.home-testimonial-ticker {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
}

.home-testimonial-ticker-track {
    display: flex;
    width: max-content;
    gap: var(--home-testimonial-ticker-gap);
    animation: home-testimonial-ticker 28s linear infinite;
}

.home-testimonial-ticker:hover .home-testimonial-ticker-track {
    animation-play-state: paused;
}

.home-testimonial-ticker-group {
    display: flex;
    gap: var(--home-testimonial-ticker-gap);
}

.home-refresh .home-testimonials--personal .home-testimonial-card {
    width: var(--home-testimonial-old-card-width);
    flex: 0 0 var(--home-testimonial-old-card-width);
}

@keyframes home-testimonial-ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - (var(--home-testimonial-ticker-gap) / 2)));
    }
}

@media (max-width: 575.98px) {
    .home-refresh {
        --home-testimonial-ticker-gap: 16px;
    }

    .home-protect .affina-container {
        max-width: 100%;
        padding-inline: 24px;
    }

    .home-protect-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: none;
        margin-inline: auto;
        padding-inline: 0;
        gap: 28px;
        overflow: visible;
    }

    .home-protect-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 0 0 18px;
        overflow: hidden;
    }

    .home-protect-media {
        height: 124px;
        border-radius: 20px 20px 16px 16px;
    }

    .home-protect-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 16px 14px 10px;
    }

    .home-protect-summary {
        min-width: 0;
    }

    .home-protect-summary h3 {
        white-space: normal;
        font-size: 15px;
        line-height: 1.2;
    }

    .home-protect-summary p {
        font-size: 11px;
        line-height: 1.3;
    }

    .home-protect-link {
        min-width: 74px;
        min-height: 28px;
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .home-product-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
        padding-inline: 14px;
    }

    .home-product-chips span {
        min-width: 0;
        font-size: 10px;
        line-height: 1.25;
    }

    .home-product-chips img {
        width: 15px;
        height: 15px;
    }

    .home-refresh > .home-protect.section-space {
        padding-bottom: 68px;
    }

    .home-refresh .home-testimonial-strip {
        padding-inline: 24px;
        gap: 24px;
        scroll-padding-inline: 24px;
        overflow-x: auto;
        overflow-y: visible;
    }

    .home-refresh .home-testimonials--enterprise .affina-container {
        width: calc(100% - 32px);
        padding: 34px 16px 24px;
        border-radius: 24px;
    }

    .home-refresh .home-testimonials--enterprise .home-testimonial-strip {
        padding: 0;
    }

    .home-refresh .home-testimonials--enterprise .home-testimonial-card {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }

    .home-refresh .home-testimonial-card {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        flex: 0 0 calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        min-height: 0;
        padding: 0 16px 18px;
        overflow: hidden;
        scroll-snap-align: center;
    }

    .home-refresh .home-testimonials--personal .home-testimonial-card {
        width: calc(100vw - 48px);
        flex-basis: calc(100vw - 48px);
    }

    .home-testimonial-media {
        width: calc(100% + 32px);
        height: 180px;
        flex: 0 0 180px;
        margin-inline: -16px;
        border-radius: 22px 22px 0 0;
    }

    .home-testimonial-content {
        padding: 18px 0 0;
        gap: 12px;
    }

    .home-testimonial-title {
        font-size: 17px;
        line-height: 1.2;
    }

    .home-refresh .home-testimonial-card p {
        font-size: 12px;
        line-height: 1.45;
    }

    .home-testimonial-card .user-meta strong {
        font-size: 13px;
    }

    .home-testimonial-card .user-meta span {
        font-size: 11px;
    }
}

@media (max-width: 991.98px) {
    .affina-route-home {
        --mobile-header-safe-top: max(env(safe-area-inset-top, 0px), 24px);
        --mobile-header-height: 58px;
    }

    .affina-route-home .site-header {
        padding-top: var(--mobile-header-safe-top);
    }

    .affina-route-home .site-header .affina-navbar {
        min-height: var(--mobile-header-height);
        padding-block: 8px !important;
    }

    .affina-route-home .home-refresh {
        padding-top: calc(var(--mobile-header-safe-top) + var(--mobile-header-height));
    }
}

@media (max-width: 575.98px) {
    .affina-route-home {
        --mobile-header-safe-top: max(env(safe-area-inset-top, 0px), 26px);
        --mobile-header-height: 56px;
    }

    .affina-route-home .site-header .affina-container {
        padding-inline: 24px;
    }

    .affina-route-home .brand-logo img {
        height: 28px;
    }

    .affina-route-home .site-header .icon-btn {
        width: 34px;
        height: 34px;
    }
}

/* Keep the protection cards centered when the desktop two-column layout no longer fits. */
@media (min-width: 576px) and (max-width: 991.98px) {
    .home-protect-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 430px;
        margin-inline: auto;
    }

    .home-protect-card {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   Home — "Bạn muốn bảo vệ cho ai?" v2 (redesign: two doors with real photos)
   New class names (hp2-*) so the older .home-protect-* overrides don't apply.
   ========================================================================== */
.home-protect--v2 { background:linear-gradient(180deg, #fff 0%, var(--pink-soft) 100%); }
.home-protect--v2 .hp2-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:28px; max-width:1100px; margin:40px auto 0; }
.home-protect--v2 .hp2-card { display:flex; flex-direction:column; overflow:hidden; border-radius:var(--affina-radius-xl); background:var(--affina-surface); box-shadow:var(--shadow); }
.home-protect--v2 .hp2-media { position:relative; margin:0; }
.home-protect--v2 .hp2-media img { display:block; width:100%; aspect-ratio:15 / 8; object-fit:cover; } /* 20% shorter than 3:2 */
.home-protect--v2 .hp2-body { display:flex; flex:1; flex-direction:column; gap:20px; padding:28px 28px 30px; }
.home-protect--v2 .hp2-summary h3 { margin:0; color:var(--affina-text); font-family:"Familjen Grotesk", "Be Vietnam Pro", sans-serif; font-size:26px; font-weight:600; line-height:1.2; letter-spacing:-.01em; }
.home-protect--v2 .hp2-summary p { margin:6px 0 0; color:var(--muted); font-size:16px; line-height:1.55; }
.home-protect--v2 .hp2-products { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px 16px; margin:0; padding:0; list-style:none; }
.home-protect--v2 .hp2-products li { display:flex; align-items:center; gap:10px; color:var(--affina-text); font-size:14px; line-height:1.4; } /* type scale: 16 → 14 (one step down) */
.home-protect--v2 .hp2-products img { flex:none; width:24px; height:24px; }
/* actions pinned to the bottom so both cards line up: CTA on top, FINA chatbot link below, both full width */
.home-protect--v2 .hp2-actions { display:flex; flex-direction:column; align-items:stretch; gap:6px; margin-top:auto; padding-top:4px; }
/* CTA = the site's primary button (.btn .btn-primary .btn-pill, same as "Bắt đầu ngay"); here only size/layout + the hero's white edge */
.home-protect--v2 .hp2-button { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; border:1px solid rgba(255, 255, 255, .8); font-size:16px; line-height:1; text-decoration:none; }
.home-protect--v2 .hp2-ask-fina { width:100%; padding:12px 4px; border:0; background:none; color:var(--primary); font:inherit; font-size:15px; font-weight:500; text-align:center; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.home-protect--v2 .hp2-ask-fina:hover { color:var(--primary-dark); }
@media (max-width: 860px) {
  .home-protect--v2 .hp2-grid { grid-template-columns:1fr; max-width:560px; }
}
@media (max-width: 480px) {
  .home-protect--v2 .hp2-body { padding:22px 18px 24px; }
  .home-protect--v2 .hp2-summary h3 { font-size:22px; }
  .home-protect--v2 .hp2-products { grid-template-columns:1fr; gap:12px; }
}
