/* The site uses the colours and the type of the app, so a user who comes
   from the App Store page to the support page sees the same thing. */

:root {
  --surface: #F4F4F2;
  --card: #FFFFFF;
  --border: #E4E6EA;
  --text: #14161A;
  --text2: #5D6472;
  --text3: #A2A8B5;
  --work: #BF0076;
  --rest: #007174;
  --recovery: #5447A1;
  --getready: #4C586F;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0F1115;
    --card: #181B21;
    --border: #242830;
    --text: #F4F5F7;
    --text2: #A2A8B5;
    --text3: #5D6472;
  }
}

* {
  box-sizing: border-box;
}

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

/* Two voices. Headings, labels and buttons speak in Manrope, the face of
   the app. Running text speaks in a serif made for reading on screens, so
   a heading and the paragraph under it never look like the same thing. */
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, .wordmark, .eyebrow, .pill, .meta, footer, th {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* The wordmark and the routine bar are the whole brand. */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.bar {
  display: flex;
  gap: 2px;
  height: 6px;
  width: 168px;
}

.bar span {
  flex: 2;
  border-radius: 3px;
  background: var(--work);
}

.bar span.rest {
  flex: 1;
  background: var(--rest);
}

.bar span.getready {
  flex: 1;
  background: var(--getready);
}

h1 {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 10px;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 40px 0 10px;
}

h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 26px 0 6px;
}

p, li {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--text3);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--text);
}

.lead {
  font-size: 21px;
  line-height: 1.45;
  color: var(--text2);
  font-weight: 400;
  margin-bottom: 28px;
}

.meta {
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin: 0 0 12px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}

.card p:last-child, .card li:last-child {
  margin-bottom: 0;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.pill.quiet {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--text2);
  font-weight: 700;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 20px;
}

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

th {
  color: var(--text2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
