:root {
    --fz-black: #0A0A0A;
    --fz-white: #FFFFFF;
    --fz-accent: #E8442A;
    --fz-accent-dark: #C23520;
    --fz-gray-100: #F5F5F5;
    --fz-gray-200: #E9E9E9;
    --fz-gray-400: #ABABAB;
    --fz-gray-700: #4A4A4A;
    --fz-radius: 8px;
    --fz-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--fz-black);
    background: var(--fz-gray-100);
}

.btn-accent {
    background-color: var(--fz-accent);
    border-color: var(--fz-accent);
    color: var(--fz-white);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--fz-accent-dark);
    border-color: var(--fz-accent-dark);
    color: var(--fz-white);
}

.btn-outline-accent {
    border-color: var(--fz-accent);
    color: var(--fz-accent);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--fz-accent);
    border-color: var(--fz-accent);
    color: var(--fz-white);
}

.card {
    border: none;
    border-radius: var(--fz-radius);
    box-shadow: var(--fz-shadow);
}

.stat-card {
    background: var(--fz-white);
    border-radius: var(--fz-radius);
    box-shadow: var(--fz-shadow);
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fz-black);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--fz-gray-700);
}

.badge-processing {
    background-color: #ffc107;
    color: #000;
}

.badge-published {
    background-color: #198754;
    color: #fff;
}

.badge-failed {
    background-color: #dc3545;
    color: #fff;
}

.badge-draft {
    background-color: var(--fz-gray-400);
    color: #fff;
}

.upload-dropzone {
    border: 2px dashed var(--fz-gray-400);
    border-radius: var(--fz-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: var(--fz-white);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--fz-accent);
    background-color: #fef2f0;
}

.upload-dropzone .dropzone-icon {
    font-size: 3rem;
    color: var(--fz-gray-400);
}

.cover-thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--fz-gray-200);
}

.plan-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-badge.plan-free { background: var(--fz-gray-200); color: var(--fz-gray-700); }
.plan-badge.plan-creator { background: #dbeafe; color: #1e40af; }
.plan-badge.plan-publisher { background: #fef3c7; color: #92400e; }
.plan-badge.plan-studio { background: #ede9fe; color: #5b21b6; }
.plan-badge.plan-enterprise { background: var(--fz-black); color: var(--fz-white); }

/* Navbar */
.navbar {
    background: var(--fz-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar-brand img {
    height: 32px;
}

/* Hero */
.hero-section {
    background: var(--fz-black);
    color: var(--fz-white);
    padding: 5rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: var(--fz-gray-400);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Publication cards */
.pub-card {
    background: var(--fz-white);
    border-radius: var(--fz-radius);
    box-shadow: var(--fz-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pub-card .pub-cover {
    width: 100%;
    aspect-ratio: 0.707;
    object-fit: cover;
    background: var(--fz-gray-200);
}

.pub-card .pub-info {
    padding: 1rem;
}

.pub-card .pub-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-card .pub-meta {
    font-size: 0.8rem;
    color: var(--fz-gray-700);
}

/* Flipbook viewer */
.flipbook-container {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background: var(--fz-gray-200);
    border-radius: var(--fz-radius);
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fz-black);
    color: var(--fz-white);
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 0.5rem;
}

/* Newsstand */
.newsstand-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--fz-radius);
}

.newsstand-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fz-white);
    margin-top: -40px;
    background: var(--fz-gray-200);
}

/* Pricing */
.pricing-card {
    background: var(--fz-white);
    border-radius: var(--fz-radius);
    box-shadow: var(--fz-shadow);
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.pricing-card.popular {
    border: 2px solid var(--fz-accent);
    position: relative;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-card .period {
    color: var(--fz-gray-700);
    font-size: 0.9rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.pricing-card ul li::before {
    content: "✓ ";
    color: var(--fz-accent);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--fz-white);
    border-top: 1px solid var(--fz-gray-200);
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--fz-gray-700);
    font-size: 0.85rem;
}

footer a {
    color: var(--fz-gray-700);
    text-decoration: none;
}

footer a:hover {
    color: var(--fz-accent);
}

/* Powered by Flipzine badge (embed) */
.powered-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    z-index: 1000;
}

.powered-badge:hover {
    background: rgba(0,0,0,0.9);
    color: #fff;
}
