/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors — warm editorial palette */
    --ink: #1a1a1a;
    --ink-light: #4a4a4a;
    --ink-muted: #7a7a7a;
    --paper: #faf9f7;
    --paper-warm: #f5f3ef;
    --paper-dark: #edeae4;
    --accent: #c4553a;
    --accent-hover: #a8432b;
    --accent-light: #f0d9d3;
    --gold: #b8960c;
    --gold-light: #f5efd6;
    --border: #e0ddd7;
    --border-light: #ece9e3;
    --white: #ffffff;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --max-width: 1080px;
    --max-width-narrow: 720px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
}

img {
    max-width: 100%;
    display: block;
}

/* Global base link style — s'applique à toute la landing
   Note: .preclap-app a n'est pas concerné car preclap.css
   overrides explicitement chaque lien dans l'outil */
:where(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer,
    .early-access-banner, .lang-toggle) a,
body > a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

:where(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer,
    .early-access-banner, .lang-toggle) a:hover,
body > a:hover {
    color: var(--accent-hover);
}

/* ============================================
   TYPOGRAPHY — scopé sous landing sections
   (voir bloc ci-dessous — h1/h2/h3 via :is())
   ============================================ */

/* Typography base — scopé sous landing sections
   (pas de wrapper .landing global, isolation via :is()) */
:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h1,
:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h2,
:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.01em;
}

:is(nav, .hero, .demo, .problem, .features, .trust, .comparison, .faq, footer) h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

/* Layout sections landing — padding vertical standard */
body > section {
    padding: var(--space-2xl) 0;
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
[data-lang="fr"] .en { display: none; }
[data-lang="en"] .fr { display: none; }

.lang-toggle {
    position: fixed;
    top: var(--space-sm);
    right: var(--space-md);
    z-index: 100;
    display: flex;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lang-toggle button {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle button.active {
    background: var(--accent);
    color: var(--white);
}

.lang-toggle button:hover:not(.active) {
    color: var(--ink);
}

/* ============================================
   NAVIGATION
   ============================================ */
/* Navigation — direct body child, scoping via contexte */
body > nav, nav.preclap-nav {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

nav ul a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav ul a:hover {
    color: var(--ink);
}

.nav-cta {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 4px;
    transition: background 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--ink-light);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero-cta:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 85, 58, 0.25);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
}

.hero-note {
    font-size: 1rem;
    color: var(--ink-muted);
    margin-top: var(--space-sm);
}

/* ============================================
   SCREENPLAY SAMPLE (visual proof)
   ============================================ */
.screenplay-sample {
    max-width: 480px;
    margin: var(--space-xl) auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: var(--space-lg) var(--space-lg);
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    position: relative;
}

.screenplay-sample::before {
    content: 'screenplay.pdf';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--paper);
    padding: 0 8px;
}

.screenplay-sample .slug {
    font-weight: 700;
    text-transform: uppercase;
}

.screenplay-sample .character {
    text-align: center;
    text-transform: uppercase;
    margin-top: 0.8em;
}

.screenplay-sample .dialogue {
    text-align: center;
    max-width: 240px;
    margin: 0 auto;
}

.screenplay-sample .action {
    margin-top: 0.8em;
}

.screenplay-sample .highlight {
    background: var(--accent-light);
    padding: 0 3px;
    border-radius: 2px;
}

/* ============================================
   METRICS STRIP
   ============================================ */
.metrics-strip {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding: var(--space-md) 0;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.metric-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   PROBLEM / SOLUTION
   ============================================ */
.problem {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.problem-col h3 {
    margin-bottom: var(--space-sm);
}

.problem-col p {
    color: var(--ink-light);
    font-size: 1rem;
    line-height: 1.8;
}

.problem-col ul {
    list-style: none;
    margin-top: var(--space-sm);
}

.problem-col ul li {
    font-size: 1rem;
    color: var(--ink-light);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.problem-col ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.check-list li::before {
    content: '✓' !important;
    color: var(--success) !important;
    font-weight: 700;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--paper);
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.features-header p {
    color: var(--ink-light);
    font-size: 1.1rem;
    margin-top: var(--space-xs);
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.tier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--space-lg);
    position: relative;
    transition: box-shadow 0.2s ease;
}

.tier:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tier--featured {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(196, 85, 58, 0.1);
}

.tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 2px;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.tier-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.tier-price-note {
    font-size: 1rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
}

.tier-features {
    list-style: none;
}

.tier-features li {
    font-size: 1rem;
    color: var(--ink-light);
    padding: 0.35rem 0;
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.5;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
}

.tier-features li.disabled {
    color: var(--ink-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.tier-features li.disabled::before {
    content: '—';
    color: var(--ink-muted);
    font-weight: 400;
}

.tier-cta {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tier-cta--primary {
    background: var(--accent);
    color: var(--white);
}

.tier-cta--primary:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.tier-cta--secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
}

.tier-cta--secondary:hover {
    border-color: var(--ink);
}

/* ============================================
   TRUST
   ============================================ */
.trust {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trust-item {
    max-width: 220px;
}

.trust-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.trust-item p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
    background: var(--paper-dark);
}

.comparison-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.comparison-subtitle {
    font-size: 1.1rem;
    color: var(--ink-muted);
    max-width: 640px;
    margin: var(--space-sm) auto 0;
    line-height: 1.7;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 680px;
}

.comparison-table thead th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid var(--border-light);
    vertical-align: bottom;
}

.comparison-table thead th:first-child {
    text-align: left;
    width: 38%;
}

.comparison-table thead th.col-preclap {
    background: var(--accent);
    color: white;
    border-radius: 8px 8px 0 0;
    width: 22%;
}

.comparison-table thead th.col-ai {
    width: 22%;
    color: var(--ink-muted);
}

.comparison-table thead th.col-editors {
    width: 18%;
    color: var(--ink-muted);
}

.comparison-table .col-subtitle {
    display: block;
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 2px;
}

.comparison-table tbody td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    vertical-align: middle;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-size: 1rem;
    color: var(--ink);
}

.comparison-table tbody td.col-preclap-cell {
    background: rgba(185, 28, 28, 0.03);
}

.comparison-table .check {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .cross {
    color: var(--ink-muted);
    opacity: 0.4;
}

.comparison-table .partial {
    color: var(--ink-muted);
    font-size: 1rem;
    font-style: italic;
}

.comparison-table .comparison-separator td {
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    background: var(--paper);
    border-bottom: 1px solid var(--border-light);
}

.comparison-table .comparison-separator td.col-preclap-cell {
    background: rgba(185, 28, 28, 0.05);
}

.comparison-table tfoot td {
    padding: 1rem 0.75rem;
    border-top: 2px solid var(--border-light);
    font-weight: 700;
    text-align: center;
}

.comparison-table tfoot td:first-child {
    text-align: left;
}

.comparison-table tfoot .price-preclap {
    color: var(--accent);
    font-size: 1.1rem;
}

.comparison-note {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 1rem;
    color: var(--ink-muted);
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .comparison-table {
        font-size: 1rem;
    }
    .comparison-table thead th {
        font-size: 1rem;
        padding: 0.75rem 0.5rem;
    }
    .comparison-table tbody td {
        padding: 0.6rem 0.5rem;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    background: var(--paper);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-list {
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
}

.faq-question {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
}

.faq-question::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding-top: var(--space-sm);
    font-size: 1rem;
    color: var(--ink-light);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
body > footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-light);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.footer-brand p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin-bottom: var(--space-xs);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    padding: 0.2rem 0;
}

.footer-col ul a {
    font-size: 1rem;
    color: var(--ink-light);
}

.footer-col ul a:hover {
    color: var(--ink);
}

.footer-bottom {
    width: 100%;
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    font-size: 1rem;
    color: var(--ink-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.demo-header p {
    color: var(--ink-light);
    font-size: 1.1rem;
    margin-top: var(--space-xs);
}

.demo-film-title {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.demo-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--space-lg);
}

.demo-card-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-card-label .tier-tag {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.tier-tag--free {
    background: var(--paper-dark);
    color: var(--ink-muted);
}

.tier-tag--pro {
    background: var(--accent-light);
    color: var(--accent);
}

.tier-tag--studio {
    background: var(--gold-light);
    color: var(--gold);
}

/* Metrics row — 4 columns for Free */
.demo-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.demo-metric {
    text-align: center;
    padding: var(--space-sm) 0;
}

.demo-metric-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    line-height: 1.2;
}

.demo-metric-value--accent {
    color: var(--accent);
}

.demo-metric-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    display: block;
}

/* Pro: 2-column stat pairs */
.demo-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.demo-stat-block h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

.demo-stat-pair {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: 0.3rem;
}

.demo-stat-pair span:first-child {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.demo-stat-pair span:last-child {
    font-size: 1rem;
    color: var(--ink-light);
}

/* Décors table */
.demo-decors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.demo-decors-table th {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    text-align: left;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.demo-decors-table th:not(:first-child) {
    text-align: right;
}

.demo-decors-table td {
    font-size: 1rem;
    color: var(--ink);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.demo-decors-table td:not(:first-child) {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--ink-light);
}

.demo-decors-table td:first-child {
    font-weight: 500;
}

/* Characters table — Studio */
.demo-characters-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.demo-characters-table th {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    text-align: left;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.demo-characters-table th:not(:first-child):not(:nth-child(2)) {
    text-align: right;
}

.demo-characters-table td {
    font-size: 1rem;
    color: var(--ink);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-light);
}

.demo-characters-table td:not(:first-child):not(:nth-child(2)) {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--ink-light);
}

.demo-classification {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

.demo-classification--lead {
    background: var(--badge-lead-bg);
    color: var(--badge-lead);
}

.demo-classification--supporting {
    background: var(--badge-support-bg);
    color: var(--badge-support);
}

.demo-classification--dayplayer {
    background: var(--badge-dayplayer-bg);
    color: var(--badge-dayplayer);
}

/* Rhythm bar mini preview */
.demo-rhythm-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 48px;
    margin-top: 0.5rem;
    padding: var(--space-xs) 0;
}

.demo-rhythm-bar {
    flex: 1;
    min-width: 2px;
    border-radius: 1px 1px 0 0;
}

.demo-rhythm-bar--dialogue {
    background: var(--rhythm-dialogue);
}

.demo-rhythm-bar--mixed {
    background: var(--rhythm-mixed);
}

.demo-rhythm-bar--action {
    background: var(--rhythm-action);
}

.demo-rhythm-legend {
    display: flex;
    gap: var(--space-sm);
    margin-top: 0.4rem;
}

.demo-rhythm-legend span {
    font-size: 1rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.demo-rhythm-legend span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
}

.demo-rhythm-legend .legend-dialogue::before { background: var(--rhythm-dialogue); }
.demo-rhythm-legend .legend-mixed::before { background: var(--rhythm-mixed); }
.demo-rhythm-legend .legend-action::before { background: var(--rhythm-action); }

/* Transparency note */
.demo-note {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.demo-note p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.demo-note p + p {
    margin-top: 0.3rem;
}

.demo-note em {
    font-style: italic;
}

.hero-cta--secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-light);
    margin-top: var(--space-xs);
    transition: color 0.2s ease;
    text-decoration: none;
}

.hero-cta--secondary:hover {
    color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .demo-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-pro-grid {
        grid-template-columns: 1fr;
    }

    .demo-characters-table th:nth-child(4),
    .demo-characters-table td:nth-child(4),
    .demo-characters-table th:nth-child(5),
    .demo-characters-table td:nth-child(5) {
        display: none;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .tiers {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    nav ul {
        gap: var(--space-sm);
    }

    .metrics-strip {
        gap: var(--space-lg);
    }

    .footer-links {
        gap: var(--space-lg);
    }

    footer .container {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .screenplay-sample {
        margin-left: var(--space-sm);
        margin-right: var(--space-sm);
    }
}

@media (max-width: 480px) {
    nav ul {
        display: none;
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    body > section {
        padding: var(--space-xl) 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    body.js-ready .fade-in {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    body.js-ready .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DARK MODE — Landing page overrides
   Variables --ink, --paper, --surface, --border etc.
   sont redéfinies dans preclap.css [data-theme="dark"]
   et s'appliquent automatiquement. Ci-dessous : les cas
   qui nécessitent des overrides explicites.
   ============================================ */

/* Box-shadows : augmenter l'opacité sur fond sombre */
[data-theme="dark"] .screenplay-sample {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tier:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tier--featured {
    box-shadow: 0 4px 20px rgba(196, 85, 58, 0.25);
}

[data-theme="dark"] .nav {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Tier CTA secondary : bordure plus visible en dark */
[data-theme="dark"] .tier-cta--secondary {
    border-color: var(--border);
    color: var(--ink-light);
}

[data-theme="dark"] .tier-cta--secondary:hover {
    border-color: var(--ink-light);
    color: var(--ink);
}

/* Demo section : cartes et surfaces */
[data-theme="dark"] .demo-card {
    background: var(--surface-raised);
    border-color: var(--border);
}

/* Tier tags dans la demo : adapter les fonds semi-transparents */
[data-theme="dark"] .tier-tag--free {
    background: rgba(255, 255, 255, 0.08);
}

/* Comparison table : rehausser le highlight sur fond sombre */
[data-theme="dark"] .comparison-table tbody td.col-preclap-cell {
    background: rgba(196, 85, 58, 0.08);
}

[data-theme="dark"] .comparison-table .comparison-separator td.col-preclap-cell {
    background: rgba(196, 85, 58, 0.12);
}

/* FAQ : assurer le contraste texte */
[data-theme="dark"] .faq-question {
    color: var(--ink);
}

[data-theme="dark"] .faq-answer {
    color: var(--ink-light);
}

/* Footer disclaimer : rehausser la lisibilité */
[data-theme="dark"] .footer-bottom {
    color: var(--ink-muted);
}

/* ============================================
   EARLY ACCESS BANNER
   ============================================ */
.early-access-banner {
    background-color: var(--gold);
    color: var(--ink);
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border-light);
}
