/*
 * The public pages' one stylesheet.
 *
 * ⚠️ The palette is a COPY of `apps/web/src/styles.css`, which is itself
 * deliberately the same palette as `apps/mobile/src/theme.ts`. Three copies is
 * one more than that file bargained for, and the reason is that these pages
 * have no build step (decision 0053 §3) — there is nothing here that could
 * import a token file, so the choice was a copy or a bundler. `the_palette_
 * matches_the_console` in `crates/api/src/site.rs` is the tripwire that keeps
 * the copy honest; it is the same shape as `vite_base_matches_the_mount`.
 *
 * Nothing here is decorative for its own sake. A person arrives at these pages
 * from a store listing or from an app they are trying to leave, on a phone, and
 * the whole job is that the words are readable and the one button is findable.
 */
:root {
  --bg: #11131a;
  --surface: #1a1d27;
  --sunken: #0c0e14;
  --line: #2a2f3d;
  --text: #f5f6f8;
  --text-dim: #8a91a3;
  --value: #e6e9f0;
  --accent: #5ee08a;
  --accent-ink: #0c2415;
  --danger: #ff9d9d;

  color-scheme: dark;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 0.5rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

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

.lede { color: var(--value); font-size: 1.05rem; }
.dim { color: var(--text-dim); font-size: 0.9rem; }

/* A statement of fact the reader is meant to stop on: the disclosure on the
   deletion page, the not-released notice on the front. Not a call to action —
   there is nothing here to act on. */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.4rem;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.note p:last-child { margin-bottom: 0; }

form { margin: 1.5rem 0 0; }
label { display: block; margin-bottom: 1rem; }
label span { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.3rem; }

input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.6rem 0.7rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--danger);
  color: #2a0d0d;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.65rem 1.1rem;
}
button:disabled { cursor: default; opacity: 0.5; }

/* ⚠️ `role="alert"` in the markup, so a screen reader is told the outcome. A
   person who has just pressed this button and heard nothing has no way to know
   whether their account still exists. */
.outcome { margin-top: 1rem; min-height: 1.5rem; }
.outcome.bad { color: var(--danger); }
.outcome.good { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
