/* Wisertrack Money pages served by the Worker (sign-in and approval).
   Wisertrack brand, same tokens as the wisertrack.com design system: Dark Green, WiserTrack Green,
   Washed Green, paper page. Headings in Funnel Display, body in DM Sans, both self-hosted
   (public/ui/*.woff2, SIL Open Font License). No third-party fonts, scripts or requests. */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/ui/funneldisplay-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/ui/dmsans-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #0e2a1f;
  --muted: #4a5d54;
  --line: #d6dbd4;
  --brand: #0f5f3f;
  --brand-dark: #0a4a31;
  --forest: #032c1d;
  --accent: #6ae25d;
  --mint: #e3efe9;
  --wash: #d4f6d0;
  --danger: #a3261f;
  --warn-bg: #fff3d6;
  --warn-fg: #6b4a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.aside { display: none; }
main { width: 100%; max-width: 26rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; align-self: center; }
.lockup { display: inline-flex; flex-direction: column; align-items: flex-end; margin: 0 0 2rem; }
.lockup img { height: 28px; width: auto; display: block; }
.lockup span { color: var(--brand); font-weight: 800; font-size: 1.35rem; line-height: 1; margin-top: 4px; letter-spacing: -0.01em; }
h1, h2, .lockup span { font-family: 'Funnel Display', 'DM Sans', system-ui, sans-serif; }
h1 { font-weight: 600; font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: 1.5rem; margin: 0 0 0.4rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
[hidden] { display: none !important; }
label { display: block; font-size: 0.95rem; font-weight: 500; margin: 1rem 0 0.35rem; }
input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
input.code { letter-spacing: 0.3em; font-size: 1.25rem; text-align: center; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button {
  display: block;
  width: 100%;
  font: inherit;
  font-family: 'Funnel Display', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  margin-top: 1.1rem;
}
button:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.secondary:hover:not(:disabled) { background: var(--mint); border-color: var(--line); }
button.link {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
}
button.link:hover:not(:disabled) { background: none; color: var(--ink); }
button:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.95rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
dl { margin: 1rem 0; }
dt { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }
dd.host { font-weight: 700; }
ul { margin: 0; padding-left: 1.2rem; }
.buttons { display: flex; gap: 0.75rem; }
.buttons button { flex: 1; }
.note { color: var(--muted); font-size: 0.92rem; }
.notice { background: var(--wash); border-radius: 10px; padding: 0.7rem 0.85rem; font-size: 0.95rem; }
.error { color: var(--danger); font-weight: 500; }
.warning { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 0.7rem 0.85rem; font-weight: 600; }
footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
footer a, .note a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--brand); }

@media (min-width: 900px) {
  .shell { grid-template-columns: 1fr 1fr; }
  .aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--forest);
    color: #fff;
    padding: 3rem;
  }
  .aside .lockup { align-self: flex-start; margin: 0; }
  .aside .lockup span { color: var(--accent); }
  .aside h2 { color: var(--accent); font-size: 2.1rem; line-height: 1.2; max-width: 22rem; margin: 0 0 1rem; }
  .aside p { color: #d4e2da; max-width: 24rem; margin: 0 0 1.25rem; }
  .aside ul { list-style: none; padding: 0; }
  .aside li { border-left: 3px solid var(--accent); padding-left: 0.75rem; margin: 0.6rem 0; font-size: 0.95rem; color: #eef5f0; }
  .aside small { color: #9db8a9; }
  main { padding: 3rem 2rem; }
  .only-mobile { display: none; }
}
