* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; background: #fafafa; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #eee; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 22px; font-weight: 800; text-decoration: none; color: #0b5fff; white-space: nowrap; }
.logo span { color: #1a1a1a; }

/* Mobile-only elements — hidden on desktop */
.mobile-tabs { display: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; width: 36px; height: 36px; position: relative; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: #333; margin: 5px auto; border-radius: 2px; transition: all .25s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-wrap { display: flex; align-items: center; gap: 16px; flex: 1; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.main-nav a { padding: 8px 14px; text-decoration: none; color: #555; font-weight: 500; font-size: 14px; border-radius: 8px; transition: all .15s; white-space: nowrap; }
.main-nav a:hover { background: #f0f5ff; color: #0b5fff; }
.main-nav a.nav-active { background: #0b5fff; color: #fff; }
.main-nav a.nav-active:hover { background: #0a4cd1; color: #fff; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pro-badge { display: inline-block; padding: 5px 10px; background: linear-gradient(135deg,#0b5fff,#5b8cff); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; border-radius: 12px; }

.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: #f4f6fa; border: 1px solid transparent; border-radius: 20px; text-decoration: none; color: #1a1a1a; font-size: 14px; font-weight: 600; transition: all .15s; }
.user-chip:hover { background: #e8f0ff; border-color: #d0e3ff; }
.user-chip.nav-active { background: #0b5fff; color: #fff; }
.user-chip.nav-active .user-avatar-initial { background: #fff; color: #0b5fff; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: #0b5fff; color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.user-name { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== MOBILE ========== */

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all .15s; border: none; cursor: pointer; font-size: 15px; }
.btn-primary { background: #0b5fff; color: #fff; }
.btn-primary:hover { background: #0a4cd1; }
.btn-ghost { background: transparent; color: #0b5fff; border: 1px solid #0b5fff; }
.btn-ghost:hover { background: #0b5fff; color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; background: #fff; color: #444; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-google:hover { background: #f5f5f5; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, #fff 0%, #f0f5ff 100%); }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .hl { color: #0b5fff; }
.hero .lead { font-size: 20px; color: #555; max-width: 640px; margin: 0 auto 32px; }
.hero .trust { margin-top: 20px; color: #888; font-size: 14px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-bar { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.trust-bar span { color: #666; font-size: 14px; font-weight: 500; }

/* How it works */
.how-section { padding: 70px 0; background: #fff; }
.how-section h2 { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.step { background: #f8faff; border: 1px solid #e8eef8; border-radius: 16px; padding: 32px 24px; text-align: center; flex: 1; min-width: 240px; max-width: 320px; position: relative; }
.step-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #0b5fff; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 28px; }
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; color: #555; line-height: 1.6; }
.step-arrow { font-size: 28px; color: #c8d4e3; padding-top: 50px; flex-shrink: 0; }
/* step-arrow hide handled in main 768px media query above */

/* Features */
.features-section { padding: 70px 0; background: linear-gradient(180deg, #f4f6fa 0%, #fff 100%); }
.features-section h2 { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.feature-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 28px 24px; position: relative; transition: all .15s; }
.feature-card:hover { border-color: #0b5fff; box-shadow: 0 6px 20px rgba(11,95,255,0.06); transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #555; line-height: 1.6; }
.feature-pro { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #0b5fff, #5b8cff); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Free promo */
.free-promo-section { padding: 40px 0; }
.free-promo-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #fff8e6, #fff3d6); border: 2px solid #ffd98a; border-radius: 16px; padding: 32px 36px; gap: 24px; flex-wrap: wrap; }
.free-promo-left { display: flex; align-items: center; gap: 18px; flex: 1; }
.free-promo-icon { font-size: 48px; flex-shrink: 0; }
.free-promo-card h3 { font-size: 22px; font-weight: 800; color: #725400; margin-bottom: 6px; }
.free-promo-card p { font-size: 14px; color: #8a6300; line-height: 1.5; max-width: 480px; }
/* free-promo mobile handled in main 768px media query above */

/* Pricing 3-column styles */
.price-features .feat-disabled { color: #bbb; text-decoration: line-through; }

/* Contracts grid */
.contracts { padding: 70px 0; }
.contracts h2 { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: #666; margin-bottom: 36px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; text-decoration: none; color: inherit; display: block; transition: all .15s; }
.card:hover { border-color: #0b5fff; box-shadow: 0 8px 24px rgba(11,95,255,0.08); transform: translateY(-2px); }
.card-hot { border-color: #ffe1c4; background: linear-gradient(180deg, #fffaf3 0%, #fff 100%); }
.card-hot:hover { border-color: #ff8a00; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; padding-right: 60px; }
.card p { font-size: 13px; color: #666; margin-bottom: 16px; }
.card-cta { color: #0b5fff; font-weight: 600; font-size: 13px; }
.hot-tag { display: inline-block; background: #ff8a00; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; position: absolute; top: 14px; right: 14px; }
.section-sub .hot-tag { position: static; }

/* Pricing */
.pricing { padding: 70px 0; background: #f4f6fa; }
.pricing h2 { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 36px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 720px; margin: 0 auto; }
.price-grid.price-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1060px; }
.price-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 32px; text-align: center; position: relative; }
.price-card.price-featured { border-color: #0b5fff; border-width: 2px; transform: scale(1.03); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #0b5fff; color: #fff; padding: 4px 14px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.price-card h3 { font-size: 20px; margin-bottom: 12px; }
.price-card .price { font-size: 36px; font-weight: 800; color: #0b5fff; margin: 12px 0; }
.price-card .price span { font-size: 16px; color: #888; font-weight: 500; }
.price-card p { color: #666; font-size: 14px; }

/* Footer */
.site-footer { background: #1a1a1a; color: #aaa; padding: 50px 0 30px; margin-top: 60px; }
.site-footer .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer .footer-brand .footer-logo { font-size: 20px; font-weight: 800; color: #0b5fff; margin-bottom: 10px; }
.site-footer .footer-brand .footer-logo span { color: #fff; }
.site-footer .footer-brand p { font-size: 13px; color: #888; line-height: 1.6; max-width: 300px; }
.site-footer .footer-links h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.site-footer .footer-links a { display: block; padding: 4px 0; color: #aaa; text-decoration: none; font-size: 13px; transition: color .15s; }
.site-footer .footer-links a:hover { color: #5b8cff; }
.site-footer .footer-disclaimer { background: rgba(255,255,255,0.04); border-left: 3px solid #ffc94f; padding: 14px 18px; border-radius: 6px; font-size: 12px; line-height: 1.6; color: #ccc; margin-bottom: 20px; }
.site-footer .footer-disclaimer strong { color: #fff; }
.site-footer .footer-disclaimer a { color: #5b8cff; text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 12px; color: #666; }

/* footer mobile handled in main 768px media query above */

/* Legal pages */
.legal-section { padding: 50px 0 80px; }
.legal-section .container { max-width: 800px; }
.legal-section h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-section .legal-intro { color: #888; font-size: 13px; margin-bottom: 32px; }
.legal-section h2 { font-size: 18px; font-weight: 700; color: #0b5fff; margin: 32px 0 12px; }
.legal-section p { line-height: 1.7; margin-bottom: 12px; color: #333; }
.legal-section ul { margin: 10px 0 14px 22px; }
.legal-section ul li { padding: 4px 0; line-height: 1.6; color: #333; }
.legal-section a { color: #0b5fff; text-decoration: underline; }
.disclaimer-box { background: #fffbea; border: 1px solid #ffe7a0; border-left: 4px solid #ffc94f; padding: 24px 28px; border-radius: 12px; margin-top: 20px; }
.disclaimer-box p { color: #725400; }

/* Legal checkbox in forms */
.legal-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #fafbfd; border: 1px solid #e8e8e8; border-radius: 10px; margin: 14px 0; font-size: 13px; line-height: 1.5; color: #555; cursor: pointer; }
.legal-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: #0b5fff; cursor: pointer; flex-shrink: 0; }
.legal-check a { color: #0b5fff; text-decoration: underline; }
.legal-check-compact { padding: 10px 12px; font-size: 12px; margin: 10px 0; }

/* Auth */
.auth-section { padding: 60px 20px; display: flex; justify-content: center; }
.auth-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 40px; max-width: 420px; width: 100%; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-sub { color: #666; margin-bottom: 24px; }
.auth-form label { display: block; margin-bottom: 14px; font-size: 14px; color: #444; }
.auth-form input { width: 100%; padding: 11px 13px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; margin-top: 4px; }
.auth-form input:focus { outline: none; border-color: #0b5fff; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #666; }
.divider { text-align: center; margin: 20px 0; position: relative; }
.divider:before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e8e8e8; }
.divider span { background: #fff; padding: 0 12px; position: relative; color: #999; font-size: 13px; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee; color: #c33; border: 1px solid #fcc; }
.alert-success { background: #e8f6ed; color: #1f7a33; border: 1px solid #c2e4ce; padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.magic-link-row { background: #fafbfd; border: 1px solid #e8e8e8; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.magic-link-name { font-size: 13px; color: #444; margin-bottom: 8px; }
.magic-link-url { display: flex; gap: 8px; }
.magic-link-url input { flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 12px; font-family: monospace; background: #fff; }
.magic-link-url .btn { white-space: nowrap; }
.alert-paid { background: linear-gradient(180deg,#fff9e6,#fffbf0); color: #725400; border: 1px solid #ffe7a0; padding: 16px 20px; border-radius: 10px; margin: 0 20px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; max-width: 1240px; margin-left: auto; margin-right: auto; }
.alert-paid strong { font-size: 15px; }
.alert-paid button { margin-left: auto; }
.alert-pro { background: linear-gradient(180deg,#f0f7ff,#e8f1ff); color: #0b3fa8; border: 1px solid #b8d2ff; padding: 14px 20px; border-radius: 10px; margin: 0 20px 24px; display: flex; align-items: center; gap: 10px; font-size: 14px; max-width: 1240px; margin-left: auto; margin-right: auto; }
.alert-disclaimer { padding: 16px 20px; border-radius: 10px; margin: 0 auto 18px; max-width: 1240px; font-size: 13.5px; line-height: 1.5; border-left: 4px solid; }
.alert-disclaimer strong { display: block; margin-bottom: 6px; font-size: 14px; }
.alert-risk-low      { background: #f0f9ff; color: #03507a; border-color: #60b2e0; }
.alert-risk-medium   { background: #fffbea; color: #725400; border-color: #ffc94f; }
.alert-risk-high     { background: #fff4ec; color: #8a3a00; border-color: #ff8a00; }
.alert-risk-critical { background: #ffecec; color: #8a0000; border-color: #e53935; }
.alert-pro strong { font-size: 15px; }

.price-features { list-style: none; padding: 0; margin: 16px 0; text-align: left; font-size: 14px; color: #555; }
.price-features li { padding: 4px 0; }

.form-locked input, .form-locked select, .form-locked textarea { background: #f4f6fa !important; color: #666; cursor: not-allowed; }
.form-locked fieldset legend { color: #888; }
.preview-hint { font-size: 12px; color: #888; font-style: italic; }

/* Editor */
.editor-wrap { padding: 30px 0; }
.editor { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.editor-header { margin-bottom: 24px; }
.editor-header h1 { font-size: 28px; }
.lead-sm { color: #666; font-size: 15px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.form-pane { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; }
.form-pane fieldset { border: none; margin-bottom: 24px; }
.form-pane legend { font-weight: 700; font-size: 14px; color: #0b5fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #f0f5ff; width: 100%; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 9px 11px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #0b5fff; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
#save-status { color: #28a745; font-size: 13px; }
.checkout-box { margin-top: 20px; padding: 18px; background: linear-gradient(180deg, #f0f5ff, #fff); border: 1px solid #d9e6ff; border-radius: 10px; }
.checkout-title { font-weight: 600; margin-bottom: 12px; color: #0b5fff; font-size: 14px; text-align: center; }
.free-hint { font-size: 11px; color: #888; text-align: center; margin-top: 8px; line-height: 1.4; }
.free-hint a { color: #0b5fff; text-decoration: underline; }
.free-signup-promo { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff8e6, #fff3d6); border: 1px solid #ffd98a; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.free-signup-promo .promo-icon { font-size: 32px; flex-shrink: 0; }
.free-signup-promo .promo-text { flex: 1; }
.free-signup-promo .promo-text strong { display: block; color: #725400; font-size: 14px; line-height: 1.3; }
.free-signup-promo .promo-text small { display: block; color: #8a6300; font-size: 11px; margin-top: 3px; }
.download-box { display: flex; gap: 12px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }

.preview-pane { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #eee; background: #fafbfd; border-radius: 12px 12px 0 0; }
.preview-toolbar > div { display: flex; gap: 8px; }
.editor-toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: #fafbfd; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: 0 8px; background: #fff; border: 1px solid #e0e6ef; border-radius: 6px; cursor: pointer; font-size: 13px; color: #333; transition: all .1s; font-family: inherit; }
.tbtn:hover { background: #e8f0ff; border-color: #0b5fff; color: #0b5fff; }
.tbtn:active { background: #0b5fff; color: #fff; }
.tbtn-reset { margin-left: auto; color: #c33; border-color: #fcc; }
.tbtn-reset:hover { background: #c33; color: #fff; border-color: #c33; }
.tsep { width: 1px; height: 20px; background: #e0e6ef; margin: 0 4px; }

.preview-doc { padding: 36px 42px; overflow-y: auto; flex: 1; font-family: "Times New Roman", Georgia, serif; font-size: 13px; line-height: 1.7; color: #1a1a1a; background: #fff; }
.preview-editable { outline: none; }
.preview-editable:focus { background: #fffef9; }
.preview-locked { cursor: default; user-select: text; }
/* Desktop: both panes always visible regardless of tab-visible class */
.editor-grid .form-pane, .editor-grid .preview-pane { display: block; }
.editor-grid .preview-pane { display: flex; flex-direction: column; }
.preview-doc .tpl-val { border-bottom: 1px dashed #c8d4e3; transition: all .15s; padding: 0 2px; border-radius: 2px; }
.preview-doc .tpl-val:hover { background: #e8f0ff; border-color: #0b5fff; }
.preview-doc .tpl-val:focus { background: #dbeaff; border-color: #0b5fff; outline: none; }
.preview-doc h1 { font-size: 18px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 22px 0; padding-bottom: 10px; border-bottom: 1px solid #eaeaea; }
.preview-doc h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; text-align: center; margin: 26px 0 12px 0; color: #0b5fff; letter-spacing: 0.4px; }
.preview-doc h3 { font-size: 13px; font-weight: 700; margin: 16px 0 6px 0; }
.preview-doc p { margin: 0 0 10px 0; text-align: justify; }
.preview-doc hr { border: none; border-top: 1px dashed #ccc; margin: 18px 0; }
.preview-doc strong { font-weight: 700; }
.preview-doc .sig-table { width: 100%; margin-top: 40px; padding-top: 18px; border-top: 1px solid #eee; border-collapse: collapse; }
.preview-doc .sig-table td { width: 50%; text-align: center; padding: 6px 12px; vertical-align: top; font-size: 13px; }
.preview-doc .sig-single { margin-top: 40px; padding-top: 18px; border-top: 1px solid #eee; text-align: right; padding-right: 6px; font-size: 13px; }
.preview-doc .sig-single div { margin: 4px 0; }
.preview-doc .sig-single .sig-spacer { height: 10px; margin: 0; }

/* Profile / My contracts */
.profile-section { padding: 40px 0 80px; }
.profile-header { margin-bottom: 30px; }
.profile-header h1 { font-size: 32px; margin-bottom: 12px; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.alert-info { background: #f0f7ff; color: #0b5fff; border: 1px solid #d0e3ff; }
.alert-warning { background: #fff8e6; color: #725400; border: 1px solid #ffe7a0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alert-warning button { margin-left: auto; }
.alert-pro-active { background: linear-gradient(135deg, #f0f7ff, #e8f1ff); color: #0b3fa8; border: 1px solid #b8d2ff; padding: 14px 18px; border-radius: 10px; display: flex; align-items: center; gap: 14px; margin: 14px 0; font-size: 14px; }
.alert-pro-active strong { font-weight: 700; }
.alert-pro-active button { margin-left: auto; }
.subscription-panel { margin-top: 8px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.account-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; }
.account-card h2 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; gap: 12px; }
.account-row:last-of-type { border-bottom: none; }
.account-label { color: #666; font-weight: 500; }
.account-value { color: #1a1a1a; font-weight: 600; text-align: right; }
.account-hint { font-size: 12px; color: #888; margin-top: 10px; line-height: 1.5; }
.account-card form .field { margin-bottom: 12px; }
.account-card form .field input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.account-card form .field input:focus { outline: none; border-color: #0b5fff; }
.alert a { color: inherit; text-decoration: underline; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; border: 1px dashed #d9e1ec; }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: #666; margin-bottom: 20px; }

.filters-toolbar { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.filters-toolbar input[type="search"] { flex: 1; padding: 11px 16px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; font-family: inherit; }
.filters-toolbar input[type="search"]:focus { outline: none; border-color: #0b5fff; }
.filters-toolbar .btn { white-space: nowrap; }
.btn-active { background: #0b5fff; color: #fff; border-color: #0b5fff; }
.filters-advanced { margin-bottom: 8px; padding: 16px; background: #fafbfd; border: 1px solid #e8e8e8; border-radius: 12px; }
.filters-bar { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.filters-advanced .filters-bar:last-child { margin-bottom: 0; }
.filters-bar input[type="search"] { flex: 1; min-width: 220px; padding: 11px 16px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; font-family: inherit; }
.filters-bar input[type="search"]:focus { outline: none; border-color: #0b5fff; }
.filters-bar select { padding: 11px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; background: #fff; cursor: pointer; font-family: inherit; min-width: 220px; }
.filters-bar select:focus { outline: none; border-color: #0b5fff; }
.filter-chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid #e0e6ef; color: #555; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; font-family: inherit; }
.chip:hover { border-color: #0b5fff; color: #0b5fff; }
.chip-active { background: #0b5fff; color: #fff; border-color: #0b5fff; }
.chip-active:hover { color: #fff; }

.contracts-list { display: flex; flex-direction: column; gap: 12px; }
.contract-row { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 18px 22px; border: 1px solid #e8e8e8; border-radius: 12px; transition: all .15s; }
.contract-row:hover { border-color: #0b5fff; box-shadow: 0 4px 14px rgba(11,95,255,0.06); }
.contract-info { flex: 1; min-width: 0; }
.contract-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contract-parties { font-size: 13px; color: #444; margin-bottom: 10px; }
.contract-parties .party-line { margin: 2px 0; }
.contract-parties .party-role { color: #0b5fff; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; margin-right: 4px; }
.contract-parties strong { color: #222; font-weight: 600; }
.contract-parties-empty { color: #b0b0b0; font-style: italic; font-weight: 400; }

.date-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.date-filter span { font-weight: 600; }
.date-filter input[type="date"] { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; }
.date-filter input[type="date"]:focus { outline: none; border-color: #0b5fff; }
.contract-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #888; flex-wrap: wrap; }
.contract-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.contract-actions .btn { white-space: nowrap; }
.btn-danger { color: #c33; border-color: #fcc; }
.btn-danger:hover { background: #c33; color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-success { background: #d4f6dd; color: #1f7a33; }
.badge-info { background: #dcecff; color: #0b5fff; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #fde2e2; color: #a32020; }
.badge-muted { background: #eee; color: #666; }

/* Modal */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: #fff; border-radius: 14px; padding: 32px; max-width: 500px; width: 92%; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.modal-content.modal-wide { max-width: 620px; }
.modal-content h2 { font-size: 22px; margin-bottom: 6px; }
.modal-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.modal-header .evrotrust-logo { height: 36px; flex-shrink: 0; }
.modal-sub { color: #666; font-size: 13px; margin: 4px 0 0; line-height: 1.4; }

.provider-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; background: #f4f6fa; padding: 6px; border-radius: 12px; }
.provider-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 12px; border: 2px solid transparent; background: transparent; border-radius: 9px; cursor: pointer; transition: all .15s; font-family: inherit; color: #555; }
.provider-tab:hover { background: rgba(11, 95, 255, 0.06); color: #0b5fff; }
.provider-tab.tab-active { background: #fff; color: #0b5fff; border-color: #d0e3ff; box-shadow: 0 2px 8px rgba(11,95,255,0.08); }
.provider-tab .tab-icon { font-size: 20px; }
.provider-tab .tab-label { font-size: 14px; font-weight: 700; }
.provider-tab .tab-sublabel { font-size: 11px; color: #888; font-weight: 500; }
.provider-tab.tab-active .tab-sublabel { color: #0b5fff; opacity: 0.7; }

.signing-info { background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.signing-info h3 { font-size: 14px; font-weight: 700; color: #0b3fa8; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.signing-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 14px; }
.signing-steps li { counter-increment: step; padding: 6px 0 6px 32px; position: relative; font-size: 13px; line-height: 1.5; color: #333; }
.signing-steps li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 22px; height: 22px; background: #0b5fff; color: #fff; border-radius: 50%; text-align: center; line-height: 22px; font-size: 11px; font-weight: 700; }
.signing-steps a { color: #0b5fff; text-decoration: underline; }
.signing-note { font-size: 12px; color: #555; line-height: 1.5; padding: 10px 12px; background: #fff; border-radius: 8px; border-left: 3px solid #0b5fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* form-row mobile handled in main 768px query */

.sign-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 10px; cursor: pointer; font-weight: 600; color: #0b3fa8; margin-bottom: 14px; font-size: 14px; }
.sign-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: #0b5fff; cursor: pointer; }
.signer-block { padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 14px; background: #fafbfd; }
.signer-block[hidden] { display: none; }
.signer-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #0b5fff; margin-bottom: 10px; }
.modal-content .field { display: block; margin-bottom: 14px; }
.modal-content .field span { display: block; font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 500; }
.modal-content .field input, .modal-content .field textarea { width: 100%; padding: 10px 13px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; }
.modal-content .field input:focus { outline: none; border-color: #0b5fff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Public signing page */
.sign-subtitle { color: #888; font-size: 14px; margin-left: 12px; }
.sign-section { padding: 30px 0 60px; }
.sign-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sign-doc { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; }
.sign-doc-toolbar { padding: 14px 20px; background: #fafbfd; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.sign-doc-toolbar strong { font-size: 15px; }
.sign-doc-note { color: #888; font-size: 12px; }
.sign-doc-body { padding: 36px 42px; max-height: calc(100vh - 200px); overflow-y: auto; font-family: "Times New Roman", Georgia, serif; font-size: 13px; line-height: 1.7; }
.sign-doc-body h1 { font-size: 18px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 22px 0; padding-bottom: 10px; border-bottom: 1px solid #eaeaea; }
.sign-doc-body h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; text-align: center; margin: 26px 0 12px 0; color: #0b5fff; letter-spacing: 0.4px; }
.sign-doc-body h3 { font-size: 13px; font-weight: 700; margin: 16px 0 6px 0; }
.sign-doc-body p { margin: 0 0 10px 0; text-align: justify; }
.sign-doc-body strong { font-weight: 700; }
.sign-doc-body .sig-table { width: 100%; margin-top: 40px; padding-top: 18px; border-top: 1px solid #eee; border-collapse: collapse; }
.sign-doc-body .sig-table td { width: 50%; text-align: center; padding: 6px 12px; vertical-align: top; font-size: 13px; }
.sign-doc-body .sig-single { margin-top: 40px; padding-top: 18px; border-top: 1px solid #eee; text-align: right; padding-right: 6px; font-size: 13px; }
.sign-doc-body .sig-single div { margin: 4px 0; }

.sign-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 28px; position: sticky; top: 90px; align-self: start; }
.sign-panel h2 { font-size: 22px; margin-bottom: 6px; }
.sign-panel-sub { color: #555; font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.sign-legal { background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: #444; line-height: 1.5; margin-bottom: 18px; }
.sign-legal ul { margin: 6px 0 0 18px; padding: 0; }
.sign-legal li { margin: 3px 0; }
.canvas-label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
.canvas-wrap { border: 2px dashed #c8d4e3; border-radius: 10px; padding: 8px; background: #fafbfd; position: relative; }
.canvas-wrap canvas { display: block; width: 100%; height: 180px; background: #fff; border-radius: 6px; cursor: crosshair; touch-action: none; }
.canvas-wrap #btn-clear { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 4px 10px; }

/* Tablet breakpoint — editor and sign pages stack earlier */
@media (max-width: 980px) and (min-width: 769px) {
    .editor-grid { grid-template-columns: 1fr; }
    .preview-pane { position: static; max-height: none; }
    .sign-layout { grid-template-columns: 1fr; }
    .sign-panel { position: static; }
    .contract-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ========== Section CTA ========== */
.section-cta { text-align: center; margin-top: 40px; }

/* ========== Templates (Pro feature) ========== */
.templates-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.templates-grid .card { display: flex; flex-direction: column; gap: 8px; }
.templates-grid .card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; padding-right: 0; }
.tpl-meta { font-size: 12px; color: #888; margin: 0 0 10px; }
.tpl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tpl-actions .btn-sm { padding: 6px 12px; font-size: 13px; }

/* Template / custom contract editor (WYSIWYG-only) */
.template-editor-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.editor-hero-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 280px; }
.editor-hero-right { display: flex; align-items: center; gap: 10px; }
.back-link { color: #0b5fff; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }
.tpl-name-input {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    color: #1a1a1a;
    transition: all .15s;
    min-width: 200px;
}
.tpl-name-input:hover { border-color: #e0e0e0; background: #fafafa; }
.tpl-name-input:focus { border-color: #0b5fff; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(11,95,255,.10); }

.save-status { font-size: 13px; color: #888; font-weight: 500; white-space: nowrap; }
.save-status.save-ok { color: #0a9c4a; }
.save-status.save-dirty { color: #c47a00; }
.save-status.save-inprogress { color: #0b5fff; }
.save-status.save-error { color: #c53030; }

.template-editor-wrap {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}
.template-editor-wrap .preview-toolbar {
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.template-editor-wrap .editor-toolbar {
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
}
.template-editor-canvas {
    min-height: 500px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 48px;
    font-size: 14px;
    line-height: 1.7;
}
.template-editor-canvas:focus { outline: none; }

.template-actions-bottom { text-align: center; margin-top: 28px; }

/* New blank / My templates CTA cards on /contracts */
.catalog-pro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.pro-card {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
    border: 2px dashed #b3ccff;
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .15s;
}
.pro-card:hover {
    border-color: #0b5fff;
    background: linear-gradient(135deg, #e8f0ff 0%, #d4e3ff 100%);
    transform: translateY(-2px);
}
.pro-card .pro-card-icon { font-size: 32px; flex-shrink: 0; }
.pro-card .pro-card-body { display: flex; flex-direction: column; gap: 2px; }
.pro-card .pro-card-body strong { font-size: 15px; font-weight: 700; }
.pro-card .pro-card-body span { font-size: 13px; color: #555; }
.pro-card-lock {
    background: #fff;
    border: 2px dashed #ddd;
    color: #777;
}
.pro-card-lock:hover { border-color: #999; background: #fafafa; transform: none; }

/* ========== Contracts Catalog Page ========== */
.contracts-hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #fafafa 100%);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}
.contracts-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; color: #1a1a1a; }
.contracts-hero .lead { font-size: 17px; color: #555; max-width: 620px; margin: 0 auto 28px; }
.contracts-search-wrap { max-width: 560px; margin: 0 auto; }
.contracts-search {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all .15s;
    outline: none;
}
.contracts-search:focus { border-color: #0b5fff; box-shadow: 0 0 0 4px rgba(11,95,255,.10); }

.contracts-catalog { padding: 40px 0 70px; }
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
    padding: 0 8px;
}
.cat-tab {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.cat-tab:hover { background: #f0f5ff; border-color: #b3ccff; color: #0b5fff; }
.cat-tab.active { background: #0b5fff; border-color: #0b5fff; color: #fff; }

.no-results {
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 40px 20px;
}

/* ========== MOBILE (must be AFTER all desktop rules) ========== */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger { display: block; }

    /* Nav wrap — slide down menu */
    .nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 2px solid #0b5fff;
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        z-index: 99;
    }
    .nav-wrap.nav-open { display: flex; }

    .main-nav { margin-left: 0; flex-direction: column; width: 100%; gap: 4px; }
    .main-nav a { width: 100%; text-align: center; padding: 12px 16px; font-size: 15px; border-radius: 10px; }

    .nav-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid #eee; }
    .user-chip { width: 100%; justify-content: center; padding: 10px 16px; border-radius: 12px; }
    .user-name { display: inline; }
    .nav-right .btn { flex: 1; text-align: center; padding: 11px 16px; }

    /* Hero mobile */
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 26px; line-height: 1.2; }
    .hero h1 br { display: none; }
    .hero .lead { font-size: 15px; padding: 0 10px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; text-align: center; }
    .trust-bar { gap: 8px; justify-content: center; }
    .trust-bar span { font-size: 11px; background: #f4f6fa; padding: 5px 10px; border-radius: 8px; }

    /* Steps mobile */
    .how-section { padding: 50px 0; }
    .how-section h2, .features-section h2, .contracts h2, .pricing h2 { font-size: 24px; }
    .steps { flex-direction: column; align-items: center; gap: 16px; }
    .step { max-width: 100%; }
    .step-arrow { display: none; }

    /* Features mobile */
    .features-section { padding: 50px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { padding: 22px 18px; }

    /* Free promo mobile */
    .free-promo-card { flex-direction: column; text-align: center; padding: 24px 20px; }
    .free-promo-left { flex-direction: column; align-items: center; }
    .free-promo-card h3 { font-size: 18px; }

    /* Contracts grid mobile */
    .grid { grid-template-columns: 1fr; }

    /* Pricing mobile */
    .price-grid, .price-grid.price-grid-3 { grid-template-columns: 1fr !important; max-width: 400px !important; }
    .price-card.price-featured { transform: none; }
    .price-card { padding: 24px 20px; }

    /* Footer mobile */
    .site-footer { padding: 36px 0 20px; }
    .site-footer .footer-top { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .site-footer .footer-brand p { max-width: 100%; margin: 0 auto; }
    .site-footer .footer-disclaimer { font-size: 11px; }

    /* Mobile tabs */
    .mobile-tabs { display: flex; gap: 4px; background: #f4f6fa; padding: 4px; border-radius: 12px; margin: 0 20px 16px; }
    .mtab { flex: 1; padding: 12px 16px; background: transparent; border: none; border-radius: 9px; font-size: 15px; font-weight: 600; color: #555; cursor: pointer; font-family: inherit; transition: all .15s; }
    .mtab.mtab-active { background: #fff; color: #0b5fff; box-shadow: 0 2px 8px rgba(11,95,255,0.1); }

    /* Editor page mobile — tab-based */
    .editor-wrap { padding: 16px 0; }
    .editor-header h1 { font-size: 22px; }
    .lead-sm { font-size: 13px; }
    .editor-grid { display: block !important; overflow: hidden; }
    /* On mobile: hide both panes by default, show only the one with tab-visible */
    .editor-grid .form-pane { display: none !important; padding: 16px; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    .editor-grid .preview-pane { display: none !important; position: static; max-height: none; width: 100% !important; }
    .editor-grid .form-pane.tab-visible { display: block !important; }
    .editor-grid .preview-pane.tab-visible { display: flex !important; flex-direction: column; }
    .preview-toolbar { flex-direction: column; gap: 8px; align-items: flex-start; }
    .editor-toolbar { padding: 6px 8px; flex-wrap: wrap; }
    .tbtn { min-width: 28px; height: 28px; font-size: 12px; padding: 0 6px; }
    .preview-doc { padding: 20px 16px; }
    .checkout-box { margin-top: 16px; }

    /* Profile/contracts mobile */
    .contract-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .contract-actions { width: 100%; justify-content: flex-start; }

    /* Account page mobile */
    .account-grid { grid-template-columns: 1fr; }

    /* Auth pages mobile */
    .auth-section { padding: 30px 10px; }
    .auth-card { padding: 24px 20px; }

    /* Legal pages mobile */
    .legal-section { padding: 30px 0 50px; }
    .legal-section h1 { font-size: 24px; }

    /* Modal mobile */
    .modal-content { padding: 20px 16px; max-width: 96%; }
    .modal-content.modal-wide { max-width: 96%; }
    .form-row { grid-template-columns: 1fr; }

    /* Sign page mobile */
    .sign-layout { grid-template-columns: 1fr; }
    .sign-panel { position: static; }
    .sign-doc-body { padding: 20px 16px; }

    /* Contracts catalog mobile */
    .contracts-hero { padding: 36px 0 28px; }
    .contracts-hero h1 { font-size: 26px; }
    .contracts-hero .lead { font-size: 15px; margin-bottom: 20px; }
    .contracts-search { padding: 12px 16px; font-size: 15px; }
    .contracts-catalog { padding: 28px 0 50px; }
    .cat-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px 24px;
        padding: 0 20px 8px;
        scrollbar-width: none;
    }
    .cat-tabs::-webkit-scrollbar { display: none; }
    .cat-tab { padding: 8px 14px; font-size: 13px; }
    .section-cta { margin-top: 28px; }
}
