/* Contact Manager Cloud — the signup/ordering site (#148).
   Deliberately plain: it is served by the store itself, so it must stay small
   enough to read in one sitting and must not need a build step. */

:root {
  color-scheme: light dark;
  /* Fyrhaven palette: two neutrals, one signal colour, one light. */
  --ink: #0E2233;
  --paper: #F7F9FA;
  --line: #d7dae0;
  --muted: #5B7382;
  --acc: #0E2233;
  --signal: #C8453B;
  --beam: #F2B441;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: #111; }
header { display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header nav { display: flex; gap: 8px; flex-wrap: wrap; }
main { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
form { display: grid; gap: 12px; max-width: 380px; margin-top: 12px; }
label { display: grid; gap: 4px; font-size: .92rem; }
input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; cursor: pointer; }
button[type="submit"], button[data-action="token"] { background: var(--acc); color: #fff; border-color: var(--acc); }
button.danger { color: #b91c1c; border-color: #f0b4b4; }
button:disabled { opacity: .55; cursor: progress; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 20px; }
dt { color: var(--muted); }
dd { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { min-height: 1.4em; color: var(--muted); }
.status.error { color: #b91c1c; }
pre { background: #f4f5f7; padding: 12px; border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
footer { max-width: 720px; margin: 0 auto; padding: 0 20px 40px; font-size: .88rem; }
@media (prefers-color-scheme: dark) {
  body { background: #14161a; color: #eef1f5; }
  button { background: #1d2027; color: inherit; border-color: #333a45; }
  pre { background: #1b1e24; }
  :root { --line: #2c323c; --muted: #a2a9b4; }
}
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
code { background: #f4f5f7; padding: 1px 5px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { code { background: #1b1e24; } }

.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.plan .price { font-size: 1.25rem; font-weight: 600; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; max-width: none; }
.grid label { font-size: .88rem; }
.grid button { grid-column: 1 / -1; justify-self: start; }

header strong { letter-spacing: -0.2px; }
header strong::before {
  content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 8px;
  vertical-align: -4px; border-radius: 5px;
  background: var(--ink) url('/favicon.svg') center / cover no-repeat;
}
footer a { color: var(--acc); }
