/* Ficus. The app icon’s colours, a screenshot of the app, and features in grouped lists. */

:root {
  --background: #f5f5f3;
  --card: #ffffff;
  --text: #252523;
  --muted: #6d6d68;
  --accent: #00BAFF;
  /* A shade darker again behind the Download button's white text. */
  --button: #00BAFF;
  --button-text: #ffffff;
  --line: rgb(37 37 35 / 0.1);
  color-scheme: light dark;
}

/* The app icon's dark background. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #252523;
    --card: #2f2f2d;
    --text: #f5f5f3;
    --muted: #a9a9a3;
    --accent: #6bd47b;
    --button: #6bd47b;
    --button-text: #1b1b1a;
    --line: rgb(245 245 243 / 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;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 17px;
  font-weight: 600;
}

.download:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.download:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

/* A screenshot of the app, window shadow included. */

.screenshot {
  max-width: 1000px;
  margin: 8px auto 24px;
}

.screenshot img {
  width: 100%;
  height: auto;
}

/* Features: grouped lists, as on the ScreenSaver page. */

.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: 14px;
  background: var(--card);
  overflow: hidden;
}

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

/* Hairlines between rows, inset from the left. */
.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: 14px;
  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: 14px;
  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;
}

.disclaimer {
  max-width: 34em;
  margin: 16px auto 0;
}
