/* Shared by every page on apps.canopysf.com: the index and each smaller app's page
   (apps.canopysf.com/<name>/). Same family as plus. and music.canopysf.com:
   system font, one dark backdrop, glass cards. */
:root {
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.12);
  --backdrop-base: #0f1714;
  --green: #4fd162;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--backdrop-base);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }

/* "Canopy at night": near-black with a green cast, a dim green glow under the logo's arc,
   and a little of Canopy+ green and Canopy Music violet at the edges. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--backdrop-base);
  background-image:
    radial-gradient(50% 35% at 50% 0%, rgba(40, 150, 70, 0.35), rgba(40, 150, 70, 0)),
    radial-gradient(40% 50% at 0% 70%, rgba(30, 110, 60, 0.3), rgba(30, 110, 60, 0)),
    radial-gradient(40% 50% at 100% 80%, rgba(110, 70, 170, 0.22), rgba(110, 70, 170, 0)),
    linear-gradient(175deg, #13201a, #0f1714 55%, #0a100d);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.masthead { text-align: center; padding: 4vh 0 40px; }
.masthead h1 { margin: 0; font-size: 0; line-height: 0; }
.masthead .logo { width: min(56vw, 240px); height: auto; }
.masthead .label {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-2);
  padding-left: 0.3em; /* balances the tracking after the last letter */
}

/* The app list: one card per app, the whole card is the link. */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) {
  .apps { grid-template-columns: 1fr 1fr; }
}
.app {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
  height: 100%;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.app:hover { background: var(--surface-hover); transform: translateY(-1px); }
.app:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
/* App icons are the square iOS artwork; round them as iOS does. */
.app-icon { grid-row: span 4; width: 64px; height: 64px; border-radius: 22.5%; display: block; }
.app h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.app p { margin: 0; color: var(--text-2); font-size: 16px; }
.app .where { color: var(--text-3); font-size: 14px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.platforms span {
  padding: 3px 9px;
  line-height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* A smaller app's own page (apps.canopysf.com/<name>/) */
.back { display: inline-block; margin-bottom: 24px; color: var(--text-2); font-size: 15px; text-decoration: none; }
.back:hover { color: var(--text); }
.prose { max-width: 36em; }
.prose h1 { margin: 0 0 8px; font-size: 34px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.prose h2 { margin: 40px 0 8px; font-size: 22px; font-weight: 700; }
.prose p { margin: 0 0 16px; color: var(--text-2); }
.prose ol, .prose ul { margin: 0 0 16px; padding-left: 1.3em; color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }

.app-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 32px; }
.app-head .app-icon { width: 88px; height: 88px; grid-row: auto; }
.app-head h1 { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.app-head p { margin: 6px 0 0; font-size: 19px; line-height: 1.4; color: var(--text-2); text-wrap: pretty; }
.app-head .platforms { margin-top: 12px; }
@media (max-width: 480px) {
  .app-head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
  .app-head .app-icon { width: 64px; height: 64px; }
  .app-head h1 { font-size: 28px; }
  .app-head p { font-size: 17px; }
}

/* Screenshots: 16:9 Apple TV captures */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.shots { display: grid; gap: 12px; margin: 12px 0 0; }
@media (min-width: 720px) {
  .shots { grid-template-columns: 1fr 1fr; }
}

/* Feature cards on a smaller app's page */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.features li {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.features h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.features p { margin: 0; color: var(--text-2); font-size: 15px; }

.note, .prose .note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}
.note strong { color: var(--text); font-weight: 600; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--backdrop-base);
  font-weight: 600;
  text-decoration: none;
}
.button:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
.button svg { width: 20px; height: 20px; flex: none; }

.foot { margin-top: auto; padding-top: 64px; text-align: center; font-size: 14px; color: var(--text-3); }
.foot p { margin: 0; }
.foot a { color: var(--text-2); text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .app { transition: none; }
  .app:hover { transform: none; }
}
