/* ─── HAPPINESS EVOLUTION — APP COMPANION SITE ─── */

:root {
    --slate:        #3A5068;
    --slate-mid:    #4D6B85;
    --slate-light:  #6B8BA4;
    --amber:        #C8960A;
    --amber-light:  #E8BC4A;
    --amber-pale:   #FDF3D8;
    --blue-pale:    #EEF3F8;
    --blue-light:   #E0EAF4;
    --white:        #FAFCFE;
    --ink:          #141E28;
    --body:         #3D526A;
    --muted:        #7A92A8;
    --border:       #C8D8E8;
    --success:      #4A8B6E;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; }
.serif-italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
    display: block;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: #b07d05; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,150,10,0.25); color: white; }
.btn-slate { background: var(--slate); color: white; }
.btn-slate:hover { background: var(--slate-mid); color: white; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--slate); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--slate); color: var(--slate); }
.btn-ghost { background: transparent; color: var(--body); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--slate); }

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 22px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease;
}
nav.scrolled {
    background: rgba(250,252,254,0.96);
    backdrop-filter: blur(16px);
    padding: 14px 64px;
    box-shadow: 0 1px 0 var(--border);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 500; color: var(--slate); letter-spacing: 0.02em; }
.nav-logo em { color: var(--amber); font-style: italic; }
.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: var(--body); letter-spacing: 0.03em; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--slate); }
.nav-links a.active { color: var(--slate); font-weight: 500; }
.nav-links .nav-cta { background: var(--slate); color: white; padding: 9px 20px; border-radius: 100px; font-weight: 500; transition: background 0.2s; }
.nav-links .nav-cta:hover { background: var(--slate-mid); color: white; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--slate); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
    background: var(--blue-pale);
    padding: 160px 64px 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--slate); margin-bottom: 16px; }
.page-hero-sub { font-size: 1.05rem; color: var(--body); font-weight: 300; max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ─── SECTION ─── */
.section { padding: 100px 64px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--blue-pale); }

/* ─── APP STORE BADGES ─── */
.store-badges {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: white;
    border-radius: 10px;
    padding: 10px 20px 10px 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.15);
}
.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20,30,40,0.3);
    color: white;
}
.store-badge-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.store-badge-label {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    opacity: 0.7;
}
.store-badge-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ─── LEGAL PAGES ─── */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 64px 100px;
}
.legal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--slate);
    margin: 48px 0 16px;
    line-height: 1.3;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
    font-size: 0.925rem;
    line-height: 1.85;
    color: var(--body);
    font-weight: 300;
    margin-bottom: 16px;
}
.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}
.legal-content ul li {
    font-size: 0.925rem;
    line-height: 1.85;
    color: var(--body);
    font-weight: 300;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}
.legal-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}
.legal-content a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: #b07d05; }
.legal-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.legal-meta span { display: block; margin-bottom: 4px; }

/* ─── FOOTER ─── */
footer { background: var(--ink); padding: 72px 64px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; max-width: 1280px; margin: 0 auto 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: white; margin-bottom: 14px; }
.footer-brand-name em { color: var(--amber-light); font-style: italic; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.38); line-height: 1.75; font-weight: 300; max-width: 260px; }
.footer-col-h { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.58); font-weight: 300; transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: var(--amber-light); }
.footer-bottom { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.22); }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.38); font-size: 0.75rem; text-decoration: none; transition: all 0.2s; }
.footer-social:hover { border-color: var(--amber-light); color: var(--amber-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeUp 0.75s ease 0.15s both; }
.anim-2 { animation: fadeUp 0.75s ease 0.3s both; }
.anim-3 { animation: fadeUp 0.75s ease 0.45s both; }
.anim-4 { animation: fadeUp 0.75s ease 0.6s both; }
.anim-5 { animation: fadeUp 0.75s ease 0.75s both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .section { padding: 80px 40px; }
    nav { padding: 18px 40px; }
    nav.scrolled { padding: 12px 40px; }
    .page-hero { padding: 140px 40px 64px; }
    footer { padding: 56px 40px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .legal-content { padding: 60px 40px 80px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); padding: 100px 40px 40px; gap: 24px; z-index: 190; }
    .nav-links.open a { font-size: 1.5rem; color: var(--slate); }
    .section { padding: 64px 24px; }
    .page-hero { padding: 120px 24px 56px; }
    footer { padding: 56px 24px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    nav { padding: 16px 24px; }
    nav.scrolled { padding: 12px 24px; }
    .legal-content { padding: 48px 24px 64px; }
}
