/* Shared styling for the public pages that ship inside the Flutter web build.
   Kept as a plain stylesheet so the store/legal pages render instantly without
   booting main.dart.js. */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --green: #00c853;
  --green-bright: #00e676;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

header.site {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: #fff;
}

h3 { font-size: 16px; margin: 24px 0 8px; color: #fff; }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--green-bright); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}

.card.warn { border-color: #4a2020; background: #1a0f0f; }

.note { color: var(--muted); font-size: 14px; }

.todo {
  background: #2a2200;
  border: 1px solid #5c4a00;
  color: #ffd54f;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #001b0a;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  border: 0;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { background: var(--green-bright); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

label { display: block; font-size: 14px; color: var(--muted); margin: 18px 0 6px; }

input[type=password], input[type=text] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1e1e1e;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

input[type=password]:focus, input[type=text]:focus { outline: 2px solid var(--green); outline-offset: -1px; }

.msg { border-radius: 10px; padding: 13px 16px; margin: 20px 0; font-size: 15px; }
.msg.error { background: #2a1212; border: 1px solid #5c2020; color: #ff8a80; }
.msg.ok { background: #0f2417; border: 1px solid #1b5e20; color: var(--green-bright); }

.big-icon { font-size: 56px; line-height: 1; margin-bottom: 12px; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

footer.site a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer.site a:hover { color: var(--green-bright); }

.center { text-align: center; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: #fff; font-weight: 600; }

/* "Show passwords" toggle on the reset form. */
label.check {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 0; cursor: pointer; user-select: none;
}
label.check input { width: auto; margin: 0; accent-color: var(--green); }
