/* =========================================================================
   Landing page — "wariant C" (dark + light theme, lime accent).
   Self-contained: this stylesheet powers ONLY the standalone landing.html.
   Other pages keep using main.css / sds.css.
   ========================================================================= */

[data-theme="dark"] {
    --bg: #0e0f13;
    --text: #eef0f3;
    --muted: #9aa0ac;
    --panel: rgba(255, 255, 255, .04);
    --panel-border: #1e2027;
    --line: #1e2027;
    --chip-border: #2a2d36;
    --accent: #c6f24e;
    --accent-ink: #0e0f13;
    --accent-text: #c6f24e;
    --accent-soft: rgba(198, 242, 78, .12);
    --dz-bg: rgba(255, 255, 255, .04);
    --dz-border: #34373f;
    --menu-bg: #16181d;
    --menu-border: #262932;
    --menu-hover: rgba(255, 255, 255, .05);
    --ghost-border: #2a2d36;
    --dots: #191b21;
    --field-bg: rgba(255, 255, 255, .03);
    --field-border: #2a2d36;
    --field-focus: #c6f24e;
    --inner: rgba(255, 255, 255, .02);
    --ok-bg: rgba(46, 160, 67, .15);
    --ok-border: rgba(46, 160, 67, .45);
    --ok-text: #7ee787;
    --err-bg: rgba(248, 81, 73, .15);
    --err-border: rgba(248, 81, 73, .45);
    --err-text: #ff9d96;
    /* Added for app-wide theming (editor/tool-page chrome migrated off hardcoded light) */
    --warning-bg: rgba(245, 200, 66, .14);
    --warning-border: rgba(245, 200, 66, .4);
    --warning-text: #f0c14b;
    --info-bg: rgba(88, 166, 255, .14);
    --info-border: rgba(88, 166, 255, .4);
    --info-text: #8cc2ff;
    --success-accent: #3fb950;
    --success-accent-strong: #2ea043;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
}

[data-theme="light"] {
    --bg: #f4f6f0;
    --text: #16181b;
    --muted: #5b616b;
    --panel: #ffffff;
    --panel-border: #e7e9e2;
    --line: #e7e9e2;
    --chip-border: #dde0d8;
    --accent: #bfe93f;
    --accent-ink: #1c2208;
    --accent-text: #5c8a14;
    --accent-soft: #edf6d6;
    --dz-bg: #ffffff;
    --dz-border: #cfd4c6;
    --menu-bg: #ffffff;
    --menu-border: #e7e9e2;
    --menu-hover: #f3f6ea;
    --ghost-border: #d6dacd;
    --dots: #e6e8e0;
    --field-bg: #f7f9f2;
    --field-border: #dde0d8;
    --field-focus: #5c8a14;
    --inner: #fbfcf8;
    --ok-bg: #e7f6ec;
    --ok-border: #b6e0c2;
    --ok-text: #1a7f37;
    --err-bg: #fdecec;
    --err-border: #f3c0bd;
    --err-text: #b42318;
    /* Added for app-wide theming (editor/tool-page chrome migrated off hardcoded light) */
    --warning-bg: #fef3c7;
    --warning-border: #fcd34d;
    --warning-text: #92400e;
    --info-bg: #dbeafe;
    --info-border: #bfdbfe;
    --info-text: #0c2340;
    --success-accent: #10b981;
    --success-accent-strong: #059669;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0e0f13; }

@keyframes lp-floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes lp-popIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.lp-root {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Space Grotesk', sans-serif;
    background-image: radial-gradient(var(--dots) 1px, transparent 1px);
    background-size: 24px 24px;
}

.lp-container { max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 28px; }

/* ---------- Nav ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
}
.lp-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.lp-logo {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -.02em;
}
.lp-logo span { color: var(--accent-text); }

.lp-nav-right { display: flex; align-items: center; gap: 26px; }
.lp-nav-right-mobile { display: none; align-items: center; gap: 10px; }

.lp-navlink {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    color: var(--muted);
    transition: color .18s;
}
.lp-navlink:hover { color: var(--text); }
.lp-caret { transition: transform .2s; }
.lp-navlink[aria-expanded="true"] .lp-caret { transform: rotate(180deg); }

.lp-iconbtn {
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--ghost-border);
    border-radius: 10px;
    color: var(--text);
    transition: background .16s, border-color .16s;
}
.lp-iconbtn:hover { background: var(--menu-hover); }
.lp-nav-right-mobile .lp-iconbtn { width: 40px; height: 40px; }
[data-theme="dark"] .lp-icon-sun { display: none; }
[data-theme="light"] .lp-icon-moon { display: none; }

.lp-btn-accent {
    text-decoration: none;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: filter .16s, transform .16s;
    display: inline-block;
}
.lp-btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }

.lp-btn-ghost {
    cursor: pointer;
    border: 1px solid var(--ghost-border);
    background: none;
    color: var(--text);
    padding: 14px 26px;
    border-radius: 11px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: border-color .18s;
}
.lp-btn-ghost:hover { border-color: var(--text); }

.lp-langswitch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ghost-border);
    border-radius: 10px;
    overflow: hidden;
}
.lp-langswitch a {
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    font-family: inherit;
    transition: background .16s, color .16s;
}
.lp-langswitch a:hover { color: var(--text); }
.lp-langswitch a.is-active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Tools dropdown (desktop) + drawer (mobile) share rows ---------- */
.lp-tools-wrap { position: relative; }
.lp-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    z-index: 50;
}
.lp-menu.is-open { display: block; animation: lp-popIn .16s ease; }
.lp-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.lp-toolrow {
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    align-items: center;
    transition: background .16s;
}
.lp-toolrow:hover { background: var(--menu-hover); }
.lp-toolrow-icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 11px;
}
.lp-toolrow-title { display: block; font-weight: 600; font-size: 15px; }
.lp-toolrow-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; font-family: 'Instrument Sans', sans-serif; }

.lp-menu-foot {
    margin-top: 6px;
    padding: 12px 14px 4px;
    border-top: 1px solid var(--menu-border);
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Instrument Sans', sans-serif;
}

/* ---------- Main ---------- */
.lp-main { flex: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 64px 28px 30px; }

.lp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-text);
    margin-bottom: 24px;
    font-family: 'Instrument Sans', sans-serif;
}
.lp-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lp-h1 { font-weight: 700; font-size: 54px; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 20px; }
.lp-h1 span { color: var(--accent-text); }
.lp-lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 440px;
    margin-bottom: 30px;
    font-family: 'Instrument Sans', sans-serif;
}
.lp-hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.lp-hero-actions .lp-btn-accent { padding: 14px 26px; border-radius: 11px; font-size: 15px; }

.lp-drop {
    cursor: pointer;
    background: var(--dz-bg);
    border: 1.5px dashed var(--dz-border);
    border-radius: 18px;
    padding: 50px 30px;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: border-color .2s, background .2s;
}
.lp-drop:hover, .lp-drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.lp-drop-icon {
    animation: lp-floatY 4.5s ease-in-out infinite;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 16px;
}
.lp-drop-title { font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.lp-drop-sub { font-size: 14px; color: var(--muted); font-family: 'Instrument Sans', sans-serif; }

/* ---------- On-page tools grid ---------- */
.lp-section-title { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 72px 0 18px; font-family: 'Instrument Sans', sans-serif; }
.lp-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lp-tool-card {
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    align-items: center;
    transition: border-color .2s, background .16s;
}
.lp-tool-card:hover { border-color: var(--chip-border); background: var(--menu-hover); }

/* ---------- Feature strip ---------- */
.lp-feats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .2s; }
.lp-feat:hover { border-color: var(--chip-border); }
.lp-feat-icon { margin-bottom: 14px; color: var(--accent-text); }
.lp-feat-title { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.lp-feat-desc { font-size: 14px; line-height: 1.55; color: var(--muted); font-family: 'Instrument Sans', sans-serif; }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--line); margin-top: 56px; }
.lp-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    font-family: 'Instrument Sans', sans-serif;
}
.lp-footer-brand { font-weight: 700; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.lp-footer-brand span { color: var(--accent-text); }
.lp-footer a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.lp-footer a.lp-footer-muted { color: var(--text); }

/* ---------- Mobile drawer ---------- */
.lp-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}
.lp-backdrop.is-open { display: block; }
.lp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: 330px;
    max-width: 86vw;
    background: var(--menu-bg);
    border-left: 1px solid var(--menu-border);
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}
.lp-drawer.is-open { transform: translateX(0); }
.lp-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--menu-border);
}
.lp-drawer-title { font-weight: 700; font-size: 18px; color: var(--text); }
.lp-drawer-body { padding: 12px; overflow-y: auto; flex: 1; }
.lp-drawer-foot { padding: 16px 18px; border-top: 1px solid var(--menu-border); }
.lp-drawer-foot .lp-btn-accent { display: block; text-align: center; padding: 13px; border-radius: 11px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 879px) {
    .lp-nav-right { display: none; }
    .lp-nav-right-mobile { display: flex; }
    .lp-hero { grid-template-columns: 1fr; gap: 32px; }
    .lp-h1 { font-size: 38px; }
    .lp-tools-grid { grid-template-columns: 1fr; }
    .lp-feats { grid-template-columns: 1fr; }
}

/* =========================================================================
   Tool pages (wariant C) — dark/light panel layout shared by text, pages,
   extract, convert and privacy. Loaded after main.css, scoped under .lp-root
   so it themes the existing (incl. JS-generated) markup without renaming the
   classes the per-tool JS depends on.
   ========================================================================= */

/* The shell <main> just centers; the column drives width + rhythm. */
.lp-root .site-main { padding: 0 20px; align-items: stretch; }
.tp-main { max-width: 820px; width: 100%; margin: 0 auto; padding: 40px 0 28px; }
.tp-main.is-wide { max-width: 980px; }

/* Reset the old white card: tool content now lives directly on the dotted bg. */
.lp-root .container {
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: 820px;
    padding: 40px 0 28px;
    margin: 0 auto;
}
.lp-root .container.container-wide { max-width: 980px; }

/* ---- Hero header ---- */
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-text);
    margin-bottom: 20px;
    font-family: 'Instrument Sans', sans-serif;
}

/* Tool-page headings/text inherit the theme (overrides main.css dark-on-white). */
.lp-root .tp-main h1,
.lp-root .container h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 14px;
}
.lp-root h1 .tp-accent { color: var(--accent-text); }
.lp-root .tp-main .intro,
.lp-root .container .intro {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 32px;
    font-family: 'Instrument Sans', sans-serif;
}

/* ---- Panels ---- */
.tp-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
}
.tp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.tp-step-spread { justify-content: space-between; }
.tp-step-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
}
.tp-step-num.is-q { background: var(--accent-soft); color: var(--accent-text); }
.tp-step-title { font-weight: 600; font-size: 16px; color: var(--text); }
.tp-step-meta { font-size: 13px; color: var(--muted); font-family: 'Instrument Sans', sans-serif; }
.tp-panel-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 14px 36px; font-family: 'Instrument Sans', sans-serif; }

/* ---- Form fields (also covers JS-generated .rule-old / .rule-new / selects) ---- */
.lp-root .tp-main input[type="text"],
.lp-root .tp-main input[type="number"],
.lp-root .tp-main select,
.lp-root .tp-main textarea,
.lp-root .container input[type="text"],
.lp-root .container input[type="number"],
.lp-root .container select,
.lp-root .container textarea {
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 10px;
    padding: 13px 15px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14.5px;
    color: var(--text);
    transition: border-color .16s, background .16s;
}
.lp-root .tp-main input[type="text"]:focus,
.lp-root .tp-main input[type="number"]:focus,
.lp-root .tp-main select:focus,
.lp-root .tp-main textarea:focus,
.lp-root .container input[type="text"]:focus,
.lp-root .container input[type="number"]:focus,
.lp-root .container select:focus,
.lp-root .container textarea:focus {
    outline: none;
    border-color: var(--field-focus);
    background: var(--inner);
    box-shadow: none;
}
.lp-root .tp-main input::placeholder,
.lp-root .container input::placeholder { color: var(--muted); }
.lp-root .tp-main select,
.lp-root .container select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239aa0ac" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}
.lp-root .tp-main label,
.lp-root .container label { color: var(--text); font-weight: 500; }
.lp-root .tp-main .note,
.lp-root .container .note,
.lp-root .tp-main .size-hint,
.lp-root .container .size-hint { color: var(--muted); }

/* ---- Replacement rules (JS-generated in text.js) ---- */
.lp-root .rules-container {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lp-root .rule-item {
    background: var(--inner);
    border: 1px solid var(--field-border);
    border-radius: 14px;
    padding: 16px;
    gap: 12px;
}
.lp-root .rule-inputs { display: flex; flex-direction: column; gap: 10px; }
.lp-root .rule-inputs input { margin-bottom: 0; }
.lp-root .btn-remove {
    width: 36px;
    height: 36px;
    border: 1px solid var(--field-border);
    border-radius: 9px;
    background: none;
    color: var(--muted);
    margin-top: 0;
}
.lp-root .btn-remove:hover { color: #ef5350; border-color: #ef5350; background: none; }

/* ---- Dropzone (built by dropzone.js) ---- */
.lp-root .dropzone {
    background: var(--dz-bg);
    border: 1.5px dashed var(--dz-border);
    border-radius: 14px;
    padding: 24px;
    gap: 18px;
}
.lp-root .dropzone:hover,
.lp-root .dropzone:focus-visible,
.lp-root .dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: none;
}
.lp-root .dropzone.has-file { border-style: solid; border-color: var(--field-border); background: var(--inner); }
.lp-root .dropzone-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-text);
}
.lp-root .dropzone-icon svg { width: 26px; height: 26px; }
.lp-root .dropzone-title { color: var(--text); font-size: 16px; }
.lp-root .dropzone-hint { color: var(--muted); }

/* ---- Buttons ---- */
/* Modal action buttons live outside .tp-main (the modal is a sibling of the
   tool content), so they must be listed explicitly or they fall back to the
   sds.css blue .btn-primary default. */
.lp-root .tp-main .btn-primary,
.lp-root .container .btn-primary,
.lp-root .edit-modal .btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}
.lp-root .tp-main .btn-primary:hover:not(:disabled),
.lp-root .container .btn-primary:hover:not(:disabled),
.lp-root .edit-modal .btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: none; }
.lp-root .tp-main .btn-primary:disabled,
.lp-root .container .btn-primary:disabled,
.lp-root .edit-modal .btn-primary:disabled { background: var(--field-border); color: var(--muted); }
.lp-root .tp-main .btn-secondary,
.lp-root .container .btn-secondary,
.lp-root .edit-modal .btn-secondary {
    background: none;
    border: 1px solid var(--ghost-border);
    color: var(--text);
    border-radius: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}
.lp-root .tp-main .btn-secondary:hover,
.lp-root .container .btn-secondary:hover,
.lp-root .edit-modal .btn-secondary:hover { border-color: var(--text); background: none; }
/* "Add rule" reads as a dashed affordance, not a solid button. */
.lp-root #addRuleBtn {
    background: var(--field-bg);
    border: 1.5px dashed var(--field-border);
    color: var(--muted);
    border-radius: 12px;
}
.lp-root #addRuleBtn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--accent-soft);
}
.tp-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; font-family: 'Instrument Sans', sans-serif; }

/* ---- Status banners ---- */
.lp-root .status.success { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }
.lp-root .status.error { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); }
.lp-root .status.info { background: var(--accent-soft); border: 1px solid var(--chip-border); color: var(--accent-text); }

/* ---- Search preview / file preview ---- */
.lp-root .search-section { border-top: none; padding-top: 0; margin-top: 0; }
.lp-root .search-result {
    background: var(--inner);
    border: 1px solid var(--field-border);
    border-radius: 10px;
    color: var(--muted);
}
.lp-root .file-preview {
    background: var(--inner);
    border: 1px solid var(--field-border);
    border-radius: 12px;
}
.lp-root .file-preview-name { color: var(--text); }
.lp-root .file-preview-pages { color: var(--muted); }

/* ---- Extract results ---- */
.lp-root .results-summary {
    background: var(--inner);
    border: 1px solid var(--field-border);
    border-radius: 12px;
    color: var(--muted);
}
.lp-root .image-card { background: var(--inner); border: 1px solid var(--field-border); }
.lp-root .image-card:hover { border-color: var(--accent); box-shadow: none; }
.lp-root .image-card-preview { background: var(--field-bg); }
.lp-root .image-card-info { color: var(--muted); }
.lp-root .image-card-info .dims { color: var(--text); }
.lp-root .empty-state { color: var(--muted); }
.lp-root .size-slider { background: var(--field-border); }
.lp-root .size-slider::-webkit-slider-thumb { background: var(--accent); }
.lp-root .size-slider::-moz-range-thumb { background: var(--accent); }

/* ---- Pages list ---- */
.lp-root .pages-list {
    background: var(--inner);
    border: 1px solid var(--field-border);
    border-radius: 12px;
}
.lp-root .page-item { background: var(--field-bg); border: 2px solid var(--field-border); }
.lp-root .page-item:hover { border-color: var(--accent); box-shadow: none; }
.lp-root .page-thumbnail { background: var(--field-bg); border: 1px solid var(--field-border); }
.lp-root .page-label { color: var(--accent-text); }

/* ---- Convert format checkboxes ---- */
.lp-root .convert-formats { display: flex; flex-direction: column; gap: 10px; }
.lp-root .convert-format {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14.5px;
    transition: border-color .16s, background .16s;
}
.lp-root .convert-format:hover { border-color: var(--accent); }
.lp-root .convert-format input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; }
.lp-root .convert-format-icon { color: var(--accent-text); }

/* ---- Privacy (legal prose) ---- */
.lp-root .privacy-legal { max-width: 760px; margin: 0; }
.lp-root .privacy-legal h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 14px;
}
.lp-root .privacy-legal .intro {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 32px;
    font-family: 'Instrument Sans', sans-serif;
}
.lp-root .privacy-legal h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 6px;
}
.lp-root .privacy-legal .privacy-updated { color: var(--muted); margin-bottom: 24px; }
.lp-root .privacy-legal h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    color: var(--text);
    margin: 24px 0 6px;
}
.lp-root .privacy-legal p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    font-family: 'Instrument Sans', sans-serif;
}

@media (max-width: 879px) {
    .lp-root .tp-main h1,
    .lp-root .container h1,
    .lp-root .privacy-legal h1 { font-size: 32px; }
}
