:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f24;
  --muted: #5d6470;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --error: #b3261e;
  --border: #d9dde3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card: #1e2127;
    --text: #e8eaed;
    --muted: #9aa3b0;
    --accent: #6ea0ff;
    --accent-text: #0b1b36;
    --error: #ff7b72;
    --border: #2e333b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, main, footer {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.org { color: var(--muted); }

main { flex: 1; padding-bottom: 32px; }

h1 { font-size: 1.6rem; margin: 16px 0 8px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
p  { margin: 8px 0; }

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

label { display: block; font-weight: 600; margin-bottom: 6px; }

input[type=text], input[type=tel] {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

button, .store {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

.stores { display: flex; gap: 12px; }
.stores .store { margin-top: 0; background: var(--card); color: var(--text); border: 1px solid var(--border); }

.steps ol { padding-left: 22px; }
.steps li { margin: 6px 0; }

.fine  { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--error); font-weight: 600; }
.mono  { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

.dev { border-style: dashed; }

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
footer a { color: inherit; }
