/* =============================================
   FAVORITE PART — Marketing Site
   Aesthetic: Warm, rounded, playful-but-premium
   Matches the app's SF Pro Rounded / indigo / cream feel
   ============================================= */

:root {
    --primary:       #5B5BD6;
    --primary-soft:  rgba(91, 91, 214, 0.07);
    --primary-glow:  rgba(91, 91, 214, 0.12);
    --coral:         #FF6B6B;
    --teal:          #10B981;
    --gold:          #FFB800;
    --action:        #FF6B35;

    --cream:         #FDFCFA;
    --cream-warm:    #F8F5F0;
    --white:         #FFFFFF;
    --ink:           #1C1A27;
    --ink-soft:      #5C5870;
    --ink-muted:     #9590A6;
    --dark:          #13121B;
    --dark-card:     rgba(255, 255, 255, 0.04);
    --dark-border:   rgba(255, 255, 255, 0.07);

    --font:          'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', sans-serif;
    --radius:        20px;
    --radius-sm:     12px;
    --radius-pill:   100px;
    --shadow-soft:   0 2px 24px rgba(28, 26, 39, 0.05);
    --shadow-phone:  0 20px 60px rgba(28, 26, 39, 0.12),
                     0 4px 16px rgba(91, 91, 214, 0.06);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; }

/* --- Typography --- */
h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

p { color: var(--ink-soft); font-size: 1.02rem; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 12px; }
.section-sub { font-size: 1.08rem; color: var(--ink-muted); max-width: 480px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    padding: 16px 36px;
    box-shadow: 0 4px 20px rgba(28, 26, 39, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(28, 26, 39, 0.22); }
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 20px 48px; font-size: 1.05rem; }

.btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

/* --- Nav --- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 252, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 26, 39, 0.04);
}

.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wordmark { height: 38px; width: auto; }

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

.hero {
    padding: 56px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 70% 30%, rgba(91, 91, 214, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 400px 400px at 20% 70%, rgba(255, 107, 107, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
    position: relative;
}

.hero-text { max-width: 520px; }
.hero-text h1 { margin-bottom: 24px; }

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.hero-question {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 4px;
}

.hero-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-note { font-size: 0.82rem; color: var(--ink-muted); padding-left: 4px; }

.hero-device {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 320px; height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 0;
    filter: blur(50px);
}

/* --- Phone frames --- */
.phone-frame {
    width: 260px;
    aspect-ratio: 9 / 19.5;
    background: #1C1A27;
    border-radius: 40px;
    box-shadow: var(--shadow-phone);
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 6px;
}

.phone-sm { width: 210px; border-radius: 34px; padding: 5px; }

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg, #EFEDF8 0%, #E2DFF4 50%, #D8D5EE 100%);
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-sm .phone-screen { border-radius: 29px; }

.phone-screen span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Real screenshots fill the screen and inherit the screen's rounded corners. */
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* =============================================
   THE SHIFT — before/after the question
   ============================================= */

.shift {
    padding: 80px 0 100px;
    background: var(--white);
}

.shift-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 48px;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid rgba(28, 26, 39, 0.04);
}

.shift-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.shift-quote {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.4;
}

.shift-before .shift-answer {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink-muted);
}

.shift-after .shift-answer {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.65;
    font-style: italic;
}

.shift-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shift-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    opacity: 0.4;
}

.shift-caption {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.how-it-works { background: var(--cream); }

.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.step-text { padding-top: 2px; }
.step-text h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step-text p { font-size: 1rem; line-height: 1.7; }

/* =============================================
   SCREENSHOTS
   ============================================= */

.screenshots {
    background: var(--white);
    padding: 100px 0;
}

.screenshot-row {
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}

.screenshot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.screenshot-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-align: center;
}

/* =============================================
   WHAT YOU'LL LEARN
   ============================================= */

.learn { background: var(--cream-warm); }
.learn .section-header { margin-bottom: 56px; }
.learn .section-header h2 { max-width: 540px; margin: 0 auto; }

.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.learn-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid rgba(28, 26, 39, 0.03);
    transition: box-shadow 0.3s, transform 0.3s;
}
.learn-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.learn-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.learn-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.learn-card p { font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   FAMILY
   ============================================= */

.family {
    background: var(--white);
    padding: 80px 0;
}

.family-row {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 44px;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid rgba(28, 26, 39, 0.04);
}

.family-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.family-text h3 { font-size: 1.05rem; margin-bottom: 4px; }
.family-text p { font-size: 0.95rem; line-height: 1.65; }

/* =============================================
   PRIVACY
   ============================================= */

.privacy {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 130px 0;
}

.privacy-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 350px at 25% 25%, rgba(91, 91, 214, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 400px 400px at 75% 75%, rgba(91, 91, 214, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.privacy-content { position: relative; z-index: 1; }

.privacy-header { text-align: center; margin-bottom: 40px; }

.privacy-header h2 {
    color: var(--white);
    max-width: 580px;
    margin: 0 auto 20px;
}

.privacy-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.privacy-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 56px;
}

.pill {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.privacy-details {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 4px 0;
}

.detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
    opacity: 0.6;
}

.privacy-detail strong {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.privacy-detail p {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   DOWNLOAD CTA
   ============================================= */

.download {
    background: var(--primary);
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.download h2 { color: var(--white); margin-bottom: 10px; position: relative; }
.download p { color: rgba(255,255,255,0.65); font-size: 1.12rem; margin-bottom: 36px; position: relative; }

.download .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
}
.download .btn-primary:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.12); }

.download-note {
    display: block;
    margin-top: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    position: relative;
}

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

footer {
    background: var(--dark);
    padding: 36px 0 28px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-wordmark { height: 26px; width: auto; opacity: 0.6; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-fine { font-size: 0.7rem; color: rgba(255,255,255,0.16); text-align: center; }

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

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

@media (max-width: 900px) {
    .learn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }
    .container { padding: 0 20px; }

    /* Hero */
    .hero { padding: 32px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-sub, .hero-body { margin-left: auto; margin-right: auto; max-width: 100%; }
    .hero-cta { align-items: center; }
    .hero-device { order: -1; }
    .phone-frame { width: 200px; border-radius: 32px; }
    .phone-screen { border-radius: 27px; }
    .hero-glow { width: 240px; height: 240px; }

    /* Shift */
    .shift-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 28px;
        text-align: center;
    }
    .shift-arrow { transform: rotate(90deg); }
    .shift-arrow svg { width: 24px; height: 24px; }

    /* Screenshots */
    .screenshot-row { gap: 24px; }
    .phone-sm { width: 150px; border-radius: 26px; }
    .phone-sm .phone-screen { border-radius: 22px; }

    /* Family */
    .family-row { flex-direction: column; text-align: center; padding: 32px 24px; }
    .family-dots { justify-content: center; }

    /* Privacy */
    .privacy { padding: 80px 0; }
    .privacy-pills { gap: 8px; }
    .pill { padding: 8px 16px; font-size: 0.78rem; }

    /* Download */
    .download { padding: 72px 0; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-brand { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .btn-nav-free { display: none; }
    .phone-frame { width: 170px; }
    .phone-sm { width: 130px; }
    .btn-lg { padding: 16px 36px; font-size: 1rem; }
    .shift-card { padding: 24px 20px; }
}
