/* Rennplan shop — the post-purchase and back-office pages.
 *
 * Hand-written rather than Tailwind: this is four pages, and a buyer arriving from the landing page
 * should not notice they have crossed into a different application. The tokens are copied from
 * landing/src/app.css — change them there first. That file is the source of truth for the web; the
 * desktop app runs a different scheme entirely (see its header for why).
 */
:root {
  --bg: #e4eaf2;
  --surface: #ffffff;
  --line: #9eaec2;
  --ink: #141e36;
  --muted: #46536a;
  --accent: #006999;
  --accent-soft: #0b5580;
  --on-accent: #ffffff;
  --owned: #1c5f2e;
  --need: #c21d26;

  /* Brand stripes only — the hero flourish, never type. */
  --stripe-blue: #008ac9;
  --stripe-violet: #582c83;
  --stripe-red: #e7222e;

  /* Fill-only. A hue is the fill or the ink, never both: the type colors above are dark and
     low-chroma, and a wash made from them comes out olive. Tinted surfaces take an `ink` label. */
  --owned-fill: #2e9e4f;
  --need-fill: #e7222e;

  --sans: -apple-system, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.5rem;
}
header.site .inner,
main,
footer.site .inner {
  margin: 0 auto;
  max-width: 48rem;
}
header.site .inner { display: flex; align-items: center; justify-content: space-between; }
header.site .brand { font-weight: 700; text-decoration: none; color: var(--ink); }

main { padding: 3rem 1.5rem; }

/* The M stripes — the one decorative flourish, once per surface (design philosophy §3). Three equal
   bands; at the old 8px the middle one disappeared. */
.wave {
  height: 16px; width: 10rem; border-radius: 3px; overflow: hidden; margin-bottom: 1.5rem;
  background: linear-gradient(
    var(--stripe-blue) 0 33.34%, var(--stripe-violet) 33.34% 66.67%, var(--stripe-red) 66.67% 100%);
}

h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0.25rem; cursor: pointer;
  padding: 0.75rem 1.25rem; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 0.75rem 1rem; font: inherit;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0.25rem;
}
label { display: block; font-size: 0.875rem; margin-bottom: 0.35rem; }

form.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
form.row > .grow { flex: 1 1 16rem; }

/* A 168-character key. It wraps rather than scrolls so the whole thing is visible at once. */
.key {
  margin: 0.75rem 0 0;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  white-space: pre-wrap;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.mono { font-family: ui-monospace, Consolas, monospace; }

.badge { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 0.2rem; }
.badge.unsent { background: color-mix(in oklab, var(--need-fill) 45%, transparent); color: var(--ink); }
.badge.sent { background: color-mix(in oklab, var(--owned-fill) 45%, transparent); color: var(--ink); }

.notice { border-left: 3px solid var(--accent); padding-left: 0.9rem; }
.alert { border-left: 3px solid var(--need); padding-left: 0.9rem; }

footer.site { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 1.5rem; background: var(--surface); }
footer.site .inner { text-align: center; color: var(--muted); font-size: 0.875rem; }
