/* Phase 160: account.mnemecho.com. The site's palette (mnemecho-api site.css). */
:root {
  --bg: #f4f5f8; --surface: #ffffff; --ink: #1b1e24; --muted: #555d6b;
  --line: #dde1e8; --brand: #2c69a7; --on-brand: #ffffff; --fail: #ca252b; --ok: #1f7a4d; --warn: #9a5b00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a; --surface: #1c1f25; --ink: #e8e9ec; --muted: #a3aab6;
    --line: #2a2f3a; --brand: #78a9e6; --on-brand: #0c1624; --fail: #e5484d; --ok: #4cc38a; --warn: #e0a849;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161a; --surface: #1c1f25; --ink: #e8e9ec; --muted: #a3aab6;
  --line: #2a2f3a; --brand: #78a9e6; --on-brand: #0c1624; --fail: #e5484d; --ok: #4cc38a; --warn: #e0a849;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 48px 16px 24px;
}
main {
  width: 100%; max-width: 28rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 32px;
}
.mark { margin: 0 0 20px; line-height: 0; }
.mark img { height: 32px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: inline; }
}
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1rem; margin: 24px 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--brand); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
form { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; font-size: 0.95rem; }
input {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
input[name="code"] { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: 0.3em; }
button, .button {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brand); color: var(--on-brand); border: 0; border-radius: 8px;
  padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.note { color: var(--fail); font-weight: 600; }
.small { color: var(--muted); font-size: 0.9rem; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
footer { margin-top: 20px; color: var(--muted); font-size: 0.85rem; text-align: center; }
footer a { color: var(--muted); }
form.inline { align-items: flex-start; }
/* Phase 160c. Sign in with Google: Google's own G on a light button, then "or". */
.button.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; gap: 10px; width: 100%; box-sizing: border-box; }
.button.google img { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; margin: 16px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.note.calm { color: var(--ink); font-weight: 500; }
/* Phase 161. The keys page. */
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
code.key { display: block; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
pre { font: 0.8rem/1.5 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; overflow-x: auto; margin: 0 0 12px; }
.made { border: 2px solid var(--brand); border-radius: 10px; padding: 4px 14px 2px; margin: 0 0 16px; }
.made h2 { margin-top: 8px; }
.offer { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); }
ul.keys { list-style: none; padding: 0; }
.key-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line); }
.key-row:last-child { border-bottom: 1px solid var(--line); }
.key-row > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.key-row form { margin: 0; }

/* Phase 78b. The plan page's two options. */
ul.plans { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.plans .button { width: 100%; box-sizing: border-box; text-align: center; }

/* Phase 206 (P2, S2, W1). The plan page: what opens, free against full, the two prices,
   the plan in a box, and the wait after paying. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.ticks { list-style: none; padding: 0; display: grid; gap: 4px; }
ul.ticks li::before { content: "\2713"; color: var(--ok); font-weight: 700; margin-right: 8px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 4px 0 16px; }
table.cmp th, table.cmp td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { font-size: 0.85rem; color: var(--muted); }
table.cmp tbody th { font-weight: 500; }
table.cmp td.y { color: var(--ok); font-weight: 600; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
@media (max-width: 360px) { .price { grid-template-columns: 1fr; } }
.pcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; min-width: 0; }
.pcard.best { border: 2px solid var(--brand); }
.pcard .amt { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard .per { color: var(--muted); font-size: 0.85rem; }
.pcard .button { margin-top: 10px; padding-left: 8px; padding-right: 8px; }
.flag { position: absolute; top: -11px; left: 10px; background: var(--brand); color: var(--on-brand); font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
dl.status { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0 16px; }
dl.status dt { color: var(--muted); font-size: 0.9rem; }
dl.status dd { margin: 0; font-weight: 600; }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--brand); color: var(--brand); vertical-align: 4px; }
.button.wide { width: 100%; }
p.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
p.buttons .button { flex: 1 1 auto; }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); margin: 8px 0 14px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
