:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f8f5ee;
  --ink: #28251f;
  --muted: #635d51;
  --line: #e2dbcd;
  --white: #fffdfa;
  --rust: #a84029;
  --rust-dark: #8d331f;
  --rust-soft: #f7e6dc;
  --green: #285b47;
  --green-soft: #e5eee2;
  --radius: 25px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #387d62; outline-offset: 4px; }
.header, .footer, main { max-width: 1150px; margin-inline: auto; }
.header { min-height: 82px; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 790; font-size: 1.15rem; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-accent { color: var(--rust); }
.nav { display: flex; align-items: center; gap: 22px; font-size: .9rem; font-weight: 660; }
.nav > a:not(.button) { color: var(--muted); padding: 10px 0; white-space: nowrap; }
.nav > a[aria-current="page"]:not(.button) { color: var(--rust); }
main { padding: 38px 32px 62px; min-height: 75vh; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; padding: 20px 32px 30px; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; }
.footer span:first-child { font-weight: 740; }
.eyebrow { color: var(--rust); font-size: .75rem; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 15px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); line-height: 1; letter-spacing: -.064em; margin-bottom: 20px; }
h2 { letter-spacing: -.042em; margin-bottom: 12px; }
p { line-height: 1.55; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .88rem; margin: 0; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 86px); align-items: start; }
.intro { padding-top: 24px; }
.lede { max-width: 36ch; font-size: 1.07rem; color: var(--muted); margin-bottom: 25px; }
.steps { margin: 25px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.steps p { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .75rem; }
.notice { color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 11px 14px; font-size: .85rem; line-height: 1.45; }
.notice a { text-decoration: underline; font-weight: 700; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.filters fieldset { grid-column: 1 / -1; display: flex; gap: 7px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 3px; min-inline-size: 0; }
.filters legend { padding: 0; margin-bottom: 9px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.filters label { display: grid; gap: 4px; font-size: .76rem; color: var(--muted); min-width: 0; }
select, input, textarea { color: var(--ink); border: 1px solid #d9d1c3; background: var(--white); border-radius: 11px; padding: 10px 12px; min-width: 0; }
.filters select { width: 100%; font-size: .9rem; }
.chip { background: transparent; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); padding: 8px 13px; font-size: .84rem; font-weight: 650; min-height: 38px; }
.chip[aria-pressed="true"] { color: var(--green); background: var(--green-soft); border-color: #b8cdb9; }
.deck { position: relative; isolation: isolate; margin-bottom: 25px; }
.deck::before, .deck::after { content: ""; position: absolute; z-index: -1; border-radius: var(--radius); border: 1px solid var(--line); inset: 12px 8px -8px; background: #f0e9dd; }
.deck::after { inset: 20px 16px -15px; z-index: -2; background: #f2ebdf; }
.card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(20px, 4vw, 32px); }
.card { min-height: 345px; box-shadow: 0 10px 32px #4032220b; touch-action: pan-y; }
.card.flip { animation: flip .27s ease-out both; }
@keyframes flip { from { transform: perspective(1000px) rotateY(-19deg); opacity: .25; } to { transform: perspective(1000px) rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 17px; }
.service-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 16px; background: var(--rust-soft); color: var(--rust); }
.service-icon svg { width: 25px; height: 25px; }
.pill { color: var(--green); background: var(--green-soft); padding: 6px 10px; border-radius: 99px; font-size: .74rem; font-weight: 720; max-width: 100%; }
.card h2 { font-size: clamp(1.45rem, 4vw, 1.85rem); margin: 0 0 3px; overflow-wrap: anywhere; }
.amount { font-size: clamp(2.45rem, 7vw, 3.65rem); font-weight: 780; letter-spacing: -.068em; line-height: 1.04; margin: 17px 0 10px; }
.comment { color: var(--muted); margin: 10px 0 18px; min-height: 1.6em; overflow-wrap: anywhere; font-size: .92rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; padding: 12px 17px; min-height: 45px; border-radius: 12px; background: var(--rust); color: #fff; font-weight: 720; line-height: 1.25; text-align: center; }
.button:hover { background: var(--rust-dark); }
.button.outline { color: var(--ink); background: transparent; border-color: #d9d1c3; }
.button.outline:hover { background: #f2eade; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: .84rem; }
.button.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.deck-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.link-button { color: var(--rust); border: 0; padding: 9px 0; background: transparent; font-weight: 720; text-align: left; min-height: 40px; }
.link-button:hover { text-decoration: underline; }
.back { display: inline-flex; margin-bottom: 16px; }
.qr { width: min(225px, 76%); aspect-ratio: 1; display: block; margin: 6px auto 14px; background: white; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; }
.qr-panel { text-align: center; }
.qr-panel .actions { justify-content: center; }
.empty { min-height: 275px; display: grid; align-content: center; justify-items: start; }
.page { max-width: 680px; margin: 0 auto; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page > .panel + .panel { margin-top: 14px; }
.form { display: grid; gap: 15px; }
.form label:not(.check) { display: grid; gap: 6px; font-size: .9rem; font-weight: 660; }
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 8px; font-size: .87rem; line-height: 1.45; color: var(--muted); }
.form .check input { accent-color: var(--rust); margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.file-action { cursor: pointer; width: fit-content; }
.file-action:focus-within { outline: 3px solid #387d62; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
video { max-width: 100%; border-radius: 14px; background: #1a1a1a; }
.form-error { color: #9c3122; font-size: .9rem; margin: 0; }
.account-list { display: grid; gap: 10px; margin-bottom: 18px; }
.bill-row { border: 1px solid var(--line); padding: 15px; border-radius: 14px; background: var(--white); }
.bill-row h3 { margin-bottom: 6px; font-size: 1.04rem; overflow-wrap: anywhere; }
.bill-row p { margin-bottom: 6px; }
dialog { border: 1px solid var(--line); border-radius: 22px; padding: 24px; width: min(440px, calc(100% - 32px)); color: var(--ink); background: var(--white); }
dialog::backdrop { background: #2b201e65; }
dialog code { display: block; overflow-wrap: anywhere; padding: 12px; border-radius: 8px; background: var(--paper); }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(90%, 520px); padding: 12px 16px; border-radius: 14px; background: #2f4d41; color: #fff; box-shadow: 0 12px 28px #0002; font-size: .9rem; }
@media (max-width: 720px) {
  .header { padding: 10px 17px; min-height: 62px; gap: 8px; }
  .brand { font-size: .96rem; gap: 6px; }
  .brand img { width: 33px; height: 33px; }
  .nav { gap: 11px; font-size: .8rem; }
  .nav [data-nav="/"] { display: none; }
  .nav .small { min-height: 34px; padding: 6px 8px; font-size: .76rem; }
  .nav .small span { display: none; }
  main { padding: 26px 17px 44px; }
  .footer { padding-inline: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .intro { padding-top: 0; }
  .intro h1 { margin-bottom: 10px; font-size: clamp(2.15rem, 8.8vw, 3.5rem); }
  .eyebrow { margin-bottom: 9px; }
  .lede { margin-bottom: 13px; font-size: .94rem; }
  .steps { display: none; }
  .notice { margin: 0; }
  .card { min-height: 302px; }
  .card-top { margin-bottom: 10px; }
  .amount { margin-top: 12px; }
}
