/* ZapOCR - Zap series landing styles */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
    display: inline-block;
    width: 1em;
    height: 1em;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.dev-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--warning);
    color: #111827;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.lc-header-content {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lc-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.35rem;
}

.lc-logo img {
    width: 45px;
    height: 45px;
    transform: translateY(-1px);
}

.lc-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 750;
}

.lang-btn:hover,
.lang-btn:focus-visible {
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.35);
    outline: none;
}

.lang-btn .material-symbols-outlined {
    font-size: 18px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 30;
    display: none;
    width: 230px;
    max-width: min(80vw, 230px);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-search-wrapper {
    position: relative;
    padding: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.lang-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
}

[dir="rtl"] .lang-search-icon {
    left: auto;
    right: 1rem;
}

.lang-search-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-body);
    padding: 0.5rem 0.6rem 0.5rem 2rem;
    color: var(--text-main);
    font-size: 0.88rem;
}

[dir="rtl"] .lang-search-input {
    padding: 0.5rem 2rem 0.5rem 0.6rem;
}

.lang-search-input:focus {
    border-color: var(--primary);
    outline: none;
}

.lang-list {
    max-height: 320px;
    overflow-y: auto;
}

.lang-list a {
    display: block;
    padding: 0.72rem 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.92rem;
}

.lang-list a:hover,
.lang-list a:focus {
    background: var(--bg-body);
    outline: none;
}

.lang-list a.hidden {
    display: none;
}

.lang-no-results {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.lc-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
}

.lc-nav-link:hover {
    color: var(--text-main);
}

.lc-cta-button,
.btn {
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lc-cta-button {
    background: var(--text-main);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.lc-cta-button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn {
    min-height: 42px;
    padding: 0.72rem 1.05rem;
    font-size: 0.94rem;
}

.btn-sm {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
}

.btn-primary,
.lc-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.lc-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
}

.lc-section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lc-section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 4rem;
}

.lc-hero {
    padding: 3.25rem 0 4rem;
    background: radial-gradient(50% 50% at 50% 10%, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.lc-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
}

.lc-hero-background-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lc-floating-icon {
    position: absolute;
    opacity: 0.15;
    color: var(--primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-floating-icon .material-symbols-outlined {
    font-size: 48px;
}

.lc-icon-1 { top: 15%; left: 8%; }
.lc-icon-2 { bottom: 20%; right: 8%; }
.lc-icon-3 { top: 12%; right: 15%; }
.lc-icon-4 { bottom: 15%; left: 20%; }
.lc-icon-5 { top: 48%; left: 50%; }
.lc-icon-6 { top: 30%; left: 5%; }
.lc-icon-7 { top: 58%; right: 12%; }
.lc-icon-8 { bottom: 10%; left: 50%; }

.lc-floating-icon span {
    animation: scurry var(--duration, 48s) linear infinite;
}

@keyframes scurry {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(var(--tx-1, 30px), var(--ty-1, -30px)) rotate(var(--r-1, 10deg)); }
    40% { transform: translate(var(--tx-2, -20px), var(--ty-2, 20px)) rotate(var(--r-2, -20deg)); }
    60% { transform: translate(var(--tx-3, 40px), var(--ty-3, 10px)) rotate(var(--r-3, 40deg)); }
    80% { transform: translate(var(--tx-4, -10px), var(--ty-4, -40px)) rotate(var(--r-4, -10deg)); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.lc-hero-content {
    text-align: center;
    max-width: 940px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.lc-hero-title {
    font-size: clamp(2.45rem, 6vw, 3.55rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lc-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 690px;
}

.demo-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 980px;
    margin: 0 auto 3rem;
    text-align: left;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.demo-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1fr);
    gap: 1rem;
    align-items: start;
}

.file-input-wrapper {
    position: relative;
    border: 3px dashed rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    min-height: 340px;
    padding: 2rem 1.25rem;
    text-align: center;
    background: rgba(79, 70, 229, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-input-wrapper:hover,
.file-input-wrapper:focus-visible {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.file-input-wrapper.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.01);
}

.drop-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.drop-icon .material-symbols-outlined {
    font-size: 48px;
}

.drop-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.drop-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fields-panel {
    margin-top: 0;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.fields-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fields-heading h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.fields-heading p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.field-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.extraction-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.04);
}

.option-field {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

[dir="rtl"] .option-field {
    text-align: right;
}

.option-field label {
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
}

.option-field select,
.option-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
}

.option-field select {
    height: 40px;
    padding: 0 0.8rem;
}

.option-field textarea {
    min-height: 72px;
    max-height: 140px;
    resize: vertical;
    padding: 0.65rem 0.75rem;
    line-height: 1.45;
}

.option-field select:focus,
.option-field textarea:focus,
.field-form input:focus,
.field-name-input:focus,
.field-value:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.option-field p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.field-form input {
    min-width: 0;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 0.9rem;
    background: #fff;
    color: var(--text-main);
}

.quick-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-fields button {
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary);
    min-height: 32px;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.83rem;
    font-weight: 750;
}

.quick-fields button:hover {
    background: rgba(79, 70, 229, 0.1);
}

.fields-list {
    display: grid;
    gap: 0.75rem;
}

.field-row {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.field-row-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    align-items: center;
}

.field-name-input,
.field-name-static {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 0.75rem;
    color: var(--text-main);
    background: #fff;
    font-weight: 750;
}

.field-name-static {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.16);
}

.field-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.35);
}

.icon-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.field-value {
    min-height: 86px;
    max-height: 280px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-main);
    background: #fff;
    line-height: 1.45;
}

.field-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.78rem;
}

.confidence {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 750;
    color: var(--text-muted);
}

.confidence-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--text-light);
}

.confidence.is-good .confidence-dot {
    background: var(--success);
}

.confidence.is-medium .confidence-dot {
    background: var(--warning);
}

.confidence.is-low .confidence-dot {
    background: var(--danger);
}

.status-row {
    margin: 1.5rem auto 0;
    position: relative;
    width: 100%;
    max-width: 640px;
    animation: fadeSlideIn 0.35s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-preview-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    min-height: 220px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.status-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
    filter: saturate(0.8);
}

.status-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent, rgba(0, 0, 0, 0.62));
}

.status-text {
    font-size: clamp(1rem, 4vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    text-align: center;
}

.status-text::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-content-overlay .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(4px);
}

.error {
    margin-top: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.94rem;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}

.auth-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 16px;
    background: #fff;
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.auth-modal-close::before {
    content: "x";
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.fonts-loaded .auth-modal-close::before {
    content: "";
}

.auth-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.16));
}

.auth-modal-icon::before {
    content: "20";
    font-size: 1.1rem;
    font-weight: 900;
    color: #4f46e5;
}

.fonts-loaded .auth-modal-icon::before {
    content: "";
}

.auth-modal-icon .material-symbols-outlined {
    font-size: 32px;
}

.auth-modal-card h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.auth-modal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-google-btn {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.auth-google-btn:disabled {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 1;
}

.auth-modal-status {
    min-height: 1.4rem;
    margin-top: 0.8rem;
    font-size: 0.88rem;
}

.paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.paywall-modal.hidden {
    display: none;
}

.paywall-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(79, 70, 229, 0.26), transparent 34%),
        radial-gradient(circle at 78% 82%, rgba(16, 185, 129, 0.22), transparent 30%),
        rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(7px);
}

.paywall-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    max-height: min(92vh, 760px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eef2ff 100%);
    padding: 1.25rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.paywall-modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.paywall-modal-close::before {
    content: "x";
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.fonts-loaded .paywall-modal-close::before {
    content: "";
}

.paywall-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.84fr) minmax(320px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.paywall-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    border-radius: 14px;
    padding: 1.25rem;
    background: #0f172a;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.paywall-copy::after {
    content: "";
    position: absolute;
    inset: auto -22% -28% 18%;
    height: 220px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 68%);
    pointer-events: none;
}

.paywall-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #facc15;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.paywall-icon::before {
    content: "+";
    font-size: 1.4rem;
    font-weight: 900;
    color: #facc15;
}

.fonts-loaded .paywall-icon::before {
    content: "";
}

.paywall-icon .material-symbols-outlined {
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.paywall-copy .paywall-kicker {
    position: relative;
    z-index: 1;
    width: fit-content;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    margin-bottom: 0.75rem;
    background: rgba(79, 70, 229, 0.26);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 850;
}

.paywall-copy h2 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.04;
    margin-bottom: 0.75rem;
    max-width: 10em;
}

.paywall-copy p {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.55;
}

.paywall-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.paywall-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 750;
}

.paywall-benefits .material-symbols-outlined {
    color: #67e8f9;
    font-size: 19px;
}

.paywall-packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.paywall-pack {
    position: relative;
    min-width: 0;
    min-height: 250px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

[dir="rtl"] .paywall-pack {
    text-align: right;
}

.paywall-pack:hover,
.paywall-pack:focus-visible {
    outline: none;
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.paywall-pack.is-featured {
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.14);
}

.paywall-pack.is-best-value {
    border-color: rgba(16, 185, 129, 0.5);
}

.paywall-pack:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.paywall-pack-top {
    display: grid;
    gap: 0.4rem;
    min-height: 3.25rem;
    align-content: start;
}

.paywall-pack-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}

.paywall-pack-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 0.22rem 0.48rem;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.7rem;
    font-weight: 900;
}

.paywall-pack.is-featured .paywall-pack-badge {
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary);
}

.paywall-pack-price {
    color: var(--text-main);
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 900;
    line-height: 1;
}

.paywall-pack-rate {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.paywall-pack-cta {
    min-height: 42px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.62rem 0.75rem;
    background: var(--text-main);
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
}

.paywall-pack.is-featured .paywall-pack-cta {
    background: var(--gradient-primary);
}

.paywall-pack.is-best-value .paywall-pack-cta {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
}

.paywall-modal-status {
    min-height: 1.45rem;
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 750;
}

.billing-toast {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1300;
    max-width: min(92vw, 520px);
    transform: translateX(-50%);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow-xl);
    font-size: 0.92rem;
    font-weight: 750;
}

.billing-toast.is-success {
    border-color: rgba(16, 185, 129, 0.32);
    color: #047857;
}

.billing-toast.is-canceled {
    border-color: rgba(245, 158, 11, 0.34);
    color: #92400e;
}

.result-shell {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.result-meta span:first-child {
    color: var(--success);
    font-weight: 800;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

.result-values,
.preview-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.result-values-heading,
.preview-card-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.result-values p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.result-actions .btn {
    min-height: 36px;
}

.export-status {
    min-height: 1.2rem;
    margin-top: 0.55rem;
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 750;
}

.preview-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-body);
    margin-top: 0.75rem;
}

.lc-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lc-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.lc-trust-item .material-symbols-outlined {
    color: var(--success);
}

.lc-features,
.lc-steps,
.lc-use-cases,
.lc-limitations,
.lc-faq {
    padding: 6rem 0;
    background: #fff;
}

.lc-steps,
.lc-limitations {
    background: var(--bg-body);
}

.lc-features-grid,
.lc-steps-grid,
.lc-use-cases-grid {
    display: grid;
    gap: 1.5rem;
}

.lc-features-grid,
.lc-steps-grid {
    grid-template-columns: repeat(3, 1fr);
}

.lc-use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
}

.lc-feature-card,
.lc-step-card,
.lc-use-case {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.lc-feature-card h3,
.lc-step-card h3,
.lc-use-case h3 {
    font-size: 1.15rem;
    margin: 1rem 0 0.55rem;
}

.lc-feature-card p,
.lc-step-card p,
.lc-use-case p {
    color: var(--text-muted);
}

.lc-feature-icon,
.lc-step-icon,
.lc-use-case > .material-symbols-outlined {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-feature-icon,
.lc-step-icon {
    color: #fff;
}

.lc-icon-blue { background: var(--secondary); }
.lc-icon-purple { background: #8b5cf6; }
.lc-icon-indigo { background: var(--primary); }
.lc-icon-gray { background: #64748b; }

.lc-step-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.lc-step-icon {
    background: var(--gradient-primary);
}

.lc-use-case > .material-symbols-outlined {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    font-size: 28px;
}

.lc-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.lc-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.lc-faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

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

.lc-final-cta {
    padding: 6rem 0;
    background: var(--bg-body);
}

.lc-cta-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    border-radius: 16px;
    padding: 3rem 2rem;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-xl);
}

.lc-cta-box h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 1rem 0;
}

.lc-cta-box p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.lc-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-cta-icon .material-symbols-outlined {
    font-size: 34px;
}

.lc-cta-box .lc-btn-primary {
    background: #fff;
    color: var(--primary);
    padding: 0.85rem 1.35rem;
}

footer {
    background: var(--text-main);
    color: #fff;
    padding: 4rem 0 2rem;
}

.lc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lc-footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.lc-footer-brand p {
    color: #94a3b8;
    max-width: 360px;
}

.lc-footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.lc-footer-links {
    display: grid;
    gap: 0.75rem;
}

.lc-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lc-footer-links a:hover,
.lc-footer-links a.active {
    color: #fff;
}

.lc-footer-links .material-symbols-outlined {
    font-size: 14px;
}

.lc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

.lc-footer-bottom a {
    color: #fff;
}

.page-drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(79, 70, 229, 0.16);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.page-drop-message {
    background: #fff;
    color: var(--primary);
    border: 2px dashed rgba(79, 70, 229, 0.45);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-page {
    background: #fff;
}

.legal-shell {
    width: min(760px, calc(100% - 2rem));
    margin: 4rem auto;
}

.legal-shell h1 {
    font-size: 2.4rem;
    margin: 1rem 0;
}

.legal-shell h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
}

.legal-shell p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal-back {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .paywall-layout,
    .demo-workspace,
    .result-grid,
    .lc-features-grid,
    .lc-steps-grid,
    .lc-use-cases-grid,
    .lc-faq-list,
    .lc-footer-grid {
        grid-template-columns: 1fr;
    }

    .result-grid {
        gap: 0.75rem;
    }

    .preview-card {
        max-width: 100%;
    }

    .paywall-copy {
        min-height: 280px;
    }
}

@media (max-width: 680px) {
    .lc-header-content {
        padding: 0 1rem;
    }

    .lc-nav-link {
        display: none;
    }

    .lc-cta-button {
        padding: 0.55rem 0.85rem;
    }

    .lc-hero {
        padding: 2.25rem 0 3rem;
    }

    .lc-hero-background-icons {
        display: none;
    }

    .lc-badge {
        margin-bottom: 1rem;
    }

    .lc-hero-title {
        font-size: clamp(2.25rem, 10vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .lc-hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .lc-container {
        padding: 0 1rem;
    }

    .demo-widget {
        padding: 1rem;
        border-radius: 14px;
    }

    .paywall-modal {
        padding: 0.65rem;
        align-items: end;
    }

    .paywall-modal-card {
        max-height: 92vh;
        border-radius: 16px;
        padding: 0.85rem;
    }

    .paywall-modal-close {
        top: 0.55rem;
        right: 0.55rem;
    }

    .paywall-layout {
        gap: 0.75rem;
    }

    .paywall-copy {
        min-height: 250px;
        padding: 1rem;
    }

    .paywall-packs {
        grid-template-columns: 1fr;
    }

    .paywall-pack {
        min-height: 0;
    }

    .file-input-wrapper {
        min-height: 190px;
        padding: 1.4rem 1rem;
    }

    .fields-panel {
        padding: 1rem;
    }

    .fields-heading,
    .result-meta,
    .lc-footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .field-form {
        grid-template-columns: 1fr;
    }

    .field-row-header {
        grid-template-columns: 1fr;
    }

    .field-actions {
        justify-content: flex-end;
    }

    .lc-features,
    .lc-steps,
    .lc-use-cases,
    .lc-limitations,
    .lc-faq,
    .lc-final-cta {
        padding: 4rem 0;
    }

    .page-drop-message {
        width: calc(100% - 2rem);
        text-align: center;
        padding: 1.5rem;
    }
}
