/* Sage & Elle Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --coral: #FF6B5A;
    --coral-light: #FF8A7A;
    --sky: #5BB8F5;
    --mint: #5DD9A8;
    --sunshine: #FFD166;
    --lavender: #B794F6;
    --sand: #FFF8F0;
    --deep: #2D1B4E;
    --warm-white: #FFFDF9;
    --text-muted: rgba(45,27,78,0.6);
    --text-light: rgba(45,27,78,0.7);
    --border-light: rgba(45,27,78,0.06);
    --border-medium: rgba(45,27,78,0.08);
    --shadow-sm: 0 2px 8px rgba(45,27,78,0.04);
    --shadow-md: 0 4px 24px rgba(45,27,78,0.04);
    --shadow-lg: 0 8px 32px rgba(45,27,78,0.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-full: 100px;
}

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

a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,253,249,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo .sage { color: var(--coral); }
.nav-logo .amp { color: var(--lavender); font-size: 0.9em; }
.nav-logo .elle { color: var(--sky); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--deep);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
}

.nav-cta {
    background: var(--coral) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,107,90,0.3);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
    color: var(--deep);
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,253,249,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 0;
}

/* ===== SHARED COMPONENTS ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-coral {
    background: var(--coral);
    color: white;
}

.btn-coral:hover {
    box-shadow: 0 6px 24px rgba(255,107,90,0.3);
}

.btn-sky {
    background: var(--sky);
    color: white;
}

.btn-sky:hover {
    box-shadow: 0 6px 24px rgba(91,184,245,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--deep);
    border: 2px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.btn-white {
    background: white;
    color: var(--deep);
}

.btn-white:hover {
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Email Signup Form */
.signup-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    width: 100%;
}

.signup-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-medium);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--deep);
    background: white;
    outline: none;
    transition: border-color 0.2s ease;
}

.signup-form input::placeholder {
    color: rgba(45,27,78,0.35);
}

.signup-form input:focus {
    border-color: var(--coral);
}

.signup-form button {
    white-space: nowrap;
}

.signup-message {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.signup-message.success { color: var(--mint); }
.signup-message.error { color: var(--coral); }

/* Page hero (non-homepage) */
.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(170deg, #FFF0E8 0%, #E8F4FF 40%, #F0FFF4 70%, #FFF8E8 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,107,90,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(91,184,245,0.07) 0%, transparent 35%);
    pointer-events: none;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 24px 40px;
    background: var(--deep);
    color: white;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sunshine);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: var(--coral);
}

/* ===== AMAZON FORMAT BADGES ===== */
.format-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(45,27,78,0.04);
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.format-badge:hover {
    background: var(--coral);
    color: white;
}

.format-badge.kindle { border-left: 3px solid var(--sky); }
.format-badge.paperback { border-left: 3px solid var(--mint); }
.format-badge.hardcover { border-left: 3px solid var(--lavender); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
