@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    /* Brand Palette — App-matched */
    --amber:          #E8923A;
    --amber-deep:     #D4782A;
    --pink:           #E8457A;
    --sage:           #A8B99C;
    --blue-pale:      #B8D4E0;
    --cream:          #F2EDE4;
    --card-bg:        #FAFAF8;
    --body-bg:        #F5EFE6;

    /* Text */
    --text-primary:   #2D2D2D;
    --text-secondary: #6B6B6B;

    /* Borders & Shadows */
    --card-shadow:    0 8px 32px rgba(45, 45, 45, 0.08);
    --card-border:    1px solid rgba(168, 185, 156, 0.25);

    /* Layout */
    --container-max-width: 1200px;
    --section-padding:     100px 20px;
    --border-radius-lg:    24px;
    --border-radius-md:    16px;

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Felt texture overlays */
    --card-texture:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
    --card-texture-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    /* color only — 'all' would conflict with GSAP on animated <a> elements */
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout Components --- */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* --- Felt Background Bands --- */

.felt-bands {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.felt-band {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --- Navigation --- */

nav {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(242, 237, 228, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(45, 45, 45, 0.07);
    border-bottom: 1px dashed rgba(168, 185, 156, 0.4);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    color: var(--amber);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-body {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 460px;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: visible;
    box-shadow: 0 32px 80px rgba(45, 45, 45, 0.14);
}

.hero-lifestyle {
    width: 100%;
    display: block;
    border-radius: var(--border-radius-lg);
}

.hero-screenshot-wrap {
    position: absolute;
    bottom: -52px;
    right: -24px;
    width: 36%;
    border-radius: 32px;
    background: var(--amber);
    background-image: var(--card-texture-amber);
    padding: 12px 10px 20px;
    box-shadow: 0 24px 60px rgba(232, 146, 58, 0.40), 0 8px 24px rgba(45, 45, 45, 0.18);
}

/* Dashed stitching inside the orange phone frame */
.hero-screenshot-wrap::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 28px;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 2;
}

/* Notch bar at top of phone frame */
.hero-screenshot-wrap::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    z-index: 3;
}

.hero-screenshot {
    width: 100%;
    display: block;
    border-radius: 22px;
    position: relative;
    z-index: 1;
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    /* No transform/opacity — GSAP animates .btn in the closing CTA */
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-primary {
    background: var(--amber);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(232, 146, 58, 0.30);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.btn-primary:hover {
    background: var(--amber-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 146, 58, 0.38);
    /* transform added here only — hover-out animates it back, hover-in snaps */
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Features Section --- */

.features {
    background: transparent;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    padding: 36px 32px;
    border-radius: var(--border-radius-md);
    background: var(--card-bg);
    background-image: var(--card-texture);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    /* No CSS transition — GSAP owns all animations on this element */
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 2px dashed rgba(168, 185, 156, 0.5);
    pointer-events: none;
}

.feature-card:hover {
    /* Visual fallback for no-JS — GSAP handles this when JS is available */
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(45, 45, 45, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #ffffff;
}

.feature-icon--pink {
    background: var(--pink);
}

.feature-icon--sage {
    background: var(--sage);
}

.feature-icon--blue {
    background: var(--blue-pale);
    color: var(--text-primary);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Emotional Bridge Section --- */

.emotional-bridge {
    padding: var(--section-padding);
    text-align: center;
}

.emotional-bridge-inner {
    max-width: 720px;
}

.bridge-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 12px 28px;
    margin-bottom: 56px;
}

.bridge-word {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--amber);
    display: inline-block;
    transform: rotate(var(--rot, 0deg));
    opacity: 0.9;
    line-height: 1.1;
}

.bridge-word--lg { font-size: 52px; }
.bridge-word--md { font-size: 42px; }
.bridge-word--sm { font-size: 34px; }

.bridge-headline {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 32px;
}

.bridge-body {
    max-width: 560px;
    margin: 0 auto;
}

.bridge-body p {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.bridge-body p:last-child {
    margin-bottom: 0;
}

.bridge-tagline {
    font-size: 22px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-top: 12px;
}

/* --- Closing CTA Section --- */

.closing-cta {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
}

.closing-cta-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 72px 40px 56px;
    background: var(--card-bg);
    background-image: var(--card-texture);
    border-radius: 32px;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: visible;
}

/* Fanned phone screenshots */
.cta-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    height: 300px;
    position: relative;
    margin-top: -100px;
    margin-bottom: 16px;
    z-index: 2;
}

.cta-phone {
    width: 150px;
    border-radius: 28px;
    background: var(--amber);
    background-image: var(--card-texture-amber);
    padding: 10px 9px 18px;
    box-shadow: 0 16px 40px rgba(232, 146, 58, 0.35), 0 4px 12px rgba(45, 45, 45, 0.15);
    position: relative;
    flex-shrink: 0;
}

/* Dashed stitching inside each phone frame */
.cta-phone::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 19px;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 2;
}

/* Notch */
.cta-phone::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    z-index: 3;
}

.cta-phone img {
    width: 100%;
    display: block;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.cta-phone--left {
    --phone-rest: rotate(-12deg) translateY(12px);
    transform: var(--phone-rest);
    z-index: 1;
    margin-right: -14px;
}

.cta-phone--center {
    --phone-rest: translateY(0);
    transform: var(--phone-rest);
    z-index: 3;
    width: 172px;
}

.cta-phone--right {
    --phone-rest: rotate(12deg) translateY(12px);
    transform: var(--phone-rest);
    z-index: 1;
    margin-left: -14px;
}

.closing-cta-inner::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 2px dashed rgba(168, 185, 156, 0.55);
    pointer-events: none;
}

.closing-cta-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 600px;
    line-height: 1.2;
}

.closing-cta-inner p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* --- Footer --- */

.site-footer {
    background: var(--cream);
    border-top: 1px dashed rgba(168, 185, 156, 0.45);
    padding: 60px 0;
    text-align: center;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.site-footer-logo {
    justify-content: center;
}

.site-footer-tagline {
    font-size: 16px;
    color: var(--text-secondary);
}

.site-footer-legal {
    font-size: 14px;
    color: var(--text-secondary);
}

.site-footer-legal a {
    text-decoration: underline;
    color: var(--text-secondary);
}

.site-footer-legal a:hover {
    color: var(--amber);
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-body {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-width: 480px;
    }

    .hero-screenshot-wrap {
        bottom: -36px;
        right: -12px;
        width: 32%;
    }

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

    .section-title h2 {
        font-size: 34px;
    }

    .closing-cta-inner {
        padding: 48px 24px 40px;
    }

    .closing-cta-inner h2 {
        font-size: 30px;
    }

    .bridge-word--lg { font-size: 36px; }
    .bridge-word--md { font-size: 28px; }
    .bridge-word--sm { font-size: 22px; }
    .bridge-headline { font-size: 34px; }

    .cta-phones {
        height: 220px;
        margin-top: -70px;
    }

    .cta-phone {
        width: 110px;
    }

    .cta-phone--center {
        width: 128px;
    }
}

/* --- Scroll & Load Animations --- */

/* Hero: fires on load via keyframe */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: heroFadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

.hero-image {
    animation: heroFadeUp 0.7s ease both;
    animation-delay: 0.28s;
}

/* Reduced motion: disable hero keyframe animations */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-image {
        animation: none;
        opacity: 1;
    }
}
