*{box-sizing:border-box}
:root{
  --bg:#f3f5f8;--surface:#fff;--text:#17202f;--muted:#667085;--line:#e4e7ec;
  --primary:#17202f;--accent:#2f6fed;--soft:#eef4ff;--radius:16px
}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
.container{width:min(1200px,calc(100% - 36px));margin:auto}

.site-header{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:23px;font-weight:850;letter-spacing:-1px}.brand-x{display:inline-grid;place-items:center;background:var(--primary);color:#fff;border-radius:8px;width:31px;height:31px;margin-right:5px}
.nav-actions{display:flex;gap:24px;color:#667085;font-size:13px;font-weight:650}.nav-actions a:hover{color:var(--text)}

.hero{padding:46px 0 28px;text-align:center}
.hero-card{max-width:850px;margin:auto}
.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:850;color:var(--accent)}
.hero h1{font-size:clamp(36px,5vw,54px);line-height:1.04;letter-spacing:-2.5px;margin:11px 0}
.hero p{color:var(--muted);font-size:16px;max-width:630px;margin:auto}
.hero-pills{display:flex;justify-content:center;gap:8px;margin-top:18px;flex-wrap:wrap}.hero-pills span{background:#fff;border:1px solid var(--line);border-radius:99px;padding:6px 11px;font-size:11px;font-weight:700;color:#475467}

.workspace{display:grid;grid-template-columns:minmax(380px,1fr) minmax(470px,1.04fr);gap:24px;align-items:start;padding-bottom:70px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:0 8px 32px rgba(16,24,40,.045)}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.panel h2{margin:0;font-size:20px;letter-spacing:-.4px}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.section-title{font-size:10px;text-transform:uppercase;letter-spacing:1.25px;font-weight:850;color:#475467;margin:27px 0 13px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.grid{display:grid;gap:12px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}
label{display:block;font-size:11px;font-weight:750;color:#344054;margin-bottom:12px}
input,textarea,select{display:block;width:100%;border:1px solid #d6dbe3;background:#fff;border-radius:9px;padding:10px 11px;margin-top:6px;font:inherit;font-size:13px;color:var(--text);outline:none;transition:.15s}
textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#8db4ff;box-shadow:0 0 0 3px #eef4ff}
.file-label input{padding:8px}.file-help{font-weight:500;color:var(--muted);font-size:10px;display:block;margin-top:4px}
.btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:9px;padding:9px 13px;font-weight:750;cursor:pointer;font-size:12px}.btn:hover{background:#f8fafc}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);padding:12px 19px}.btn-primary:hover{background:#273142}.btn-small{padding:7px 10px}
.items-title-row{display:flex;align-items:center;justify-content:space-between}
.item-row{display:grid;grid-template-columns:minmax(130px,1.6fr) 68px 98px 40px;gap:8px;align-items:end;margin-bottom:9px}.item-row label{margin:0}.remove-item{height:38px;padding:0;font-size:17px;color:#b42318}
.form-actions{margin-top:18px}.privacy-note{font-size:10px;color:var(--muted);margin:11px 0 0}

.preview-wrap{position:sticky;top:92px}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 4px 10px;font-size:11px;color:var(--muted)}
.invoice{background:#fff;border:1px solid #dfe3e8;box-shadow:0 15px 40px rgba(16,24,40,.09);padding:45px 46px;min-height:760px;color:#1d2939}
.invoice-top{display:flex;justify-content:space-between;gap:30px;border-bottom:2px solid #17202f;padding-bottom:25px}
.business-block{min-width:0}.business-name{font-size:23px;font-weight:850;letter-spacing:-.6px;margin-top:3px}.muted{color:#667085;font-size:11px}.pre-line{white-space:pre-line}
.preview-logo{max-width:190px;max-height:66px;object-fit:contain;object-position:left center;margin-bottom:8px}.hidden{display:none!important}
.invoice-heading{text-align:right;min-width:180px}.invoice-word{font-size:34px;font-weight:900;letter-spacing:2px;margin-bottom:12px;color:#17202f}
.invoice-meta{display:flex;justify-content:flex-end;gap:15px;font-size:11px;margin:3px 0}.invoice-meta span{color:#98a2b3}.invoice-meta strong{min-width:90px}
.bill-to{margin:27px 0 25px}.label{font-size:9px;font-weight:900;letter-spacing:1.2px;color:#98a2b3;margin-bottom:6px}.bill-to strong{font-size:13px}
.invoice-table-wrap{overflow:hidden}.invoice-table{width:100%;border-collapse:collapse;font-size:11px}.invoice-table th{text-align:left;font-size:8px;letter-spacing:1px;color:#667085;background:#f7f8fa;padding:10px;border-bottom:1px solid #e4e7ec}.invoice-table td{padding:11px 10px;border-bottom:1px solid #eaecf0}.invoice-table th:nth-child(2),.invoice-table td:nth-child(2),.invoice-table th:nth-child(3),.invoice-table td:nth-child(3){text-align:center}.invoice-table .align-right{text-align:right}
.invoice-bottom{display:grid;grid-template-columns:1fr 225px;gap:35px;margin-top:30px}.notes-block{padding-top:2px}.summary>div{display:flex;justify-content:space-between;gap:15px;padding:6px 0;font-size:11px}.summary>div strong{font-weight:750}.grand-total{border-top:2px solid #17202f;margin-top:8px;padding-top:12px!important;font-size:16px!important;font-weight:900}.grand-total strong{font-size:18px}
.invoice-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:52px;padding-top:13px;color:#98a2b3;font-size:9px}.invoice-footer a{font-weight:700;color:#667085}.invoice-footer a:hover{text-decoration:underline}

.info-section{padding:55px 0}.section-heading{text-align:center;max-width:650px;margin:auto}.section-heading h2{font-size:32px;letter-spacing:-1px;margin:8px 0 28px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.steps>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}.steps span{font-size:12px;color:var(--accent);font-weight:900}.steps h3{margin:12px 0 5px;font-size:17px}.steps p,.seo-copy p{color:var(--muted);font-size:14px}
.seo-copy{padding:20px 0 65px;max-width:850px}.seo-copy h2{font-size:26px}
.site-footer{background:#111827;color:#fff;padding:30px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px}.site-footer p{margin:4px 0 0;color:#aab2c0;font-size:12px}.footer-links{display:flex;gap:18px;font-size:13px;color:#cbd5e1}

@media(max-width:1000px){.workspace{grid-template-columns:1fr}.preview-wrap{position:static}.steps{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container{width:min(100% - 20px,1200px)}.nav-actions{gap:10px;font-size:11px}.grid.two,.grid.three{grid-template-columns:1fr}.panel{padding:17px}.item-row{grid-template-columns:1fr 62px 90px 36px}.invoice{padding:25px 18px;min-height:auto}.invoice-top{flex-direction:column}.invoice-heading{text-align:left;min-width:0}.invoice-meta{justify-content:flex-start}.invoice-word{font-size:28px}.invoice-table{font-size:10px}.invoice-table th,.invoice-table td{padding:8px 5px}.invoice-bottom{grid-template-columns:1fr}.footer-inner{flex-direction:column}.hero h1{letter-spacing:-1.7px}.hero-pills{margin-top:15px}}

@media print{
  @page{size:A4;margin:10mm}
  body{background:#fff}.site-header,.hero,.form-panel,.preview-toolbar,.info-section,.seo-copy,.site-footer{display:none!important}
  .container{width:100%;margin:0}.workspace{display:block;padding:0}.preview-wrap{position:static}
  .invoice{border:0;box-shadow:none;width:100%;min-height:0;padding:0}
  .invoice-footer{margin-top:35px}
}
