/* Shared style for every page on apps.ourworld.center. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #5b4bd8;
  --accent-soft: #efedff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1c1c21;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c33;
    --accent: #a99cff;
    --accent-soft: #25213f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

.page { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }

.app { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; text-decoration: none; color: inherit; }
.app img { width: 64px; height: 64px; }
.app b { display: block; font-size: 22px; line-height: 1.2; }
.app span { color: var(--muted); font-size: 15px; }

nav.tabs { display: flex; gap: 8px; margin-bottom: 36px; }
nav.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
nav.tabs a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); border-color: transparent; font-weight: 600; }

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 8px 0; }
li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

.summary { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.summary p { margin: 0; }

kbd { font: inherit; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: inherit; }

/* Product page: the landing page of each app (site/<app>/index.html).
   Quiet by design: type, space and the app's own screenshots do the work. */
.product { --brand-top: #7c6dff; --brand-bottom: #3629a8; }
.product .page { max-width: 1040px; padding: 20px 24px 48px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 600; font-size: 16px; }
.topbar .brand img { width: 28px; height: 28px; }
.topbar nav { display: flex; gap: 24px; font-size: 14px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 104px 0 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
.hero h1 .lead { display: block; margin-bottom: 6px; font-size: 0.5em; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); }
.hero p { max-width: 480px; margin: 24px auto 0; font-size: 19px; line-height: 1.5; color: var(--muted); }
.hero .note { margin-top: 32px; font-size: 14px; letter-spacing: 0.01em; color: var(--muted); }
.hero .note b { color: var(--text); font-weight: 600; }
.hero .note b, .hero .note span { white-space: nowrap; }

.art { border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, var(--brand-top), var(--brand-bottom)); }
.art img { display: block; width: 100%; height: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 40px 0 0; padding: 0; counter-reset: step; }
.steps li { list-style: none; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.steps b { display: block; margin-bottom: 2px; font-size: 17px; font-weight: 600; color: var(--text); }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding-top: 136px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .text { order: 2; }
.feature h2, .closing h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.feature p { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

.closing { text-align: center; padding: 152px 0 24px; }
.closing p { max-width: 520px; margin: 16px auto 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.closing .rule { width: 32px; height: 2px; margin: 72px auto; background: var(--line); border: 0; }

.product footer { margin-top: 120px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.product footer nav { display: flex; gap: 20px; }
.product footer a { text-decoration: none; }
.product footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { padding: 72px 0 48px; }
  .steps { display: none; }  /* the portrait art already labels each step */
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
  .feature.flip .text { order: 0; }
  .closing { padding-top: 104px; }
  .art { border-radius: 14px; }
}
