/* =========================================================
   Family Agent AI — Landing Page Styles
   ========================================================= */

@font-face {
    font-family: 'Gelica';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Gelica-Regular.woff2') format('woff2'),
         url('fonts/Gelica-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Gelica';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Gelica-RegularItalic.woff2') format('woff2'),
         url('fonts/Gelica-RegularItalic.woff') format('woff');
}

@font-face {
    font-family: 'Gelica';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Gelica-SemiBold.woff2') format('woff2'),
         url('fonts/Gelica-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Gelica';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Gelica-SemiBoldItalic.woff2') format('woff2'),
         url('fonts/Gelica-SemiBoldItalic.woff') format('woff');
}

html:has(.fa-body) {
    overscroll-behavior: none;
    overflow-x: clip;
}

/* Body — light warm cream */
.fa-body {
    background: #F7F2EB;
    min-height: 100vh;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
}

/* =========================================================
   HERO
   ========================================================= */

.fa-hero {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Decorative background doodle */
.fa-hero-watermark {
    position: absolute;
    top: -40px;
    right: -60px;
    width: 440px;
    height: 440px;
    pointer-events: none;
    z-index: 0;
}

.fa-hero-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.45;
}

/* =========================================================
   HEADER
   ========================================================= */

.fa-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 96px 48px 32px;
}

.fa-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.fa-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.92;
}

/* =========================================================
   HERO INNER
   ========================================================= */

.fa-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 80px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =========================================================
   HEADLINE + CTA
   ========================================================= */

.fa-hero-content {
    flex: 0 0 auto;
    max-width: 820px;
    width: 100%;
    text-align: center;
}

.fa-headline {
    font-family: 'Gelica', 'Instrument Serif', serif;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #3A3028;
    margin: 0 0 14px;
    white-space: nowrap;
    opacity: 0;
    animation: faSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.fa-headline em {
    font-style: italic;
}

.fa-mobile-br {
    display: none;
}

.fa-subhead {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #8A7E72;
    margin: 0 0 36px;
    opacity: 0;
    animation: faSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

/* Button row */
.fa-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: faSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.fa-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    background: linear-gradient(180deg, #FF754A 0%, #FF4C13 100%);
    border-radius: 14px;
    padding: 16px 48px;
    min-width: 200px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
    box-shadow: 0px 6px 18px 0px rgba(255, 104, 56, 0.30);
}

.fa-cta-btn:hover {
    box-shadow: 0 4px 16px rgba(255, 104, 56, 0.35);
    transform: translateY(-1px);
}

.fa-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #3A3028;
    background: #FFFFFF;
    border: 1px solid #F1ECE3;
    border-radius: 14px;
    padding: 16px 48px;
    min-width: 200px;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fa-cta-btn-outline:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.fa-cta-btn,
.fa-cta-btn-outline {
    -webkit-tap-highlight-color: transparent;
}

.fa-cta-btn:focus,
.fa-cta-btn:focus-visible,
.fa-cta-btn-outline:focus,
.fa-cta-btn-outline:focus-visible {
    outline: 0 none !important;
    outline-style: none !important;
    outline-width: 0 !important;
    box-shadow: none;
}

.fa-cta-note {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #A89E92;
    margin: 12px 0 0;
    text-align: center;
    opacity: 0;
    animation: faSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
}

/* =========================================================
   HERO GRAPHIC — Phone + Photo Fan
   ========================================================= */

.fa-hero-graphic {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: auto;
    padding-top: 20px;
    z-index: 1;
}

/* Center phone — fixed size, always prominent */
.fa-phone {
    flex-shrink: 0;
    width: 350px;
    z-index: 10;
    margin: 0 -20px;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.18));
}

.fa-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(26px, 2.4vw, 34px);
}

/* Photo tiles — fixed size, bleed off edges as viewport shrinks */
.fa-photo {
    flex-shrink: 0;
    width: 180px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 -6px;
}

.fa-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arc via vertical offset */
.fa-photo-1 {
    transform: translateY(280px);
    z-index: 2;
}

.fa-photo-2 {
    transform: translateY(230px);
    z-index: 4;
}

.fa-photo-3 {
    transform: translateY(200px);
    z-index: 6;
}

.fa-photo-4 {
    transform: translateY(200px);
    z-index: 6;
}

.fa-photo-5 {
    transform: translateY(230px);
    z-index: 4;
}

.fa-photo-6 {
    transform: translateY(280px);
    z-index: 2;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.fa-testimonials {
    text-align: center;
    padding: 120px 0 48px;
}

.fa-testimonials-heading {
    font-family: 'Gelica', 'Instrument Serif', serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 400;
    color: #3A3028;
    margin: 0 0 32px;
}

.fa-testimonial-carousel {
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}

.fa-testimonial-track {
    display: flex;
    gap: 36px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fa-testimonial-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 min(640px, 66%);
    min-width: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 88%, #F6F6F6 100%);
    border-radius: 20px;
    padding: 32px 36px 36px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.fa-testimonial-watermark {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 80px;
    height: auto;
    pointer-events: none;
    opacity: 0.03;
}

.fa-testimonial-quote {
    position: relative;
    z-index: 1;
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: #3A3028;
    margin: 0 0 auto;
    padding-bottom: 24px;
}

.fa-testimonial-quote em {
    font-style: italic;
}

.fa-testimonial-attr {
    border-left: 2px solid #D9D2C9;
    padding-left: 16px;
}

.fa-attr-name {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3A3028;
    margin: 0;
}

.fa-attr-detail {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #A89E92;
    margin: 4px 0 0;
}

/* Arrows */
.fa-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E4DED6;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #3A3028;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    padding: 0 0 2px;
}

.fa-arrow:hover {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.fa-arrow-left {
    left: max(12px, calc((100% - min(640px, 66%)) / 2 - 56px));
}

.fa-arrow-right {
    right: max(12px, calc((100% - min(640px, 66%)) / 2 - 56px));
}

/* =========================================================
   PRESS LOGOS
   ========================================================= */

.fa-press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 48px 40px;
}

.fa-press-logos img {
    height: 28px;
    width: auto;
    opacity: 0.4;
}

/* =========================================================
   FOOTER
   ========================================================= */

.fa-footer {
    background: #1A1714;
    padding: 28px 0;
}

.fa-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.fa-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.fa-footer-left a,
.fa-footer-left span {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    white-space: nowrap;
}

.fa-footer-left a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.fa-footer-center {
    flex-shrink: 0;
}

.fa-footer-logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.fa-footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
}

.fa-footer-pill {
    font-family: 'PolySans', 'Inter Tight', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.fa-footer-pill:hover {
    opacity: 0.75;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

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

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .fa-header {
        padding: 28px 24px;
    }

    .fa-hero-inner {
        padding: 0 24px 36px;
    }

    .fa-hero-content {
        max-width: 100%;
    }

    .fa-hero-watermark {
        top: -60px;
        right: -120px;
        width: 260px;
        height: 260px;
    }

    .fa-testimonials {
        padding: 48px 0 36px;
    }

    .fa-testimonial-card {
        flex: 0 0 75%;
        padding: 36px 28px 32px;
    }

    .fa-arrow-left {
        left: 8px;
    }

    .fa-arrow-right {
        right: 8px;
    }

    .fa-press-logos {
        gap: 28px;
        padding: 32px 20px;
    }

    .fa-press-logos img {
        height: 18px;
    }

    .fa-footer-inner {
        flex-direction: column;
        gap: 20px;
        padding: 0 24px;
        text-align: center;
    }

    .fa-footer-left {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .fa-footer-center {
        order: 0;
    }

    .fa-footer-right {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fa-header {
        padding: 32px 20px;
    }

    .fa-logo-img {
        height: 28px;
    }

    .fa-hero-inner {
        padding: 0 20px 0;
    }

    .fa-headline {
        font-size: 32px;
        letter-spacing: -1px;
        white-space: normal;
        margin: 0 0 6px;
    }

    .fa-mobile-br {
        display: block;
    }

    .fa-subhead {
        font-size: 15px;
        white-space: normal;
        margin: 0;
        max-width: 100%;
        word-wrap: break-word;
    }

    .fa-testimonial-card {
        flex: 0 0 85%;
        padding: 32px 24px 28px;
    }

    .fa-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .fa-arrow-left {
        left: 6px;
    }

    .fa-arrow-right {
        right: 6px;
    }

    .fa-hero {
        display: flex;
        flex-direction: column;
    }

    .fa-hero-inner {
        order: 1;
    }

    .fa-cta-row {
        order: 3;
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px 24px;
        width: 100%;
        box-sizing: border-box;
        position: sticky;
        bottom: 0;
        z-index: 20;
    }

    .fa-cta-row .fa-cta-btn {
        box-shadow: 0 12px 16px 8px rgba(247, 242, 235, 0.95);
    }

    .fa-cta-row .fa-cta-btn-outline {
        box-shadow: 0 12px 16px 8px rgba(247, 242, 235, 0.95);
    }

    .fa-hero-graphic {
        order: 2;
    }

    .fa-cta-btn,
    .fa-cta-btn-outline {
        width: 100%;
        padding: 12px 24px;
        min-width: 0;
        border-radius: 12px;
        font-size: 14px;
    }

    .fa-cta-note {
        display: none;
    }

    .fa-hero-watermark {
        display: none;
    }

    .fa-hero-graphic {
        padding: 0;
        align-items: center;
        overflow: visible;
    }

    .fa-phone {
        width: 88vw;
        max-width: 380px;
        margin: 0;
    }

    .fa-phone img {
        border-radius: 28px;
    }

    .fa-photo {
        display: none;
    }
}
