/* ScreenSaver. The app's own colours, and lists in the style of the Settings app, as its own screens are. */

:root {
  --background: #f2f7fa;
  --card: #ffffff;
  --text: #202122;
  --muted: #6b6e72;
  /* Blue from the app icon, dark enough to read as link text. */
  --accent: #0071e3;
  --line: rgb(32 33 34 / 0.1);
  color-scheme: light dark;
}

/* The app has no pure black: its dark mode uses the same grey as its light-mode text. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #202122;
    --card: #2b2c2e;
    --text: #f2f7fa;
    --muted: #a3a6aa;
    --accent: #2997ff;
    --line: rgb(242 247 250 / 0.1);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.subtitle {
  margin: 6px 0 0;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  color: var(--muted);
}

.lede {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: 19px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
}

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

.requirements {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */

section {
  padding: 48px 0;
}

section > h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 28px;
  color: var(--muted);
}

.narrow {
  max-width: 640px;
  margin: 0 auto;
}

/* Features: grouped lists, as in Settings. */

.group-title {
  margin: 28px 16px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.group {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 24px;
  background: var(--card);
  overflow: hidden;
}

.group li {
  position: relative;
  padding: 12px 18px;
}

/* Hairlines between rows, inset from the left like iOS. */
.group li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  border-top: 1px solid var(--line);
}

.group h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.group p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--muted);
}

kbd {
  font-family: inherit;
}

/* Support */

.contact {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
}

.contact p {
  margin: 0;
}

.contact a {
  font-weight: 600;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  padding: 14px 18px;
  border-radius: 24px;
  background: var(--card);
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Privacy policy */

.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  color: var(--text);
  font-weight: 600;
}

.top-bar img {
  width: 36px;
  height: 36px;
}

.policy h1 {
  margin: 24px 0 4px;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.policy .effective {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.policy .card {
  margin-bottom: 8px;
  padding: 16px 20px;
}

.policy .card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.policy .card p {
  margin: 0;
  color: var(--text);
}

.policy .card p + p {
  margin-top: 8px;
}

/* Footer */

footer {
  padding: 40px 0 56px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
}
