/* One stylesheet for the whole site. The site is neutral: each app brings its own colour (`--app`, from
   _data/apps.yml) and uses it only for small accents on its card and its pages. */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --sunken: #F4F4F5;
  --text: #18181B;
  --muted: #52525B;
  --line: #E4E4E7;
  --link: #1D4ED8;
  --app: #71717A;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0C;
    --surface: #161618;
    --sunken: #1F1F22;
    --text: #F4F4F5;
    --muted: #A1A1AA;
    --line: #27272A;
    --link: #93C5FD;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Layout */
.site-header, main, .site-footer { max-width: 1000px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
body.text main { max-width: 720px; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { font: 700 1.05rem/1 var(--display); letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 6px 12px; border-radius: 999px;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--sunken); color: var(--text); }
.site-footer {
  margin-top: 72px; padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 24px 0 12px; }
h2 { font-size: 1.45rem; margin: 56px 0 12px; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 0 8px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* Text pages: privacy and support */
body.text main h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; margin: 12px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }

/* Shared pieces */
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px;
  background: var(--sunken); color: var(--text);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--app); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg);
}
.button.quiet { background: var(--sunken); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; }
/* Next to a button, the status pill has the button's size, so the two line up. */
.actions .badge { padding: 11px 18px; border-radius: 12px; font-size: 1rem; line-height: 1.6; }
.app-icon { width: 88px; height: 88px; border-radius: 22%; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }

/* Home */
.intro { padding: 32px 0 8px; }
.intro h1 { max-width: 15em; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; margin-top: 24px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; overflow: hidden;
}
/* The app's colour, as a thin strip on top of its card. */
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--app); }
.app-card header { display: flex; gap: 16px; align-items: center; }
.app-card .app-icon { width: 64px; height: 64px; }
.app-card h2 { margin: 0 0 2px; font-size: 1.35rem; }
.app-card h2 a { color: var(--text); text-decoration: none; }
.app-card h2 a:hover { text-decoration: underline; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .actions { margin: 0; }
.peek { display: flex; gap: 10px; background: var(--sunken); border-radius: 16px; padding: 16px 16px 0; overflow: hidden; height: 210px; }
.peek img { width: calc((100% - 20px) / 3); border-radius: 12px 12px 0 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }

/* App page */
.hero { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 0; }
.hero .app-icon { box-shadow: 0 10px 40px color-mix(in srgb, var(--app) 55%, transparent); }
.hero h1 { margin: 16px 0 8px; }
.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 32px -20px 0; padding: 8px 20px 20px;
}
.gallery img {
  flex: 0 0 auto; width: min(62vw, 240px); scroll-snap-align: start;
  border-radius: 18px; border: 1px solid var(--line);
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.plan { border-radius: var(--radius); padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--app); background: color-mix(in srgb, var(--app) 10%, var(--surface)); }
.plan h3 { margin: 0 0 4px; font-size: 1.25rem; }
.plan .price { font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.plan ul { margin: 0; }
.note { color: var(--muted); font-size: 0.95rem; }
