/* QR-Offerte. Dunkle Arbeitsfläche, Dokument weiss wie Papier, ein Akzent. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("vendor/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #0f1115;
  --bg-2: #14171d;
  --surface: #191d24;
  --surface-2: #1f242d;
  --line: #2a303b;
  --line-soft: #222832;
  --text: #e9ebef;
  --muted: #949caa;
  --faint: #6b7381;
  --accent: #d9b777;
  --accent-ink: #1b150a;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-hover: color-mix(in srgb, var(--accent) 82%, #fff);
  --error: #e08a80;
  --error-soft: rgba(224, 138, 128, 0.1);
  --ok: #8fc3a2;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body[data-accent="salbei"] { --accent: #9fc7a6; --accent-ink: #0e1a11; }
body[data-accent="stahl"] { --accent: #93b4e4; --accent-ink: #0b1422; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Grundaufbau ---------- */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100vh; }

.side {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-2); border-right: 1px solid var(--line-soft);
  padding: 22px 16px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 8px var(--bg-2);
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand .icon-btn { margin-left: auto; }
.side-actions { display: grid; gap: 8px; }
.side-label { margin: 26px 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.doc-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.doc-list .empty { color: var(--faint); font-size: 13px; padding: 4px 6px; }
.doc-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px;
}
.doc-item:hover { background: var(--surface); }
.doc-item.is-active { background: var(--surface); border-color: var(--line); }
.doc-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 500; }
.doc-item.is-active .doc-item-no { color: var(--accent); }
.doc-item-sum { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-item-sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); margin-top: 4px; min-width: 0; }
.doc-item-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pill { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pill-bezahlt { color: var(--ok); border-color: rgba(143, 195, 162, 0.35); }
.pill-offen { color: var(--text); }
.pill-umgewandelt { color: var(--faint); }
.doc-search { display: block; margin: 0 0 8px; }
.doc-search input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; font-size: 13.5px; min-height: 36px; color-scheme: dark; }
.doc-search input::placeholder { color: #565e6c; }

.doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.doc-bar .seg-type { margin: 0; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.doc-info { flex-basis: 100%; font-size: 12.5px; color: var(--faint); }
.doc-info:empty { display: none; }
.doc-info.is-paid { color: var(--ok); }
.side-foot { padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 12px; display: grid; gap: 10px; }
.side-note { font-size: 12px; color: var(--faint); padding: 0 6px; }

.work { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg);
}
.save-state { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.panes { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(400px, 500px) minmax(0, 1fr); }
.form-pane { overflow-y: auto; padding: 28px 28px 80px; border-right: 1px solid var(--line-soft); }
.preview-pane { overflow: auto; padding: 32px; background: #0b0d10; }

body[data-panel="doc"] .panel-company,
body[data-panel="company"] .panel-doc { display: none; }

/* ---------- Bedienelemente ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-2); border-color: #363d4a; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-accent-line { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-accent-line:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.btn-danger { color: var(--error); background: transparent; }
.btn-danger:hover { background: var(--error-soft); border-color: rgba(224, 138, 128, 0.4); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-ghost { background: transparent; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn:disabled { opacity: 0.35; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.seg button.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg-type { margin-bottom: 18px; }
.seg-type button.is-active { color: var(--accent); }
.seg-view { display: none; }

.lead { color: var(--muted); margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.f-full { grid-column: 1 / -1; } .f-1 { grid-column: span 1; } .f-2 { grid-column: span 2; } .f-3 { grid-column: span 3; }
.f { display: block; min-width: 0; }
.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 14.5px; min-height: 40px; color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #565e6c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.hint { font-size: 12.5px; color: var(--faint); }
.hint.is-error { color: var(--error); }
.hint.is-ok { color: var(--ok); }
.quiet-note { font-size: 12.5px; color: var(--faint); margin-top: 16px; max-width: 46ch; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.empty-state { padding: 40px 0; }

.items { display: grid; gap: 12px; margin-bottom: 14px; }
.item { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.item .f-desc { grid-column: 1 / -1; }
.item-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.item-sum { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); font-size: 14px; }

.logo-row { display: flex; gap: 16px; align-items: flex-start; }
.logo-preview { width: 112px; height: 72px; flex: none; border-radius: 9px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #9aa1ad; font-size: 12px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.logo-actions { display: grid; gap: 8px; justify-items: start; }

.status { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: var(--muted); background: var(--surface); }
.status strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.status.is-ok strong { color: var(--ok); }
.status.is-error { border-color: rgba(224, 138, 128, 0.35); background: var(--error-soft); }
.status.is-error strong { color: var(--error); }
.status ul, .slip-blocked ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Dokument (Papier) ---------- */
.pages { transform-origin: top left; display: flex; flex-direction: column; gap: 24px; }
.sheet {
  position: relative; width: 210mm; height: 297mm; flex: none; overflow: hidden;
  background: #fff; color: #15171a; font-family: var(--font); font-size: 9.5pt; line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.45);
}
.sheet.is-flowing { height: auto; min-height: 297mm; }
.sheet-empty { display: grid; place-items: center; color: #8a909b; text-align: center; padding: 30mm; font-size: 12pt; }

.flow { width: 100%; border-collapse: collapse; }
.flow td { padding: 0; }
.flow-gap { height: 14mm; }
.flow-body { padding: 0 20mm !important; vertical-align: top; }

.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; min-height: 16mm; }
.d-logo img { max-height: 18mm; max-width: 60mm; display: block; }
.d-from { text-align: right; font-size: 8.5pt; color: #4a505a; }
.d-from strong { font-size: 10.5pt; color: #15171a; font-weight: 600; }
.d-top { display: flex; justify-content: space-between; gap: 10mm; margin-top: 10mm; }
.d-to { font-style: normal; font-size: 10.5pt; line-height: 1.4; min-height: 20mm; }
.ph { color: #a6abb4; }
.d-meta { border-collapse: collapse; font-size: 9pt; }
.d-meta td { padding: 0.6mm 0; }
.d-meta td:first-child { color: #6b717c; padding-right: 8mm; }
.d-meta td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.d-title { font-size: 17pt; font-weight: 600; letter-spacing: -0.01em; margin: 8mm 0 6mm; }

.d-items { width: 100%; border-collapse: collapse; }
.d-items th { text-align: left; font-size: 7.5pt; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b717c; padding: 0 0 2mm; border-bottom: 0.3mm solid #15171a; }
.d-items td { padding: 2.2mm 0; border-bottom: 0.2mm solid #e3e5e9; vertical-align: top; }
.d-items tr { break-inside: avoid; }
.d-items .c-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 4mm; }
.d-items .c-unit { padding-left: 3mm; white-space: nowrap; color: #4a505a; }
.d-items .c-desc { width: 50%; padding-right: 4mm; overflow-wrap: anywhere; }

.d-sums { margin: 5mm 0 0 auto; border-collapse: collapse; min-width: 72mm; break-inside: avoid; }
.d-sums td { padding: 1.1mm 0; }
.d-sums td:first-child { color: #4a505a; padding-right: 10mm; }
.d-sums td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-sums .total td { font-weight: 700; font-size: 11pt; color: #15171a; padding-top: 2.4mm; border-top: 0.3mm solid #15171a; }
.d-sums tr:nth-last-child(2) td { padding-bottom: 2.4mm; }
.d-note { margin-top: 9mm; color: #33383f; max-width: 130mm; break-inside: avoid; }

.slip-blocked {
  position: absolute; left: 20mm; right: 20mm; bottom: 16mm; padding: 5mm 6mm;
  border: 0.3mm dashed #c9837a; border-radius: 2mm; background: #fdf4f2; color: #7c3a32; font-size: 9pt;
}
.slip-blocked strong { display: block; margin-bottom: 1mm; }

/* ---------- Zahlteil, Masse in Millimetern ---------- */
.slip {
  position: absolute; left: 0; bottom: 0; width: 210mm; height: 105mm;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif; color: #000; background: #fff; line-height: 1.15;
}
.slip p { margin: 0; }
.slip-cut { position: absolute; top: 0; left: 0; right: 0; border-top: 0.2mm dashed #000; }
.slip-cut span { position: absolute; left: 8mm; top: -2.6mm; font-size: 4mm; line-height: 1; background: #fff; padding: 0 1mm; }
.slip-inner { display: flex; height: 105mm; }
.slip-vcut { position: relative; width: 0; border-left: 0.2mm dashed #000; }
.slip-vcut span { position: absolute; top: 8mm; left: -2.1mm; font-size: 4mm; line-height: 1; background: #fff; padding: 1mm 0; transform: rotate(90deg); }

.receipt { width: 62mm; height: 105mm; padding: 5mm; display: flex; flex-direction: column; }
.payment { width: 148mm; height: 105mm; padding: 5mm; display: flex; }
.s-title { font-size: 11pt; font-weight: 700; height: 7mm; }

.receipt .s-h { font-size: 6pt; font-weight: 700; line-height: 9pt; }
.receipt .s-v { font-size: 8pt; line-height: 9pt; margin-bottom: 9pt; overflow-wrap: anywhere; }
.r-info { height: 56mm; overflow: hidden; }
.r-amount { height: 14mm; display: flex; gap: 4mm; }
.r-amount .s-v { margin: 0; }
.r-accept { height: 18mm; text-align: right; font-size: 6pt; font-weight: 700; }

.p-left { width: 51mm; flex: none; display: flex; flex-direction: column; }
.p-qr { width: 46mm; height: 46mm; margin: 5mm 0; }
.p-qr svg { display: block; width: 46mm; height: 46mm; }
.p-amount { display: flex; gap: 5mm; }
.payment .s-h { font-size: 8pt; font-weight: 700; line-height: 11pt; }
.payment .s-v { font-size: 10pt; line-height: 11pt; margin-bottom: 11pt; overflow-wrap: anywhere; }
.p-amount .s-v { margin: 0; }
.p-info { width: 87mm; overflow: hidden; }

/* Leere Felder mit Eckmarken zum Ausfüllen von Hand */
.s-box {
  --m: 3mm; --w: 0.26mm; margin-top: 1mm;
  background:
    linear-gradient(#000, #000) top left / var(--m) var(--w), linear-gradient(#000, #000) top left / var(--w) var(--m),
    linear-gradient(#000, #000) top right / var(--m) var(--w), linear-gradient(#000, #000) top right / var(--w) var(--m),
    linear-gradient(#000, #000) bottom left / var(--m) var(--w), linear-gradient(#000, #000) bottom left / var(--w) var(--m),
    linear-gradient(#000, #000) bottom right / var(--m) var(--w), linear-gradient(#000, #000) bottom right / var(--w) var(--m);
  background-repeat: no-repeat;
}
.s-box-rd { width: 52mm; height: 20mm; }
.s-box-pd { width: 65mm; height: 25mm; }
.s-box-ra { width: 30mm; height: 10mm; }
.s-box-pa { width: 40mm; height: 15mm; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 232px minmax(0, 1fr); }
  .panes { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
  .form-pane { padding: 22px 20px 80px; }
  .preview-pane { padding: 20px; }
  .topbar { padding: 12px 20px; }
}

@media (max-width: 820px) {
  html, body { height: auto; }
  .app { display: block; height: auto; }
  .side { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 16px 12px; }
  .brand { padding-bottom: 14px; }
  .side-actions { grid-template-columns: 1fr 1fr; }
  .side-label { margin: 16px 2px 6px; }
  .doc-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 8px; padding-bottom: 4px; }
  .doc-item { width: auto; min-width: 190px; flex: none; border-color: var(--line-soft); }
  .side-foot { display: none; }

  .topbar { position: sticky; top: 0; z-index: 5; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .seg-view { display: inline-flex; margin-left: auto; }
  .save-state { display: none; }
  #printBtn { width: 100%; }
  .topbar .seg button { padding: 6px 7px; font-size: 12.5px; }
  .topbar .seg { padding: 2px; }

  .panes { display: block; }
  .form-pane { border-right: 0; padding: 20px 16px 48px; overflow: visible; }
  .preview-pane { padding: 16px; overflow: hidden; min-height: 70vh; }
  body[data-view="edit"] .preview-pane,
  body[data-view="preview"] .form-pane { display: none; }
  input[type="text"], input[type="number"], input[type="date"], select, textarea { font-size: 16px; }
}

/* ---------- Einstellungen ---------- */
.settings { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.settings::backdrop { background: rgba(6, 8, 11, 0.66); backdrop-filter: blur(3px); }
.settings-body { padding: 22px 24px 26px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.settings-head h2 { margin: 0; font-size: 19px; }
.settings .card-title { margin: 22px 0 10px; }
.settings-row { margin: 12px 0 10px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 13.5px; font-weight: 500; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.swatch:hover { border-color: #3a4250; }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Startseite ---------- */
body[data-screen="home"] .app { display: none; }
body[data-screen="app"] .home { display: none; }
body[data-screen="home"] { height: auto; }
.home { min-height: 100vh; background: radial-gradient(1100px 520px at 78% -8%, var(--accent-soft), transparent 70%), var(--bg); }
.home-inner { max-width: 1240px; margin: 0 auto; padding: 22px 40px 56px; }
.home-top { display: flex; align-items: center; justify-content: space-between; }
.home-top .brand { padding: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 22px; text-wrap: balance; }
.hero-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

.hero-art { display: flex; justify-content: center; }
.art-sheet { position: relative; width: min(100%, 380px); aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; padding: 8% 9% 0; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 40px 90px rgba(0,0,0,0.55); transform: rotate(1.5deg); }
.art-sheet i, .art-sheet b { display: block; height: 5px; border-radius: 3px; background: #e2e5ea; }
.art-head { display: flex; justify-content: space-between; align-items: flex-start; }
.art-logo { width: 15%; aspect-ratio: 1; border-radius: 5px; background: var(--accent); }
.art-lines { width: 34%; display: grid; gap: 5px; } .art-lines i:last-child { width: 70%; margin-left: auto; }
.art-title { margin-top: 14%; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: #15171a; }
.art-rows { margin-top: 6%; display: grid; gap: 9px; border-top: 1.5px solid #15171a; padding-top: 9px; }
.art-rows i:nth-child(2) { width: 84%; } .art-rows i:nth-child(3) { width: 62%; }
.art-total { margin: 7% 0 0 auto; width: 42%; display: grid; gap: 6px; }
.art-total b { background: #15171a; height: 6px; }
.art-slip { margin: auto -11.3% 0; border-top: 1px dashed #15171a; display: flex; height: 35.35%; }
.art-receipt { width: 29.5%; border-right: 1px dashed #15171a; padding: 6% 4%; display: grid; gap: 5px; align-content: start; }
.art-receipt i { height: 4px; } .art-receipt i:nth-child(2) { width: 70%; }
.art-pay { flex: 1; display: flex; gap: 6%; padding: 6% 5%; }
.art-qr { width: 40%; aspect-ratio: 1; flex: none; align-self: start; }
.art-qr svg { display: block; width: 100%; height: 100%; }
.art-info { flex: 1; display: grid; gap: 6px; align-content: start; }
.art-info i { height: 4px; } .art-info i:nth-child(even) { width: 66%; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.steps h2 { font-size: 17px; margin-bottom: 8px; }
.steps p, .facts p { color: var(--muted); font-size: 14.5px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding: 0 24px; }
.facts h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.home-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--faint); max-width: 80ch; }

@media (max-width: 820px) {
  .home-inner { padding: 16px 20px 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 44px; }
  .hero-lead { font-size: 16.5px; }
  .hero .btn-lg { width: 100%; }
  .art-sheet { width: min(78%, 300px); }
  .steps, .facts { grid-template-columns: 1fr; }
  .facts { padding: 0 4px; gap: 20px; margin-top: 32px; }
  .doc-actions { margin-left: 0; }
  .swatches { grid-template-columns: 1fr; }
}
