/**
 * HiFriendbot Content Pages Styles
 * Companion pages, Legal pages, Help pages, About page
 */

/* ===========================================
   PAGE HERO SECTION
   =========================================== */
.hfb-page-hero {
    padding: 80px 5% 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hfb-page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hfb-page-hero__glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, var(--hfb-primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hfb-page-hero__glow--green {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
}

.hfb-page-hero__glow--pink {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
}

.hfb-page-hero__glow--cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
}

.hfb-page-hero__glow--amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.05); }
}

.hfb-page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hfb-page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hfb-surface-light);
    border: 1px solid var(--hfb-border-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--hfb-text-secondary);
    margin-bottom: 24px;
}

.hfb-page-hero__badge svg {
    width: 18px;
    height: 18px;
}

.hfb-page-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--hfb-text) 0%, var(--hfb-primary-light) 50%, var(--hfb-accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hfb-page-hero__subtitle {
    font-size: 1.25rem;
    color: var(--hfb-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hfb-page-hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.hfb-content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hfb-content-section--narrow {
    max-width: 900px;
}

.hfb-content-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--hfb-text);
    text-align: center;
    margin-bottom: 16px;
}

.hfb-content-section__subtitle {
    font-size: 1.1rem;
    color: var(--hfb-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ===========================================
   COMPANION PROFILE CARD
   =========================================== */
.hfb-companion-profile {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 35, 0.98) 100%);
    border: 1px solid var(--hfb-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 700px;
    margin: -80px auto 60px;
    position: relative;
    z-index: 2;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.hfb-companion-profile--glow {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 60px var(--hfb-primary-glow);
}

.hfb-companion-profile__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--hfb-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px;
    position: relative;
}

.hfb-companion-profile__avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--hfb-primary), var(--hfb-accent), var(--hfb-pink), var(--hfb-primary));
    z-index: -1;
    animation: rotate-gradient 8s linear infinite;
    opacity: 0.6;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hfb-companion-profile__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--hfb-text);
}

.hfb-companion-profile__role {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hfb-companion-profile__traits {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hfb-companion-profile__trait {
    background: var(--hfb-surface-light);
    border: 1px solid var(--hfb-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--hfb-text-secondary);
    transition: all 0.3s ease;
}

.hfb-companion-profile__trait:hover {
    border-color: var(--hfb-primary);
    color: var(--hfb-text);
}

.hfb-companion-profile__quote {
    font-style: italic;
    color: var(--hfb-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.hfb-companion-profile__quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* ===========================================
   FEATURE/TRAIT CARDS
   =========================================== */
.hfb-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.hfb-trait-card {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hfb-trait-card:hover {
    transform: translateY(-8px);
    border-color: var(--hfb-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--hfb-primary-glow);
}

.hfb-trait-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--hfb-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.hfb-trait-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 12px;
}

.hfb-trait-card__text {
    color: var(--hfb-text-secondary);
    line-height: 1.7;
}

/* ===========================================
   USE CASES SECTION
   =========================================== */
.hfb-use-cases {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.hfb-use-cases__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hfb-text);
    margin-bottom: 32px;
    text-align: center;
}

.hfb-use-case {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hfb-border);
}

.hfb-use-case:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hfb-use-case:first-of-type {
    padding-top: 0;
}

.hfb-use-case__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--hfb-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.hfb-use-case__content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 6px;
}

.hfb-use-case__content p {
    color: var(--hfb-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   PERFECT FOR SECTION
   =========================================== */
.hfb-perfect-for {
    max-width: 700px;
    margin: 0 auto;
}

.hfb-perfect-for__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hfb-perfect-for__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    color: var(--hfb-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hfb-perfect-for__item::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hfb-gradient-primary);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfb-perfect-for__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hfb-gradient-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfb-perfect-for__check svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.hfb-cta-section {
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hfb-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

.hfb-cta-section__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hfb-cta-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--hfb-text);
    margin-bottom: 16px;
}

.hfb-cta-section__text {
    color: var(--hfb-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hfb-cta-section .hfb-btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===========================================
   LEGAL PAGES
   =========================================== */
.hfb-legal-hero {
    padding: 60px 5% 40px;
    text-align: center;
}

.hfb-legal-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--hfb-text);
    margin-bottom: 12px;
}

.hfb-legal-hero__date {
    color: var(--hfb-text-muted);
    font-size: 14px;
}

.hfb-legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

.hfb-legal-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    padding: 24px;
}

.hfb-legal-toc__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hfb-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.hfb-legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hfb-legal-toc__item {
    margin-bottom: 12px;
}

.hfb-legal-toc__link {
    color: var(--hfb-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.hfb-legal-toc__link:hover,
.hfb-legal-toc__link.active {
    color: var(--hfb-primary-light);
}

.hfb-legal-content {
    color: var(--hfb-text-secondary);
    line-height: 1.8;
}

.hfb-legal-content h2 {
    color: var(--hfb-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--hfb-border);
}

.hfb-legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hfb-legal-content h3 {
    color: var(--hfb-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 16px;
}

.hfb-legal-content p {
    margin-bottom: 16px;
}

.hfb-legal-content ul,
.hfb-legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.hfb-legal-content li {
    margin-bottom: 8px;
}

.hfb-legal-content a {
    color: var(--hfb-primary-light);
    text-decoration: none;
}

.hfb-legal-content a:hover {
    text-decoration: underline;
}

.hfb-legal-contact {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    padding: 32px;
    margin-top: 48px;
    text-align: center;
}

.hfb-legal-contact h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.hfb-legal-contact p {
    margin-bottom: 0;
}

.hfb-legal-contact a {
    color: var(--hfb-primary-light);
}

/* ===========================================
   FAQ PAGE
   =========================================== */
.hfb-faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.hfb-faq-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hfb-faq-category {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--hfb-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.hfb-faq-category:hover,
.hfb-faq-category.active {
    background: var(--hfb-gradient-primary);
    border-color: transparent;
    color: white;
}

.hfb-faq__item {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hfb-faq__item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.hfb-faq__item.open {
    border-color: var(--hfb-primary);
    box-shadow: 0 0 30px var(--hfb-primary-glow);
}

.hfb-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    color: var(--hfb-text);
    font-weight: 500;
    font-size: 1.05rem;
    gap: 16px;
}

.hfb-faq__question:hover {
    color: var(--hfb-primary-light);
}

.hfb-faq__icon {
    width: 24px;
    height: 24px;
    color: var(--hfb-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hfb-faq__item.open .hfb-faq__icon {
    transform: rotate(45deg);
}

.hfb-faq__answer {
    padding: 0 24px 24px;
    color: var(--hfb-text-secondary);
    line-height: 1.7;
    display: none;
}

.hfb-faq__item.open .hfb-faq__answer {
    display: block;
}

.hfb-faq__answer p {
    margin: 0 0 12px;
}

.hfb-faq__answer p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   HOW IT WORKS PAGE
   =========================================== */
.hfb-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.hfb-step {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.hfb-step:hover {
    transform: translateY(-8px);
    border-color: var(--hfb-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--hfb-primary-glow);
}

.hfb-step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hfb-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 24px;
}

.hfb-step__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.hfb-step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 12px;
}

.hfb-step__text {
    color: var(--hfb-text-secondary);
    line-height: 1.7;
}

/* ===========================================
   ABOUT PAGE
   =========================================== */
.hfb-founders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.hfb-founder-card {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.4s ease;
}

.hfb-founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px var(--hfb-primary-glow);
    border-color: rgba(139, 92, 246, 0.3);
}

.hfb-founder-card__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--hfb-gradient-primary);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.hfb-founder-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 8px;
}

.hfb-founder-card__role {
    color: var(--hfb-primary-light);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hfb-founder-card__quote {
    color: var(--hfb-text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.hfb-mission {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 24px;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hfb-mission__text {
    font-size: 1.25rem;
    color: var(--hfb-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.hfb-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hfb-value-card {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.hfb-value-card:hover {
    border-color: var(--hfb-primary);
    transform: translateY(-4px);
}

.hfb-value-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.hfb-value-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 8px;
}

.hfb-value-card__text {
    color: var(--hfb-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================================
   BUTTONS (Overrides/Additions)
   =========================================== */
.hfb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.hfb-btn-primary {
    background: var(--hfb-gradient-primary);
    color: white;
    box-shadow: 0 8px 24px var(--hfb-primary-glow);
}

.hfb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--hfb-primary-glow);
}

.hfb-btn-secondary {
    background: transparent;
    color: var(--hfb-text);
    border: 1px solid var(--hfb-border-light);
}

.hfb-btn-secondary:hover {
    border-color: var(--hfb-primary);
    color: var(--hfb-primary-light);
}

.hfb-btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.hfb-btn svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .hfb-legal-layout {
        grid-template-columns: 1fr;
    }

    .hfb-legal-toc {
        position: relative;
        top: 0;
    }

    .hfb-founders {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .hfb-values {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hfb-page-hero {
        padding: 60px 20px 100px;
    }

    .hfb-page-hero__title {
        font-size: 2rem;
    }

    .hfb-page-hero__subtitle {
        font-size: 1rem;
    }

    .hfb-companion-profile {
        margin: -60px 20px 40px;
        padding: 32px 24px;
    }

    .hfb-companion-profile__avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .hfb-companion-profile__name {
        font-size: 1.5rem;
    }

    .hfb-content-section {
        padding: 60px 20px;
    }

    .hfb-use-cases {
        padding: 32px 24px;
    }

    .hfb-use-case {
        flex-direction: column;
        gap: 12px;
    }

    .hfb-cta-section {
        padding: 60px 20px;
    }

    .hfb-legal-layout {
        padding: 20px 20px 60px;
    }

    .hfb-mission {
        padding: 40px 24px;
    }

    .hfb-mission__text {
        font-size: 1.1rem;
    }

    .hfb-faq__question {
        padding: 20px;
        font-size: 1rem;
    }

    .hfb-faq__answer {
        padding: 0 20px 20px;
    }

    .hfb-step {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hfb-page-hero {
        padding: 40px 16px 80px;
    }

    .hfb-page-hero__badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .hfb-page-hero__title {
        font-size: 1.75rem;
    }

    .hfb-page-hero__ctas {
        flex-direction: column;
    }

    .hfb-page-hero__ctas .hfb-btn {
        width: 100%;
        justify-content: center;
    }

    .hfb-companion-profile {
        margin: -50px 16px 32px;
        padding: 24px 20px;
    }

    .hfb-companion-profile__trait {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hfb-traits-grid {
        gap: 16px;
    }

    .hfb-trait-card {
        padding: 24px;
    }

    .hfb-faq-categories {
        gap: 8px;
    }

    .hfb-faq-category {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hfb-founder-card {
        padding: 32px 24px;
    }

    .hfb-value-card {
        padding: 24px;
    }
}

/* ===========================================
   MEMORY DASHBOARD
   =========================================== */
.hfb-memories-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.hfb-memories-stats {
    text-align: center;
    margin-bottom: 48px;
}

.hfb-memories-stats h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--hfb-text);
    margin-bottom: 12px;
}

.hfb-memories-tagline {
    color: var(--hfb-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hfb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hfb-stat-card {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.hfb-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hfb-primary-light);
    margin-bottom: 4px;
}

.hfb-stat-label {
    color: var(--hfb-text-secondary);
    font-size: 14px;
}

/* Memory Filters */
.hfb-memories-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hfb-filter-btn {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    color: var(--hfb-text-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hfb-filter-btn:hover {
    border-color: var(--hfb-primary);
    color: var(--hfb-primary-light);
}

.hfb-filter-btn.active {
    background: var(--hfb-gradient-primary);
    border-color: transparent;
    color: white;
}

/* Memory Items */
.hfb-memories-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hfb-memory-item {
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.hfb-memory-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.hfb-memory-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.hfb-type-identity {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.hfb-type-relationship {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.hfb-type-preference {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.hfb-type-event {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.hfb-type-emotion {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.hfb-type-topic {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.hfb-memory-content {
    color: var(--hfb-text);
    line-height: 1.5;
}

.hfb-memory-subject {
    color: var(--hfb-primary-light);
    font-weight: 500;
    margin-right: 4px;
}

.hfb-memory-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--hfb-text-secondary);
    font-size: 12px;
}

.hfb-memory-importance {
    color: #fbbf24;
    letter-spacing: -2px;
}

.hfb-memory-delete {
    background: transparent;
    border: none;
    color: var(--hfb-text-secondary);
    cursor: pointer;
    padding: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.hfb-memory-delete:hover {
    color: #ef4444;
    opacity: 1;
}

.hfb-memory-delete svg {
    width: 18px;
    height: 18px;
}

/* Empty State */
.hfb-memories-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 16px;
}

.hfb-memories-empty p {
    color: var(--hfb-text-secondary);
    margin-bottom: 24px;
}

/* Trust Note */
.hfb-memories-trust {
    margin-top: 48px;
    padding: 24px;
    background: var(--hfb-surface);
    border: 1px solid var(--hfb-border);
    border-radius: 12px;
    text-align: center;
}

.hfb-memories-trust p {
    color: var(--hfb-text-secondary);
    margin: 0;
    font-size: 14px;
}

.hfb-memories-trust strong {
    color: var(--hfb-text);
}

/* Memory Dashboard Responsive */
@media (max-width: 768px) {
    .hfb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hfb-memory-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .hfb-memory-type {
        grid-column: 1;
        justify-self: start;
    }

    .hfb-memory-delete {
        grid-column: 2;
        grid-row: 1;
    }

    .hfb-memory-content {
        grid-column: 1 / -1;
    }

    .hfb-memory-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hfb-memories-stats h2 {
        font-size: 1.5rem;
    }

    .hfb-filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hfb-memory-item {
        padding: 14px 16px;
    }
}

/* ===========================================
   MOBILE OVERRIDES FOR INLINE STYLES
   =========================================== */

/* Force grid layouts to single column on mobile */
@media (max-width: 600px) {
    /* Override inline grid styles */
    .hfb-content-section [style*="grid-template-columns"],
    .hfb-memories-dashboard [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce inline padding on mobile */
    .hfb-content-section [style*="padding: 3rem"],
    .hfb-content-section [style*="padding: 2.5rem"],
    .hfb-content-section [style*="padding: 2rem"] {
        padding: 1.25rem !important;
    }

    /* Reduce large font sizes */
    .hfb-content-section [style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }

    .hfb-content-section [style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    .hfb-content-section [style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }

    /* GO BLUE badge mobile */
    [style*="background: linear-gradient(135deg, #00274C, #FFCB05)"] {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
    }

    /* Memory Engine icon circles */
    [style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    /* Flex layouts on mobile */
    .hfb-content-section [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column;
    }

    /* Stats grid mobile - already 2 columns, keep it */
    .hfb-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .hfb-stat-card {
        padding: 1rem !important;
    }

    .hfb-stat-card .hfb-stat-number,
    [style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }

    /* Example cards in memories page */
    .hfb-memories-dashboard [style*="minmax(320px"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce card padding on mobile */
    [style*="border-radius: 16px"][style*="padding: 1.5rem"],
    [style*="border-radius: 16px"][style*="padding: 2rem"] {
        padding: 1rem !important;
    }

    /* Memory type legend - stack on mobile */
    [style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 1rem"] {
        gap: 0.75rem !important;
    }

    /* Quotes and larger text */
    [style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }

    [style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    /* Two column grids on tablet */
    .hfb-content-section [style*="minmax(300px"],
    .hfb-content-section [style*="minmax(320px"] {
        grid-template-columns: 1fr !important;
    }

    .hfb-content-section [style*="minmax(250px"],
    .hfb-content-section [style*="minmax(280px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reduce section padding */
    .hfb-content-section [style*="padding: 3rem"] {
        padding: 2rem !important;
    }
}

/* Small tablet - force single column */
@media (max-width: 650px) {
    .hfb-content-section [style*="minmax(250px"],
    .hfb-content-section [style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================
   PARTNERS PAGE MOBILE
   =========================================== */
@media (max-width: 600px) {
    /* Organization chips - smaller on mobile */
    .hfb-content-section [style*="border-radius: 50px"][style*="padding: 0.75rem"] {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Partners section cards */
    .hfb-content-section [style*="border-radius: 20px"][style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    /* Headings in partners cards */
    .hfb-content-section [style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }

    .hfb-content-section [style*="font-size: 1.6rem"] {
        font-size: 1.3rem !important;
    }
}

/* ===========================================
   MEMORIES PAGE MOBILE - EXAMPLE CARDS
   =========================================== */

/* Example cards grid */
.hfb-example-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hfb-example-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 650px) {
    .hfb-example-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 600px) {
    /* Example cards in customize section */
    .hfb-memories-dashboard [style*="border-radius: 16px"][style*="padding: 1.5rem"] {
        padding: 1.25rem !important;
    }

    /* Example phrase boxes */
    .hfb-memories-dashboard [style*="border-left: 3px"] {
        padding: 0.6rem 0.8rem !important;
    }

    .hfb-memories-dashboard [style*="border-left: 3px"] span {
        font-size: 0.85rem !important;
    }

    /* Section headers with icons */
    .hfb-memories-dashboard [style*="font-size: 1.75rem"] {
        font-size: 1.5rem !important;
    }

    /* Pro tip and secret boxes */
    .hfb-memories-dashboard [style*="border-radius: 20px"][style*="padding: 2rem"] {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    /* Large icons */
    .hfb-memories-dashboard [style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    .hfb-memories-dashboard [style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }

    /* Card titles */
    .hfb-example-cards h4 {
        font-size: 1rem !important;
    }

    /* Smaller note text */
    .hfb-example-cards [style*="font-style: italic"] {
        font-size: 0.75rem !important;
    }
}

/* ===========================================
   ABOUT US PAGE MOBILE
   =========================================== */
@media (max-width: 600px) {
    .hfb-founders {
        gap: 1.5rem !important;
    }

    .hfb-founder-card {
        padding: 2rem 1.5rem !important;
    }

    .hfb-founder-card__image {
        width: 80px !important;
        height: 80px !important;
        font-size: 32px !important;
    }

    .hfb-founder-card__title {
        font-size: 1.25rem !important;
    }

    .hfb-founder-card__quote {
        font-size: 0.9rem !important;
    }

    .hfb-mission {
        padding: 2rem 1.5rem !important;
    }

    .hfb-mission__text {
        font-size: 1rem !important;
    }

    .hfb-values {
        gap: 1rem !important;
    }

    .hfb-value-card {
        padding: 1.25rem !important;
    }

    .hfb-value-card__icon {
        font-size: 2rem !important;
    }

    .hfb-value-card__title {
        font-size: 1rem !important;
    }

    .hfb-value-card__text {
        font-size: 0.85rem !important;
    }
}

/* ===========================================
   FAQ PAGE MOBILE
   =========================================== */
@media (max-width: 480px) {
    .hfb-faq__question {
        font-size: 0.95rem !important;
        padding: 16px !important;
    }

    .hfb-faq__answer {
        padding: 0 16px 16px !important;
        font-size: 0.9rem !important;
    }

    .hfb-faq__answer a {
        word-break: break-word;
    }
}

/* ===========================================
   GO BLUE BADGE
   =========================================== */
.hfb-go-blue-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00274C, #FFCB05);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .hfb-go-blue-badge {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        border-radius: 30px !important;
    }
}

@media (max-width: 400px) {
    .hfb-go-blue-badge {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

/* ===========================================
   TECH PAGE MOBILE
   =========================================== */

/* Problem Grid - 3 items */
.hfb-tech-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .hfb-tech-problem-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .hfb-tech-problem-grid > div {
        padding: 1rem !important;
    }
}

/* Memory Engine Box */
.hfb-tech-engine-box {
    padding: 3rem;
    border-radius: 24px;
}

.hfb-tech-brain-icon {
    font-size: 4rem;
}

.hfb-tech-engine-title {
    font-size: 1.8rem;
}

/* Memory Engine Grid - 4 items */
.hfb-tech-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* Icon circles in Memory Engine */
.hfb-tech-icon-circle {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Features Grid - 6 items */
.hfb-tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Stats Grid */
.hfb-tech-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hfb-tech-stat-number {
    font-size: 3rem;
}

/* CTA Buttons */
.hfb-tech-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .hfb-tech-engine-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hfb-tech-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 650px) {
    .hfb-tech-engine-box {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .hfb-tech-brain-icon {
        font-size: 2.5rem !important;
    }

    .hfb-tech-engine-title {
        font-size: 1.4rem !important;
    }

    .hfb-tech-engine-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hfb-tech-icon-circle {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .hfb-tech-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Feature cards - reduce padding */
    .hfb-tech-features-grid > div {
        padding: 1.25rem !important;
    }

    .hfb-tech-features-grid h3 {
        font-size: 1rem !important;
    }

    .hfb-tech-features-grid p {
        font-size: 0.9rem !important;
    }

    .hfb-tech-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 2rem 0 !important;
    }

    .hfb-tech-stat-number {
        font-size: 2rem !important;
    }

    .hfb-tech-cta-buttons {
        flex-direction: column !important;
        width: 100%;
    }

    .hfb-tech-cta-buttons .hfb-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hfb-tech-engine-box {
        padding: 1rem !important;
    }

    .hfb-tech-brain-icon {
        font-size: 2rem !important;
    }

    .hfb-tech-engine-title {
        font-size: 1.2rem !important;
    }

    .hfb-tech-icon-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }

    .hfb-tech-features-grid > div {
        padding: 1rem !important;
    }

    .hfb-tech-stat-number {
        font-size: 1.75rem !important;
    }
}

/* ===========================================
   GENERAL MOBILE TYPOGRAPHY
   =========================================== */
@media (max-width: 480px) {
    .hfb-content-section__title {
        font-size: 1.5rem !important;
    }

    .hfb-content-section__subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .hfb-cta-section__title {
        font-size: 1.4rem !important;
    }

    .hfb-cta-section__text {
        font-size: 1rem !important;
    }

    /* Buttons on mobile */
    .hfb-btn-large {
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
    }

    /* Full width buttons in CTA */
    .hfb-cta-section .hfb-btn {
        width: 100%;
        justify-content: center;
    }

    .hfb-cta-section [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        width: 100%;
    }
}

/* ===========================================
   MEMORIES PAGE STYLES
   =========================================== */

/* Memories Dashboard Base */
.hfb-memories-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

/* Memory Items */
.hfb-memory-item {
    transition: opacity 0.3s, transform 0.3s;
}

/* Filter buttons container */
.hfb-memories-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hfb-memories-filter::-webkit-scrollbar {
    display: none;
}

/* Load more button */
#hfb-load-more {
    transition: all 0.2s;
}

#hfb-load-more:hover:not(:disabled) {
    border-color: var(--hfb-primary);
    color: var(--hfb-primary);
}

#hfb-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===========================================
   MEMORIES PAGE - TABLET (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
    /* Stats grid - 2 columns on tablet */
    .hfb-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .hfb-stat-card {
        padding: 1rem !important;
    }

    .hfb-stat-card .hfb-stat-number {
        font-size: 2rem !important;
    }

    /* Example cards - single column */
    .hfb-example-cards {
        grid-template-columns: 1fr !important;
    }

    /* Memory items - stack layout */
    .hfb-memory-item {
        flex-wrap: wrap !important;
        padding: 1rem !important;
    }

    .hfb-memory-type {
        order: 1;
    }

    .hfb-memory-content {
        order: 3;
        flex-basis: 100% !important;
        margin-top: 0.75rem;
    }

    .hfb-memory-meta {
        order: 2;
        flex-direction: row !important;
        gap: 0.75rem !important;
        margin-left: auto;
    }

    .hfb-memory-delete {
        order: 2;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Filter buttons - horizontal scroll */
    .hfb-memories-filter {
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
    }

    .hfb-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Search box */
    #hfb-memory-search {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* Memory types legend - 2 columns */
    .hfb-memories-dashboard [style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 1rem"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* GO BLUE badge */
    .hfb-go-blue-badge {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===========================================
   MEMORIES PAGE - MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    /* Stats grid - 2 columns, smaller */
    .hfb-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .hfb-stat-card {
        padding: 0.75rem !important;
        border-radius: 12px !important;
    }

    .hfb-stat-card .hfb-stat-number {
        font-size: 1.5rem !important;
    }

    .hfb-stat-card .hfb-stat-label {
        font-size: 0.75rem !important;
    }

    /* Memory types legend - single column on very small screens */
    .hfb-memories-dashboard [style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 1rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Secret tip box */
    .hfb-content-section > div[style*="linear-gradient"][style*="border-radius: 20px"] {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .hfb-content-section > div[style*="linear-gradient"] h3 {
        font-size: 1.2rem !important;
    }

    .hfb-content-section > div[style*="linear-gradient"] span[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    /* Example cards padding */
    .hfb-example-cards > div {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .hfb-example-cards h4 {
        font-size: 1rem !important;
    }

    /* Pro tip box */
    .hfb-content-section > div[style*="align-items: flex-start"][style*="gap: 1rem"] {
        flex-direction: column !important;
        text-align: center;
    }

    .hfb-content-section > div[style*="align-items: flex-start"][style*="gap: 1rem"] > span {
        margin: 0 auto;
    }

    /* Memory list title */
    .hfb-memories-list h3 {
        font-size: 1.1rem !important;
    }

    /* Memory items - full stack */
    .hfb-memory-item {
        padding: 0.875rem !important;
        gap: 0.5rem !important;
    }

    .hfb-memory-type {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    .hfb-memory-content {
        font-size: 0.9rem !important;
    }

    .hfb-memory-subject {
        display: block;
        margin-bottom: 0.25rem;
    }

    .hfb-memory-importance {
        font-size: 0.7rem !important;
    }

    .hfb-memory-date {
        font-size: 0.7rem !important;
    }

    /* Filter buttons - smaller */
    .hfb-filter-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    /* Load more button */
    #hfb-load-more {
        width: 100%;
        padding: 0.875rem 1.5rem !important;
    }

    /* Empty state */
    .hfb-memories-empty {
        padding: 2rem 1rem !important;
    }

    .hfb-memories-empty span[style*="font-size: 4rem"] {
        font-size: 3rem !important;
    }

    /* Trust & Privacy box */
    .hfb-memories-dashboard > div[style*="align-items: flex-start"] {
        flex-direction: column !important;
        text-align: center;
        padding: 1.25rem !important;
    }

    .hfb-memories-dashboard > div[style*="align-items: flex-start"] > span {
        margin: 0 auto 0.5rem;
    }

    /* CTA section */
    .hfb-cta-section {
        padding: 40px 20px !important;
    }

    .hfb-cta-section__title {
        font-size: 1.25rem !important;
    }

    .hfb-cta-section__text {
        font-size: 0.95rem !important;
    }

    .hfb-cta-section .hfb-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem !important;
    }

    /* GO BLUE badge - smaller on mobile */
    .hfb-go-blue-badge {
        padding: 0.625rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 30px !important;
    }
}

/* ===========================================
   AI SOLUTIONS PAGE
   =========================================== */

/* Problem Grid */
.hfb-solutions-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}

.hfb-solutions-problem-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.hfb-solutions-problem-card h4 {
    color: #ef4444;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.hfb-solutions-problem-card p {
    color: var(--hfb-text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Highlight Box */
.hfb-solutions-highlight-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.hfb-solutions-highlight-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.hfb-solutions-highlight-box h3 {
    color: var(--hfb-text);
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
}

.hfb-solutions-highlight-box p {
    color: var(--hfb-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* Industry Grid - force 3 columns on desktop */
.hfb-solutions-industry-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Urgency Box */
.hfb-solutions-urgency-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hfb-solutions-urgency-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.hfb-solutions-urgency-box h2 {
    color: var(--hfb-text);
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
}

.hfb-solutions-urgency-box p {
    color: var(--hfb-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Buttons */
.hfb-solutions-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===========================================
   AI SOLUTIONS PAGE - TABLET (max-width: 900px)
   =========================================== */
@media (max-width: 900px) {
    .hfb-solutions-industry-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===========================================
   AI SOLUTIONS PAGE - MOBILE (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
    .hfb-solutions-problem-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .hfb-solutions-highlight-box {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .hfb-solutions-highlight-icon {
        font-size: 2.5rem !important;
    }

    .hfb-solutions-highlight-box h3 {
        font-size: 1.2rem !important;
    }

    .hfb-solutions-highlight-box p {
        font-size: 1rem !important;
    }

    .hfb-solutions-urgency-box {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .hfb-solutions-urgency-icon {
        font-size: 2rem !important;
    }

    .hfb-solutions-urgency-box h2 {
        font-size: 1.3rem !important;
    }

    .hfb-solutions-urgency-box p {
        font-size: 1rem !important;
    }
}

/* ===========================================
   AI SOLUTIONS PAGE - SMALL MOBILE (max-width: 650px)
   =========================================== */
@media (max-width: 650px) {
    .hfb-solutions-industry-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================
   AI SOLUTIONS PAGE - NARROW MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    .hfb-solutions-problem-card {
        padding: 1rem !important;
    }

    .hfb-solutions-problem-card h4 {
        font-size: 1rem !important;
    }

    .hfb-solutions-problem-card p {
        font-size: 0.9rem !important;
    }

    .hfb-solutions-highlight-box {
        padding: 1.25rem !important;
    }

    .hfb-solutions-highlight-icon {
        font-size: 2rem !important;
    }

    .hfb-solutions-highlight-box h3 {
        font-size: 1.1rem !important;
    }

    .hfb-solutions-highlight-box p {
        font-size: 0.95rem !important;
    }

    .hfb-solutions-urgency-box {
        padding: 1.25rem !important;
    }

    .hfb-solutions-urgency-icon {
        font-size: 1.75rem !important;
    }

    .hfb-solutions-urgency-box h2 {
        font-size: 1.15rem !important;
    }

    .hfb-solutions-urgency-box p {
        font-size: 0.9rem !important;
    }

    .hfb-solutions-cta-buttons {
        flex-direction: column !important;
        width: 100%;
    }

    .hfb-solutions-cta-buttons .hfb-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================
   App Install Page
   ======================== */
.hfb-app-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.hfb-app-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.hfb-app-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    line-height: 1;
}

.hfb-app-step__content {
    flex: 1;
    min-width: 0;
}

.hfb-app-step__title {
    color: var(--hfb-text);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.hfb-app-step__desc {
    color: var(--hfb-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.hfb-app-step__image {
    max-width: 260px;
    margin: 0 auto;
    border-radius: var(--hfb-radius-sm);
    overflow: hidden;
    border: 1px solid var(--hfb-border);
    background: var(--hfb-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hfb-app-step__image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 480px) {
    .hfb-app-step {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .hfb-app-step__number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.1rem;
    }

    .hfb-app-step__image {
        max-width: 220px;
    }
}
