:root {
  color-scheme: light;
  --ink: #19152a;
  --muted: #605a70;
  --accent: #6439bb;
  --accent-dark: #49248e;
  --paper: #f6f4fa;
  --line: #ded9e8;
  --white: #fff;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, .button, .primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .62rem 1rem; border: 1px solid var(--line); border-radius: .55rem;
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 650; cursor: pointer;
}
button:hover, .button:hover { border-color: var(--accent); color: var(--accent-dark); }
.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #a481ea; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.45rem, 5.5vw, 4.3rem); line-height: 1.05; letter-spacing: -.065em; }
h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 1rem; }
.bar { min-height: 4.35rem; padding: .7rem max(1rem, calc((100% - 1260px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.wordmark { color: var(--ink); font-size: 1.35rem; letter-spacing: -.07em; font-weight: 780; text-decoration: none; }
.wordmark span { color: var(--accent); }
.bar-actions, .actions, .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.quiet { color: var(--muted); background: transparent; border: 0; padding: .25rem .4rem; font-size: .875rem; }
.wallet-toggle { font-size: .875rem; gap: .6rem; }
.wallet-toggle strong { color: var(--accent-dark); }
.layout { max-width: 1300px; margin: auto; padding: 2.8rem 1.25rem 5rem; }
.intro { display: flex; justify-content: space-between; gap: 1.4rem; align-items: end; margin: 0 0 2rem; }
.intro p { color: var(--muted); margin-top: .65rem; }
.eyebrow { display: block; margin-bottom: .6rem; color: var(--accent-dark); font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.price { display: grid; text-align: right; color: var(--muted); white-space: nowrap; }
.price strong { color: var(--ink); font-size: 1.45rem; letter-spacing: -.04em; }
.price span, .optional, .hint, .submit-row span { font-size: .875rem; color: var(--muted); font-weight: 400; }
.columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.15rem; align-items: start; }
.side { display: grid; gap: 1.15rem; }
.panel { min-width: 0; padding: clamp(1rem, 2.7vw, 1.8rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.panel-heading p, .sign-in p { margin-top: .35rem; color: var(--muted); overflow-wrap: anywhere; }
.sign-in { max-width: 37rem; }
.sign-in .primary { margin-top: 1.25rem; }
form { display: grid; gap: 1rem; }
label { display: block; font-size: .95rem; font-weight: 650; }
label span { float: right; }
input, select, textarea { display: block; width: 100%; background: #fff; color: var(--ink); margin-top: .35rem; border: 1px solid #cac3d8; border-radius: .48rem; padding: .6rem .65rem; font-weight: 400; }
textarea { resize: vertical; }
fieldset { margin: 0; border: 1px solid var(--line); padding: .95rem; border-radius: .65rem; min-width: 0; display: grid; gap: .85rem; }
legend { font-weight: 700; padding: 0 .35rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
#provider-fields { display: grid; gap: .75rem; }
.submit-row { justify-content: space-between; }
.notice { margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid #d7c4fc; background: #f0e8ff; border-radius: .6rem; overflow-wrap: anywhere; }
.notice.error { border-color: #e9b0ad; background: #fff1ef; color: #982b27; }
.wallet-panel { margin-bottom: 1.15rem; }
.wallet-activity { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
#mollie-status { margin-top: .7rem; }
.muted, .list { color: var(--muted); }
.list { list-style: none; padding: 0; margin: .4rem 0 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); padding: .55rem 0; font-size: .9rem; }
.list li:last-child { border-bottom: 0; }
.history button { width: 100%; text-align: left; justify-content: space-between; gap: .6rem; overflow-wrap: anywhere; }
.history button[aria-current="true"] { border-color: var(--accent); background: #f3edfe; }
#more { margin-top: .8rem; }
.state { display: inline-block; margin-bottom: .65rem; color: var(--accent-dark); font-size: .875rem; font-weight: 700; }
.hash { overflow-wrap: anywhere; }
details { margin-top: .9rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 680; padding: .65rem 0; }
pre { background: #f5f2fa; color: var(--ink); padding: .8rem; border-radius: .5rem; margin: 0; max-height: 21rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.65 ui-monospace, "Cascadia Mono", monospace; }
.review-actions { margin-top: 1rem; }
.notion label, .notion .actions { margin-top: .7rem; }
.auth { width: min(100% - 2rem, 32rem); margin: 3rem auto; }
.auth .panel { margin-top: 1rem; }
.auth h1 { font-size: 2rem; letter-spacing: -.04em; }
.auth p, .auth form { margin-top: .9rem; }
@media (max-width: 870px) { .columns { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .layout { padding-top: 1.65rem; }
  .intro { align-items: start; }
  .bar { gap: .3rem; }
  .bar-actions { gap: .25rem; justify-content: end; }
  .bar-actions > a { display: none; }
  .wallet-activity, .pair { grid-template-columns: 1fr; }
}
