/* Ez website. The app's look: flat rounded blocks without outlines, bold headings, pill buttons.
   Colours are the app's own (apps/mobile/src/lib/theme.ts), dark by default with the blue accent. */

:root {
  --background: #0d0f12;
  --surface: #181b20;
  --surface-raised: #22262d;
  --text: #f3f4f6;
  --muted: #9099a8;
  --faint: #5d6573;
  --primary: #4f8cff;
  --on-primary: #0d0f12;
  --radius: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --background: #f4f5f7;
    --surface: #ffffff;
    --surface-raised: #eceef2;
    --text: #2b2f36;
    --muted: #5b6472;
    --faint: #99a1ae;
    --primary: #2563eb;
    --on-primary: #ffffff;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
    --background: #f4f5f7;
    --surface: #ffffff;
    --surface-raised: #eceef2;
    --text: #2b2f36;
    --muted: #5b6472;
    --faint: #99a1ae;
    --primary: #2563eb;
    --on-primary: #ffffff;
    color-scheme: light;
  }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
nav a:hover { text-decoration: none; background: var(--surface); color: var(--text); }
nav a[aria-current="page"] { background: var(--surface); color: var(--primary); }

main { padding: 8px 0 48px; }

/* Headings: one bold style, as in the app */
h1 { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 16px 0 8px; letter-spacing: -0.5px; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 16px 0 4px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 24px; }

/* Flat rounded blocks without outlines */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }
.card p, .card ul { margin: 0 0 12px; }
.card ul { padding-left: 20px; }
.card li { margin: 4px 0; }
.card .muted, .muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 12px; }
.grid .card { margin: 0; }

/* Hero */
.hero { text-align: center; padding: 32px 0 24px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.hero h1 { font-size: 40px; margin-top: 20px; }
.hero .lead { max-width: 520px; margin: 0 auto 24px; }

/* Pill buttons */
.button {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  font-weight: 700; padding: 12px 24px; border-radius: 999px;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.secondary { background: var(--surface-raised); color: var(--text); }
.buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Tables (who processes data) */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 8px; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr + tr td { border-top: 1px solid var(--surface-raised); }
.table-scroll { overflow-x: auto; margin: 0 -8px; }

@media (max-width: 560px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 8px 0; }
  .table tr + tr { border-top: 1px solid var(--surface-raised); }
  .table tr + tr td { border-top: 0; }
  .table td { padding: 2px 8px; }
  .table td:first-child { font-weight: 700; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 34px; }
}

details { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 8px; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { color: var(--faint); font-size: 14px; padding: 24px 0 40px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer nav a { color: var(--faint); padding: 0; margin-right: 16px; }
footer nav a:hover { background: none; color: var(--text); }
