/* PLACEHOLDER STYLES — functional only. Mharck's design replaces this file.
   The logic never reads styles; it only sets body[data-state] and toggles
   [hidden]. Keep the [hidden] rule and the state colours' meaning. */

:root {
  --ink: #1c1c1a; --muted: #5f5f5a; --line: #e2e1dc; --bg: #f7f6f2; --card: #ffffff;
  --accent: #1c1c1a;
  --fresh: #1e7a3c; --last: #a35f00; --expired: #b3261e; --purple: #6b3fa0; --grey: #6e6e6e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.placeholder-flag { background: #fff3c4; color: #5a4a00; font-size: 12px; text-align: center; padding: 6px 16px; }
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 12px; text-wrap: balance; }
h2 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 14px 0; }
.price { font-size: 22px; font-weight: 700; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
       padding: 13px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn.block { display: block; width: 100%; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn:focus-visible, input:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email] { width: 100%; padding: 12px; font: inherit; border: 1px solid #c9c8c2; border-radius: 8px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.notice { border-left: 4px solid var(--ink); background: #fff; padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.notice.warn { border-color: var(--last); }
.notice.bad { border-color: var(--expired); }
.pay-methods { padding-left: 18px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.list { display: grid; gap: 12px; }

/* The link-page banner. The colour IS the state. */
.banner { border-radius: 10px; padding: 16px 18px; color: #fff; background: var(--grey); margin: 14px 0; }
.banner .big { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
body[data-state="fresh"]    .banner { background: var(--fresh); }
body[data-state="last"]     .banner { background: var(--last); }
body[data-state="expired"]  .banner { background: var(--expired); }
body[data-state="reopened"] .banner,
body[data-state="final"]    .banner { background: var(--purple); }
.inapp { background: #111; color: #fff; border-radius: 10px; padding: 16px 18px; margin: 14px 0; }
.file { display: grid; gap: 8px; }
.file-status { font-size: 13px; color: var(--muted); min-height: 1em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.spaced { margin-top: 24px; }
.tight { margin-top: 10px; }
