/* appjesite.nl: sign-up flow, the page after paying, invoices and the legal pages.
   Builds on landing.css (colours, type, buttons, fields). */

.su-body { min-height: 100vh; min-height: 100dvh; background: var(--bg); }

/* ---------- top bar with progress ---------- */
.su-top { position: sticky; top: 0; z-index: 40; background: #faf8f5eb; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.su-top-in { display: flex; align-items: center; gap: 6px; height: 62px; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.su-top .logo { font-size: 20px; }
.su-top .logo svg { width: 27px; height: 27px; }
.su-back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.su-back[hidden] { display: none; }
.su-back:hover { background: var(--soft); }
.su-back svg { width: 22px; height: 22px; }
.su-count { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.su-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.su-progress i { display: block; width: 0; height: 100%; border-radius: 0 3px 3px 0; background: var(--brand); transition: width .4s cubic-bezier(.2, .8, .2, 1); }

/* ---------- layout ---------- */
.su { max-width: 1080px; margin: 0 auto; padding: 30px 20px 150px; }
.su-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.su-main { width: 100%; max-width: 620px; margin: 0 auto; }
.su-step[hidden] { display: none; }
.su-step.is-active { animation: step-in .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .su-step.is-active { animation: none; } .su-progress i { transition: none; } }
.su-title { font: 750 clamp(29px, 6.4vw, 42px)/1.06 var(--display); letter-spacing: -0.035em; outline: none; text-wrap: balance; }
.su-lead { margin-top: 12px; color: var(--muted); font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }
.stack { display: grid; gap: 18px; margin-top: 26px; }
.su-fieldset { margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.su-fieldset legend { padding: 0; font: 680 19px/1.3 var(--display); letter-spacing: -0.01em; }
.su-fieldset .stack { margin-top: 14px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.field .hint { margin-top: 2px; }
.field.invalid textarea, .field.invalid select { border-color: #b42318; background: #fff6f5; }
.linkish { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--soft); color: var(--ink-2); font-size: 15px; }
.vat-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.fine { margin-top: 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- segmented choice ---------- */
.seg { display: flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg-period { display: inline-flex; }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg-period label { flex: none; }
.seg label[hidden] { display: none; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 42px; padding: 6px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; transition: background .15s, color .15s, box-shadow .15s; pointer-events: none; }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid #c93a1766; outline-offset: 1px; }
.seg em { padding: 3px 8px; border-radius: 999px; background: #e3f3ea; color: var(--ok); font-size: 12px; font-style: normal; white-space: nowrap; }

/* ---------- packages ---------- */
.picks { display: grid; gap: 14px; margin-top: 20px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; top: 22px; right: 22px; width: 24px; height: 24px; margin: 0; opacity: 0; }
.pick-card { display: block; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .2s, background .15s; }
.pick:hover .pick-card { border-color: #d6cec2; }
.pick input:checked + .pick-card { border-color: var(--brand); box-shadow: 0 0 0 4px #c93a1714, 0 14px 36px #c93a1714; }
.pick input:focus-visible + .pick-card { outline: 3px solid #c93a1766; outline-offset: 3px; }
.pick-top { display: flex; align-items: center; gap: 10px; }
.pick-name { font: 730 23px/1.15 var(--display); letter-spacing: -0.02em; }
.pick-tag { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 700; }
.pick-radio { flex: none; width: 24px; height: 24px; margin-left: auto; border: 2px solid #d0c8bc; border-radius: 50%; background: #fff; transition: border-color .15s, background .15s; }
.pick input:checked + .pick-card .pick-radio { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pick-for { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.pick-price { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; }
.pick-price b { font: 750 34px/1 var(--display); letter-spacing: -0.035em; }
.pick-price small { color: var(--muted); font-size: 15px; }
.pick-setup { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: var(--soft); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.pick-feats { display: none; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pick input:checked + .pick-card .pick-feats { display: grid; animation: step-in .3s ease both; }
.pick-feats span { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pick-feats span::before, .sum-assure li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #e3f3ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.5' fill='none' stroke='%231d7a4c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- domain ---------- */
.dom { margin-top: 22px; }
.dom-label { display: block; color: var(--ink-2); font-size: 14.5px; font-weight: 650; }
.dom-box { display: flex; align-items: center; margin-top: 7px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.dom-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px #c93a171f; }
.dom-box.is-free { border-color: var(--ok); }
.dom-box.is-taken, .dom.invalid .dom-box { border-color: #b42318; }
.dom-box input { flex: 1; min-width: 0; height: 60px; padding: 0; border: 0; outline: 0; background: none; font: 650 19px/1 var(--text); letter-spacing: -0.01em; }
.dom-box input::placeholder { color: #b3ada4; font-weight: 500; }
.dom-suf { flex: none; color: var(--muted); font-size: 17px; font-weight: 600; }
.dom-status { display: flex; align-items: flex-start; gap: 8px; min-height: 24px; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.dom-status:empty { display: none; }
.dom-status svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.dom-status.free { color: var(--ok); }
.dom-status.taken, .dom-status.invalid { color: #b42318; }
.dom-status.wait, .dom-status.unknown { color: var(--muted); }
.dom-alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dom-alts:empty { display: none; }
.dom-alts button { min-height: 38px; padding: 0 14px; border: 1.5px solid #cbe6d6; border-radius: 999px; background: #f1f9f4; color: var(--ok); font-size: 14.5px; font-weight: 650; cursor: pointer; }
.dom-alts button:hover { border-color: var(--ok); }
.dom .hint { margin-top: 12px; }
.spin { display: inline-block; flex: none; width: 18px; height: 18px; border: 2.4px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- terms ---------- */
.deal { display: grid; gap: 10px; margin-top: 24px; }
.deal li { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.deal-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.deal-ico svg { width: 22px; height: 22px; }
.deal b { display: block; font: 690 17px/1.35 var(--display); letter-spacing: -0.01em; }
.deal p { margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.deal p span { color: var(--ink-2); font-weight: 600; }
.terms { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.terms summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 650; cursor: pointer; list-style: none; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary svg { flex: none; width: 22px; height: 22px; color: var(--brand); }
.terms summary::after { content: ""; flex: none; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%2314161b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.terms[open] summary::after { transform: rotate(45deg); }
.terms-scroll { max-height: 380px; overflow: auto; padding: 4px 20px 20px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.terms-scroll:focus-visible { outline-offset: -3px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; transition: border-color .15s; }
.check:hover { border-color: #d6cec2; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid #d0c8bc; border-radius: 7px; background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check span { color: var(--ink-2); font-size: 15.5px; font-weight: 600; line-height: 1.45; padding-top: 1px; }
.check.invalid { border-color: #b42318; background: #fff6f5; }
.sign { margin-top: 14px; padding: 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); }
.sig { display: flex; align-items: flex-end; min-height: 74px; margin-top: 14px; padding: 0 6px 8px; border-bottom: 1.5px dashed #cfc7bb; overflow: hidden; }
.sig-name { display: inline-block; color: var(--ink); font: italic 620 32px/1.15 var(--display); letter-spacing: -0.01em; transform: rotate(-2.5deg); transform-origin: left bottom; white-space: nowrap; }
.sig-name.empty { color: #cfc7bb; }
.sig-meta { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

/* ---------- overview and summary ---------- */
.bill, .sum { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.bill { margin-top: 24px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.bill-head, .sum-plan { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bill-head { padding-bottom: 6px; }
.bill-head > b, .sum-plan > b { font: 720 21px/1.2 var(--display); letter-spacing: -0.02em; }
.bill-head > span, .sum-plan > span { color: var(--muted); font-size: 14.5px; }
.lines { display: grid; margin-top: 6px; }
.lines div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f0ece6; font-size: 15.5px; }
.lines dt { color: var(--ink-2); }
.lines dd { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .muted dt, .lines .muted dd { color: var(--muted); font-weight: 500; }
.lines .total { align-items: baseline; padding-top: 16px; border-bottom: 0; }
.lines .total dt { color: var(--ink); font-weight: 700; }
.lines .total dd { font: 760 26px/1 var(--display); letter-spacing: -0.02em; }
.bill-next, .sum-next { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.sum-next:empty { display: none; }
.recap { margin-top: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.recap div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 18px; border-bottom: 1px solid #f0ece6; font-size: 15px; }
.recap div:last-child { border-bottom: 0; }
.recap dt { color: var(--muted); }
.recap dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.recap .linkish { font-size: 14px; text-decoration: none; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: left; }
.pay-note svg { flex: none; width: 20px; height: 20px; color: var(--ok); }

.su-aside { display: none; }
.sum { padding: 22px; box-shadow: var(--shadow); }
.sum-kicker { margin-bottom: 8px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sum-assure { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sum-assure li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 14.5px; font-weight: 550; }

/* ---------- bottom bar (fixed on phones, under the form on large screens) ---------- */
.su-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -10px 30px #14161b12; }
.su-bar-in { display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 0 auto; }
.su-bar-sum { flex: 1; min-width: 0; line-height: 1.3; }
.su-bar-sum strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-bar-sum span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-bar .btn { flex: none; min-width: 132px; }
.su-bar.is-last .su-bar-sum { display: none; }
.su-bar.is-last .btn { flex: 1; }
.su-bar .btn:disabled { opacity: .75; cursor: progress; transform: none; }
.su-error { max-width: 620px; margin: 8px auto 0; color: #b42318; font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.su-error:empty { display: none; }

@media (min-width: 1000px) {
  .su { padding: 52px 32px 96px; }
  .su-grid { grid-template-columns: minmax(0, 620px) 340px; justify-content: center; gap: 64px; }
  .su-main { margin: 0; }
  .su-aside { display: block; }
  .sum { position: sticky; top: 104px; }
  .su-bar { position: static; margin-top: 30px; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .su-bar-in { max-width: none; }
  .su-bar-sum { display: none; }
  .su-bar .btn { min-width: 220px; }
  .su-error { margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .su { padding-top: 24px; }
  .su-lead { font-size: 16.5px; }
  .seg-period { display: flex; }
  .seg-period label { flex: 1 1 auto; }
  .seg-period span { white-space: nowrap; }
  .seg span { padding: 6px 8px; font-size: 14.5px; }
  .seg-domain span { font-size: 13.5px; }
  .pick-card { padding: 18px; }
  .recap div { grid-template-columns: 82px minmax(0, 1fr) auto; padding: 12px 14px; }
  .dom-box input { font-size: 18px; }
}
@media (max-width: 380px) {
  .su-bar .btn { min-width: 0; padding: 0 18px; }
  .seg-domain span { font-size: 12.5px; padding: 6px 4px; }
}

/* ---------- after paying ---------- */
.done { max-width: 640px; margin: 0 auto; padding: 44px 20px 88px; }
.done-ico { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 50%; background: #e3f3ea; color: var(--ok); font: 800 34px/1 var(--display); }
.done-ico svg { width: 38px; height: 38px; }
.done-ico.is-warn { background: #fdecea; color: #b42318; }
.done-ico.is-wait { background: var(--soft); color: var(--brand); }
.done-ico .spin { width: 32px; height: 32px; border-width: 3.5px; }
@media (prefers-reduced-motion: no-preference) { .done-ico:not(.is-wait) { animation: pop .55s cubic-bezier(.2, .9, .3, 1.3) both; } }
.done .kicker { margin-bottom: 8px; }
.timeline { margin-top: 30px; }
.timeline li { position: relative; padding: 0 0 24px 46px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 2px; width: 22px; height: 22px; border: 2px solid #d0c8bc; border-radius: 50%; background: var(--bg); box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 16px; top: 28px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .is-done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.timeline .is-done::after { background: var(--ok); }
.timeline .is-now::before { border-color: var(--brand); box-shadow: 0 0 0 5px #c93a171f; }
.timeline b { display: block; font: 690 17.5px/1.35 var(--display); letter-spacing: -0.01em; }
.timeline span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.card-box { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.card-box h2 { margin: 0; font: 700 21px/1.25 var(--display); letter-spacing: -0.02em; }
.card-box > p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; padding: 26px 16px; border: 2px dashed #d6cec2; border-radius: 18px; background: var(--bg); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop:focus-within { outline: 3px solid #c93a1766; outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop svg { width: 30px; height: 30px; margin-bottom: 6px; color: var(--brand); }
.drop b { font-size: 16px; }
.drop span { color: var(--muted); font-size: 14px; }
.up-list { display: grid; gap: 6px; margin-top: 12px; }
.up-list:empty { display: none; }
.up-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--soft); font-size: 14.5px; }
.up-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-list .ok { flex: none; color: var(--ok); font-weight: 650; }
.up-list .err { flex: none; color: #b42318; font-weight: 650; }
.up-list .busy { flex: none; color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.done-actions .btn svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .done { padding-top: 32px; } .done-actions .btn { width: 100%; } }

/* ---------- legal pages ---------- */
.legal-page { padding: 56px 0 88px; }
.legal-wrap { max-width: 780px; }
.legal-page h1 { margin-top: 10px; font: 750 clamp(34px, 5vw, 50px)/1.06 var(--display); letter-spacing: -0.035em; }
.legal-meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal-page .legal { margin-top: 28px; }
.legal h2 { margin: 24px 0 8px; font: 700 17px/1.3 var(--display); letter-spacing: -0.01em; }
.legal-page .legal h2 { margin-top: 36px; font-size: 21px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal-page .legal p, .legal-page .legal li { font-size: 16.5px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal li + li { margin-top: 7px; }
.legal li::marker { color: var(--muted); }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.foot-small { padding: 28px 0; }
.foot-small .foot-base { padding-top: 0; }
.foot-small a { color: #c5cad2; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- invoice ---------- */
.inv-body { background: #efebe5; }
.inv-wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.inv-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.inv-back { color: var(--ink-2); font-weight: 650; }
.inv { padding: 52px 56px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 15px; line-height: 1.55; }
.inv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.inv-head .logo { font-size: 22px; }
.inv-title { text-align: right; }
.inv-title h1 { margin: 0; font: 760 38px/1 var(--display); letter-spacing: -0.035em; }
.inv-paid { display: inline-block; margin-top: 12px; padding: 4px 12px; border: 2px solid var(--ok); border-radius: 8px; color: var(--ok); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.inv-parties h2, .inv-meta dt, .inv-lines thead th { color: var(--muted); font: 700 12px/1.3 var(--text); letter-spacing: .09em; text-transform: uppercase; }
.inv-parties h2 { margin: 0 0 8px; }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; padding: 16px 0; border-block: 1px solid var(--line); }
.inv-meta dd { margin-top: 4px; font-weight: 650; }
.inv-lines { width: 100%; margin-top: 30px; border-collapse: collapse; }
.inv-lines th, .inv-lines td { padding: 12px 0; text-align: left; vertical-align: top; }
.inv-lines thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); }
.inv-lines tbody td { border-bottom: 1px solid var(--line); }
.inv-lines td:last-child, .inv-lines th:last-child { padding-left: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-lines tfoot th { color: var(--ink-2); font-weight: 500; text-align: right; }
.inv-lines tfoot tr:first-child th, .inv-lines tfoot tr:first-child td { padding-top: 16px; }
.inv-lines tfoot td { font-weight: 600; }
.inv-lines .inv-total th, .inv-lines .inv-total td { padding-top: 14px; border-top: 1.5px solid var(--ink); color: var(--ink); font: 760 21px/1.2 var(--display); }
.inv-note { margin-top: 30px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .inv { padding: 30px 22px; }
  .inv-head { flex-direction: column-reverse; }
  .inv-title { text-align: left; }
  .inv-parties, .inv-meta { grid-template-columns: 1fr; gap: 16px; }
}
@media print {
  .inv-body { background: #fff; }
  .inv-actions { display: none; }
  .inv-wrap { max-width: none; padding: 0; }
  .inv { padding: 0; border-radius: 0; box-shadow: none; }
  @page { size: A4; margin: 18mm; }
}
