/* Colours mirror the app's Material 3 scheme (androidApp ui/theme/Theme.kt). */
:root {
  --primary: #1565c0;
  --on-primary: #ffffff;
  --primary-container: #d3e3ff;
  --on-primary-container: #001b3f;
  --accent: #ffb300;
  --bg: #fdfcff;
  --surface: #f1f3f9;
  --text: #1a1c1e;
  --text-muted: #44474e;
  --border: #c4c6d0;
  --warn-bg: #fff3d6;
  --warn-text: #4a3200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #a4c8ff;
    --on-primary: #00315f;
    --primary-container: #1b3a64;
    --on-primary-container: #d3e3ff;
    --bg: #111318;
    --surface: #1d2024;
    --text: #e2e2e6;
    --text-muted: #c4c6d0;
    --border: #44474e;
    --warn-bg: #4a3200;
    --warn-text: #ffdea3;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* --- header / footer --- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.lang {
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

/* --- content --- */

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero {
  padding: 1.5rem 0 1rem;
}

.button {
  display: inline-block;
  margin: 0.75rem 0;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.1);
}

/* The web app as the second way in (join page): outlined, below the store button. */
.button-secondary {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--surface);
}

.features strong {
  display: block;
  margin-bottom: 0.2rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--warn-bg);
  color: var(--warn-text);
}

.code-box {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--primary-container);
  color: var(--on-primary-container);
  text-align: center;
}

.code-box .code {
  display: block;
  margin-top: 0.25rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

/* Contact form */
.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.form input,
.form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
}

.form textarea {
  min-height: 10rem;
  resize: vertical;
}

.form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}

.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
