/* ==========================================================================
   ChunkAudio brand system
   Single source of truth for colour, type, shape, navigation, footer and
   buttons. Loaded LAST on every page so its tokens win over page-level CSS.
   Direction: warm-stone ground, one accent, pill buttons, hairline borders,
   one shadow recipe (on the tool card only). Colour lives in the waveform.
   ========================================================================== */

:root {
    /* Ground and surfaces */
    --ground: #f5f4f0;
    --surface: #ffffff;
    --surface-2: #edebe5;
    --line: #e2dfd8;
    --line-strong: #cbc7bd;

    /* Ink */
    --ink: #1b1a17;
    --ink-2: #4d4a44;
    --ink-3: #66625a; /* 5.6:1 on the ground, safe for small print */

    /* One accent for UI. A second colour exists only inside the waveform. */
    --accent: #2f5bea;
    --accent-hover: #2449c4;
    --accent-ink: #ffffff;
    --accent-soft: #e6ecfc;
    --wave: #2f5bea;
    --wave-cut: #ff7a45;

    /* Semantic (each ≥ 4.5:1 on its soft tint) */
    --ok: #146239;
    --ok-soft: #e3f3ea;
    --ok-on-dark: #8fd9b0;
    --warn: #8a4f06;
    --warn-soft: #fbf0dc;
    --bad: #c8321f;
    --bad-soft: #fbe6e2;

    /* Footer (dark) */
    --footer-bg: #1b1a17;
    --footer-line: #2e2c28;
    --footer-ink: #b8b4ab;
    --footer-ink-strong: #f5f4f0;

    /* Type */
    --font-display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Shape */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-pill: 999px;
    --shadow-card: 0 1px 2px rgba(27, 26, 23, 0.04), 0 16px 40px -16px rgba(27, 26, 23, 0.18);

    /* ---- Legacy aliases: every variable name the existing page CSS uses ---- */
    --primary: var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-dark: var(--accent-hover);
    --primary-darker: var(--accent-hover);
    --primary-light: var(--accent-soft);
    --primary-glow: rgba(47, 91, 234, 0.22);
    --secondary: var(--ink-3);
    --success: var(--ok);
    --success-light: var(--ok-soft);
    --success-dark: var(--ok);
    --warning: var(--warn);
    --danger: var(--bad);
    --danger-light: var(--bad-soft);
    --error: var(--bad);
    --bg: var(--ground);
    --bg-alt: var(--surface);
    --bg-dark: var(--footer-bg);
    --bg-card: var(--surface);
    --bg-card-hover: var(--surface-2);
    --text: var(--ink);
    --text-muted: var(--ink-2);
    --text-light: var(--ink-3);
    --text-nav: var(--ink);
    --text-bright: var(--ink);
    --text-footer: var(--footer-ink);
    --text-footer-muted: var(--footer-ink-strong);
    --border: var(--line);
    --border-hover: var(--line-strong);
    --radius: var(--r);
    --radius-lg: var(--r-lg);
    --shadow-sm: 0 1px 2px rgba(27, 26, 23, 0.05);
    --shadow: none;
    --shadow-lg: none;
    --shadow-xl: var(--shadow-card);
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-alt);
    --text-primary: var(--text);
    --accent-color: var(--accent);
    --border-color: var(--border);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4,
.nav-logo, .footer-logo,
.hero h1, .app-header h1, .article h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 { font-weight: 600; }

a { color: var(--accent); }

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Durations, file sizes, counters: the tool's own units, set in mono */
.chunk-details, .file-meta, .progress-percent, .counter-number,
.format-badge, .demo-label, .demo-chunk span {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

table {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------

   Article template (union of the former per-article inline CSS, tokenised)

   -------------------------------------------------------------------------- */

.breadcrumb {
    padding: 100px 24px 0;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-muted);
}

.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--primary-darker);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text);
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
}

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

.article-content strong {
    color: var(--text);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.step-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.step-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tip-box {
    background: var(--ok-soft);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.tip-box strong {
    color: var(--success-dark);
}

.warning-box {
    background: var(--warn-soft);
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

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

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.comparison-table th, .comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.faq-section {
    margin-top: 48px;
}

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

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-muted);
    margin: 0;
}

.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar { position: relative; overflow: hidden; }
.author-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.article .author-name a, .author-name a { color: inherit; text-decoration: none; font-weight: inherit; }
.article .author-name a:hover, .author-name a:hover { text-decoration: underline; }
.founder-card { scroll-margin-top: 96px; display: flex; gap: 28px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; margin: 24px 0; }
.founder-avatar { position: relative; overflow: hidden; width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, var(--wave) 100%); display: flex; align-items: center; justify-content: center; }
.founder-avatar span { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #fff; }
.founder-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-info h3 { font-size: 1.35rem; margin: 0 0 4px; }
.founder-role { color: var(--accent-hover); font-weight: 600; font-size: 0.95rem; margin: 0 0 14px; }
.founder-info p { color: var(--ink-2); line-height: 1.7; margin: 0 0 12px; }
.founder-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.founder-links a { color: var(--accent); text-decoration: none; }
.founder-links a:hover { text-decoration: underline; }
@media (max-width: 600px) { .founder-card { flex-direction: column; align-items: center; text-align: center; } .founder-links { justify-content: center; } }
.author-avatar span {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    margin-bottom: 16px;
}

.related-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-posts li {
    margin-bottom: 12px;
}

.related-posts a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.related-posts a:hover {
    text-decoration: underline;
}

.bitrate-visual {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.bitrate-visual h4 {
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.bitrate-bar {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.bitrate-label {
    width: 100px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bitrate-fill {
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.85rem;
    color: var(--surface);
    font-weight: 500;
}

.bitrate-fill.poor {
    background: linear-gradient(to right, var(--bad), #f97316);
}

.bitrate-fill.fair {
    background: linear-gradient(to right, var(--warn), #eab308);
}

.bitrate-fill.good {
    background: linear-gradient(to right, #22c55e, var(--ok));
}

.bitrate-fill.excellent {
    background: linear-gradient(to right, var(--accent), var(--accent));
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.formula-box {
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--accent-soft);
    text-align: center;
}

.formula-box h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.formula {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--text);
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    margin: 8px 0;
    border: 1px solid var(--border);
}

.formula-example {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.info-box {
    background: var(--accent-soft);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.info-box strong {
    color: var(--primary);
}

.vbr-cbr-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.encoding-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.encoding-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.encoding-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
}

.encoding-card li {
    margin-bottom: 6px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.use-case-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.use-case-card h4 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.use-case-card .bitrate {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--text);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

.author-info .role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 26, 23, 0.08);
}

.related-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.related-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 2rem 0 0.75rem;
}

.article p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article a {
    color: var(--primary-hover);
}

.callout {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft));
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.callout-title {
    font-weight: 600;
    color: var(--primary-hover);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.steps li strong {
    color: var(--text-bright);
    display: block;
    margin-bottom: 0.25rem;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

.article th {
    background: var(--bg-card);
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article td {
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-card-hover);
}

.check {
    color: var(--success);
}

.cross {
    color: var(--error);
}

.faq-list {
    margin: 1.5rem 0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

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

.author-name {
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.related-posts h2 {
    border-top: none;
    padding-top: 0;
}

.related-card h3 {
    font-size: 0.95rem;
    color: var(--text-bright);
    margin: 0;
}

.article ul, .article ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.article strong {
    color: var(--text-bright);
}

@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 100%;
    ascent-override: 96%;
    descent-override: 24%;
    line-gap-override: 8%;
}

.format-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.format-card h3 {
    color: var(--primary-dark);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-card .extension {
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--primary-darker);
}

.format-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.format-meta span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.format-meta strong {
    color: var(--text);
}

.format-card p {
    margin: 12px 0;
}

.format-card ul {
    margin: 8px 0 0 24px;
}

.quality-spectrum {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.quality-spectrum h4 {
    color: var(--text);
    margin-bottom: 8px;
}

.spectrum-bar {
    height: 30px;
    background: linear-gradient(to right, var(--bad), #f97316, #eab308, #84cc16, #22c55e);
    border-radius: 15px;
    margin: 16px 0;
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.use-case-card .format {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--surface);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.blog-post-header {
    padding: 140px 24px 60px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.blog-post-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text);
}

.blog-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.blog-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.blog-content ul, .blog-content ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 24px;
}

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

.blog-content strong {
    color: var(--text);
}

.blog-content a {
    color: var(--primary);
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

.step-box .step-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.step-box p {
    margin: 0;
    font-size: 0.95rem;
}

.tip-box h4 {
    color: var(--ok);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(27, 26, 23, 0.08);
}

.comparison-table td {
    color: var(--text-muted);
}

.comparison-table tr:hover td {
    background: var(--bg-alt);
}

.use-case-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.use-case-box h4 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.use-case-box p {
    margin: 0;
    font-size: 0.95rem;
}

.comparison-table .check {
    color: var(--success);
}

.comparison-table .cross {
    color: var(--danger);
}

.verdict-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.verdict-box h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.pros, .cons {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 20px;
}

.pros h4 {
    color: var(--success);
    margin-bottom: 12px;
}

.cons h4 {
    color: var(--danger);
    margin-bottom: 12px;
}

.pros ul, .cons ul {
    margin: 0;
    padding-left: 20px;
}

.pros li, .cons li {
    margin-bottom: 8px;
}

.article-content code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text);
}

.article-content pre {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 20px 0;
}

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

.verdict-box h3 {
    color: var(--primary);
    margin: 0 0 12px;
}

.verdict-box p {
    margin: 0;
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-alt);
}

.check-icon {
    color: var(--success);
}

.cross-icon {
    color: var(--bad);
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 26, 23, 0.08);
    color: var(--primary-dark);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

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

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.article-content {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.article-content h2:first-child {
    margin-top: 0;
}

.comparison-visual {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.comparison-visual h4 {
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-box {
    background: var(--accent-soft);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text);
}

.flow-box.lossy {
    background: var(--bad-soft);
}

.flow-box.lossless {
    background: var(--ok-soft);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.flow-label {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.quality-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quality-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.quality-card.good {
    border-color: var(--ok-soft);
}

.quality-card.bad {
    border-color: var(--bad-soft);
}

.quality-card h4 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-card.good h4 {
    color: var(--success);
}

.quality-card.bad h4 {
    color: var(--bad);
}

.quality-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.format-item {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.format-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.format-item p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

.format-item.lossless {
    border-color: var(--ok-soft);
}

.format-item.lossy {
    border-color: var(--warn-soft);
}

.faq-question:hover {
    background: var(--accent-soft);
}

.warning-box h4 {
    color: var(--warn);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pros-box, .cons-box {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.pros-box {
    background: var(--ok)15;
    border: 1px solid var(--ok)50;
}

.cons-box {
    background: var(--bad)15;
    border: 1px solid var(--bad)50;
}

.pros-box h4 {
    color: var(--ok);
    margin: 0 0 12px;
}

.cons-box h4 {
    color: var(--bad);
    margin: 0 0 12px;
}

.pros-box ul, .cons-box ul {
    margin: 0;
    padding-left: 20px;
}

.pros-box li, .cons-box li {
    font-size: 0.95rem;
}

.privacy-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.privacy-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
}

.privacy-card.safe {
    border-color: var(--ok-soft);
    background: var(--ok-soft);
}

.privacy-card.risky {
    border-color: var(--bad-soft);
    background: var(--bad-soft);
}

.privacy-card h4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.privacy-card.safe h4 {
    color: var(--success);
}

.privacy-card.risky h4 {
    color: var(--danger);
}

.privacy-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
}

.privacy-card li {
    margin-bottom: 6px;
}

.safe-box {
    background: var(--ok-soft);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.safe-box strong {
    color: var(--ok);
}

.checklist {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.checklist h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.checklist-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.red-flag-list {
    background: var(--bad-soft);
    border: 1px solid var(--bad-soft);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.red-flag-list h4 {
    color: var(--danger);
    margin-bottom: 16px;
    font-weight: 600;
}

.green-flag-list {
    background: var(--ok-soft);
    border: 1px solid var(--ok-soft);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.green-flag-list h4 {
    color: var(--success);
    margin-bottom: 16px;
    font-weight: 600;
}

.scenario-box {
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--accent-soft);
}

.scenario-box h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.scenario-box p {
    margin: 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.platform-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.platform-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.platform-card .limit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.platform-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.app-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.app-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.app-icon.whatsapp {
    background: var(--whatsapp);
}

.app-icon.telegram {
    background: var(--telegram);
}

.limit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.limit-table th, .limit-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.limit-table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.track-structure {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.track-structure h4 {
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.track-visual {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.track-section {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--surface);
    font-weight: 600;
}

.section-intro {
    background: #3b82f6;
    flex: 1;
}

.section-verse {
    background: var(--accent);
    flex: 2;
}

.section-chorus {
    background: var(--bad);
    flex: 1.5;
}

.section-breakdown {
    background: var(--warn);
    flex: 1;
}

.section-drop {
    background: var(--bad);
    flex: 2;
}

.section-outro {
    background: var(--ok);
    flex: 1;
}

.track-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.edit-type-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.edit-type-card h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.edit-type-card .use-case {
    font-size: 0.9rem;
    color: var(--success-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.software-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.software-card h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.software-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

.step-box ul {
    margin: 12px 0 0 24px;
    color: var(--text-muted);
}

.platform-box {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.platform-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.platform-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.privacy-box {
    background: var(--ok-soft);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.privacy-box h4 {
    color: var(--success-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.privacy-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.workflow-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.workflow-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.workflow-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {

    .article h1 {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .vbr-cbr-comparison {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th, .comparison-table td {
        padding: 8px 10px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article {
        padding: 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .quality-comparison {
        grid-template-columns: 1fr;
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .privacy-comparison {
        grid-template-columns: 1fr;
    }

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

    .track-section {
        font-size: 0.6rem;
    }

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

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {

    h1 {
        font-size: 1.6rem;
    }

    .article-container {
        padding: 1rem;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

@media (max-width: 600px) {

    .pros-cons {
        grid-template-columns: 1fr;
    }

}

/* --------------------------------------------------------------------------
   Navigation (markup from components/header.js and index.html)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 244, 240, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 1.2rem;
}

.logo-icon {
    width: 34px;
    height: 34px;
    color: var(--accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
}

.nav-links a.nav-cta,
.nav-cta {
    background: var(--ink) !important;
    color: var(--ground) !important;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}

.nav-links a.nav-cta:hover,
.nav-cta:hover {
    background: var(--accent) !important;
    transform: none;
}

@media (max-width: 768px) {
    .nav-links { display: flex; gap: 12px; }
    .nav-links a:not(.nav-cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons: pills, one primary style, one quiet style
   -------------------------------------------------------------------------- */
.hero-cta, .btn-primary-large, .btn, .btn-primary, .cta-button, .cta-btn,
.btn-split, .btn-download-all, .btn-reset, .submit-btn, .refresh-btn,
.plan-button, .pro-button {
    border-radius: var(--r-pill) !important;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none !important;
}

.hero-cta, .btn-primary-large, .btn-primary, .btn-split, .btn-download-all,
.submit-btn, .plan-button, .pro-button {
    background: var(--accent);
    color: var(--accent-ink);
    border: 1px solid transparent;
}

.hero-cta:hover, .btn-primary-large:hover, .btn-primary:hover,
.btn-split:hover:not(:disabled), .btn-download-all:hover, .submit-btn:hover,
.plan-button:hover, .pro-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-quick {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.btn-quick:hover:not(:disabled) {
    background: var(--surface-2);
}

.btn-reset {
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
}

.btn-reset:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent;
}

/* --------------------------------------------------------------------------
   Surfaces: white cards on the stone ground, hairline borders, no glow
   -------------------------------------------------------------------------- */
.hero {
    background: var(--ground);
}

.hero-badge, .article-tag, .ours-badge, .tech-badge {
    background: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: var(--r-pill);
    font-weight: 600;
}

/* The "Our approach" badge straddles the card's top border: an opaque fill so the border
   line does not show through it. */
.ours-badge {
    background: var(--accent);
    color: #fff;
}

.hero-visual,
.upload-area, .file-card, .settings-card, .progress-card, .results-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.upload-area {
    border: 1.5px dashed var(--line-strong);
}

.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.feature-card, .step-card, .use-case, .comparison-card, .value-card,
.tool-card, .section-card, .blog-card, .step-box, .author-box,
.mission-box, .highlight-box, .verdict-box, .criteria-item,
.testimonial-card, .chunk-item {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
}

.feature-card:hover, .blog-card:hover, .use-case:hover, .step-card:hover {
    border-color: var(--line-strong);
    box-shadow: none;
    transform: none;
}

.comparison-card.ours {
    border-color: var(--accent);
    background: var(--surface);
}

.feature-icon, .use-case-icon, .step-icon {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.step-number {
    background: var(--ink);
    color: var(--ground);
}

/* Page heroes sit flat on the ground; no gradients anywhere */
.blog-hero, .comparison-hero, .about-hero, .app-main, .contact-hero, .legal-hero {
    background: var(--ground);
}

/* Blog index cards: one quiet treatment instead of a different gradient per card */
.card-image {
    background: var(--surface-2) !important;
    color: var(--accent);
    border-bottom: 1px solid var(--line);
}

.card-image svg {
    color: var(--accent);
    stroke: var(--accent);
}

.callout, .key-takeaway {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
}

/* Article container (the three converted guides use <article class="article"> without their own rule) */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Every article is one white card on the stone ground */
.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 40px 56px;
    margin: 16px auto 64px;
}

.article .article-content, .article .article-body {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 640px) {
    .article { padding: 24px 18px 40px; border-radius: var(--r); }
}

/* --------------------------------------------------------------------------
   Pro: modal, pricing page, in-app buttons
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(27, 26, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-3);
    cursor: pointer;
}

.pro-modal h2 { font-size: 1.6rem; margin: 0 0 6px; }
.pro-reason { color: var(--accent-hover); font-weight: 600; margin: 0 0 8px; font-size: 0.9rem; }
.pro-price { margin: 0 0 18px; font-size: 1.1rem; }
.pro-price strong { font-family: var(--font-display); font-size: 1.8rem; margin-right: 8px; }
.pro-price span { color: var(--ink-2); }
.pro-features { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.pro-features li { padding-left: 22px; position: relative; font-size: 0.95rem; }
.pro-features li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--wave); }
.pro-button { width: 100%; padding: 14px 20px; font-size: 1rem; cursor: pointer; }
.pro-fineprint, .plan-fineprint { font-size: 0.82rem; color: var(--ink-3); margin: 12px 0 0; }
.pro-activate { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pro-activate label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.pro-activate-row { display: flex; gap: 8px; }
.pro-activate-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--ground);
    color: var(--ink);
}
.pro-activate-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pro-activate-row .btn-quick { padding: 10px 16px; cursor: pointer; }
.pro-status { min-height: 1.2em; font-size: 0.88rem; margin: 8px 0 0; color: var(--ink-2); }
.pro-status.ok { color: var(--ok); }
.pro-status.bad { color: var(--bad); }
.pro-active-note { font-size: 0.85rem; color: var(--ink-2); margin: 14px 0 0; }

/* Ads disappear for Pro */
.is-pro .ad-banner, .is-pro .ad-sidebar, .is-pro .adsense-ad, .is-pro ins.adsbygoogle,
.is-pro #landing-sidebar-ad, .is-pro #results-ad-placeholder { display: none !important; }

/* In-app MP3 buttons */
.btn-mp3 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}
.btn-mp3:hover { border-color: var(--ink); }
.btn-mp3 .pro-tag { color: var(--accent-hover); font-family: var(--font-body); font-weight: 600; }
.is-pro .btn-mp3 .pro-tag { display: none; }
.btn-mp3-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.btn-mp3-all:hover { border-color: var(--ink); }
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.guide-links a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; text-decoration: none; }
.guide-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- App: split / cut mode ---- */
.mode-tabs { display: flex; gap: 6px; padding: 4px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-pill); margin: 0 0 22px; width: max-content; max-width: 100%; }
.mode-tab { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 0.95rem; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; }
.mode-tab:hover { color: var(--ink); }
.mode-tab.is-active { background: var(--ink); color: var(--ground); }
.mode-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-panel[hidden] { display: none; }
.cut-timeline { position: relative; height: 96px; margin: 4px 0 8px; border-radius: var(--r-sm); background: var(--ground); border: 1px solid var(--line); overflow: hidden; }
.cut-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cut-selection { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: rgba(255, 122, 69, 0.14); border-left: 2px solid var(--wave-cut); border-right: 2px solid var(--wave-cut); pointer-events: none; box-sizing: border-box; }
.cut-range { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.cut-range::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.cut-range::-moz-range-track { background: transparent; height: 100%; }
.cut-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 96px; border-radius: 4px; background: var(--wave-cut); border: 0; opacity: 0.001; cursor: ew-resize; }
.cut-range::-moz-range-thumb { pointer-events: auto; width: 18px; height: 96px; border-radius: 4px; background: var(--wave-cut); border: 0; opacity: 0.001; cursor: ew-resize; }
.cut-range:focus-visible { outline: none; }
.cut-range:focus-visible::-webkit-slider-thumb { opacity: 0.35; }
.cut-range:focus-visible::-moz-range-thumb { opacity: 0.35; }
.cut-status { min-height: 1.2em; }
.cut-times { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 10px 0 6px; }
.cut-time-field { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.cut-time { width: 110px; text-align: center; font-family: var(--font-mono); font-size: 1rem; padding: 9px 10px; }
.cut-length { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-2); padding-bottom: 11px; }
.cut-preview, .cut-trim { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; cursor: pointer; }
.cut-trim { margin-left: auto; }
.cut-preview[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.cut-options { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px 12px; margin: 0 0 20px; display: grid; gap: 10px; }
.cut-options legend { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); padding: 0 6px; }
.cut-options label { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.cut-options input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.cut-options .cut-sub { padding-left: 28px; font-size: 0.9rem; color: var(--ink-2); }
.cut-options .cut-sub[hidden] { display: none; }
.primary-label { display: block; font-weight: 600; margin: 0 0 6px; }
.pause-settings { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-top: 8px; }
.pause-field { display: grid; gap: 6px; }
.pause-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.pause-field .duration-input-group { display: flex; align-items: center; gap: 8px; }
.pause-input { width: 84px; text-align: center; font-family: var(--font-mono); }
.pause-unit { font-size: 0.9rem; color: var(--ink-2); }
.pause-result { margin-top: 18px; display: grid; gap: 12px; }
.pause-timeline { margin: 0; }
.pause-summary { font-size: 0.98rem; color: var(--ink-2); line-height: 1.55; }
.pause-summary strong { color: var(--ink); }
.pause-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pause-actions .btn-split { flex: 1 1 260px; }
.pause-actions .cut-preview { margin-left: 0; }
.pause-actions .needs-pro { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.pause-actions .needs-pro:hover:not(:disabled) { border-color: var(--ink); background: var(--surface); color: var(--ink); }
#pauseGateNote:empty { display: none; }
#modeCut .setting-hint code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2, var(--ground)); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 600px) { .cut-preview, .cut-trim { margin-left: 0; width: 100%; justify-content: center; } .cut-time { width: 96px; } }
.mp3-quality { display: none; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-3); }
.is-pro .mp3-quality { display: inline-flex; }
.mp3-quality select { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.mp3-quality select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "Files ready, what's next?" */
.whats-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.whats-next-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.whats-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.whats-next-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--ground);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s;
}
.whats-next-card:hover { border-color: var(--ink); }
.whats-next-job { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.whats-next-card strong { font-size: 0.95rem; }
.whats-next-tagline { font-size: 0.82rem; color: var(--ink-2); line-height: 1.45; }
.whats-next-guide { background: var(--surface); }
.whats-next-disclosure { font-size: 0.78rem; color: var(--ink-3); margin: 12px 0 0; }

/* Pricing page */
.pricing-page { max-width: 1000px; margin: 0 auto; padding: 120px 24px 80px; }
.pricing-hero { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pricing-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 12px; }
.pricing-lede { color: var(--ink-2); font-size: 1.1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 56px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; display: flex; flex-direction: column; }
.plan-card-pro { border-color: var(--accent); box-shadow: var(--shadow-card); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--ink); color: var(--ground); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.plan-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 18px; }
.plan-price span { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-2); margin-left: 6px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan-list li { padding-left: 22px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--wave); }
.plan-list li.muted { color: var(--ink-3); }
.plan-list li.muted::before { background: var(--line-strong); }
.plan-cta { display: inline-flex; justify-content: center; align-items: center; padding: 12px 20px; text-decoration: none; cursor: pointer; }
.pricing-activate { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; margin-bottom: 56px; }
.pricing-activate h2 { margin: 0 0 8px; font-size: 1.3rem; }
.pricing-activate p { color: var(--ink-2); margin: 0 0 16px; }
.pricing-activate .btn-quick { padding: 10px 18px; cursor: pointer; }
.pro-state-line { font-size: 0.85rem; color: var(--ink-3); margin: 14px 0 0 !important; }
.pro-key-panel { margin: 24px auto 0; max-width: 560px; padding: 22px 24px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.pro-key-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0 0 10px !important; }
.pro-key-code { margin: 0 0 12px !important; }
.pro-key-code code { display: inline-block; font-family: var(--font-mono); font-size: 1.2rem; letter-spacing: 0.04em; padding: 10px 14px; background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--r-sm); color: var(--ink); user-select: all; word-break: break-all; }
.pro-key-note { font-size: 0.88rem; color: var(--ink-2); margin: 12px 0 0 !important; }
.pricing-faq h2 { margin-bottom: 8px; }
.pricing-faq .faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.pricing-faq .faq-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.pricing-faq .faq-item p { color: var(--ink-2); margin: 0; }

/* Dark "ink" blocks replace every gradient */
.final-cta, .cta-box, .cta-section {
    background: var(--ink);
    color: var(--ground);
    border-radius: 0;
}

.cta-box {
    border-radius: var(--r-lg);
}

.final-cta h2, .final-cta p, .cta-box h3, .cta-box p, .cta-section h2, .cta-section p {
    color: var(--ground);
}

.final-cta .hero-cta, .cta-box .cta-button, .cta-section .btn, .cta-section .cta-btn {
    background: var(--ground);
    color: var(--ink);
}

.final-cta .hero-cta:hover, .cta-box .cta-button:hover, .cta-section .btn:hover, .cta-section .cta-btn:hover {
    background: var(--surface);
    color: var(--ink);
}

.author-avatar {
    background: var(--ink);
}

/* Privacy section: a dark band (its copy was written for a dark ground) */
.privacy-section {
    background: var(--ink);
    color: var(--ground);
    border: 0;
}

.privacy-text h2, .privacy-feature-text h3 { color: var(--ground); }
.privacy-subtitle, .privacy-feature-text p { color: var(--footer-ink); }
.privacy-note { color: var(--ground); }
.privacy-note strong { color: var(--ground); }

/* Use cases: three per row, two on tablets, one on phones (never 4 + 2) */
.use-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 600px) {
    .use-cases-grid { grid-template-columns: 1fr; }
}

/* FAQ on articles: answers are always visible; no fake accordion controls */
.faq-question { display: block; padding: 0 0 6px; margin: 0; font-size: 1.05rem; font-weight: 600; cursor: default; background: none; border: 0; text-align: left; width: 100%; }
.faq-question::after { content: none !important; }
.faq-answer { display: block !important; padding: 0; max-height: none !important; opacity: 1 !important; }
.faq-item { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; }
.faq-item:last-child { border-bottom: 0; }

/* Links inside running text are underlined, never colour-only (WCAG 1.4.1) */
main p a:not([class]), main li a:not([class]), main td a:not([class]), main dd a:not([class]),
.article-content a:not([class]), .faq-answer a, .legal-content a, .about-content p a, .footer-brand a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

/* Green labels on the dark privacy band */
.privacy-section .arrow-label, .privacy-section .diagram-step.highlight span { color: var(--ok-on-dark); }

/* Step numbers inside articles stay inline (landing.css positions its own absolutely) */
.article .step-number { position: static; display: inline-flex; margin-bottom: 8px; }

/* Flat progress bar, no gradient */
.progress-fill { background: var(--accent); }
.progress-bar { background: var(--surface-2); }

/* Standard author box and related posts (same on every article) */
.article .author-box { display: flex; gap: 16px; align-items: center; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin: 48px 0 0; }
.article .author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--ground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.article .author-avatar span { color: var(--ground); font-size: 1.4rem; font-weight: 600; }
.article .author-info p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.article .author-info .author-name { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.article .related-posts { margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.article .related-posts h2 { font-size: 1.2rem; margin: 0 0 12px; padding: 0; border: 0; }
.article .related-posts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article .related-posts li { margin: 0; }
.article .related-posts a { color: var(--accent-hover); font-weight: 500; text-decoration: underline; text-underline-offset: 0.16em; }

/* Closing CTA inside articles: dark block, its own heading rules */
.article .cta-box { text-align: center; padding: 36px 28px; margin: 40px 0 0; }
.article .cta-box h2, .article .cta-box h3 { color: var(--ground); border: 0; padding: 0; margin: 0 0 8px; font-size: 1.45rem; }
.article .cta-box p { color: var(--ground); margin: 0 0 18px; }
.article .cta-box .cta-button { background: var(--ground); color: var(--ink); }

/* FAQ blocks look the same in every article: plain list on the card, no tinted panel */
.article .faq-section, .article .faq-list, .article .faq-container { background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
.article .section-intro, .article .intro-badge { background: var(--accent-hover); color: var(--accent-ink); }

/* Ad prompt copy must be readable on a white card */
.ad-free-prompt p, .ad-container p, .sidebar-promo p { color: var(--ink-2) !important; font-size: 0.9rem !important; }
.ad-free-prompt a { color: var(--accent-hover); font-weight: 600; }
.ad-label { color: var(--ink-3); }

.tip-box { background: var(--ok-soft); border-left-color: var(--ok); }
.warning-box { background: var(--warn-soft); border-left-color: var(--warn); }
.warning-box strong { color: var(--warn); }

/* --------------------------------------------------------------------------
   Signature element: the waveform. Flat accent bars; cuts in the second colour.
   -------------------------------------------------------------------------- */
.wave-bar {
    background: var(--wave);
    border-radius: 3px;
}

.chunk-mini-wave {
    background: repeating-linear-gradient(90deg, var(--wave) 0 3px, transparent 3px 7px);
    opacity: 0.9;
}

.demo-chunk {
    border-left: 3px solid var(--wave-cut);
}

.demo-arrow {
    color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
    .wave-bar { animation: none !important; }
    * { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Footer (markup from components/footer.js)
   -------------------------------------------------------------------------- */
.footer {
    padding: 64px 24px 40px;
    background: var(--footer-bg);
    color: var(--footer-ink);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--footer-ink-strong);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: var(--wave);
}

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

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-heading {
    color: var(--footer-ink-strong);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a {
    display: block;
    color: var(--footer-ink);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.15s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--footer-line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--footer-ink);
}

.footer-privacy {
    color: var(--footer-ink-strong) !important;
}

.footer-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-trust a {
    color: var(--footer-ink);
    text-decoration: none;
}

.footer-trust a:hover {
    color: var(--footer-ink-strong);
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   Wide content never scrolls the page sideways
   -------------------------------------------------------------------------- */
.ranking-table-wrapper, .table-wrapper {
    overflow-x: auto;
}

.article-content table, .comparison-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* ==========================================================================
   Classic skin: the pre-redesign look (Inter, indigo, white cards, soft
   shadows) on the same structure. For the design decision only.
   Activate with ?design=classic, back with ?design=new; ?designtoggle=1
   shows a floating switch (?designtoggle=0 hides it). See docs/DESIGN-TOGGLE.md.
   ========================================================================== */
html[data-design="classic"] {
    --ground: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --ink: #1e293b;
    --ink-2: #475569;
    --ink-3: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-ink: #ffffff;
    --accent-soft: rgba(99, 102, 241, 0.1);
    --wave: #6366f1;
    --wave-cut: #f59e0b;
    --ok: #047857;
    --ok-soft: rgba(16, 185, 129, 0.12);
    --ok-on-dark: #6ee7b7;
    --warn: #b45309;
    --warn-soft: rgba(245, 158, 11, 0.14);
    --bad: #dc2626;
    --bad-soft: rgba(239, 68, 68, 0.1);
    --footer-bg: #0f172a;
    --footer-line: #1e293b;
    --footer-ink: #94a3b8;
    --footer-ink-strong: #f1f5f9;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 20px;
    --r-pill: 12px;
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --primary-glow: rgba(99, 102, 241, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
html[data-design="classic"] h1, html[data-design="classic"] h2, html[data-design="classic"] h3 { letter-spacing: -0.02em; }
html[data-design="classic"] h1 { font-weight: 800; }
html[data-design="classic"] .hero { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
html[data-design="classic"] #site-header, html[data-design="classic"] .navbar { background: rgba(255, 255, 255, 0.95); }
html[data-design="classic"] .nav-links a.nav-cta, html[data-design="classic"] .nav-cta { background: var(--accent) !important; color: #fff !important; border-radius: 8px; }
html[data-design="classic"] .nav-links a.nav-cta:hover, html[data-design="classic"] .nav-cta:hover { background: var(--accent-hover) !important; }
html[data-design="classic"] .final-cta, html[data-design="classic"] .cta-box, html[data-design="classic"] .cta-section { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: #fff; border-radius: var(--r-lg); }
html[data-design="classic"] .final-cta { border-radius: 0; }
html[data-design="classic"] .final-cta h2, html[data-design="classic"] .final-cta p, html[data-design="classic"] .cta-box h2, html[data-design="classic"] .cta-box h3, html[data-design="classic"] .cta-box p, html[data-design="classic"] .cta-section h2, html[data-design="classic"] .cta-section p { color: #fff; }
html[data-design="classic"] .cta-box .cta-button, html[data-design="classic"] .final-cta .hero-cta { background: #fff !important; color: var(--accent) !important; }
html[data-design="classic"] .privacy-section { background: #0f172a; color: #f1f5f9; }
html[data-design="classic"] .section-intro { background: var(--accent-hover); }
html[data-design="classic"] .feature-card, html[data-design="classic"] .use-case, html[data-design="classic"] .plan-card, html[data-design="classic"] .step-card, html[data-design="classic"] .tool-card, html[data-design="classic"] .blog-card, html[data-design="classic"] .settings-card, html[data-design="classic"] .file-card, html[data-design="classic"] .results-card, html[data-design="classic"] .progress-card, html[data-design="classic"] .article, html[data-design="classic"] .founder-card, html[data-design="classic"] .pricing-activate { box-shadow: var(--shadow-sm); }
html[data-design="classic"] .feature-card:hover, html[data-design="classic"] .use-case:hover, html[data-design="classic"] .blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); transition: all 0.2s; }
html[data-design="classic"] .upload-area { border: 2px dashed var(--line-strong); background: var(--surface-2); }
html[data-design="classic"] .upload-area:hover, html[data-design="classic"] .upload-area.dragover { border-color: var(--accent); background: var(--accent-soft); }
html[data-design="classic"] .mode-tabs { background: var(--surface-2); }
html[data-design="classic"] .mode-tab.is-active { background: var(--accent); color: #fff; }
html[data-design="classic"] .plan-flag { background: var(--accent); color: #fff; }
html[data-design="classic"] .founder-avatar, html[data-design="classic"] .author-avatar { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
html[data-design="classic"] .hero-badge, html[data-design="classic"] .article-tag { background: var(--accent-soft); color: var(--accent-hover); }
html[data-design="classic"] .btn-quick { background: var(--surface); }
html[data-design="classic"] .progress-fill { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

/* Floating design switch (only when ?designtoggle=1 was used) */
.design-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 9999; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; background: #1b1a17; color: #f5f4f0; border-radius: 999px; font-family: var(--font-body); font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }
.design-toggle span { margin-right: 6px; opacity: 0.7; }
.design-toggle button { border: 0; background: transparent; color: inherit; padding: 7px 12px; border-radius: 999px; cursor: pointer; font: inherit; opacity: 0.75; }
.design-toggle button[aria-pressed="true"] { background: #f5f4f0; color: #1b1a17; opacity: 1; }
.design-toggle button.close { padding: 7px 9px; font-size: 15px; line-height: 1; }
.design-toggle button:focus-visible { outline: 2px solid #7f9cff; outline-offset: 2px; }

