/* The app's colours (ui/.../theme/Theme.kt): dark by default, like the app; light when the system is. */
:root {
  --bg-top: #16284a;
  --bg-bottom: #081a32;
  --text: #e6ecf7;
  --muted: #a8b5ce;
  --primary: #3db9fe;
  --card: #20365e;
  --card-inner: #1a2e53;
  --outline: #2b3f63;
  --on-accent: #ffffff;
  --accent: linear-gradient(135deg, #1e78d0, #3db9fe);
  --title: linear-gradient(135deg, #fefefe, #3db9fe);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-top: #e3edfa;
    --bg-bottom: #f7f9fd;
    --text: #0e1e38;
    --muted: #4a5a76;
    --primary: #1e78d0;
    --card: #dfe6f2;
    --card-inner: #e5ebf5;
    --outline: #c8d1e2;
    --title: linear-gradient(135deg, #0e1e38, #1e78d0);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 640px) no-repeat, var(--bg-bottom);
  color: var(--text);
  /* The phone's own font, as in the app: Roboto on Android, San Francisco on iPhone. */
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}
header.top .brand img { height: 36px; width: auto; display: block; }
header.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--text); }

header.top .brand .logo-light { display: none; }
@media (prefers-color-scheme: light) {
  header.top .brand .logo-dark { display: none; }
  header.top .brand .logo-light { display: block; }
}

.hero { text-align: center; padding: 48px 0 32px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 12px 40px rgba(8, 26, 50, .35); }
.hero h1 {
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.15;
  margin: 24px 0 12px;
  background: var(--title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 560px; }

.pill {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 28px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 120, 208, .35);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 24px 0; }

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
}
.card h2, .card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }

/* The capture video, in a phone-shaped frame. */
.demo { display: flex; justify-content: center; padding-top: 20px; }
/* Wide screens: the video beside the two cards. */
@media (min-width: 720px) {
  .capture { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
  .capture .demo { padding-top: 16px; }
  .capture .cards { grid-template-columns: 1fr; }
}
.phone {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  border-radius: 28px;
  border: 6px solid var(--card);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(8, 26, 50, .45);
}

/* Footnotes under a row of cards. */
.notes { color: var(--muted); font-size: 13px; padding: 0 4px; margin-top: 4px; }
.notes p { margin: 0 0 4px; }

.section-title { font-size: 24px; margin: 24px 0 0; }
.section-title + .cards { padding-top: 16px; }

.platform {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Policy pages: one long card of text. */
.doc { background: var(--card); border-radius: 24px; padding: 28px 24px; margin: 8px 0 32px; }
.doc h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.2; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card-inner); border-radius: 16px; padding: 16px 18px; margin: 0 0 8px; }
.doc .summary p { margin: 0; }

footer {
  border-top: 1px solid var(--outline);
  margin-top: 24px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer .credits { font-size: 12px; margin-top: 10px; }
