/* ================================
   Global Design System
   ================================ */

/* Design tokens - shared with landing page */
:root {
    --color-cream: #faf7f2;
    --color-cream-warm: #f5efe6;
    --color-paper: #fffcf7;
    --color-terracotta: #b8513d;
    --color-terracotta-deep: #9a4332;
    --color-terracotta-glow: rgba(184, 81, 61, 0.12);
    --color-burgundy: #6b2d3b;
    --color-ink: #1a1a1a;
    --color-ink-soft: #3d3d3d;
    --color-ink-muted: #6b6b6b;
    --color-sage: #7a8b6e;
    --color-gold: #c4a35a;
    --color-error: #c53030;
    --color-error-bg: #fff5f5;
    --color-success: #2f855a;
    --color-success-bg: #f0fff4;
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3 {
    font-family: var(--font-headline);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-ink);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-ink-soft);
}

a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-terracotta-deep);
}

/* ================================
   Navbar
   ================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 2rem;
    background-color: var(--color-paper);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--color-ink);
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
}

.navbar-links a {
    text-decoration: none;
    color: var(--color-ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--color-terracotta);
}

.navbar-right {
    display: flex;
    align-items: center;
    min-width: 120px;
    justify-content: flex-end;
}

/* ================================
   Main Content Area
   ================================ */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    min-height: calc(100vh - 200px);
}

/* ================================
   Auth Pages (Login/Signup)
   ================================ */
.auth-container {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.auth-container h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-container > p {
    color: var(--color-ink-muted);
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-ink-soft);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-ink);
    background: var(--color-cream);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background: white;
    box-shadow: 0 0 0 3px var(--color-terracotta-glow);
}

.form-group input::placeholder {
    color: var(--color-ink-muted);
}

.auth-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-ink-muted);
}

.auth-link a {
    font-weight: 600;
}

/* ================================
   Buttons
   ================================ */
button,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--color-terracotta);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

button:hover,
.action-btn:hover:not(:disabled) {
    background-color: var(--color-terracotta-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 81, 61, 0.25);
}

button:active,
.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    background-color: var(--color-ink-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.action-btn-secondary {
    background-color: var(--color-ink-soft);
}

.action-btn-secondary:hover:not(:disabled) {
    background-color: var(--color-ink);
}

.action-btn-danger {
    background-color: var(--color-error);
}

.action-btn-danger:hover:not(:disabled) {
    background-color: #9b2c2c;
}

/* ================================
   Messages (Error/Success)
   ================================ */
.error-message {
    background-color: var(--color-error-bg);
    border: 1px solid #fed7d7;
    border-left: 4px solid var(--color-error);
    color: var(--color-error);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
}

.success-message {
    background-color: var(--color-success-bg);
    border: 1px solid #c6f6d5;
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
}

/* ================================
   User Info / Logout
   ================================ */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-ink-muted);
}

.logout-form {
    display: inline;
}

.logout-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: transparent;
    color: var(--color-ink-soft);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}

.logout-btn:hover {
    background-color: var(--color-ink);
    color: white;
    border-color: var(--color-ink);
    transform: none;
    box-shadow: none;
}

/* ================================
   Dashboard
   ================================ */
.dashboard-container {
    text-align: left;
    padding: 0;
}

.stats-section {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.stats-count {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

.stats-count strong {
    color: var(--color-terracotta);
}

.progress-message {
    color: var(--color-sage);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.actions-section {
    margin-bottom: 2rem;
}

.action-form {
    margin-bottom: 1rem;
}

.pending-notice {
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Summary Section */
.summary-section {
    padding: 2rem;
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-gold);
}

.summary-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--color-ink);
}

.summary-text {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.9;
    color: var(--color-ink-soft);
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}

.summary-meta {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
    margin-bottom: 0;
}

/* GDPR Actions Section */
.gdpr-actions {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.gdpr-actions h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.gdpr-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.gdpr-buttons .action-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

/* ================================
   FAQ Page
   ================================ */
.faq-container {
    padding: 0;
}

.faq-container h1 {
    margin-bottom: 2rem;
}

.faq-item {
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.faq-answer p {
    margin-bottom: 1rem;
    color: var(--color-ink-soft);
}

.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--color-ink-soft);
}

.faq-answer li strong {
    color: var(--color-terracotta);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ================================
   News Section
   ================================ */
.news-container {
    padding: 0;
}

.news-container h1 {
    margin-bottom: 2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-card {
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.news-card-link {
    display: block;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
}

.news-card-title {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
    margin-bottom: 1rem;
}

.news-card-excerpt {
    color: var(--color-ink-soft);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-card-read-more {
    color: var(--color-terracotta);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-card:hover .news-card-read-more {
    color: var(--color-terracotta-deep);
}

.no-news {
    color: var(--color-ink-muted);
    text-align: center;
    padding: 3rem 2rem;
    font-style: italic;
}

/* News Article Page */
.news-article-container {
    padding: 0;
}

.news-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-article-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.news-article-date {
    font-size: 0.9rem;
    color: var(--color-ink-muted);
    margin-bottom: 0.75rem;
}

.news-article-content {
    line-height: 1.8;
    color: var(--color-ink-soft);
}

.news-article-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.news-article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.news-article-content p {
    margin-bottom: 1.25rem;
}

.news-article-content ul,
.news-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.news-article-content li {
    margin-bottom: 0.5rem;
}

.news-article-content code {
    background-color: var(--color-cream-warm);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.news-article-content pre {
    background-color: var(--color-ink);
    color: var(--color-cream);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.news-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.news-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pagination-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--color-terracotta);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background-color: var(--color-terracotta-glow);
    color: var(--color-terracotta-deep);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--color-ink-muted);
}

/* ================================
   Answers List Page
   ================================ */
.answers-container {
    padding: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0;
}

.page-header .back-link,
.back-link a {
    color: var(--color-ink-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.page-header .back-link:hover,
.back-link a:hover {
    color: var(--color-terracotta);
}

.answer-card {
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.2s ease;
}

.answer-card:hover {
    box-shadow: var(--shadow-card);
}

.answer-question {
    font-family: var(--font-headline);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-terracotta-deep);
}

.answer-text {
    line-height: 1.7;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    color: var(--color-ink-soft);
}

.answer-meta {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
    margin-bottom: 1rem;
}

.answer-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.edit-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: var(--color-cream-warm);
    color: var(--color-ink-soft);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.edit-btn:hover {
    background-color: var(--color-terracotta-glow);
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.delete-btn {
    background-color: transparent;
    color: var(--color-error);
    border: 1px solid currentColor;
}

.delete-btn:hover {
    background-color: var(--color-error);
    color: white;
}

.resend-btn {
    background-color: var(--color-sage);
    color: white;
    border: none;
}

.resend-btn:hover {
    background-color: #6a7b5e;
}

.success-text {
    color: var(--color-success);
    font-size: 0.9rem;
    font-weight: 500;
}

.error-text {
    color: var(--color-error);
    font-size: 0.9rem;
    font-weight: 500;
}

.resend-link {
    background: none;
    border: none;
    color: var(--color-terracotta);
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.resend-link:hover {
    color: var(--color-terracotta-deep);
    transform: none;
    box-shadow: none;
}

.no-answers {
    color: var(--color-ink-muted);
    text-align: center;
    padding: 3rem 2rem;
    font-style: italic;
}

/* ================================
   Edit Answer Page
   ================================ */
.edit-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
}

.edit-container h1 {
    margin-bottom: 1.5rem;
}

.question-display {
    background-color: var(--color-cream-warm);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-terracotta-deep);
    border-left: 4px solid var(--color-terracotta);
}

.edit-form {
    margin-bottom: 1.5rem;
}

.edit-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    resize: vertical;
    min-height: 200px;
    background: var(--color-paper);
}

.edit-form textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px var(--color-terracotta-glow);
}

.cancel-link {
    display: inline-block;
    color: var(--color-ink-muted);
    font-weight: 500;
}

.cancel-link:hover {
    color: var(--color-terracotta);
}

/* ================================
   Delete Confirmation Page
   ================================ */
.delete-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
}

.delete-container h1 {
    margin-bottom: 1.5rem;
    color: var(--color-error);
}

.warning-box {
    background-color: var(--color-error-bg);
    border: 1px solid #fed7d7;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box p {
    margin-bottom: 0.75rem;
    color: var(--color-ink-soft);
}

.warning-box p strong {
    color: var(--color-error);
}

.warning-box ul {
    margin: 1rem 0 0 1.5rem;
}

.warning-box li {
    margin-bottom: 0.35rem;
    color: var(--color-ink-soft);
}

.delete-form {
    margin-bottom: 1.5rem;
}

.delete-form .form-group {
    margin-bottom: 1.5rem;
}

/* ================================
   Impressum Page
   ================================ */
.impressum-container {
    padding: 0;
}

.impressum-container h1 {
    margin-bottom: 2rem;
}

.impressum-section {
    background-color: var(--color-paper);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.impressum-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.impressum-section p {
    margin-bottom: 0.35rem;
    color: var(--color-ink-soft);
}

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

/* ================================
   Footer
   ================================ */
.site-footer {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    background-color: var(--color-paper);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-ink-muted);
}

.footer-content a {
    color: var(--color-ink-soft);
}

.footer-content a:hover {
    color: var(--color-terracotta);
}

/* ================================
   HTMX States
   ================================ */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
form.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request .btn-text,
form.htmx-request .btn-text {
    display: none;
}

form.htmx-request .action-btn {
    opacity: 0.7;
    cursor: wait;
}

/* Loading state */
.loading-message {
    color: var(--color-ink-muted);
    font-style: italic;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 600px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-title {
        font-size: 1.1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .auth-container {
        margin: 1rem;
        padding: 1.75rem 1.5rem;
    }

    h1 {
        font-size: 1.65rem;
    }

    .gdpr-buttons {
        flex-direction: column;
    }

    .gdpr-buttons .action-btn {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .answer-actions {
        flex-direction: column;
    }

    .edit-btn,
    .delete-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   Landing Page Styles
   ================================ */

/* Import fonts - Playfair Display for elegant headlines, Source Sans for readable body */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* Landing page variables - warm, literary palette */
:root {
    --lp-cream: #faf7f2;
    --lp-cream-warm: #f5efe6;
    --lp-paper: #fffcf7;
    --lp-terracotta: #b8513d;
    --lp-terracotta-deep: #9a4332;
    --lp-terracotta-glow: rgba(184, 81, 61, 0.12);
    --lp-burgundy: #6b2d3b;
    --lp-ink: #1a1a1a;
    --lp-ink-soft: #3d3d3d;
    --lp-ink-muted: #6b6b6b;
    --lp-sage: #7a8b6e;
    --lp-gold: #c4a35a;
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
}

.landing-page {
    font-family: var(--font-body);
    background: var(--lp-cream);
    overflow-x: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
    padding-top: 0;
    position: relative;
}

/* Subtle paper texture overlay */
.landing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation buttons */
.landing-nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-btn-ghost {
    color: var(--lp-ink);
    background: transparent;
}

.nav-btn-ghost:hover {
    color: var(--lp-terracotta);
    background: var(--lp-terracotta-glow);
}

.nav-btn-primary {
    color: white;
    background: var(--lp-terracotta);
}

.nav-btn-primary:hover {
    background: var(--lp-terracotta-deep);
    transform: translateY(-1px);
}

/* ================================
   Hero Section - Typography Forward
   ================================ */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    min-height: calc(100vh - 80px);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Eyebrow / badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lp-terracotta);
    background: var(--lp-terracotta-glow);
    border-radius: 100px;
    margin-bottom: 1.75rem;
    animation: fadeSlideIn 0.7s ease-out;
}

.eyebrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--lp-terracotta);
    border-radius: 50%;
    color: white;
}

.eyebrow-icon svg {
    width: 14px;
    height: 14px;
}

/* Main headline - the hero element */
.hero-headline {
    font-family: var(--font-headline);
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--lp-ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    animation: fadeSlideIn 0.7s ease-out 0.1s backwards;
}

.headline-line {
    display: block;
}

.headline-accent {
    color: var(--lp-terracotta);
    font-style: italic;
    font-weight: 600;
}

/* Subhead */
.hero-subhead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--lp-ink-soft);
    margin-bottom: 2rem;
    max-width: 440px;
    animation: fadeSlideIn 0.7s ease-out 0.2s backwards;
}

/* CTA area */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    animation: fadeSlideIn 0.7s ease-out 0.3s backwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: var(--lp-terracotta);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 81, 61, 0.25);
}

.btn-hero:hover {
    background: var(--lp-terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 81, 61, 0.35);
}

.btn-hero svg {
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateX(4px);
}

.hero-note {
    font-size: 0.85rem;
    color: var(--lp-ink-muted);
}

/* ================================
   Hero Demo - Animated Email/Story
   ================================ */
.hero-demo {
    position: relative;
    z-index: 1;
    animation: fadeSlideIn 0.8s ease-out 0.4s backwards;
}

.demo-container {
    position: relative;
    padding: 1rem;
}

/* Email card */
.demo-email {
    background: var(--lp-paper);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.06),
        0 12px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    animation: floatSoft 6s ease-in-out infinite;
}

.email-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--lp-cream-warm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.email-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0dcd4;
}

.email-dot:first-child { background: #f5c6c6; }
.email-dot:nth-child(2) { background: #f5e6c6; }
.email-dot:nth-child(3) { background: #c6e6c6; }

.email-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.email-from {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lp-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.email-subject {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lp-ink);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.email-body {
    margin: 0;
}

.email-question {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--lp-terracotta-deep);
    margin: 0;
}

/* Story output card */
.demo-story {
    margin-top: -1.5rem;
    margin-left: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.03),
        0 8px 24px rgba(0,0,0,0.08);
    border-left: 3px solid var(--lp-gold);
    position: relative;
    z-index: 2;
    animation: floatSoft 6s ease-in-out infinite 0.5s;
}

.story-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lp-gold);
    margin-bottom: 0.75rem;
}

.story-text {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--lp-ink-soft);
}

/* Typewriter animation */
.typewriter {
    display: inline;
    background: linear-gradient(90deg, var(--lp-ink-soft) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: typeReveal 4s ease-out forwards 1s;
}

@keyframes typeReveal {
    to {
        background-position: 0 0;
    }
}

/* Floating decorations */
.demo-float {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.demo-float-1 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--lp-gold) 0%, var(--lp-terracotta) 100%);
    opacity: 0.08;
    top: -30px;
    right: -40px;
    animation: floatSoft 8s ease-in-out infinite;
}

.demo-float-2 {
    width: 120px;
    height: 120px;
    background: var(--lp-sage);
    opacity: 0.1;
    bottom: 20px;
    left: -20px;
    animation: floatSoft 10s ease-in-out infinite reverse;
}

/* ================================
   Process / How It Works Section
   ================================ */
.process-section {
    background: white;
    padding: 6rem 2rem;
    position: relative;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-sage);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--lp-ink);
    margin: 0;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-visual {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-ring {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-cream);
    border: 2px solid var(--lp-cream-warm);
    border-radius: 50%;
    color: var(--lp-terracotta);
    transition: all 0.3s ease;
}

.process-step:hover .step-ring {
    background: var(--lp-terracotta-glow);
    border-color: var(--lp-terracotta);
    transform: scale(1.05);
}

.step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-terracotta);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lp-ink);
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--lp-ink-muted);
    margin: 0;
}

/* Connector line between steps */
.process-connector {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--lp-cream-warm), var(--lp-terracotta-glow), var(--lp-cream-warm));
    margin-top: 5.5rem;
    border-radius: 1px;
}

/* ================================
   Value Proposition Section
   ================================ */
.value-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    align-items: center;
}

.value-content {
    padding-right: 2rem;
}

.value-headline {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--lp-ink);
    margin-bottom: 1.5rem;
}

.value-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--lp-ink-soft);
    margin-bottom: 2rem;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.625rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--lp-ink-soft);
}

.value-list li strong {
    color: var(--lp-ink);
}

.value-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--lp-terracotta-glow);
    color: var(--lp-terracotta);
    border-radius: 50%;
    margin-top: 2px;
}

.value-check svg {
    width: 14px;
    height: 14px;
}

/* Quote card */
.value-visual {
    display: flex;
    justify-content: center;
}

.quote-card {
    background: var(--lp-paper);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.04),
        0 16px 50px rgba(0,0,0,0.06);
    position: relative;
    max-width: 400px;
}

.quote-marks {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-headline);
    font-size: 6rem;
    line-height: 1;
    color: var(--lp-terracotta);
    opacity: 0.1;
}

.quote-text {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--lp-ink);
    margin: 0 0 1.75rem 0;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-terracotta);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lp-ink);
}

.author-note {
    font-size: 0.8rem;
    color: var(--lp-ink-muted);
}

/* ================================
   Final CTA Section
   ================================ */
.cta-section {
    position: relative;
    background: var(--lp-burgundy);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--lp-burgundy);
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background: var(--lp-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Background pattern */
.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, white 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 3rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-content {
        order: 1;
    }

    .hero-demo {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-subhead {
        max-width: none;
    }

    .hero-actions {
        align-items: center;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--lp-cream-warm), var(--lp-terracotta-glow), var(--lp-cream-warm));
        margin: 0;
    }

    .process-step {
        max-width: 340px;
    }

    .value-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .value-content {
        padding-right: 0;
        text-align: center;
    }

    .value-list li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .landing-nav-buttons {
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .demo-story {
        margin-left: 1rem;
    }

    .section-headline {
        font-size: 1.5rem;
    }

    .quote-card {
        padding: 2rem 1.5rem;
    }
}
