/* ── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Editorial palette — warm cream surface, deep ink hero, mustard accent.
       Original blue/red/green semantic colors preserved for status badges. */
    --bg: #faf7f2;
    --surface: #ffffff;
    --surface-soft: #f3ede0;
    --text: #131517;
    --text-muted: #6b6258;
    --ink: #0d1b2a;            /* hero card / headlines on accent */
    --accent: #b6852a;         /* mustard / brass eyebrow + rules */
    --accent-soft: #d9b46a;
    --primary: #0d1b2a;        /* CTA button shifts to deep ink */
    --primary-hover: #1c2c40;
    --success: #2f6f3a;
    --warning: #b6852a;
    --danger: #a8361b;
    --border: #e8e1d3;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(19,21,23,.06), 0 1px 2px rgba(19,21,23,.04);
    --shadow-md: 0 6px 14px rgba(19,21,23,.07), 0 2px 4px rgba(19,21,23,.05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text { font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 20px; }
.nav-link { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-link:hover { color: var(--primary); }

.clerk-banner {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}
.clerk-banner-error {
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
}
.clerk-banner-error a {
    color: #2563eb;
}
.clerk-banner-warn {
    background: #fffbeb;
    border-bottom: 1px solid #fcd34d;
    color: #92400e;
}

.clerk-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.clerk-nav a.clerk-sign-up-btn,
.clerk-nav a.clerk-sign-in-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.clerk-sign-up-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.clerk-sign-up-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.clerk-sign-in-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.clerk-sign-in-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sign-in-card {
    max-width: 420px;
    margin: 48px auto;
}
.sign-in-mount {
    min-height: 280px;
    margin-top: 16px;
}

/* ── Main ──────────────────────────────────────────────────────────────── */
main { flex: 1; padding: 32px 0; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.card h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--text);
}
.card h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 14px;
}
.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.55; }
.ttl-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin: -8px 0 16px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.4;
}
.ttl-note svg { flex: 0 0 auto; color: #d97706; }
.ttl-note strong { color: #78350f; font-weight: 600; }

.recount-panel {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #78350f;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.recount-panel.hidden { display: none; }
.recount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}
.recount-row + .recount-row { border-top: 1px solid #fde68a; }

.payment-section {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #1e1b4b;
    border-radius: var(--radius-sm);
}
.payment-section h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #312e81;
}
.payment-section .text-muted { color: #475569; }
.payment-section.payment-paid {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}
.badge.badge-awaiting_payment {
    background: #ede9fe;
    color: #5b21b6;
}

/* ── Upload ────────────────────────────────────────────────────────────── */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    color: var(--text-muted);
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, .04);
    color: var(--primary);
}
.drop-zone-content svg { margin-bottom: 12px; opacity: .6; }
.drop-zone-content p { margin: 4px 0; }
.text-muted { color: var(--text-muted); font-size: 13px; }

.upload-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.upload-status.info { background: #eff6ff; color: #1d4ed8; }
.upload-status.success { background: #ecfdf5; color: #065f46; }
.upload-status.error { background: #fef2f2; color: #991b1b; }

/* Amber callout shown beneath the success line when an upload extracted
   files but contained nothing translatable (e.g. a zip of .pptx). */
.upload-warning-callout {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.upload-warning-callout::before {
    content: "⚠";
    font-size: 16px;
    line-height: 1.2;
    flex-shrink: 0;
}

.hidden { display: none; }

/* ── Auth-conditional visibility ──────────────────────────────────────────
   Both anonymous-only and authenticated-only blocks are rendered into the
   DOM so we can correct the SSR state after Clerk hydrates client-side
   (e.g. when Clerk's session lives in JS storage and the cookie hasn't
   propagated to our server yet). The <body> class is set by the server
   from `is_authenticated` for a flicker-free first paint, and then
   swapped by base.html's Clerk bootstrap if the client knows otherwise. */
.auth-anon-only, .auth-authed-only { display: none; }
body.is-anonymous .auth-anon-only { display: block; }
body.is-authenticated .auth-authed-only { display: block; }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; }
.tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: all .15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group select, .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s;
}
.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

/* ── Jobs Table ────────────────────────────────────────────────────────── */
.jobs-table-wrap { overflow-x: auto; }
.jobs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
}
.jobs-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.jobs-table code { font-family: var(--mono); font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.text-center { text-align: center; }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.badge-lg { font-size: 14px; padding: 5px 14px; }
.badge-mode { background: #eff6ff; color: #1d4ed8; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-running { background: #dbeafe; color: #1e40af; animation: pulse 2s infinite; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ── Job Detail ────────────────────────────────────────────────────────── */
.back-link { display: inline-block; margin-bottom: 16px; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link:hover { text-decoration: underline; }

.job-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.job-header h2 { margin: 0; }
.job-header-actions { display: flex; align-items: center; gap: 12px; }
.actions-cell { display: flex; gap: 6px; align-items: center; }

.job-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.meta-item { }
.meta-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .5px; }
.meta-value { font-size: 14px; margin-top: 2px; }

.progress-section { margin: 24px 0; }
.progress-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress-bar-inner { height: 100%; width: 60%; background: var(--primary); border-radius: 3px; animation: progress-slide 2s infinite; }
@keyframes progress-slide { 0% { width: 20%; } 50% { width: 80%; } 100% { width: 20%; } }
.progress-text { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

.error-section { margin: 24px 0; }
.error-pre { background: #fef2f2; color: #991b1b; padding: 16px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 13px; overflow-x: auto; }

.result-section { margin-top: 24px; }
.result-section h3 { margin-bottom: 12px; }
.result-summary { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}
.stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 28px;
    align-items: start;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .footer-logo .logo-icon { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.footer-brand .footer-logo .logo-text { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-brand p { margin: 0 0 12px; line-height: 1.55; max-width: 32ch; }
.footer-brand .footer-tagline { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--text); }
.footer-col h4 {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .legal-name { font-weight: 500; color: var(--text); }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0 20px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Long-form legal pages (privacy, terms, refunds, etc.) ─────────────── */
.legal-page {
    max-width: 760px;
    margin: 32px auto 0;
    padding-bottom: 16px;
}
.legal-page .eyebrow {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.legal-page > h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 14px;
}
.legal-meta {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 28px;
}
.legal-meta time { font-variant-numeric: tabular-nums; }
.legal-body { color: var(--text); }
.legal-body h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.25;
    margin: 36px 0 12px;
    color: var(--text);
}
.legal-body h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 14px;
}
.legal-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 22px 0 8px;
    color: var(--text);
}
.legal-body p, .legal-body li {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol {
    margin: 0 0 16px 24px;
    padding: 0;
}
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code, .legal-body kbd {
    font-family: var(--mono);
    background: var(--surface-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13.5px;
}
.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14.5px;
}
.legal-body th, .legal-body td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.legal-body th {
    background: var(--surface-soft);
    font-weight: 600;
    font-family: var(--font);
}
.legal-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin: 16px 0;
    color: var(--text-muted);
    font-style: italic;
}
.legal-body .upper {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 14px;
}
.legal-rule {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px 0 18px;
}
.legal-contact-prompt {
    color: var(--text-muted);
    font-size: 14px;
}
.legal-toc {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 32px;
}
.legal-toc h4 {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.legal-toc ol {
    margin: 0 0 0 22px;
    padding: 0;
    columns: 2;
    column-gap: 28px;
}
.legal-toc li { margin-bottom: 4px; font-size: 14px; }
@media (max-width: 600px) {
    .legal-page > h1 { font-size: 32px; }
    .legal-toc ol { columns: 1; }
}

/* ── Pricing page (public) ─────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 28px 0 16px;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(13, 27, 42, 0.08);
    transform: translateY(-4px);
}
.pricing-card .pricing-tier {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.pricing-card h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--text);
}
.pricing-card .pricing-amount {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    color: var(--text);
    margin: 12px 0 4px;
}
.pricing-card .pricing-amount small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-card .pricing-secondary {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.pricing-card li:last-child { border-bottom: 0; }
.pricing-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-card .btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }
.pricing-fineprint { font-size: 13px; color: var(--text-muted); margin-top: 18px; line-height: 1.55; }
@media (max-width: 1100px) {
    /* Tablet & narrow desktop: 2 cards per row so each card stays readable. */
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: none; }
}
@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ── FAQ page ─────────────────────────────────────────────────────────── */
.faq-section { max-width: 800px; margin: 0 auto; padding: 16px 0; }
.faq-section details {
    border-top: 1px solid var(--border);
    padding: 18px 4px;
}
.faq-section details:last-of-type { border-bottom: 1px solid var(--border); }
.faq-section summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
    padding-right: 36px;
    position: relative;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font);
    font-size: 24px;
    color: var(--accent);
    transition: transform .15s;
    line-height: 1;
}
.faq-section details[open] summary::after { content: "−"; }
.faq-section .faq-answer {
    margin-top: 12px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 15.5px;
}
.faq-section .faq-answer p { margin: 0 0 10px; }
.faq-section .faq-answer p:last-child { margin-bottom: 0; }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-page { max-width: 720px; margin: 24px auto 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 28px 0 16px;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-card h3 {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}
.contact-card p { margin: 0 0 6px; color: var(--text); font-size: 15px; line-height: 1.55; }
.contact-card a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .text-muted { font-size: 13px; }
@media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Anonymous-visitor CTA card (between hero & premium band) ─────────── */
.cta-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 244, 214, 0.5) 100%);
    border: 1px solid var(--border);
    padding: 40px 44px;
    margin: 8px 0 32px;
    box-shadow: 0 4px 18px rgba(28, 30, 38, 0.05);
}
.cta-card h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 6px 0 12px;
}
.cta-card .eyebrow {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}
.cta-card .subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 64ch;
    margin: 0 0 22px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.cta-actions .btn { padding: 10px 22px; font-size: 14px; }
.cta-fineprint { margin: 0; font-size: 12.5px; }
@media (max-width: 600px) {
    .cta-card { padding: 28px 22px; }
    .cta-card h2 { font-size: 24px; }
    .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ── Editorial sections (Hero + Premium Standard) ──────────────────────── */
.editorial {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: stretch;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}
.editorial + .editorial { border-top: 0; }
.editorial:last-of-type { border-bottom: 0; }

.editorial .eyebrow {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}
.editorial .display-h {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -0.012em;
    color: var(--text);
    margin: 0 0 22px;
}
.editorial .lede {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 38ch;
    margin: 0 0 32px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 8px;
}
.stat-line .stat-num {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--text);
    display: block;
}
.stat-line .stat-num::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    background: var(--text);
    margin-bottom: 10px;
    opacity: 0.85;
}
.stat-line .stat-label {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Hero art card — concentric-ring "Executive Education" panel */
.hero-art {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 35%, #1a3653 0%, #0d1b2a 60%, #060d18 100%);
    color: #f6f2e8;
    border-radius: 4px;
    overflow: hidden;
    min-height: 420px;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-art::after {
    /* subtle film grain to feel more print-like */
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 50%, transparent 65%, rgba(0,0,0,.45) 100%);
}
.hero-art .ring {
    width: 240px;
    height: 240px;
    margin-bottom: 26px;
    color: rgba(246, 242, 232, 0.55);
}
.hero-art .ring circle { fill: none; stroke: currentColor; }
.hero-art .label {
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(246, 242, 232, .82);
    margin-bottom: 4px;
}
.hero-art .label-soft {
    font-size: 9px;
    letter-spacing: .45em;
    color: var(--accent-soft);
    margin-bottom: 18px;
}
.hero-art .label-bold {
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 14px;
}
.hero-art .body-text {
    font-size: 9.5px;
    line-height: 1.6;
    color: rgba(246, 242, 232, .55);
    letter-spacing: .04em;
    max-width: 32ch;
    column-count: 1;
}

/* Premium Standard band */
.premium-points { margin-top: 12px; display: grid; gap: 18px; }
.premium-point {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 14px;
    align-items: start;
}
.premium-point .icon { color: var(--text); margin-top: 2px; }
.premium-point .pp-title {
    font-family: var(--font);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
}
.premium-point .pp-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 4px;
}

.quote-frame {
    position: relative;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 56px 44px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.quote-frame .icon-circle {
    width: 36px;
    height: 36px;
    color: var(--text);
    margin-bottom: 28px;
}
.quote-frame .quote {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.35;
    color: var(--text);
    max-width: 28ch;
    margin: 0 0 28px;
}
.quote-frame .attribution {
    font-family: var(--font);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text);
}
.quote-frame .attribution-sub {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Tabs — restyled to be flatter / underlined to match editorial feel */
.tabs {
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    margin-bottom: 24px;
}
.tab {
    padding: 12px 4px;
    margin-right: 28px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: .04em;
    flex: 0 0 auto;
}
.tab.active {
    background: transparent;
    box-shadow: none;
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Buttons — keep API but render flatter for editorial feel */
.btn-primary { letter-spacing: .04em; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .editorial { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
    .editorial .display-h { font-size: 36px; }
    .hero-art { min-height: 320px; padding: 36px 24px; }
    .hero-art .ring { width: 180px; height: 180px; }
    .quote-frame { min-height: 320px; padding: 40px 24px; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .job-meta { grid-template-columns: 1fr 1fr; }
    .download-actions { flex-direction: column; }
    .stat-row { grid-template-columns: 1fr; }
    .editorial .display-h { font-size: 32px; }
    .card h2 { font-size: 26px; }
}
