:root {
  color-scheme: light;
  --ink: #211e21;
  --muted: #5e5559;
  --plum: #582c45;
  --paper: #f9f6f0;
  --line: #ded2cd;
  --white: #fffdfa;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: var(--plum); text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
:focus-visible { outline: 3px solid #9b4bbb; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 2; inset: 6px auto auto 12px; background: white; padding: .5rem; }
.shell { width: min(100% - 4rem, 71rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, .footer-inner, .site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.masthead { min-height: 4.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-size: 1.24rem; font-weight: 780; letter-spacing: -.035em; }
.mark { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--plum); }
.mark::before { content: ""; width: 9px; height: 9px; border: 1.5px solid #fff3e7; transform: rotate(45deg); border-radius: 2px; }
.site-header nav { font-size: .88rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.language { padding: .36rem .78rem; border-radius: 100px; border: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17.5rem, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: clamp(3.25rem, 8vw, 6rem) 0 3.4rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.15rem; color: var(--plum); font: .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.signal { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #af527f; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { margin-block-end: 1.25rem; font: 400 clamp(2.85rem, 5.7vw, 5.15rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.054em; }
h1 em { color: var(--plum); font-weight: 400; }
h2 { font-size: clamp(1.22rem, 2.2vw, 1.58rem); line-height: 1.2; letter-spacing: -.035em; margin-block-end: .45rem; }
h3 { font-size: 1.18rem; margin-block-end: .35rem; }
.intro { max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.19rem); color: var(--muted); margin-block-end: 1.4rem; }
.specs, .counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.specs li { border: 1px solid var(--line); border-radius: 40px; padding: .32rem .72rem; color: var(--muted); font-size: .77rem; }
.specs strong { font-family: var(--mono); color: var(--ink); }
.specimen { background: #30232c; color: #fff5ec; padding: clamp(1.15rem, 3vw, 1.75rem); border-radius: 20px; box-shadow: 0 14px 36px #37202b22; transform: rotate(1.5deg); }
.specimen-top, .specimen-label, .specimen-row { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.specimen-top h2 { margin: 0 auto 0 .1rem; font-size: .94rem; letter-spacing: 0; }
.specimen-top .signal { background: #e0a2c2; flex: 0 0 8px; }
.sample-tag { font: .69rem var(--mono); color: #f3d4e3; border: 1px solid #775968; border-radius: 4px; padding: .19rem .36rem; }
.specimen-label { margin-block-start: 1.5rem; color: #dfc7d1; font-size: .73rem; }
.specimen-row { align-items: baseline; padding: .64rem 0; border-bottom: 1px solid #5c4655; font: .88rem/1.45 var(--mono); }
.specimen-row > :last-child { text-align: end; white-space: nowrap; }
.specimen-row small { color: #e7c8d8; font: .76rem system-ui, sans-serif; }
.specimen-row > :first-child small { display: block; }
.specimen-row .warm { color: #f7cc9d; }
.text-button { color: #ffe5f1; background: transparent; border: 0; padding: .6rem 0; margin-top: .5rem; text-decoration: underline; text-underline-offset: .24em; font-weight: 640; }
.text-button:focus-visible { outline-color: #ffc4f7; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.15rem, 3.2vw, 2rem); }
.subtle, .field-hint, .guide p { color: var(--muted); }
.subtle { margin-bottom: 1.25rem; }
label { display: block; font-size: .93rem; font-weight: 700; margin: .9rem 0 .38rem; }
input[type="text"], textarea { width: 100%; min-width: 0; border: 1px solid #c8b9bd; border-radius: 8px; padding: .7rem .78rem; background: #fffcf9; color: var(--ink); }
textarea { resize: vertical; min-height: 5.25rem; }
.code-field { font: .9rem/1.45 var(--mono); }
.field-hint { font-size: .8rem; margin: .35rem 0 .95rem; }
.file-control { border: 1px dashed #bca8b0; border-radius: 8px; padding: .6rem .78rem .75rem; background: #f6f0ed; }
.file-control label { margin-top: 0; }
input[type="file"] { max-width: 100%; font-size: .85rem; }
input[type="file"]::file-selector-button, .secondary { background: #f6edf1; color: var(--plum); border: 1px solid #d5c2ca; border-radius: 7px; padding: .45rem .72rem; font-weight: 700; cursor: pointer; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.35rem; border: 1px solid transparent; border-radius: 8px; background: var(--plum); color: #fff9f5; padding: .7rem .9rem; font-weight: 740; text-align: start; }
.primary:hover:not(:disabled) { background: #442036; }
.guide { padding: .35rem 0; }
.guide-section { border-top: 1px solid var(--line); padding: 1.1rem 0 1.35rem; }
.guide p { margin: .55rem 0; font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips code { padding: .1rem .35rem; border-radius: 4px; background: #eee6e2; font-size: .76rem; }
.download-link { display: inline-block; margin-top: .35rem; font-weight: 700; font-size: .9rem; }
.price { color: var(--plum) !important; font: 700 clamp(1.02rem, 2.4vw, 1.42rem) var(--mono) !important; overflow-wrap: anywhere; }
.price span { font-size: .75em; }
.notice { color: var(--plum); font-weight: 660; margin: .7rem 0 0; }
.notice:empty { margin: 0; }
.report { margin: 2rem 0 0; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; align-items: flex-start; }
.badge, .counts li { border-radius: 6px; background: #f2e7ed; padding: .24rem .54rem; font-size: .79rem; color: #512c40; }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.totals dl { min-width: 0; margin: 0; border: 1px solid var(--line); padding: .66rem; border-radius: 8px; }
.totals dt { font-weight: 760; }
.totals dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.totals dd strong { font-family: var(--mono); }
.counts { margin: .9rem 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; text-align: start; }
th, td { padding: .56rem .68rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: #f1e9e6; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { max-width: 16rem; overflow-wrap: anywhere; }
td:nth-child(3), td:nth-child(4) { font-family: var(--mono); }
td details { max-width: 17rem; }
td details p { margin: .25rem 0 0; overflow-wrap: anywhere; }
summary { cursor: pointer; color: var(--plum); }
.buy-form { border-top: 1px solid var(--line); padding-top: 1.15rem; max-width: 40rem; }
.invoice { max-width: 49rem; margin: 3.5rem auto 0; }
.payment { margin-bottom: 1rem; }
#payment-summary { margin: .5rem 0 .9rem; }
.payment dl { margin: 0; }
.payment dt { color: var(--muted); font-weight: 700; font-size: .88rem; margin-top: .7rem; }
.payment dd { margin: .15rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; }
.payment code { overflow-wrap: anywhere; max-width: 100%; }
.payment #amount { font-size: 1.2rem; font-weight: 760; }
.order-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.receipt { margin: 1rem 0; }
.receipt form { max-width: 34rem; }
.receipt input { margin-bottom: .45rem; }
#new-preview { display: inline-block; margin-top: 1.25rem; }
.site-footer { margin-top: 3.25rem; border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.15rem; color: var(--muted); font-size: .83rem; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .workbench { grid-template-columns: 1fr; }
  .hero { gap: 1.65rem; padding-bottom: 1.65rem; }
  .specimen { transform: none; }
  h1 { max-width: 12ch; font-size: clamp(2.35rem, 9vw, 4rem); }
  .workbench { gap: 1.5rem; }
  .guide-section:last-child { padding-bottom: 0; }
}
@media (max-width: 420px) {
  .totals { grid-template-columns: 1fr; }
  .masthead, .site-header nav { gap: .65rem; }
  .footer-inner { padding-block: .7rem; }
}
.demo-notice { color: #ffe5f1; margin: .35rem 0 0; font-size: .86rem; }
.demo-notice:empty { margin: 0; }
.example-hero { gap: clamp(1.5rem, 5vw, 4rem); }
.example-actions { display: flex; flex-wrap: wrap; gap: .85rem 1.3rem; align-items: center; }
.example-actions .primary { text-decoration: none; }
.example-summary { transform: none; }
.example-summary h2 { font-size: 1.2rem; }
.example-summary dl { margin: 1.2rem 0 .8rem; }
.example-summary dl div { padding: .6rem 0; border-top: 1px solid #685261; }
.example-summary dt { color: #e0b6ca; font: .8rem var(--mono); }
.example-summary dd { margin: .2rem 0 0; }
.example-summary dd strong { font: 600 1.7rem var(--mono); }
.example-summary p { margin: 0; color: #dfc7d1; font-size: .83rem; }
#example-invoices td { white-space: nowrap; }
#example-invoices td:nth-child(5) { font-family: var(--mono); }
.example-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 3rem; margin: 2rem 0 0; }
.example-notes section { border-top: 1px solid var(--line); padding: 1.2rem 0 0; }
