/* Hand Carved Code: one stylesheet for the whole site. */

:root {
  --bg: #f5f5f7;
  --tile: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  /* App colors, darkened from each icon so white text stays readable (WCAG AA). */
  --app-priorities: #2a8242;
  --app-occasions3: #5568c9;
  --app-notablequotes: #9e4f52;
  --radius: 18px;
  --width: 1000px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --tile: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --line: #38383a;
    --link: #2997ff;
  }
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; }

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

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* Header and footer */

header.site { background: var(--tile); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
header.site .brand img { width: 32px; height: 32px; }
header.site nav a { color: var(--text); margin-left: 22px; font-size: 15px; }
header.site nav a:first-child { margin-left: 0; }
header.site nav a[aria-current="page"] { font-weight: 600; }

footer.site { color: var(--muted); font-size: 14px; padding: 36px 0 48px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--muted); }

main { padding-bottom: 20px; }

/* Home */

.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 20px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { border-radius: var(--radius); padding: 24px; color: #fff; display: flex; flex-direction: column; }
.card h2 { margin: 14px 0 4px; font-size: 24px; }
.card p { margin: 0 0 18px; flex: 1; }
.card a.button { align-self: flex-start; }

.about { background: var(--tile); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
.about h2 { margin-top: 0; font-size: 22px; }
.about p:last-child { margin-bottom: 0; }

/* App colors */

.app-priorities { background: var(--app-priorities); }
.app-occasions3 { background: var(--app-occasions3); }
.app-notablequotes { background: var(--app-notablequotes); }

/* Shared pieces */

.icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); display: block; }
.card .icon { width: 72px; height: 72px; border-radius: 16px; }

.button {
  display: inline-block; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 16px;
  background: rgba(0, 0, 0, .22); color: #fff;
}
.button:hover { text-decoration: none; background: rgba(0, 0, 0, .32); }
.button.store { background: #000; color: #fff; }
.button.light { background: #fff; color: #1d1d1f; }

/* App page */

.banner { color: #fff; text-align: center; padding: 44px 20px 40px; }
.banner .icon { margin: 0 auto 14px; }
.banner h1 { font-size: clamp(32px, 6vw, 48px); margin: 0 0 6px; line-height: 1.1; }
.banner p { font-size: 20px; margin: 0 auto 22px; max-width: 640px; }
.banner .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 28px 20px; scroll-snap-type: x mandatory;
  max-width: calc(var(--width) + 40px); margin: 0 auto;
}
.shots img { flex: 0 0 auto; width: 230px; border-radius: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, .16); scroll-snap-align: center; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tile { background: var(--tile); border-radius: var(--radius); padding: 20px 22px; }
.tile h3 { margin: 0 0 4px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); }

.more { text-align: center; padding: 28px 0 0; }

/* Support */

.page-title { padding: 40px 0 18px; }
.page-title h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.15; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.page-title .with-icon { display: flex; align-items: center; gap: 16px; }
.page-title .with-icon .icon { width: 64px; height: 64px; border-radius: 15px; }

.faq details { background: var(--tile); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p, .faq details ol, .faq details ul { margin: 8px 0 0; }

.help { background: var(--tile); border-radius: var(--radius); padding: 22px 24px; margin-top: 22px; }
.help h2 { margin: 0 0 6px; font-size: 20px; }
.help p { margin: 6px 0 0; }

.support-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.support-list a { display: flex; align-items: center; gap: 14px; background: var(--tile); border-radius: var(--radius); padding: 18px; color: var(--text); font-weight: 600; font-size: 18px; }
.support-list a:hover { text-decoration: none; }
.support-list .icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: none; }

/* Privacy and other text pages */

.prose { background: var(--tile); border-radius: var(--radius); padding: 8px 28px 24px; }
.prose h2 { font-size: 21px; margin: 26px 0 6px; }
.prose h3 { font-size: 18px; margin: 18px 0 4px; }
.prose p, .prose ul { margin: 6px 0; }
.prose .updated { color: var(--muted); }

/* Redirect pages */

.moved { padding: 60px 0; text-align: center; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 20px; }
  .hero p, .banner p { font-size: 18px; }
  header.site nav a { margin-left: 16px; }
  .shots img { width: 190px; }
}
