/* The Digest - Modern Gradient Aesthetic */

:root {
    /* Colors - gradient modern palette */
    --ink: #0f172a;
    --ink-light: #1e293b;
    --ink-lighter: #475569;
    --ink-muted: #64748b;
    --paper: #ffffff;
    --paper-alt: #f8fafc;
    --paper-muted: #f1f5f9;

    /* Gradient accent colors */
    --accent-start: #2563eb;
    --accent-end: #7c3aed;
    --accent: #4f46e5;
    --accent-dark: #4338ca;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Typography */
    --font-display: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.nav {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ink-lighter);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    color: var(--paper) !important;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Hero */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--ink-lighter);
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-lighter);
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-input {
    flex: 1;
    min-width: 240px;
    padding: 16px 20px;
    border: 1px solid var(--border-dark);
    font-family: var(--font-body);
    font-size: 16px;
    background: white;
    border-radius: 8px;
}

.hero-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-lighter);
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--accent);
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-muted);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: white;
    color: var(--ink);
    border: 1px solid var(--border-dark);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: var(--paper);
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: var(--ink);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--ink-lighter);
    margin-top: -60px;
    margin-bottom: 60px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 60px;
}

.process-step {
    text-align: center;
}

.process-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.4;
}

.process-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}

.process-desc {
    color: var(--ink-lighter);
    line-height: 1.6;
}

/* Example Section */
.example-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--paper) 0%, #f8fafc 100%);
}

.digest-example {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.digest-header {
    padding: 40px;
    border-bottom: 1px solid var(--border);
}

.digest-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.digest-meta {
    color: var(--ink-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story {
    padding: 40px;
    border-bottom: 1px solid var(--border);
}

.story:last-of-type {
    border-bottom: none;
}

.story-section {
    margin-bottom: 24px;
}

.story-section:last-child {
    margin-bottom: 0;
}

.story-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 12px;
}

.story-section p {
    color: var(--ink-light);
    line-height: 1.8;
    font-size: 16px;
}

.story-perspectives {
    padding-left: 24px;
    border-left: 3px solid var(--accent-end);
}

.story-perspectives .story-label {
    background: none;
    -webkit-text-fill-color: var(--ink-lighter);
    color: var(--ink-lighter);
}

.story-perspectives p {
    font-style: italic;
    color: var(--ink-lighter);
}

.demo-cta {
    padding: 40px;
    background: var(--paper-muted);
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
}

.demo-prompt {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--ink);
}

.demo-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-dark);
    font-family: var(--font-body);
    font-size: 16px;
    background: white;
    border-radius: 8px;
}

.demo-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Signup */
.signup-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
}

.signup-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 15px;
}

.form-hint {
    font-size: 14px;
    color: var(--ink-muted);
    margin: -4px 0 12px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-dark);
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--paper-alt);
    border-radius: 8px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.topic-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--paper-alt);
    border-radius: 8px;
}

.topic-option:hover {
    border-color: var(--accent);
    background: white;
}

.topic-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.topic-label {
    font-weight: 500;
}

.plan-card {
    margin: 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-radius: 6px;
}

.plan-features {
    list-style: none;
    margin-bottom: 16px;
}

.plan-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--ink);
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.plan-note {
    color: var(--ink-muted);
    font-size: 14px;
    font-style: italic;
}

.form-message {
    margin-top: 16px;
    padding: 16px;
    text-align: center;
    font-weight: 500;
    display: none;
    border-radius: 8px;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    display: block;
}

.form-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 24px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--paper);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-cta {
        align-items: stretch;
    }

    .hero-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .digest-header,
    .story,
    .demo-cta,
    .signup-form {
        padding: 24px;
    }
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--ink-muted);
    font-size: 0.875rem;
    margin-bottom: 48px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink-light);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--ink-lighter);
    margin-bottom: 16px;
    max-width: 680px;
}

.legal-content ul {
    color: var(--ink-lighter);
    margin-bottom: 16px;
    padding-left: 24px;
    max-width: 680px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--ink-light);
}

/* Message Pages (Unsubscribe, Confirmation, etc.) */
.message-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.message-card {
    max-width: 480px;
    background: var(--paper);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.message-card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--ink);
    margin-bottom: 16px;
}

.message-card p {
    color: var(--ink-lighter);
    line-height: 1.6;
    margin-bottom: 24px;
}

.message-card strong {
    color: var(--ink);
    font-weight: 600;
}

.message-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.message-icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.message-icon-error {
    background: #fee2e2;
    color: #dc2626;
}
