:root {
  --ink: #1d2433; --muted: #6b7280; --line: #e5e7eb; --bg: #f7f7f5;
  --accent: #f2a900; --accent-ink: #1d2433; --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 2rem; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding-inline: 1.25rem; }
.muted { color: var(--muted); font-size: .9em; }
.center { text-align: center; }
.prewrap { white-space: pre-wrap; }

.site-header { background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.4rem; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
nav a { text-decoration: none; margin-left: 1.25rem; opacity: .9; }
nav a:hover { opacity: 1; text-decoration: underline; }
.pill { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 .5em; font-size: .8em; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0; color: var(--muted); font-size: .9rem; }

.hero { padding: 1rem 0 2rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 .5rem; letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; text-decoration: none; transition: transform .1s, box-shadow .1s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card h2 { font-size: 1.15rem; margin: 1rem 0 .25rem; }
.card p { margin: .25rem 0; }
.price { font-weight: 700; }
.price small { font-weight: 400; color: var(--muted); }

.sign-stage { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 1rem;
  background: repeating-linear-gradient(45deg, #eceae4, #eceae4 10px, #e6e3dc 10px, #e6e3dc 20px); border-radius: 8px; }
.product .sign-stage { min-height: 320px; }
.sign-preview { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: .4rem; overflow: hidden; transition: width .15s, height .15s; }
.sign-preview span { font-weight: 700; line-height: 1.15; font-size: clamp(.7rem, 2.2vw, 1.4rem); word-break: break-word; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product h1 { margin-top: 0; }
.specs { padding-left: 1.1rem; line-height: 1.7; }
@media (max-width: 800px) { .product, .checkout { grid-template-columns: 1fr !important; } }

.form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; flex: 1; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem;
  border: 1px solid #cfd3da; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.error { color: var(--err); font-weight: 400; font-size: .85rem; margin-top: .25rem; }
.error.box { border: 1px solid var(--err); background: #fef2f2; padding: .75rem; border-radius: 8px; margin-bottom: 1rem; }
.price-out { font-size: 1.15rem; font-weight: 700; min-height: 1.5em; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: .75rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn-secondary { background: #fff; border: 1px solid var(--line); }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: .5rem; }
.actions { display: flex; gap: .75rem; justify-content: flex-end; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; background: #fafafa; }
.num { text-align: right; white-space: nowrap; }
.totals { max-width: 360px; margin: 1rem 0 1.5rem auto; }
.totals td:last-child { text-align: right; }
.totals .grand td { font-weight: 800; font-size: 1.05rem; border-bottom: 0; }

.checkout { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; align-items: start; }
.checkout aside h2 { margin-top: 0; }

.notice { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: 10px; padding: 1rem 1.5rem; margin-bottom: 2rem; }
.notice h1 { margin: .25rem 0 .5rem; font-size: 1.5rem; }
.notice.success { border-left-color: var(--ok); }
.notice.warning { border-left-color: var(--warn); }
.status { font-size: .75rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: #eee; vertical-align: middle; }
.status-paid, .status-shipped { background: #dcfce7; color: var(--ok); }
.status-pending, .status-open { background: #fef3c7; color: var(--warn); }
.status-failed, .status-canceled, .status-cancelled, .status-expired { background: #fee2e2; color: var(--err); }

.mock-psp { max-width: 420px; margin: 2rem auto; background: #fff; border: 2px dashed #a78bfa; border-radius: 14px; padding: 2rem; text-align: center; }
.mock-psp .badge { display: inline-block; background: #ede9fe; color: #5b21b6; font-size: .75rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; }
.mock-psp .amount { font-size: 2rem; font-weight: 800; }
.mock-psp form { display: flex; flex-direction: column; gap: .6rem; }
