/* Pullup Store invoice + terms pages. Same tokens as store.css (dark, Pullup lime,
   Plus Jakarta Sans); calmer, because this is where money moves. Prints as a
   plain white A4 invoice. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/store/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0d0e;
  --bg-2: #151517;
  --bg-3: #1b1b1e;
  --ink: #f3f3ef;
  --ink-2: rgba(243, 243, 239, 0.82);
  --muted: #a0a09a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --lime: #a3e635;
  --lime-hover: #b8f24c;
  --on-lime: #141609;
  --amber: #fbbf24;
  --danger: #ff9d8f;
  --r-pill: 999px;
  --r-panel: 22px;
  --r-field: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lime { color: var(--lime); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }

/* Bar */
.ibar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.ibar__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ibar__brand img { width: 92px; }
.ibar__brand span { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  background: var(--lime); color: var(--on-lime);
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}
.ibtn:hover { background: var(--lime-hover); }
.ibtn:active { transform: scale(0.98); }
.ibtn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.ibtn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ibtn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.ibtn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ibtn--wide { width: 100%; }

/* Layout */
.inv {
  flex: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) 16px 64px;
  display: grid; gap: 18px; align-content: start;
}
.inv__loading { color: var(--muted); text-align: center; padding: 64px 0; }

.hero { display: grid; gap: 10px; padding: 8px 0 6px; }
.hero__title { font-size: clamp(34px, 7vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.hero__text { color: var(--ink-2); max-width: 56ch; }
.hero[data-tone="wait"] .eyebrow { color: var(--amber); }
.hero[data-tone="bad"] .eyebrow { color: var(--danger); }

/* Progress */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.track li {
  position: relative; display: grid; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding-top: 14px; border-top: 3px solid var(--line);
}
.track__dot { display: none; }
.track li.is-done { color: var(--ink); border-top-color: var(--lime); }
.track li.is-now { color: var(--ink); border-top-color: var(--amber); }

/* Panels */
.panel {
  display: grid; gap: 16px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.panel--quiet { background: transparent; }
.panel__head { display: flex; gap: 14px; align-items: flex-start; }
.step {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 15px;
}
.panel__title { font-size: clamp(28px, 6vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.panel__h { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.panel__sub, .panel__text { color: var(--ink-2); font-size: 15px; }
.panel__sub { margin-top: 4px; }
.panel__fine { color: var(--muted); font-size: 13px; }

/* Pay */
.paygrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .paygrid:has(.qr:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.qr { display: grid; gap: 10px; }
.qr img { width: 100%; max-width: 260px; border-radius: 16px; background: #fff; padding: 10px; }
.qr figcaption { font-size: 13px; color: var(--muted); }
.qr figcaption strong { color: var(--ink); }
.bank { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bank__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.bank__row:first-child { border-top: 0; }
.bank__row dt { font-size: 13px; color: var(--muted); }
.bank__row dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; overflow-wrap: anywhere; }
.bank__big { font-size: 19px; letter-spacing: -0.01em; }
.copy {
  flex: none; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  border: 0; background: rgba(163, 230, 53, 0.14); color: var(--lime);
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.copy:hover { background: rgba(163, 230, 53, 0.24); }
.copy.is-copied { background: var(--lime); color: var(--on-lime); }
.rules { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.rules li { position: relative; padding-left: 18px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* Upload */
.alert { padding: 12px 14px; border-radius: 14px; background: rgba(255, 157, 143, 0.1); border: 1px solid rgba(255, 157, 143, 0.35); color: var(--danger); font-size: 14.5px; font-weight: 600; }
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 28px 16px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); background: var(--bg-3);
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--lime); background: rgba(163, 230, 53, 0.06); }
.drop:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__icon { color: var(--lime); }
.drop__text { font-size: 15px; }
.drop__hint { font-size: 12.5px; color: var(--muted); }
.preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.preview__name { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.bar { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--line); }
.bar::-webkit-progress-value { background: var(--lime); }
.bar::-moz-progress-bar { background: var(--lime); }
.msg { font-size: 14.5px; min-height: 1px; }
.msg.is-bad { color: var(--danger); font-weight: 600; }
.msg.is-good { color: var(--lime); font-weight: 700; }

/* The invoice paper */
.paper {
  display: grid; gap: 22px;
  padding: clamp(20px, 5vw, 36px);
  background: var(--paper, #f4f4ef); color: #121212;
  border-radius: var(--r-panel);
}
.paper__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.paper__logo { width: 104px; filter: brightness(0); margin-bottom: 10px; }
.paper__from p { font-size: 13px; line-height: 1.6; color: #3d3d3a; }
.paper__from strong { color: #121212; }
.paper__id { text-align: right; display: grid; justify-items: end; gap: 4px; align-content: start; }
.paper__kind { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #6b6b66; }
.paper__ref { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stamp {
  display: inline-block; margin-top: 4px; padding: 5px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border: 2px solid currentColor; transform: rotate(-3deg);
}
.stamp[data-tone="due"] { color: #b42318; }
.stamp[data-tone="wait"] { color: #b54708; }
.stamp[data-tone="paid"] { color: #3f7d0c; }
.stamp[data-tone="off"] { color: #6b6b66; }
.paper__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; padding: 14px 0; border-top: 1px solid #d8d8d0; border-bottom: 1px solid #d8d8d0; }
.paper__meta dt { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b66; }
.paper__meta dd { font-size: 14px; font-weight: 600; }
.paper__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; font-size: 14px; line-height: 1.6; }
.paper__label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b66; margin-bottom: 4px; }
.lines-wrap { overflow-x: auto; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lines th, .lines td { padding: 10px 6px; text-align: left; vertical-align: top; }
.lines thead th { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b66; border-bottom: 1.5px solid #121212; }
.lines tbody td { border-bottom: 1px solid #d8d8d0; }
.lines tfoot th { font-weight: 600; color: #3d3d3a; text-align: right; }
.lines tfoot td { font-weight: 700; }
.lines .num { text-align: right; white-space: nowrap; }
.lines__sub { display: block; font-size: 12.5px; color: #6b6b66; margin-top: 2px; }
.lines__total th, .lines__total td { font-size: 17px; font-weight: 800; color: #121212; border-top: 1.5px solid #121212; }
.lines__paid th, .lines__paid td { color: #3f7d0c; }
.paper__notes { display: grid; gap: 8px; font-size: 12.5px; color: #4a4a46; }
.paper__badge { font-weight: 700; color: #121212; }

/* Saved orders on this device */
.saved { display: grid; gap: 8px; }
.saved a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); text-decoration: none; font-weight: 700; }
.saved a span { color: var(--muted); font-weight: 600; font-size: 14px; }

.keep__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ifoot { padding: 24px 16px 32px; text-align: center; color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; border-top: 1px solid var(--line); }

/* Terms page */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.doc .doc__lead { color: var(--ink-2); margin-top: 12px; }
.doc .doc__meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.doc .doc__key { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 22px; }
.doc .doc__key li { position: relative; padding-left: 18px; font-weight: 600; }
.doc .doc__key li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.doc h2 { font-size: 19px; font-weight: 800; margin-top: 30px; margin-bottom: 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ol.doc__list { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }

@media (max-width: 520px) {
  .bank__row { grid-template-columns: 1fr; gap: 4px; }
  .track li { font-size: 11px; }
  .paper__id { text-align: left; justify-items: start; }
  .lines tfoot th { text-align: left; }
}

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

/* Print / Save as PDF: the invoice alone, black on white. */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; color: #000; }
  .ibar, .ifoot, .hero, .panel, .inv__loading { display: none !important; }
  .inv { max-width: none; padding: 0; }
  .paper { display: grid !important; padding: 0; border-radius: 0; background: #fff; }
  .stamp { transform: none; }
}
.lines thead th:first-child { width: 58%; }
/* Name check: the bank app shows the account's registered name, which differs from the PLT's. */
.namecheck {
  position: relative; overflow: hidden; display: grid; gap: 14px;
  padding: 16px; border-radius: 18px;
  border: 1px solid rgba(163, 230, 53, 0.42);
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.13), rgba(163, 230, 53, 0.02) 55%), var(--bg-3);
}
.namecheck::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-100%); animation: namecheck-sheen 3.2s var(--ease) 0.6s 2;
}
@keyframes namecheck-sheen { to { transform: translateX(100%); } }
.namecheck__top { display: flex; gap: 12px; align-items: center; }
.namecheck__top .eyebrow { margin: 0 0 2px; }
.namecheck__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.namecheck__h { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.namecheck__eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.namecheck__name { height: 100%; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.28); }
.namecheck__name small { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.namecheck__name b { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.namecheck__equals { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-size: 20px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.12); }
@media (max-width: 520px) {
  .namecheck__eq { grid-template-columns: 1fr; }
  .namecheck__equals { justify-self: center; margin: -4px 0; }
}
@media (prefers-reduced-motion: reduce) { .namecheck::after { animation: none; } }
/* Find my order */
.find__form { display: grid; gap: 16px; margin-top: 4px; }
.find__field { display: grid; gap: 6px; }
.find__label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); }
.find__input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-field);
  background: var(--bg-3); color: var(--ink); font-size: 16px; font-weight: 600;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.find__input::placeholder { color: rgba(243, 243, 239, 0.32); font-weight: 500; }
.find__input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.16); }
.find__input[aria-invalid="true"] { border-color: var(--danger); }
#ref { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
#ref::placeholder { text-transform: none; }
.find__hint, .find__small { font-size: 13px; color: var(--muted); }
.find__err { font-size: 13.5px; font-weight: 600; color: var(--danger); }
.find__err:empty { display: none; }
.find__sent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 18px; border: 1px solid rgba(163, 230, 53, 0.42); background: linear-gradient(135deg, rgba(163, 230, 53, 0.13), rgba(163, 230, 53, 0.02) 55%), var(--bg-3); }
.find__sent > div { display: grid; gap: 10px; justify-items: start; }
.find__tick { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.find__help { text-align: center; }
.find__help a, .find__small a { color: var(--ink); }
