/* Incipor — Professional Authoring for Writers
   Design: warm literary aesthetic with serif headings,
   parchment tones, deep ink sections, amber accents */

:root {
    /* Warm literary palette */
    --ink: #1a1a2e;
    --ink-light: #2d2d44;
    --parchment: #faf6f0;
    --parchment-dark: #f0ebe3;
    --amber: #c9a55a;
    --amber-dark: #a88a3e;
    --amber-light: #e8d5a3;
    --burgundy: #8b2635;
    --text-color: #2c2c2c;
    --text-secondary: #6b6358;
    --text-on-dark: #e8e4de;
    --text-on-dark-muted: #a39e96;
    --border-color: #d8d0c4;
    --max-width: 1100px;
    --spacing: 1.25rem;
    --border-radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--parchment);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ink);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--amber-dark);
    text-decoration: underline;
}

code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--parchment-dark);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

/* ===== Header ===== */

.site-header {
    background-color: rgba(250, 246, 240, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
}

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

.logo-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    font-style: italic;
    color: var(--amber);
    line-height: 1;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ink);
    text-decoration: none;
}

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--ink);
    color: var(--parchment);
}

.btn-primary:hover {
    background-color: var(--ink-light);
    text-decoration: none;
    color: var(--parchment);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn-secondary:hover {
    background-color: var(--ink);
    color: var(--parchment);
    text-decoration: none;
}

/* ===== Hero ===== */

.hero {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 6rem 0 5rem;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero h1 {
    color: var(--parchment);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-style: italic;
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-on-dark-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-pricing {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 2.5rem;
}

.hero-pricing .separator {
    margin: 0 0.5rem;
    color: var(--amber);
}

/* ===== Download Badges ===== */

.download-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.badge-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===== Section Styles ===== */

.section-dark {
    background: var(--parchment-dark);
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    font-size: 1.0625rem;
}

/* ===== Features Grid (Home) ===== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--parchment);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--amber);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== Craft Section ===== */

.section-craft {
    padding: 5rem 0;
}

.craft-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.craft-text h2 {
    margin-top: 0;
    font-size: 2rem;
}

.craft-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.craft-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.craft-item {
    border-left: 3px solid var(--amber);
    padding-left: 1.25rem;
}

.craft-item strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.craft-item span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== Quote Section ===== */

.section-quote {
    background: var(--ink);
    padding: 5rem 0;
    text-align: center;
}

.pullquote {
    border: none;
    margin: 0 auto 1.5rem;
    padding: 0;
    max-width: 700px;
}

.pullquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-style: italic;
    color: var(--parchment);
    line-height: 1.4;
    margin: 0;
}

.quote-context {
    color: var(--text-on-dark-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ===== CTA / Pricing Section ===== */

.section-cta {
    padding: 5rem 0;
    text-align: center;
}

.section-cta h2 {
    margin-top: 0;
}

.section-cta > .container > p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.cta-pricing {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.price-card {
    background: var(--parchment-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 2.5rem;
    min-width: 200px;
    text-align: center;
}

.price-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.price-card .price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.price-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.price-card-featured {
    border-color: var(--amber);
    background: linear-gradient(135deg, var(--parchment-dark) 0%, rgba(201, 165, 90, 0.08) 100%);
    position: relative;
}

.price-card-featured::before {
    content: "Best value";
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
}

/* ===== Page Header ===== */

.page-header {
    background: var(--parchment-dark);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

.page-header-guide {
    background: var(--ink);
    border-bottom: none;
}

.page-header-guide h1 {
    color: var(--parchment);
}

.page-header-guide .lead {
    color: var(--text-on-dark-muted);
}

/* ===== Content Pages ===== */

.content {
    padding: 3rem 0;
}

.content.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem var(--spacing);
}

.content h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h3 {
    color: var(--ink);
}

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

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

.content blockquote {
    border-left: 3px solid var(--amber);
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content th, .content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.content th {
    background: var(--parchment-dark);
    font-weight: 600;
}

.last-updated {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== Features Page ===== */

.features-section {
    margin-bottom: 3rem;
}

.features-section h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    transition: background 0.2s;
}

.feature-row:hover {
    background: var(--parchment-dark);
}

.feature-row .feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    margin-top: 0.2rem;
}

.feature-text h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== FAQ ===== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* ===== Guides ===== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.guide-card {
    display: block;
    background: var(--parchment-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
    text-decoration: none;
    color: var(--text-color);
}

.guide-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.guide-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--parchment-dark);
    border-radius: var(--border-radius);
    text-align: center;
}

.guide-cta h3 {
    margin-top: 0;
}

/* ===== Alternatives ===== */

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.alternative-card {
    display: block;
    background: var(--parchment-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 0.2s;
}

.alternative-card:hover {
    border-color: var(--amber);
    text-decoration: none;
    color: var(--text-color);
}

.alternative-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.alternative-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== Footer ===== */

.site-footer {
    background: var(--ink);
    color: var(--text-on-dark-muted);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--amber);
    text-decoration: none;
}

.footer-links .separator {
    margin: 0 0.5rem;
    color: var(--ink-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    color: var(--text-on-dark-muted);
}

/* ===== Cookie Banner ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
}

.cookie-link {
    color: var(--amber) !important;
}

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

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}

.cookie-btn-primary {
    background: var(--amber);
    color: var(--ink);
}

.cookie-btn-primary:hover {
    background: var(--amber-dark);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text-on-dark-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-secondary:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* Cookie Modal */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--parchment);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-modal-header h3 {
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.cookie-category {
    margin-bottom: 1.25rem;
}

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.cookie-category p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--amber);
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    margin-top: 1.5rem;
    text-align: right;
}

/* ===== Utility ===== */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .craft-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0 3.5rem;
    }

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

    .hero .lead {
        font-size: 1.0625rem;
    }

    .hero-pricing {
        font-size: 0.8125rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

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

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

    .cta-pricing {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        width: 100%;
        max-width: 280px;
    }

    .navbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .navbar-menu {
        gap: 1.25rem;
    }

    .pullquote p {
        font-size: 1.5rem;
    }

    .section-dark,
    .section-craft,
    .section-quote,
    .section-cta {
        padding: 3.5rem 0;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
}
