/* Ludora site: the app's "Jewel night" palette, with a light reading mode. */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1b1a33;
  --muted: #5d5f80;
  --line: #e4e1d6;
  --accent: #a8730a;
  --link: #1646a3;
  --danger: #b3203a;
  --danger-bg: #fdecef;
  --good: #0b6b40;
  --good-bg: #e6f6ee;
  --field: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1024;
    --surface: #181b36;
    --text: #f4f2ff;
    --muted: #a3a6c8;
    --line: #2e3360;
    --accent: #f2c46d;
    --link: #8db6ff;
    --danger: #ff7a8a;
    --danger-bg: rgba(224, 52, 79, 0.16);
    --good: #5be39b;
    --good-bg: rgba(25, 179, 107, 0.16);
    --field: #12152e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1024;
  --surface: #181b36;
  --text: #f4f2ff;
  --muted: #a3a6c8;
  --line: #2e3360;
  --accent: #f2c46d;
  --link: #8db6ff;
  --danger: #ff7a8a;
  --danger-bg: rgba(224, 52, 79, 0.16);
  --good: #5be39b;
  --good-bg: rgba(25, 179, 107, 0.16);
  --field: #12152e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--accent); font-weight: 800; }
nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
/* On phones each row becomes a small card, labelled cell by cell. */
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; background: var(--surface); }
  td { border: 0; padding: 6px 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
}

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 120px; height: 120px; }
.hero h1 { font-size: 44px; letter-spacing: 0.2em; margin: 14px 0 10px; padding-left: 0.2em; }
.hero h1 b { color: var(--accent); }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 28px; }
.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }

form label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
form input[type="text"], form input[type="password"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 400; }
.check input { margin-top: 5px; }
button.danger {
  margin-top: 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: var(--danger);
  color: #fff;
  cursor: pointer;
}
button.danger:disabled { opacity: 0.5; cursor: not-allowed; }
.status { margin-top: 16px; padding: 12px 14px; border-radius: 12px; display: none; }
.status.error { display: block; background: var(--danger-bg); color: var(--danger); }
.status.ok { display: block; background: var(--good-bg); color: var(--good); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 28px; }

/* Download call to action */
nav.site a.nav-cta {
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  line-height: 1.5;
}
nav.site a.nav-cta:hover { background: var(--accent); color: #12152e; }

.cta { margin: 22px 0 6px; }
.badge {
  display: inline-block;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.badge img { height: 68px; width: auto; display: block; }
.cta-note { color: var(--muted); font-size: 14px; margin-bottom: 0; }

a.button {
  display: inline-block;
  background: var(--accent);
  color: #12152e;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 12px;
}
a.button:hover { filter: brightness(1.08); }
.cta-inline { margin: 26px 0 8px; }

/* Feature grid and tick list */
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0 8px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

ul.ticks { list-style: none; padding: 0; margin-top: 12px; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

/* If the Google Play badge image fails to load, the link becomes a plain button. */
.badge-fallback {
  background: var(--accent);
  color: #12152e;
  font-weight: 800;
  padding: 14px 24px;
}
.badge-fallback img { display: none; }
.badge-fallback::after { content: "Get it on Google Play"; }
