* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
:root {
    --background: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #152033;
    --text-soft: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #059669;
    --success-dark: #047857;
    --success-soft: #ecfdf5;
    --warning: #d97706;
    --warning-soft: #fff7ed;
    --map: #0f766e;
    --map-dark: #115e59;
    --clean: #7c3aed;
    --clean-dark: #6d28d9;
    --neutral: #334155;
    --neutral-dark: #1e293b;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --border: #e2e8f0;
    --shadow-small:
        0 8px 25px rgba(15, 23, 42, 0.06);
    --shadow:
        0 20px 55px rgba(15, 23, 42, 0.09);
    --shadow-button:
        0 10px 25px rgba(37, 99, 235, 0.24);
}
body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--background);
}
.page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(37, 99, 235, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 18%,
            rgba(5, 150, 105, 0.08),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            var(--background) 45%,
            #f6f8fb 100%
        );
}
.container {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding:
        max(58px, env(safe-area-inset-top))
        0
        70px;
}
/* HEADER */
.site-header {
    margin-bottom: 22px;
}
.top-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.brand-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #4f46e5
        );
    border-radius: 15px;
    box-shadow:
        0 10px 28px
        rgba(37, 99, 235, 0.23);
}
h1 {
    margin: 0;
    font-size:
        clamp(40px, 7vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}
.subtitle {
    margin: 14px 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.5;
}
/* LANGUAGE */
.language-switch {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    padding: 4px;
    background:
        rgba(255, 255, 255, 0.92);
    border:
        1px solid var(--border);
    border-radius: 12px;
    box-shadow:
        var(--shadow-small);
    transform:
        translateY(-50%);
}
.language-button {
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.language-button.active {
    background: var(--primary);
    color: white;
    box-shadow:
        0 5px 12px
        rgba(37, 99, 235, 0.2);
}
/* HERO */
.hero-warning {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding: 26px 27px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #152033 0%,
            #1e3a5f 52%,
            #1d4ed8 145%
        );
    color: white;
    border:
        1px solid
        rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow:
        0 18px 46px
        rgba(15, 23, 42, 0.18);
}
.hero-warning::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -100px;
    top: -115px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.hero-warning-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        rgba(255, 255, 255, 0.12);
    border:
        1px solid
        rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    font-size: 29px;
}
.hero-warning-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}
.hero-warning h2 {
    margin: 0 0 9px;
    max-width: 590px;
    color: white;
    font-size:
        clamp(20px, 4vw, 25px);
    line-height: 1.24;
    letter-spacing: -0.45px;
}
.hero-warning p {
    margin: 0;
    max-width: 610px;
    color:
        rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.6;
}
.hero-local-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 17px;
    padding: 13px 14px;
    background:
        rgba(255, 255, 255, 0.11);
    border:
        1px solid
        rgba(255, 255, 255, 0.17);
    border-radius: 13px;
}
.hero-local-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 17px;
}
.hero-local-note div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-local-note strong {
    color: white;
    font-size: 12px;
    font-weight: 800;
}
.hero-local-note span:not(.hero-local-icon) {
    color:
        rgba(255, 255, 255, 0.76);
    font-size: 11px;
    line-height: 1.45;
}
/* PRIVACY */
.privacy-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background:
        rgba(236, 253, 245, 0.92);
    border:
        1px solid #a7f3d0;
    border-radius: 16px;
}
.privacy-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    font-size: 19px;
}
.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.privacy-content strong {
    color: var(--success-dark);
    font-size: 14px;
}
.privacy-content span {
    color: #40866d;
    font-size: 12px;
    line-height: 1.45;
}
/* UPLOAD */
.upload-box {
    padding: 38px;
    background:
        rgba(255, 255, 255, 0.94);
    border:
        1px solid
        rgba(226, 232, 240, 0.85);
    border-radius: 26px;
    box-shadow:
        var(--shadow);
    backdrop-filter:
        blur(10px);
}
.upload-heading {
    margin-bottom: 26px;
    text-align: center;
}
.section-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}
.upload-heading h2 {
    margin: 0 0 10px;
    font-size: 27px;
    letter-spacing: -0.5px;
}
.upload-heading p {
    width: min(520px, 100%);
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}
.drop-zone {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            #fafcff,
            #f8fbff
        );
    border:
        2px dashed #b8c6dc;
    border-radius: 20px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, 0.08);
    transform:
        translateY(-1px);
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}
.drop-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    background:
        linear-gradient(
            135deg,
            var(--primary-soft),
            #e0e7ff
        );
    border-radius: 18px;
    color: var(--primary);
    font-size: 31px;
}
.desktop-upload-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.desktop-upload-text strong {
    font-size: 17px;
}
.desktop-upload-text span {
    color: var(--text-soft);
    font-size: 13px;
}
.mobile-upload-text {
    display: none;
}
.choose-file-button {
    margin-top: 18px;
    padding: 11px 20px;
    background: var(--primary);
    color: white;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    box-shadow:
        0 8px 18px
        rgba(37, 99, 235, 0.18);
}
.drop-zone small {
    margin-top: 13px;
    color: #94a3b8;
    font-size: 11px;
}
/* FILE ORIGINALE */
.original-file-area {
    margin-top: 20px;
}
.original-file-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.original-file-divider span {
    height: 1px;
    flex: 1;
    background: var(--border);
}
.original-file-divider strong {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.original-file-input {
    display: none;
}
.original-file-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border:
        1px solid #bfdbfe;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease,
        background 0.15s ease;
}
.original-file-button:hover {
    border-color: var(--primary);
    background: #e7f0ff;
    transform:
        translateY(-1px);
}
.original-file-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 11px;
    font-size: 20px;
}
.original-file-button-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.original-file-button-text strong {
    color: var(--primary-dark);
    font-size: 13px;
}
.original-file-button-text small {
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.4;
}
.original-file-help {
    margin: 9px 4px 0;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.5;
}
/* FILE STATUS */
.file-status {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--success-soft);
    border:
        1px solid #a7f3d0;
    border-radius: 14px;
}
.file-status-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
}
.file-status-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.file-status-content strong {
    color: var(--success-dark);
    font-size: 13px;
}
.file-status-content span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.file-status-content small {
    color: #40866d;
    font-size: 11px;
}
.upload-security {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}
/* RESULT */
.result {
    margin-top: 22px;
    padding: 30px;
    background:
        rgba(255, 255, 255, 0.95);
    border:
        1px solid var(--border);
    border-radius: 24px;
    box-shadow:
        var(--shadow);
}
.result-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.result-title h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.4px;
}
.result-check {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
}
.scan-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.scan-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--surface-soft);
    border:
        1px solid var(--border);
    border-radius: 16px;
}
.scan-status strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}
.scan-status span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}
.status-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 19px;
    font-weight: 800;
}
.status-icon.success {
    background: var(--success-soft);
    color: var(--success);
}
.status-icon.warning {
    background: var(--warning-soft);
    color: var(--warning);
}
.status-icon.neutral {
    background: #f1f5f9;
    color: #64748b;
}
.quick-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.quick-item {
    padding: 16px;
    background: var(--surface-soft);
    border:
        1px solid var(--border);
    border-radius: 14px;
}
.quick-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.quick-item strong {
    font-size: 14px;
}
/* WARNING METADATA */
.metadata-warning {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 18px;
    padding: 16px;
    background: var(--warning-soft);
    border:
        1px solid #fed7aa;
    border-radius: 15px;
}
.metadata-warning-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 11px;
    font-size: 18px;
}
.metadata-warning strong {
    display: block;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.4;
}
.metadata-warning p {
    margin: 6px 0 0;
    color: #9a5a35;
    font-size: 11px;
    line-height: 1.55;
}
.metadata-warning .metadata-warning-action {
    color: #7c2d12;
    font-weight: 700;
}
/* BUTTON */
.primary-button {
    width: 100%;
    min-height: 54px;
    margin-top: 22px;
    padding: 15px 20px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    box-shadow:
        var(--shadow-button);
}
.primary-button:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}
/* DETAILS */
.details {
    margin-top: 24px;
}
.metadata-section {
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--surface);
    border:
        1px solid var(--border);
    border-radius: 17px;
}
.metadata-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: var(--surface-soft);
}
.metadata-icon {
    width: 41px;
    height: 41px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border:
        1px solid var(--border);
    border-radius: 11px;
    font-size: 19px;
}
.metadata-header h3 {
    margin: 0 0 3px;
    font-size: 16px;
}
.metadata-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}
.metadata-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 17px;
    border-top:
        1px solid var(--border);
}
.metadata-label {
    color: var(--text-soft);
    font-size: 13px;
}
.metadata-value {
    max-width: 65%;
    text-align: right;
    font-size: 13px;
    overflow-wrap: anywhere;
}
/* ACTIONS */
.actions-area {
    margin-top: 28px;
    padding: 22px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
    border:
        1px solid var(--border);
    border-radius: 20px;
}
.actions-heading {
    margin-bottom: 17px;
    text-align: center;
}
.actions-heading h3 {
    margin: 0 0 7px;
    font-size: 20px;
}
.actions-heading p {
    width: min(560px, 100%);
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
}
.actions-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.action-button {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    text-align: left;
    color: white;
    font-family: inherit;
    cursor: pointer;
}
.action-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    font-size: 22px;
}
.action-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.action-text strong {
    font-size: 14px;
}
.action-text small {
    color:
        rgba(255, 255, 255, 0.79);
    font-size: 10px;
    line-height: 1.4;
}
.action-map {
    background:
        linear-gradient(
            135deg,
            var(--map),
            var(--map-dark)
        );
}
.action-clean {
    background:
        linear-gradient(
            135deg,
            var(--clean),
            var(--clean-dark)
        );
}
.action-new {
    grid-column:
        1 / -1;
    background:
        linear-gradient(
            135deg,
            var(--neutral),
            var(--neutral-dark)
        );
}
.action-button:disabled {
    opacity: 0.44;
    cursor: not-allowed;
}
.actions-privacy {
    margin: 14px 4px 0;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}
.clean-status {
    margin-top: 14px;
    padding: 13px 15px;
    background: var(--success-soft);
    color: var(--success-dark);
    border:
        1px solid #a7f3d0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 650;
}
.clean-status.error {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #fecaca;
}
/* INFO */
.privacy-explanation {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background:
        rgba(255, 255, 255, 0.72);
    border:
        1px solid var(--border);
    border-radius: 16px;
}
.info-card-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 11px;
}
.info-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}
.info-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.55;
}
/* ERROR */
.error-box {
    padding: 18px;
    background: var(--danger-soft);
    color: var(--danger);
    border:
        1px solid #fecaca;
    border-radius: 14px;
}
/* REWARD */
.reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        rgba(15, 23, 42, 0.72);
    backdrop-filter:
        blur(7px);
}
.reward-modal {
    width: min(420px, 100%);
    padding: 28px;
    background: white;
    border-radius: 22px;
    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.28);
}
.reward-modal h3 {
    margin: 0 0 10px;
}
.reward-modal p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}
.reward-test-note {
    margin-top: 18px;
    padding: 10px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
.reward-cancel {
    width: 100%;
    margin-top: 9px;
    padding: 11px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}
/* =====================================================
   CONTENUTI INFORMATIVI
===================================================== */
.knowledge-area {
    margin-top: 26px;
}
/* Gestione lingua dei nuovi contenuti */
html[lang="it"] .content-en {
    display: none;
}
html[lang="en"] .content-it {
    display: none;
}
/* Blocchi principali */
.knowledge-intro,
.article-section,
.faq-section {
    margin-bottom: 18px;
    padding: 30px;
    background:
        rgba(255, 255, 255, 0.92);
    border:
        1px solid var(--border);
    border-radius: 22px;
    box-shadow:
        var(--shadow-small);
}
.knowledge-intro h2,
.article-section h2,
.faq-section h2 {
    margin:
        0
        0
        16px;
    font-size:
        clamp(23px, 4vw, 30px);
    line-height: 1.25;
    letter-spacing:
        -0.5px;
}
.knowledge-intro p,
.article-section p {
    margin:
        0
        0
        13px;
    color:
        var(--text-soft);
    font-size:
        14px;
    line-height:
        1.75;
}
.knowledge-intro p:last-child,
.article-section p:last-child {
    margin-bottom: 0;
}
/* Schede metadata */
.knowledge-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.knowledge-card {
    padding: 24px;
    background:
        rgba(255, 255, 255, 0.94);
    border:
        1px solid var(--border);
    border-radius: 18px;
    box-shadow:
        var(--shadow-small);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.knowledge-card:hover {
    transform:
        translateY(-2px);
    border-color:
        #cbd5e1;
    box-shadow:
        0 13px 32px
        rgba(15, 23, 42, 0.08);
}
.knowledge-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background:
        var(--primary-soft);
    border-radius: 13px;
    font-size: 22px;
}
.knowledge-card h3 {
    margin:
        0
        0
        9px;
    font-size:
        17px;
    letter-spacing:
        -0.2px;
}
.knowledge-card p {
    margin: 0;
    color:
        var(--text-soft);
    font-size:
        13px;
    line-height:
        1.65;
}
/* Blocco di avviso */
.article-warning {
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #ffffff
        );
    border-color:
        #fed7aa;
}
/* FAQ */
.faq-item {
    margin-top: 10px;
    overflow: hidden;
    background:
        var(--surface-soft);
    border:
        1px solid var(--border);
    border-radius:
        14px;
}
.faq-item summary {
    position: relative;
    padding:
        17px
        48px
        17px
        18px;
    list-style: none;
    color:
        var(--text);
    font-size:
        14px;
    font-weight:
        700;
    line-height:
        1.45;
    cursor:
        pointer;
    transition:
        background 0.15s ease;
}
.faq-item summary:hover {
    background:
        #f1f5f9;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        white;
    color:
        var(--primary);
    border:
        1px solid var(--border);
    border-radius:
        8px;
    font-size:
        18px;
    transform:
        translateY(-50%);
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    margin: 0;
    padding:
        0
        18px
        18px;
    color:
        var(--text-soft);
    font-size:
        13px;
    line-height:
        1.7;
}
/* FOOTER */
footer {
    margin-top: 45px;
    text-align: center;
    color: var(--text-soft);
}
.footer-brand {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}
footer p {
    margin: 5px 0 0;
    font-size: 11px;
}
.hidden {
    display: none !important;
}
/* MOBILE */
@media (max-width: 600px) {
    .container {
        width:
            calc(100% - 24px);
        padding:
            max(28px, env(safe-area-inset-top))
            0
            40px;
    }
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    .language-switch {
        position: static;
        transform: none;
    }
    h1 {
        font-size:
            clamp(38px, 12vw, 46px);
    }
    .hero-warning {
        gap: 14px;
        padding: 20px 17px;
    }
    .hero-warning-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .hero-warning h2 {
        font-size: 19px;
    }
    .privacy-box {
        align-items: flex-start;
    }
    .upload-box {
        padding: 25px 18px;
    }
    .drop-zone {
        min-height: 230px;
        padding: 25px 17px;
    }
    .desktop-upload-text {
        display: none;
    }
    .mobile-upload-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .mobile-upload-text span {
        color: var(--text-soft);
        font-size: 12px;
    }
    .choose-file-button {
        width: 100%;
        max-width: 240px;
    }
    .original-file-help {
        font-size: 10px;
    }
    .result {
        padding: 22px 17px;
    }
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .metadata-row {
        flex-direction: column;
        gap: 4px;
    }
    .metadata-value {
        max-width: 100%;
        text-align: left;
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
    .action-new {
        grid-column: auto;
    }
    .privacy-explanation {
        grid-template-columns: 1fr;
    }
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .knowledge-intro,
    .article-section,
    .faq-section {
        padding:
            23px
            18px;
    }
    .knowledge-card {
        padding:
            20px
            18px;
    }
    .knowledge-intro h2,
    .article-section h2,
    .faq-section h2 {
        font-size:
            22px;
    }
    .knowledge-intro p,
    .article-section p {
        font-size:
            13px;
    }
    .faq-item summary {
        font-size:
            13px;
    }
}
@media (max-width: 360px) {
    .container {
        width:
            calc(100% - 16px);
    }
    .hero-warning {
        flex-direction: column;
    }
}
