:root{--background:#f4f7fb;--background-soft:#eef2f9;--foreground:#0f172a;--muted:#64748b;--muted-soft:#94a3b8;--card:#ffffff;--border:#e2e8f0;--border-strong:#cbd5e1;--primary:#2563eb;--primary-hover:#1d4ed8;--primary-soft:#eff4ff;--primary-foreground:#ffffff;--accent:#0ea5e9;--success:#16a34a;--danger:#dc2626;--shadow-sm:0 1px 2px rgba(15,23,42,0.04);--shadow-md:0 8px 24px rgba(15,23,42,0.06);--shadow-lg:0 20px 40px rgba(15,23,42,0.08);--radius-sm:10px;--radius-md:14px;--radius-lg:20px}*{box-sizing:border-box}body,html{margin:0;padding:0;color:var(--foreground);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{min-height:100vh;background:radial-gradient(1200px 600px at 85% -10%,rgba(37,99,235,.08),transparent 60%),radial-gradient(900px 500px at -10% 10%,rgba(14,165,233,.07),transparent 55%),var(--background)}.site-header{position:-webkit-sticky;position:sticky;top:0;z-index:10;background:rgba(255,255,255,.75);backdrop-filter:saturate(150%) blur(10px);-webkit-backdrop-filter:saturate(150%) blur(10px);border-bottom:1px solid var(--border)}.site-header-inner{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{gap:10px;font-weight:700;letter-spacing:-.01em;color:var(--foreground);text-decoration:none}.brand,.brand-mark{display:inline-flex;align-items:center}.brand-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:var(--shadow-sm),inset 0 0 0 1px rgba(255,255,255,.2);justify-content:center;color:#fff;font-size:16px;font-weight:800}.brand-name{font-size:1.05rem}.header-nav{display:inline-flex;align-items:center;gap:18px;color:var(--muted);font-size:.925rem;font-weight:500}.header-nav a{color:var(--muted);text-decoration:none}.header-nav a:hover{color:var(--foreground)}.page-shell{max-width:1200px;margin:0 auto;padding:48px 20px 64px}.hero{margin-bottom:36px}.hero h1{font-size:clamp(2rem,4.6vw,3.25rem);line-height:1.08;letter-spacing:-.02em;margin:14px 0;max-width:820px;color:var(--foreground)}.hero h1 .accent{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{max-width:680px;font-size:1.075rem;line-height:1.6;color:var(--muted);margin:0}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--primary-soft);color:var(--primary-hover);padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:600;letter-spacing:.01em;border:1px solid rgba(37,99,235,.15)}.eyebrow:before{content:"";width:6px;height:6px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.18)}.content-grid{display:grid;grid-template-columns:1.05fr .95fr;grid-gap:24px;gap:24px;align-items:start}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow-md)}.form-card,.preview-card{min-height:640px}.card-title{margin:0 0 4px;font-size:1.15rem;letter-spacing:-.01em}.card-subtitle{margin:0 0 20px;color:var(--muted);font-size:.925rem}label,label span{display:block}label span{margin-bottom:6px;font-weight:600;font-size:.9rem;color:#334155}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:#fff;padding:12px 14px;outline:none;color:var(--foreground);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}input::placeholder,textarea::placeholder{color:var(--muted-soft)}textarea{resize:vertical;min-height:96px}input:hover,select:hover,textarea:hover{border-color:#94a3b8}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.form-card{display:flex;flex-direction:column;gap:16px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}.primary-button,.secondary-button{border:1px solid transparent;border-radius:var(--radius-md);padding:12px 18px;font-weight:600;font-size:.95rem;cursor:pointer;transition:transform .05s ease,background-color .15s ease,box-shadow .15s ease,border-color .15s ease}.primary-button{background:var(--primary);color:var(--primary-foreground);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 6px 14px rgba(37,99,235,.25)}.primary-button:hover:not(:disabled){background:var(--primary-hover)}.primary-button:active:not(:disabled){transform:translateY(1px)}.secondary-button{background:#fff;color:#1e293b;border-color:var(--border-strong)}.secondary-button:hover:not(:disabled){background:var(--background-soft);border-color:#94a3b8}.primary-button:disabled,.secondary-button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.error-text{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;padding:10px 12px;border-radius:var(--radius-md);margin:0;font-size:.9rem}.preview-card h2{margin-top:0;margin-bottom:6px;letter-spacing:-.01em;font-size:1.35rem}.preview-card h3{margin:18px 0 8px;font-size:.95rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600}.preview-card ul{padding-left:20px;margin:0}.preview-card li+li{margin-top:6px}.preview-card li,.preview-card p{line-height:1.65;color:#1f2937}.preview-card p+p{margin-top:10px}.preview-divider{border:none;border-top:1px solid var(--border);margin:18px 0}.signoff{white-space:pre-line;color:var(--muted)!important;font-style:italic}.muted-state{display:flex;flex-direction:column;text-align:center;color:var(--muted);gap:10px}.muted-state,.muted-state .muted-icon{align-items:center;justify-content:center}.muted-state .muted-icon{width:44px;height:44px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:inline-flex;font-size:20px;font-weight:700}.site-footer{max-width:1200px;margin:0 auto;padding:24px 20px 40px;color:var(--muted);font-size:.875rem;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.form-section{display:flex;flex-direction:column;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--border)}.form-section:last-of-type{border-bottom:none;padding-bottom:0}.form-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.form-section-body{display:flex;flex-direction:column;gap:14px}.field-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px}.required-mark{color:var(--danger);font-style:normal}.ghost-button{background:transparent;border:1px dashed var(--border-strong);color:var(--primary);border-radius:var(--radius-md);padding:10px 14px;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;align-self:flex-start}.ghost-button:hover{background:var(--primary-soft);border-color:var(--primary)}.line-items{display:flex;flex-direction:column;gap:10px}.line-item-grid{display:grid;grid-template-columns:minmax(0,2.2fr) 80px 100px 110px 90px 36px;grid-gap:8px;gap:8px;align-items:end}.line-item-grid label span{font-size:.78rem;margin-bottom:4px}.line-item-grid input,.line-item-grid select{padding:9px 10px;border-radius:10px;font-size:.92rem}.icon-button{width:36px;height:40px;border-radius:10px;border:1px solid var(--border-strong);background:#fff;color:var(--muted);cursor:pointer;font-size:1.2rem;line-height:1;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.icon-button:hover:not(:disabled){background:#fef2f2;color:var(--danger);border-color:#fecaca}.icon-button:disabled{opacity:.4;cursor:not-allowed}.live-totals{display:flex;gap:18px;flex-wrap:wrap;padding:12px 14px;background:var(--background-soft);border:1px solid var(--border);border-radius:var(--radius-md);font-size:.92rem;color:var(--muted)}.live-totals strong{color:var(--foreground);font-weight:700}.live-totals-grand{margin-left:auto;color:var(--foreground);font-size:1rem}.offer-sheet{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:40px;box-shadow:var(--shadow-md);color:#1f2937;font-size:.92rem;line-height:1.55;display:flex;flex-direction:column;gap:22px}.offer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:18px;border-bottom:2px solid var(--primary)}.offer-company-name{margin:0 0 6px;font-size:1.3rem;letter-spacing:-.01em;color:var(--foreground)}.offer-company-details{color:var(--muted);font-size:.88rem;line-height:1.5}.offer-meta{text-align:right;min-width:200px}.offer-meta-title{font-size:1.4rem;font-weight:700;color:var(--primary);letter-spacing:-.01em;margin-bottom:10px}.offer-meta dl{margin:0;display:grid;grid-template-columns:auto auto;grid-gap:4px 12px;gap:4px 12px;font-size:.85rem;justify-content:end}.offer-meta dt{color:var(--muted);font-weight:500}.offer-meta dd{margin:0;font-weight:600;color:var(--foreground)}.offer-section-heading{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 8px;font-weight:600}.offer-customer-name{font-weight:700;color:var(--foreground);font-size:1rem}.offer-wording p{margin:0 0 8px}.offer-title{font-weight:700;font-size:1.05rem;color:var(--foreground)}.offer-signoff{white-space:pre-line;margin-top:14px!important;color:var(--muted);font-style:italic}.offer-table{width:100%;border-collapse:collapse;font-size:.88rem}.offer-table thead th{text-align:left;background:var(--background-soft);color:var(--muted);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.offer-table tbody td,.offer-table thead th{padding:10px 8px;border-bottom:1px solid var(--border)}.offer-table tbody td{vertical-align:top}.offer-table .col-num{text-align:right;white-space:nowrap}.offer-table .col-unit{color:var(--muted)}.offer-totals-section{display:flex;justify-content:flex-end}.offer-totals{min-width:280px;display:flex;flex-direction:column;gap:6px}.offer-totals-row{display:flex;justify-content:space-between;gap:16px;font-size:.9rem;color:var(--muted)}.offer-totals-row span:last-child{color:var(--foreground);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.offer-totals-total{padding-top:8px;margin-top:4px;border-top:1px solid var(--border);font-size:1rem;font-weight:700}.offer-totals-total,.offer-totals-total span{color:var(--foreground)!important}.offer-footer{display:flex;gap:18px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--border);color:var(--muted);font-size:.78rem}@media (max-width:1100px){.line-item-grid{grid-template-columns:1fr 1fr}}@media (max-width:900px){.content-grid,.field-grid,.field-grid-3{grid-template-columns:1fr}.page-shell{padding:28px 16px 40px}.form-card,.preview-card{min-height:auto}.card{padding:22px}.offer-sheet{padding:24px}.offer-header{flex-direction:column}.offer-meta{text-align:left}.offer-meta dl{justify-content:start}}@media print{@page{size:A4;margin:15mm}body,html{background:#fff!important}.form-card,.hero,.muted-state,.site-footer,.site-header{display:none!important}.page-shell{padding:0;max-width:none}.content-grid{display:block}.offer-sheet{border:none;box-shadow:none;padding:0;border-radius:0;page-break-inside:avoid}.offer-table thead th{background:transparent;border-bottom:2px solid #000}}