:root{color-scheme:light;--ink:#173127;--muted:#64756d;--green:#1f7a4d;--green-dark:#165d3a;--mint:#eaf5ef;--line:#dbe7df;--paper:#fff;--canvas:#f5f8f6;--danger:#b42318;--shadow:0 24px 70px rgba(23,49,39,.13);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{min-height:100%;background:linear-gradient(145deg,#f4faf6 0%,#edf4ef 55%,#f8faf8 100%)}body{min-height:100vh;margin:0;color:var(--ink)}button,input{font:inherit}.page-shell{min-height:100vh;display:grid;place-items:center;padding:40px 20px}.card{width:min(760px,100%);min-height:620px;padding:36px 44px;background:rgba(255,255,255,.96);border:1px solid rgba(31,122,77,.12);border-radius:28px;box-shadow:var(--shadow)}.contract-card{width:min(920px,100%)}.brand-row,.actions,.copy-row,.document-meta{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:760;text-decoration:none}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--green);font-family:Georgia,serif;font-size:21px}.step-count,.eyebrow{color:var(--green);font-size:.78rem;font-weight:780;letter-spacing:.08em;text-transform:uppercase}.progress{height:7px;margin:24px 0 48px;overflow:hidden;border-radius:999px;background:#e7eee9}.progress span{display:block;width:10%;height:100%;border-radius:inherit;background:var(--green);transition:width .2s ease}.screen,.result{animation:enter .18s ease-out}.result:focus{outline:none}.screen h1,.result h1{max-width:680px;margin:10px 0 13px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,5vw,3.25rem);font-weight:500;line-height:1.06;letter-spacing:-.035em}.supporting{max-width:650px;margin:0 0 30px;color:var(--muted);font-size:1rem;line-height:1.65}.supporting.small{margin:10px 0 16px;font-size:.88rem}.screen label,.link-panel label,.canvas-label{display:block;margin:0 0 9px;font-size:.88rem;font-weight:730}.screen input,.link-panel input{width:100%;min-height:58px;padding:0 17px;border:1px solid #cbd9d0;border-radius:14px;color:var(--ink);background:#fff;outline:none}.screen input:focus,.link-panel input:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(31,122,77,.11)}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.choices.relationship{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{min-height:58px;padding:13px 16px;border:1px solid #cbd9d0;border-radius:14px;color:var(--ink);background:#fff;text-align:left;cursor:pointer}.choice:hover,.choice:focus-visible{border-color:var(--green);outline:3px solid rgba(31,122,77,.1)}.choice[aria-pressed="true"]{border-color:var(--green);background:var(--mint);box-shadow:inset 0 0 0 1px var(--green)}.error{min-height:22px;margin:10px 0 0;color:var(--danger);font-size:.9rem}.actions{margin-top:38px}.button{min-height:50px;padding:0 22px;border:1px solid transparent;border-radius:14px;font-weight:740;cursor:pointer}.button:focus-visible{outline:3px solid rgba(31,122,77,.22);outline-offset:2px}.button:disabled{opacity:.55;cursor:wait}.button.primary{color:#fff;background:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.secondary{border-color:#cbd9d0;color:var(--ink);background:#fff}.button.compact{min-height:42px;padding:0 16px}.success-mark{width:58px;height:58px;display:grid;place-items:center;margin-bottom:22px;border-radius:18px;color:#fff;background:var(--green);font-size:30px}.link-panel{margin-top:28px;padding:22px;border-radius:18px;background:var(--mint)}.link-panel p{margin:16px 0 0;color:#486257;line-height:1.55}.copy-row input{min-width:0}.copy-row .button{flex:0 0 auto}.status{min-height:22px}.review-list,.document-data{display:grid;gap:0;margin:22px 0;border:1px solid var(--line);border-radius:17px;overflow:hidden}.review-list div,.document-data div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1.6fr);gap:18px;padding:14px 17px;border-bottom:1px solid var(--line)}.review-list div:last-child,.document-data div:last-child{border-bottom:0}.review-list dt,.document-data dt{color:var(--muted)}.review-list dd,.document-data dd{margin:0;font-weight:680;overflow-wrap:anywhere}.document-sheet{margin-top:24px;padding:clamp(22px,5vw,48px);border:1px solid #d6ded9;border-radius:20px;background:var(--paper);box-shadow:0 14px 44px rgba(23,49,39,.08)}.document-meta{color:var(--muted);font-size:.86rem}.badge{padding:7px 10px;border-radius:999px;color:var(--green-dark);background:var(--mint);font-weight:750}.document-sheet>h2{margin:26px 0 5px;font-family:Georgia,"Times New Roman",serif;font-size:2rem}.document-subtitle{margin:0 0 28px;color:var(--muted)}.document-sheet section{margin:26px 0}.document-sheet h3{margin:0 0 9px;font-size:1rem}.document-sheet p,.document-sheet li{line-height:1.65}.sign-panel{padding-top:24px;border-top:1px solid var(--line)}#signature{display:block;width:100%;height:190px;border:1.5px dashed #9eb7a7;border-radius:14px;background:var(--canvas);touch-action:none;cursor:crosshair}#signature:focus{outline:4px solid rgba(31,122,77,.14);border-color:var(--green)}.final-instruction{max-width:720px;padding:22px;border-left:4px solid var(--green);border-radius:4px 16px 16px 4px;background:var(--mint);font-size:1.08rem;line-height:1.65}[hidden]{display:none!important}@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:680px){.page-shell{display:block;padding:0}.card{min-height:100vh;padding:24px 20px;border:0;border-radius:0;box-shadow:none}.progress{margin:20px 0 36px}.screen h1,.result h1{font-size:2.25rem}.choices,.choices.relationship{grid-template-columns:1fr}.actions{margin-top:30px}.copy-row{align-items:stretch;flex-direction:column}.copy-row .button{width:100%}.review-list div,.document-data div{grid-template-columns:1fr;gap:5px}.document-sheet{padding:21px 17px}#signature{height:170px}}
