/* Fixelim site. Colours follow the app (fixelim-ios Theme.swift). No web
   fonts, no third-party requests: the system font is used on purpose. */

:root {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --primary: #0b2a3c;
  --primary-raised: #123d55;
  --accent: #3cc8e8;
  --on-accent: #062330;
  --accent-tint: #e6f7fb;
  --text: #0e2230;
  --text-body: #2b3d49;
  --text-secondary: #4f6270;
  --border: #e6eef2;
  --warning-bg: #fff5d6;
  --warning-text: #4a2d00;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1620;
    --surface: #13232f;
    --primary: #1e4a63;
    --primary-raised: #2a5a76;
    --accent-tint: #12384a;
    --text: #e8f1f5;
    --text-body: #c3d2da;
    --text-secondary: #8da2b0;
    --border: #213847;
    --warning-bg: #3d2e0a;
    --warning-text: #ffd98a;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.lang a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
}

.lang a[aria-current='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

/* Hero */

.hero {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .dot {
  color: var(--accent);
}

.hero p.lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(300px, 70vw);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 30px 60px -20px rgba(11, 42, 60, 0.45);
}

/* Sections */

section {
  padding: 40px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  margin: 0;
}

.card .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--text);
  font-weight: 800;
  margin-bottom: 14px;
}

.notice {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 500;
}

/* Text pages (privacy, support) */

.doc {
  max-width: 800px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
}

.doc h2 {
  font-size: 22px;
  margin-top: 40px;
}

.doc h3 {
  font-size: 18px;
  margin-top: 24px;
}

.doc .meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.doc th {
  color: var(--text);
}

.doc li + li {
  margin-top: 6px;
}

.doc mark {
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 0 4px;
  border-radius: 4px;
}

.doc details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0;
}

.doc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.doc details p:last-child,
.doc details ol:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--text-secondary);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 32px;
  }
  .hero-art {
    order: -1;
    justify-content: flex-start;
  }
  .hero-art img {
    width: 96px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
