@font-face{font-family:'Abril Fatface';src:url('/fonts/AbrilFatface-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--surface:#fff;--surface-raised:#fbfcfd;--soft:#edf1f4;--text-secondary:#4d5964;--button-bg:#121316;--button-text:#fff;--display:'Abril Fatface',Georgia,'Times New Roman',serif;color-scheme:light}
html[data-theme=dark]{--ink:#eef3f6;--muted:#a6b2bd;--line:#31383f;--bg:#121316;--surface:#1c2025;--surface-raised:#22272d;--soft:#2b323a;--text-secondary:#c4cdd5;--button-bg:#eaf0f4;--button-text:#121316;--cyan-dark:#65d5e7;--pale:#17343c;color-scheme:dark}
body{background:var(--surface);color:var(--ink)}
h1,.section h2,.feature h3,.plan h3,.portal-band h2,.auth-box h2,.auth-aside h1,.legal h2,.service-card h3{font-family:var(--display);font-weight:400;letter-spacing:-.025em}
.hero h1{font-family:var(--display);font-weight:400;letter-spacing:-.035em;line-height:1.1}
.page-heading h1{font-family:var(--display);font-weight:400;font-size:34px;line-height:1.2;letter-spacing:-.02em}
.section h2{line-height:1.2;font-weight:400}.auth-aside h1{line-height:1.17}.logo{font-family:var(--display);font-weight:400;letter-spacing:-.6px}.auth-box:before{font-family:var(--display);font-weight:400}
.button{min-height:40px}.button.small{min-height:32px}.button:hover{filter:brightness(.96)}.button:not(.primary):not(.outline):not(.subtle):not(.danger):hover{background:var(--button-bg);color:var(--button-text)}.button.primary:hover{background:#37c7dc;filter:none}.button.outline:hover{background:var(--pale)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px;min-width:38px;min-height:38px;border:1px solid var(--line);background:var(--surface);color:var(--text-secondary);border-radius:8px;font-size:11px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}
.theme-toggle:hover{border-color:var(--cyan);background:var(--pale)}.theme-toggle .icon{width:17px;height:17px}.theme-sun{display:none}html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-moon{display:none}
.auth-tools,.legal-tools{display:flex;align-items:center;justify-content:space-between;gap:20px}.auth-tools{margin-bottom:30px}.legal-tools{margin-bottom:30px}
.nav-actions{gap:20px}.hero-inner{padding-top:75px;padding-bottom:75px}.hero .description{font-size:16px;line-height:1.85}.preview{transform:rotate(-1deg);border-radius:12px}.feature{transition:border-color .18s,transform .18s}.feature:hover{border-color:#00acc870;transform:translateY(-3px)}
.panel,.stat{box-shadow:0 2px 10px #12131603}.stat-value{font-variant-numeric:tabular-nums}.page-heading p{max-width:680px;line-height:1.7}.table-wrap tbody tr:hover{background:var(--pale)}.app-nav button{min-height:42px}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;gap:10px}.sidebar-close{display:none;min-width:32px;min-height:32px;font-size:27px;color:var(--muted)}
.sidebar{background:var(--surface)}.sidebar-footer b{color:var(--text-secondary)}.sidebar-footer a:hover,.footer a:hover{color:var(--cyan-dark)}.avatar,.feature-icon{background:var(--pale)}.initials{background:var(--soft);color:var(--text-secondary)}
html[data-theme=light] .hero{background:#edf8fa;color:#121316}html[data-theme=light] .hero .description,html[data-theme=light] .hero-foot{color:#4b626b}html[data-theme=light] .hero .button.outline{background:#fff;color:#121316;border-color:#b8d3d8}html[data-theme=light] .hero:before{border-color:#00acc826;box-shadow:0 0 0 90px #00acc809,0 0 0 180px #00acc805}html[data-theme=light] .preview{border-color:#c5dce1;box-shadow:0 24px 65px #123d4920}html[data-theme=light] .preview-note{color:#526f78}
html[data-theme=dark] .hero{background:#121316;color:#fff}html[data-theme=dark] .hero .button.outline{background:transparent;color:#fff;border-color:#52606b}html[data-theme=dark] .hero .button.outline:hover{background:#263039}
html[data-theme=dark] .hero .description,html[data-theme=dark] .hero-foot{color:#b8c7d0}html[data-theme=dark] .preview{border-color:#3c5660;box-shadow:0 25px 90px #0005}html[data-theme=dark] .preview-note{color:#a6b8c1}
html[data-theme=dark] .feature,html[data-theme=dark] .plan,html[data-theme=dark] .preview-top,html[data-theme=dark] .preview-sidebar,html[data-theme=dark] .preview table,html[data-theme=dark] .preview-kpis div,html[data-theme=dark] .panel,html[data-theme=dark] .stat,html[data-theme=dark] .topbar,html[data-theme=dark] .original-card,html[data-theme=dark] dialog{background:var(--surface);color:var(--ink)}
html[data-theme=dark] .plan.featured{background:#183038}html[data-theme=dark] .company-switch{background:#20272c}html[data-theme=dark] .app-nav button:hover{background:#25363c}html[data-theme=dark] .preview-sidebar p{color:var(--muted)}html[data-theme=dark] .preview-sidebar p.selected{color:var(--cyan-dark);background:var(--pale)}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#15191e;color:var(--ink);border-color:#45515b}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9ba8b4}html[data-theme=dark] label{color:var(--text-secondary)}
html[data-theme=dark] th{background:var(--surface-raised);color:#aab7c2}html[data-theme=dark] td{color:var(--text-secondary);border-color:var(--line)}html[data-theme=dark] td small{color:#a4b2bd}html[data-theme=dark] .case-ref,html[data-theme=dark] .text-button,html[data-theme=dark] .version-link{color:var(--cyan-dark)}
html[data-theme=dark] .panel-header,html[data-theme=dark] .approval-row,html[data-theme=dark] .document-item,html[data-theme=dark] .attention-item{border-color:var(--line)}html[data-theme=dark] .bar,html[data-theme=dark] .pipeline{background:#2b333d}html[data-theme=dark] .attention-dot{background:#3c301a;color:#f0c970}
html[data-theme=dark] .pill{background:#153b45;color:#7de0ee}html[data-theme=dark] .pill.grey,html[data-theme=dark] .nav-count{background:#303740;color:#c3cdd5}html[data-theme=dark] .pill.green{background:#1a3b2f;color:#9ae0b6}html[data-theme=dark] .pill.amber{background:#40331c;color:#f2cf82}html[data-theme=dark] .pill.red{background:#442a2a;color:#ffc2b9}
html[data-theme=dark] .notice,html[data-theme=dark] .demo-banner{background:#15333d;color:#a8e8f3;border-color:#2b616d}html[data-theme=dark] .notice.warning{background:#352b19;color:#f1d59d;border-color:#68542b}html[data-theme=dark] .error,html[data-theme=dark] .button.danger{background:#442525;color:#ffd1c8}html[data-theme=dark] .button.subtle{background:var(--soft);color:var(--ink)}
html[data-theme=dark] .progress-step{border-color:#42505b;color:#aebbc6}html[data-theme=dark] .progress-step.done{border-color:var(--cyan);color:#7de0ee}html[data-theme=dark] .timeline-item{border-color:#42505b}html[data-theme=dark] .empty h3{color:#c5d0da}
.portal-band,.auth-aside{background:#121316;color:#fff}.portal-band .button.outline{background:#fff;color:#121316}.portal-band .button.outline:hover{background:#e5f8fb}.auth-aside .logo{color:#fff}#toast{background:#121316;color:#fff;border:1px solid #46505a}
button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}.topbar{position:sticky;top:0;z-index:15}.demo-banner{line-height:1.6}.theme-label{min-width:26px}
@media(max-width:800px){.sidebar{visibility:hidden;pointer-events:none;transform:translateX(-100%);max-width:min(290px,85vw)}.sidebar.open{visibility:visible;pointer-events:auto;transform:translateX(0)}.sidebar-close{display:block}.auth-tools{margin-bottom:25px}.auth-box:before{margin-bottom:24px}.page-heading h1{font-size:30px}.hero-inner{padding-top:50px;padding-bottom:50px}.top-actions .pill{display:none}}
@media(max-width:540px){.site-nav{gap:10px}.site-nav .logo{font-size:23px;gap:6px}.site-nav .logo img{width:30px;height:30px}.nav-actions{gap:10px}.nav-actions>.button{display:none}.theme-label{display:none}.theme-toggle{padding:8px}.hero h1{font-size:47px}.hero .description{font-size:14px}.hero .cta{flex-wrap:wrap}.hero-foot{line-height:1.8}.topbar{padding:0 14px}.top-actions{gap:9px}.breadcrumb{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-main{padding:24px 16px}.page-heading{flex-wrap:wrap;gap:15px}.page-heading h1{font-size:29px}.page-heading .inline-actions{max-width:100%}.demo-banner{align-items:start}.demo-banner>span{max-width:64%}.theme-toggle{flex-shrink:0}.auth-box:before{font-size:28px}.legal-tools{gap:12px}.stat-value{font-size:26px}.preview h3{font-family:var(--display);font-weight:400}.preview-content{padding:18px 14px}.case-info{grid-template-columns:1fr 1fr}.document-item .inline-actions{gap:8px}.document-item .button{min-height:34px}.section h2{font-size:31px}.feature h3{font-size:22px}.portal-band h2{font-size:29px}.modal-head h2{font-family:var(--display);font-weight:400;font-size:24px}}
@media print{html[data-theme=dark]{--ink:#121316;--muted:#687078;--line:#ddd;--surface:#fff;--bg:#fff;--text-secondary:#333}body,.panel,.stat{background:#fff!important;color:#121316!important}.theme-toggle,.sidebar-close{display:none!important}}
