/* One business letter with real product evidence. Keep the app's styles separate. */
.lp-page {
  --lp-sheet: 860px;
  --lp-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --lp-rule: #d9d5ce;
  background: #e9e7e2;
  font-size: 1rem;
}
.lp-bar {
  max-width: var(--lp-sheet);
  margin: 0 auto;
  padding: 1rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lp-brand { color: var(--ink); font-weight: 750; text-decoration: none; }
.lp-login { color: var(--muted); font-size: 0.9rem; text-underline-offset: 3px; }
.lp-sheet {
  max-width: var(--lp-sheet);
  margin: 0 auto 2.5rem;
  padding: 2.75rem 2.75rem 1.6rem;
  background: var(--surface);
  box-shadow: 0 4px 20px rgb(31 35 40 / 8%);
}
.lp-mono { font-family: var(--lp-mono); font-variant-numeric: tabular-nums; }
.lp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.lp-head-brand {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.lp-head-brand span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
}
.lp-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25rem 1.4rem;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}
.lp-meta dt, .lp-address span { color: var(--muted); }
.lp-meta dd { margin: 0; text-align: right; }
.lp-address { margin: 1.5rem 0 1.7rem; font-size: 0.9rem; }
.lp-subject-label { margin: 0 0 0.45rem; color: var(--muted); }
.lp-subject {
  margin: 0 0 1.5rem;
  font-size: 1.85rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lp-letter { max-width: 43rem; }
.lp-letter p { margin: 0 0 0.7rem; }
.lp-letter strong { font-weight: 600; }
.lp-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin: 1.3rem 0 2rem;
}
.lp-btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.lp-btn:hover { background: var(--accent-dark); color: #fff; }
.lp-start p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.lp-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
.lp-section-label span { color: var(--muted); }
.lp-preview { margin: 0; }
.lp-preview img { display: block; width: 100%; height: auto; border: 1px solid #94999f; }
.lp-preview a { display: block; }
.lp-preview figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.85rem; }
.lp-customer { margin-top: 0.6rem; }
.lp-customer summary {
  color: var(--accent-dark);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-customer[open] .lp-preview { margin-top: 0.85rem; }
.lp-services { margin-top: 2rem; }
.lp-items { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lp-items th {
  padding: 0 0.6rem 0.5rem;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}
.lp-items td { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--lp-rule); vertical-align: top; }
.lp-items th:first-child, .lp-items td:first-child { width: 3.2rem; padding-left: 0; }
.lp-items th:last-child, .lp-items td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.lp-items td strong { display: block; margin-bottom: 0.15rem; font-weight: 650; }
.lp-items td p { margin: 0; color: var(--muted); }
.lp-qty { color: var(--muted); white-space: nowrap; }
.lp-pricing { margin-top: 1.5rem; }
.lp-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: start;
  font-size: 0.9rem;
}
.lp-totals > p { margin: 0; }
.lp-totals dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1rem; margin: 0; }
.lp-totals dd { margin: 0; white-space: nowrap; text-align: right; }
.lp-free, .lp-grand { font-weight: 700; }
.lp-grand { margin-top: 0.35rem; padding-top: 0.65rem; border-top: 1px solid var(--ink); }
.lp-pack-label { display: block; color: var(--muted); font-family: var(--font-ui); font-size: 0.75rem; }
.lp-totals-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.8rem; text-align: right; }
.lp-questions { margin-top: 2rem; font-size: 0.9rem; }
.lp-questions details { padding: 0.65rem 0; border-bottom: 1px solid var(--lp-rule); }
.lp-page summary { cursor: pointer; }
.lp-questions summary { font-weight: 500; }
.lp-questions details p { max-width: 42rem; margin: 0.7rem 0 0.2rem; color: var(--muted); }
.lp-closing { margin: 1.8rem 0 0; font-size: 0.95rem; }
.lp-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--lp-rule);
  color: var(--muted);
  font-size: 0.8rem;
}
.lp-foot a { color: var(--muted); }
.lp-page-no { margin-left: auto; }
.lp-page a:focus-visible, .lp-page summary:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.lp-skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.65rem 1rem;
  background: var(--surface);
  transform: translateY(-200%);
}
.lp-skip:focus { transform: translateY(0); }
@media (max-width: 720px) {
  .lp-bar { padding: 0.85rem 1rem; }
  .lp-sheet { margin: 0 8px 1.5rem; padding: 1.5rem 1.25rem; }
  .lp-head { flex-direction: column; gap: 1rem; padding-bottom: 1.2rem; }
  .lp-meta { font-size: 0.8rem; }
  .lp-meta dd { text-align: left; }
  .lp-address { margin: 1.2rem 0 1.4rem; }
  .lp-subject { font-size: 1.6rem; }
  .lp-start { gap: 0.65rem; margin-bottom: 1.5rem; }
  .lp-start p { flex-basis: 100%; }
  .lp-btn { padding: 0.75rem 1rem; }
  .lp-items th { font-size: 0.75rem; }
  .lp-items th:nth-child(3), .lp-items td:nth-child(3) { display: none; }
  .lp-items th:first-child, .lp-items td:first-child { width: 2.3rem; }
  .lp-items td { padding: 0.85rem 0.35rem; }
  .lp-totals { grid-template-columns: 1fr; gap: 1.2rem; }
  .lp-totals-note { text-align: left; }
  .lp-section-label span { display: block; }
}
@media print {
  .lp-page { background: #fff; }
  .lp-bar, .lp-skip { display: none; }
  .lp-sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; }
}
