:root { --tool: #7c3aed; --tool-dark: #5b21b6; --tool-light: #f5f3ff; --tool-border: #ddd6fe; }
    .tool-hero { background: var(--gray-50); padding: 100px 0 60px; text-align: center; position: relative; overflow: hidden; }
    .tool-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tool-light); color: var(--tool-dark); border: 1px solid var(--tool-border); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
    .tool-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
    .tool-hero h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 900; line-height: 1.1; color: var(--gray-900); letter-spacing: -1.5px; margin-bottom: 18px; }
    .text-gradient { background: linear-gradient(135deg, var(--tool) 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .tool-hero p.subtitle { font-size: clamp(15px, 2.5vw, 18px); color: var(--gray-600); max-width: 600px; margin: 0 auto 28px; line-height: 1.65; }
    .trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
    .trust-pill { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--gray-700); box-shadow: var(--shadow-sm); }
    .trust-pill svg { color: var(--tool); }

    .app-container { max-width: 1040px; margin: 0 auto; background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 10px 40px rgba(124,58,237,0.06); overflow: hidden; margin-bottom: 40px; }
    .upload-area { margin: 24px; padding: 60px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--tool-border); border-radius: 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--tool-light); }
    .upload-area:hover, .upload-area.dragover { background: #ede9fe; border-color: var(--tool); }
    .upload-icon-wrap { width: 72px; height: 72px; background: #ede9fe; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--tool); }
    .upload-area h3 { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
    .upload-area p { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }
    .upload-area .btn { background: var(--tool); color: white; padding: 14px 32px; border-radius: 12px; font-weight: 600; display: inline-block; font-size: 16px; }

    .loading-state { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; }
    .spinner { width: 44px; height: 44px; border: 4px solid var(--tool-light); border-top-color: var(--tool); border-radius: 50%; animation: spin 0.8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .editor-area { display: none; grid-template-columns: 1fr 330px; min-height: 540px; }
    .signer-main { background: #f1f5f9; padding: 20px; display: flex; flex-direction: column; align-items: center; }
    .page-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
    .page-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-700); }
    .page-nav button:hover:not(:disabled) { border-color: var(--tool); color: var(--tool); }
    .page-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
    .page-nav span { font-size: 14px; font-weight: 700; color: var(--gray-700); }
    .preview-scroll { width: 100%; overflow: auto; display: flex; justify-content: center; }
    .preview-wrap { position: relative; display: inline-block; line-height: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    .preview-wrap canvas { display: block; background: white; }
    #sig-box { position: absolute; top: 40px; left: 40px; cursor: grab; touch-action: none; border: 1.5px dashed var(--tool); border-radius: 4px; background: rgba(124,58,237,0.04); z-index: 5; }
    #sig-box.dragging { cursor: grabbing; }
    #sig-box img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
    #sig-box .sig-tag { position: absolute; top: -22px; left: 0; font-size: 10px; font-weight: 700; color: var(--tool-dark); background: var(--tool-light); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
    .ghost-sig { position: absolute; z-index: 3; line-height: 0; }
    .ghost-sig img { display: block; width: 100%; height: 100%; }

    .signer-side { background: white; border-left: 1px solid var(--border); padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; text-align: left; overflow-y: auto; }
    .side-card h4 { font-size: 13px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
    .sig-tabs { display: flex; gap: 6px; background: var(--gray-100); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
    .sig-tabs button { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--gray-600); font-family: var(--font); }
    .sig-tabs button.active { background: white; color: var(--tool-dark); box-shadow: var(--shadow-sm); }
    .pad-wrap { border: 1px solid var(--border); border-radius: 10px; background: #fff; position: relative; }
    #pad { width: 100%; height: 130px; display: block; border-radius: 10px; touch-action: none; cursor: crosshair; }
    .pad-baseline { position: absolute; left: 14px; right: 14px; bottom: 32px; border-bottom: 1px dashed var(--gray-300); pointer-events: none; }
    .type-row { display: flex; flex-direction: column; gap: 10px; }
    .type-row input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: var(--font); }
    .type-preview { height: 70px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; font-size: 34px; color: #1e293b; overflow: hidden; }
    .font-choices { display: flex; gap: 8px; }
    .font-choices button { flex: 1; padding: 8px 4px; border: 1px solid var(--border); border-radius: 8px; background: white; cursor: pointer; font-size: 19px; color: var(--gray-700); }
    .font-choices button.active { border-color: var(--tool); background: var(--tool-light); }
    .mini-btn { background: white; border: 1px solid var(--border); color: var(--gray-600); border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
    .mini-btn:hover { border-color: var(--tool); color: var(--tool-dark); }
    .btn-make { width: 100%; padding: 12px; background: var(--tool); color: white; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font); margin-top: 12px; }
    .btn-make:hover { background: var(--tool-dark); }
    .range-header { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-600); font-weight: 600; margin-bottom: 6px; }
    input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; background: #e2e8f0; border-radius: 4px; outline: none; }
    input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--tool); border-radius: 50%; cursor: pointer; }
    .hint { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; background: var(--tool-light); border-radius: 8px; padding: 10px 12px; }
    .placed-info { font-size: 13px; font-weight: 600; color: var(--gray-700); }
    .placed-info b { color: var(--tool-dark); }
    .side-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
    .btn-process { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--tool), var(--tool-dark)); color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); }
    .btn-process:hover { opacity: 0.92; } .btn-process:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-reset { width: 100%; padding: 11px; background: white; color: var(--gray-600); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); }
    .btn-reset:hover { background: var(--gray-50); }
    .disabled-section { opacity: 0.45; pointer-events: none; }

    @media (max-width: 860px) { .editor-area { grid-template-columns: 1fr; } .signer-side { border-left: none; border-top: 1px solid var(--border); } }

    /* Shared editorial styles */
    .how-section { padding: 80px 0; background: white; border-top: 1px solid var(--border); }
    .section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tool-dark); margin-bottom: 12px; }
    .section-title { font-size: clamp(24px, 5vw, 36px); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -.8px; }
    .section-desc { font-size: 16px; color: var(--gray-500); max-width: 580px; margin: 0 auto 56px; line-height: 1.65; }
    .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .step-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px; transition: all .25s ease; text-align: left; }
    .step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); background: white; border-color: var(--tool-border); }
    .step-num { width: 48px; height: 48px; border-radius: 14px; background: var(--tool-light); color: var(--tool-dark); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
    .step-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
    .step-card p { font-size: 14.5px; color: var(--gray-500); line-height: 1.6; }
    .seo-modern { background: #fff; padding: 100px 0; position: relative; border-top: 1px solid var(--border); }
    .seo-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
    .seo-header { text-align: center; margin-bottom: 72px; }
    .seo-header h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; color: var(--gray-900); letter-spacing: -1px; margin-bottom: 24px; }
    .seo-header p { font-size: clamp(16px, 2.5vw, 20px); color: var(--gray-500); line-height: 1.6; max-width: 760px; margin: 0 auto; }
    .seo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; text-align: left; }
    .seo-split-content h3 { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; letter-spacing: -0.5px; }
    .seo-split-content p { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }
    .mobile-highlight-box { background: linear-gradient(145deg, var(--tool) 0%, #a855f7 100%); border-radius: 24px; padding: 48px; color: white; box-shadow: 0 24px 48px rgba(124,58,237,0.22); position: relative; overflow: hidden; }
    .mobile-highlight-box::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent); }
    .mobile-highlight-box h3 { font-size: 26px; font-weight: 900; color: white; margin-bottom: 20px; }
    .mobile-highlight-box p { font-size: 17px; color: rgba(255,255,255,0.92); line-height: 1.7; margin-bottom: 0; }
    .faq-modern { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 48px; text-align: left; }
    .faq-modern h3 { font-size: 22px; font-weight: 800; margin-bottom: 32px; border-bottom: 2px solid var(--gray-100); padding-bottom: 16px; color: var(--gray-900); }
    .faq-item { margin-bottom: 28px; } .faq-item:last-child { margin-bottom: 0; }
    .faq-item h4 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
    .faq-item p { font-size: 15px; color: var(--gray-600); line-height: 1.6; margin-bottom: 0; }
    .features-strip { background: var(--gray-900); padding: 40px 0; }
    .features-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .feature-item { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-right: 1px solid rgba(255,255,255,0.1); text-align: left; }
    .feature-item:last-child { border-right: none; }
    .feature-item__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,58,237,0.20); display: flex; align-items: center; justify-content: center; color: #c4b5fd; flex-shrink: 0; }
    .feature-item h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 2px; }
    .feature-item p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 0; line-height: 1.4; }
    .cta-band { background: linear-gradient(135deg, var(--tool-dark) 0%, #a855f7 100%); padding: 80px 24px; text-align: center; color: white; position: relative; overflow: hidden; }
    .cta-band h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; color: white; margin-bottom: 16px; letter-spacing: -1px; }
    .cta-band p { font-size: 18px; color: rgba(255,255,255,0.92); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
    .btn--white { background: white; color: var(--tool-dark); border: none; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .btn--white:hover { background: #f8fafc; transform: translateY(-2px); }
    @media (max-width: 1024px) { .features-strip__grid { grid-template-columns: repeat(2, 1fr); } .feature-item:nth-child(2) { border-right: none; } }
    @media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 20px; } .seo-split { grid-template-columns: 1fr; gap: 40px; } .mobile-highlight-box { padding: 32px; } }
    @media (max-width: 640px) { .features-strip__grid { grid-template-columns: 1fr; } .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } .feature-item:last-child { border-bottom: none; } }
