/* Palette taken from the app: tailwind.config.js and the tab bar chrome. */
:root {
  --pid: #208AEF;
  --pid-dark: #0B5FB0;
  --ground: #0A0A0A;
  --surface: #171717;
  --seen: #E5484D;
  --clear: #30A46C;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.40);
  --hair: rgba(255, 255, 255, 0.11);
  --font: 'Spline Sans', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* The app's sign-in screen is solid pid-dark, so every page opens on it. */
header {
  background: linear-gradient(170deg, var(--pid-dark) 0%, #073f77 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--hair);
}

header.slim { padding: 34px 0 28px; }

.brand { display: flex; align-items: center; gap: 16px; }

.brand img {
  width: 64px; height: 64px;
  border-radius: 15px;
  display: block;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

header.slim .brand img { width: 44px; height: 44px; border-radius: 11px; }

h1 { font-size: 34px; line-height: 1.15; margin: 0; letter-spacing: -0.5px; }
header.slim h1 { font-size: 24px; }

.tagline { margin: 14px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 18px; }

.back {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.back:hover { color: #fff; border-bottom-color: #fff; }

main { padding: 8px 0 72px; }

section { padding: 36px 0; border-bottom: 1px solid var(--hair); }
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--pid);
  margin: 0 0 16px;
  font-weight: 700;
}

h3 { font-size: 18px; margin: 28px 0 6px; }
h3:first-of-type { margin-top: 0; }
h4 { font-size: 16px; margin: 20px 0 4px; color: var(--text); }

p { margin: 0 0 14px; color: var(--muted); }
p.lead { color: var(--text); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); }

a { color: var(--pid); text-decoration: none; border-bottom: 1px solid rgba(32, 138, 239, 0.35); }
a:hover { border-bottom-color: var(--pid); }

ul, ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
li { margin-bottom: 7px; }

/* Contact block. The reason the support page exists, so it reads as a card. */
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px;
}

.mail {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  border: 0;
  margin-bottom: 6px;
  word-break: break-all;
}
.mail:hover { color: var(--pid); border: 0; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--pid);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 0;
}
.btn:hover { background: var(--pid-dark); border: 0; }

.btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* The two report answers, coloured as they are in the app. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}
.chip.seen { color: var(--seen); border-color: rgba(229, 72, 77, 0.45); background: rgba(229, 72, 77, 0.10); }
.chip.clear { color: var(--clear); border-color: rgba(48, 164, 108, 0.45); background: rgba(48, 164, 108, 0.10); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px;
  border-radius: 999px;
  background: rgba(32, 138, 239, 0.16);
  color: var(--pid);
  font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}

.note {
  border-left: 3px solid var(--pid);
  padding: 2px 0 2px 16px;
  margin: 18px 0 0;
}

.meta { color: var(--faint); font-size: 15px; margin-bottom: 0; }

/* Legal pages: wide content needs its own scroll rather than the page body. */
.scroll { overflow-x: auto; margin: 0 0 16px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 460px;
}
th, td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  vertical-align: top;
}
th { color: var(--text); font-weight: 600; }
td code { font-size: 13.5px; color: var(--pid); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
}

footer {
  border-top: 1px solid var(--hair);
  padding: 32px 0 56px;
  color: var(--faint);
  font-size: 14px;
}
footer p { color: var(--faint); font-size: 14px; }
footer a { color: var(--faint); border-bottom-color: rgba(255, 255, 255, 0.2); }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  header { padding: 40px 0 32px; }
  header.slim { padding: 28px 0 22px; }
  h1 { font-size: 27px; }
  header.slim h1 { font-size: 21px; }
  .tagline { font-size: 16px; }
  .brand img { width: 54px; height: 54px; border-radius: 13px; }
  .wrap { padding: 0 20px; }
  .links { flex-direction: column; }
  .btn { text-align: center; }
}
