:root {
  --ink: #232323;
  --muted: #686868;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --green: #A20B0B;
  --lime: #A20B0B;
  --line: #dedcd6;
  --blue: #A20B0B;
  --red: #A20B0B;
}

body, button, input, textarea, select { font-family: "Montserrat", sans-serif; }
h1, h2, h3, .section-title, .card-head b, .stat b, .q-title, .q-total {
  font-family: "Poppins", sans-serif;
}

.landing-logo {
  position: static;
  display: block;
  width: min(260px, 64vw);
  height: 82px;
  margin: 0 auto 24px;
  object-fit: contain;
  object-position: center;
}
.shade { background: linear-gradient(90deg, rgba(20,20,20,.68), rgba(20,20,20,.25), rgba(20,20,20,.62)); }
.glass { width: min(92vw,680px); padding: 50px 56px 54px; background: rgba(35,35,35,.58); }
.glass h1 { font-family: "Poppins", sans-serif; font-size: clamp(38px,5vw,60px); font-weight: 600; }
.choice button:first-child, .choice button:hover { background: #A20B0B; border-color: #A20B0B; color: #fff; }
.choice button { font-family: "Montserrat", sans-serif; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease; }
.choice button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.choice button:active { transform: translateY(1px) scale(.97); box-shadow: 0 4px 10px rgba(0,0,0,.16); }

.topbar {
  height: 92px;
  padding: 0 5vw;
  background: #fff;
  justify-content: flex-start;
  border-bottom-color: #dedcd6;
}
.logo-home { border: 0; background: transparent; padding: 0; cursor: pointer; }
.logo-home img { display: block; width: 210px; height: 67px; object-fit: contain; object-position: left center; }
.home-link { border: 0; background: transparent; color: #A20B0B; font-weight: 700; cursor: pointer; padding: 12px 8px 12px 0; }

.contact-screen { position: relative; background: url('assets/paper-warehouse.png') center/cover fixed; color: #fff; }
.contact-screen > .shade { position: absolute; z-index: 0; }
.contact-page { position: relative; z-index: 1; width: min(1120px,92vw); padding-top: 38px; }
.contact-heading { text-align: center; }
.contact-heading .eyebrow { color: #e7c9c9; }
.contact-heading h2 { margin-bottom: 30px; }
.contact-heading h2 em { color: #fff; }
.contact-back { color: #fff; margin-bottom: 16px; }
.contact-form { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.contact-card { padding: 27px; border: 1px solid rgba(255,255,255,.28); border-radius: 22px; background: rgba(35,35,35,.62); backdrop-filter: blur(16px); box-shadow: 0 22px 60px rgba(0,0,0,.24); }
.contact-card h3 { margin: 0 0 20px; color: #fff; }
.contact-card label { color: rgba(255,255,255,.84); }
.contact-card input, .contact-card textarea { background: rgba(255,255,255,.95); }
.contact-fields { display: grid; gap: 14px; }
.contact-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; }
.contact-actions .primary { border: 1px solid rgba(255,255,255,.25); }

h2 em, .eyebrow, .section-title, .back { color: #A20B0B; }
.primary, .mode button.active, .q-table th { background: #A20B0B; }
.secondary { border-color: #A20B0B; color: #A20B0B; }
input:focus, textarea:focus { border-color: #A20B0B; box-shadow: 0 0 0 3px rgba(162,11,11,.1); }
select { width: 100%; border: 1px solid #d5dad3; border-radius: 10px; background: #fafbf8; padding: 12px 13px; font-size: 15px; color: #232323; outline: none; }
select:focus { border-color: #A20B0B; box-shadow: 0 0 0 3px rgba(162,11,11,.1); }
.paper-body-format { grid-template-columns: 2fr repeat(4,1fr); }
.stat-pieces { background: #e2edf8; color: #416f9b; }
.stat-use { background: #e1f1e4; color: #4e8b5a; }
.stat-waste { background: #f7e2e2; color: #b65a5a; }
.stat-pieces span, .stat-use span, .stat-waste span { color: currentColor; }
.compact-card .card-head { padding: 14px 22px; }
.compact-card .form-pane, .compact-card .visual-pane { padding: 21px; }
.compact-card .visual-pane { min-height: 485px; }
.compact-card .section-title { margin: 14px 0 8px; }
.compact-card .section-title:first-child { margin-top: 0; }
.compact-card .canvas-wrap { min-height: 280px; }
.save-product { grid-column: 1/-1; margin-top: 16px; border: 0; border-radius: 10px; padding: 12px 18px; background: #A20B0B; color: #fff; font-weight: 700; cursor: pointer; }
.paper-body-format .save-product { grid-column: 1/-1; margin-top: 2px; }
.product-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 12px; padding: 18px 22px; border: 1px solid #e0e2e8; border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(35,35,35,.025); }
.product-summary b { font: 600 17px "Poppins", sans-serif; }
.product-summary p { margin: 5px 0 0; color: #8791a7; font-size: 13px; line-height: 1.35; }
.summary-tools { display: flex; gap: 7px; flex: 0 0 auto; }
.summary-tools button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #F7F6F2; font-size: 22px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.summary-tools button:hover { transform: scale(1.07); background: #f1e1e1; }
.edit-product { color: #596579; }
.delete-product { color: #A20B0B; }
.term input { accent-color: #A20B0B; }
.terms-heading { margin: 30px 0 12px; color: #232323; font-size: 17px; }
.terms-heading:first-child { margin-top: 0; }
.q-head { border-bottom-color: #A20B0B; }
.q-title { color: #A20B0B; }
.visual-pane { background: #F7F6F2; }
input::placeholder, textarea::placeholder { color: #a7a39d; opacity: 1; }
.quote-cut-report { margin: 28px 0 8px; page-break-inside: avoid; }
.quote-cut-report h4 { margin: 0 0 12px; font: 700 14px "Poppins", sans-serif; color: #A20B0B; }
.quote-cut-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: center; border: 1px solid #dedcd6; padding: 16px; margin-bottom: 14px; }
.quote-cut-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.quote-cut-image { display: block; width: 100%; height: auto; max-height: 245px; object-fit: contain; }
.quote-cut-stats { font-size: 12px; line-height: 1.8; }
.quote-logo { width: 150px; height: 48px; object-fit: contain; object-position: left center; display: block; margin: 0; }

.q-head { align-items: center; }
.q-document-meta { text-align: right; }
.q-document-meta > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.q-document-meta small { display: block; margin-top: 6px; color: #686868; font-size: 11px; }
.q-title { font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.q-document-meta b { font-size: 13px; }
.q-parties { gap: 16px; margin: 28px 0; }
.q-party { border: 1px solid #cfcfcf; padding: 17px 19px; min-height: 128px; }
.q-party .eyebrow { margin-bottom: 10px; }
.q-party p { color: #3f3f3f; }
.q-table th:nth-child(1) { width: 48%; }
.q-table th:nth-child(n+2), .q-table td:nth-child(n+2) { text-align: right; }
.q-summary { display: grid; grid-template-columns: 1fr 290px; gap: 32px; align-items: end; margin-top: 22px; }
.q-words { border-top: 1px solid #d4d4d4; padding-top: 12px; }
.q-words span { display: block; margin-bottom: 7px; color: #686868; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.q-words b { font-size: 11px; line-height: 1.6; }
.q-totals { font-size: 12px; }
.q-totals > div { display: flex; justify-content: space-between; gap: 24px; padding: 7px 0; border-bottom: 1px solid #dedede; }
.q-totals .grand-total { color: #A20B0B; padding-top: 10px; font-size: 15px; border-bottom: 2px solid #A20B0B; }
.q-term-group { margin-top: 14px; }
.q-term-group > b { color: #232323; font-size: 11px; }
.q-term-group ol { margin: 7px 0 0; padding-left: 19px; }
.q-term-group li { margin-bottom: 5px; line-height: 1.45; }
.q-footer { margin-top: 36px; padding-top: 15px; border-top: 1px solid #e1e1e1; color: #aaa; text-align: center; font: 500 9px/1.65 "Montserrat", sans-serif; letter-spacing: .02em; page-break-inside: avoid; }

@media (max-width: 800px) {
  .actions { flex-wrap: wrap; }
  .actions .primary:last-child { margin-left: 0; }
  .quote-cut-grid { grid-template-columns: 1fr; }
  .glass { padding: 38px 24px 42px; }
  .landing-logo { width: min(235px,68vw); height: 72px; margin-bottom: 20px; }
  .q-summary { grid-template-columns: 1fr; }
  .q-document-meta > div { flex-direction: column; align-items: flex-end; gap: 4px; }
  .paper-body-format { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-actions { grid-column: 1; }
  .product-summary { align-items: flex-start; }
}
