:root {
  --bg: #141417;
  --bg-panel: #1b1b1e;
  --text-primary: #eaeaea;
  --text-secondary: #a3a3a4;
  --text-tertiary: #707071;
  --accent: #c9a877;
  --accent-dim: #8a7452;
  --hairline: rgba(255, 255, 255, 0.1);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-dim);
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

.site-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand:hover,
.brand:focus-visible {
  color: var(--text-primary);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand-word {
  font-size: 19px;
  letter-spacing: 0.04em;
}

nav.site-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

nav.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav.site-nav a[aria-current="page"] {
  color: var(--text-primary);
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -46%);
  opacity: 0.05;
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}

h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 24px;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* Sections */

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-tertiary);
  font-weight: 400;
  margin: 0 0 26px;
}

h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.4;
}

p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
}

.feature-list li:first-child {
  border-top: none;
}

.feature-list strong {
  color: var(--text-primary);
  font-weight: 400;
}

/* Download buttons */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
  border-color: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
}

.download-btn .platform {
  color: var(--text-tertiary);
  font-size: 13px;
}

.download-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Cause callout */

.cause {
  background: var(--bg-panel);
  border-radius: 10px;
  padding: 30px 32px;
}

/* Footer */

.site-footer {
  padding: 40px 0 60px;
  text-align: center;
}

.site-footer p {
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer nav {
  margin-top: 14px;
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
}

.site-footer nav a {
  color: var(--text-tertiary);
}

/* Simple pages (privacy / support) */

.page-header {
  padding: 60px 0 10px;
}

.page-header .eyebrow {
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: 32px;
}

.updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-top: -8px;
}

.prose h2 {
  margin-top: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 22px;
  color: var(--text-primary);
}

.prose section {
  padding: 40px 0;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

@media (max-width: 560px) {
  h1 {
    font-size: 30px;
  }
  .hero {
    padding: 60px 0 50px;
  }
  .cause {
    padding: 26px 22px;
  }
}

/* Root / app index page */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}

.app-card {
  background: var(--bg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.app-card:hover,
.app-card:focus-visible {
  background: var(--bg-panel);
  text-decoration: none;
}

.app-card .tagline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
}

.app-card h3 {
  margin-bottom: 12px;
}

.app-card p {
  flex-grow: 1;
  font-size: 15px;
  margin-bottom: 20px;
}

.app-card .open {
  font-size: 14px;
  color: var(--text-tertiary);
}

.app-card:hover .open,
.app-card:focus-visible .open {
  color: var(--accent);
}

@media (max-width: 760px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}
