/* The look of the app's web pages: the same colours and the same chunky
   type as the app. Colours match app/lib/config/theme.dart. */
:root {
  --ink: #1b1b2f;
  --paper: #fff8f0;
  --accent: #ffd166;
  --safe: #06d6a0;
  --danger: #ef476f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--paper);
  background: linear-gradient(180deg, #1b1b2f 0%, #3a1c71 100%)
    fixed;
}

/* Centred in whatever height is left above the copyright line. */
main {
  margin: auto 0;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.tagline,
.small,
.footer {
  text-shadow: 0 1px 3px rgba(27, 27, 47, 0.7);
}

h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow:
    -3px -3px 0 var(--ink),
    3px -3px 0 var(--ink),
    -3px 3px 0 var(--ink),
    3px 3px 0 var(--ink),
    0 5px 0 var(--ink);
}

h1 span {
  display: block;
  color: var(--accent);
}

/* The logo is a picture of the name; the heading holds it. */
h1.logo {
  text-shadow: none;
  margin-bottom: 4px;
}

h1.logo img {
  display: block;
  margin: 0 auto;
  max-width: 60%;
  height: auto;
}

.tagline {
  margin: 0 0 24px;
  font-size: 17px;
}

.panel {
  margin: 0 0 16px;
  padding: 20px;
  border: 2px solid rgba(255, 248, 240, 0.25);
  border-radius: 24px;
  background: rgba(27, 27, 47, 0.8);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.8);
}

.panel p:last-child {
  margin-bottom: 0;
}

.code {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.12);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}

.button.safe {
  background: var(--safe);
}

.button + .button {
  margin-top: 10px;
}

.small {
  font-size: 13px;
  color: rgba(255, 248, 240, 0.85);
}

.small a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Pages of text: the privacy policy and support. */
main.page {
  max-width: 640px;
}

main.page {
  margin-top: 0;
}

.panel.text {
  text-align: left;
}

.panel.text h3 {
  margin: 20px 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

.panel.text ul {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.8);
}

.panel.text li + li {
  margin-top: 6px;
}

.panel a,
.footer a {
  color: var(--accent);
}

.note {
  font-size: 13px;
}

.footer {
  font-size: 14px;
}

/* The store badges, at the same height, as the stores ask. */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 8px;
}

.badges img {
  display: block;
  height: 56px;
  width: auto;
}

/* The line along the bottom of every page. */
.copyright {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 248, 240, 0.75);
  text-align: center;
  text-shadow: 0 1px 3px rgba(27, 27, 47, 0.7);
}
