/* Shared by the pages around the app (the guide, the privacy policy, the terms, "page not found"):
   the app's own colours and type, one top bar, one footer, and the small drawings of the app. */
@font-face { font-family: Figtree; src: url(fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #edf1ea; --panel: #ffffff; --line: #d8dfd4; --line2: #e8ece4; --text: #17201b; --muted: #5a675f;
  --accent: #16775a; --accent-text: #ffffff; --task: #fff8e4; --task-line: #ead9a6; --amber: #c98a0c; --now: #e0503a;
  --c1: #3566e0; --c2: #16775a; --c3: #e0503a; --c4: #7a57e0;   /* calendar, notes, recording, people */
  --glow: rgba(22, 119, 90, .12); --shadow: 0 1px 2px rgba(23, 32, 27, .05), 0 10px 30px rgba(23, 32, 27, .07);
  --ui: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: 'Bricolage Grotesque', Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613; --panel: #19201c; --line: #2c362f; --line2: #222a25; --text: #e7ece7; --muted: #94a199;
    --accent: #62cfa2; --accent-text: #0b1e15; --task: #29251a; --task-line: #5c5131; --amber: #e6b84a; --now: #f0705c;
    --c1: #7d9cf5; --c2: #62cfa2; --c3: #f0705c; --c4: #a58cf5;
    --glow: rgba(98, 207, 162, .1); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; }
body {
  font: 16px/1.55 var(--ui); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 20px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  transition: transform .15s var(--ease), border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn.small { height: 40px; padding: 0 15px; font-size: 14.5px; border-radius: 11px; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn[hidden] { display: none; }
.btn.quiet:hover { color: var(--text); background: color-mix(in srgb, var(--muted) 10%, transparent); }
:is(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ---- the top bar and the footer, the same on every page */
.topbar, .foot { width: min(1180px, 100%); margin: 0 auto; padding-inline: clamp(18px, 4vw, 44px); }
.topbar { display: flex; align-items: center; gap: 4px; height: 72px; }
.topbar .sp { flex: 1; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 18px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .fmark { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 650; color: var(--text); }
.foot .fmark img { border-radius: 6px; }
.foot .fmark span { font-weight: 450; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -10px; }
.foot nav a { padding: 11px 10px; text-decoration: none; border-radius: 9px; }
.foot nav a:hover { color: var(--text); }
@media (max-width: 620px) { .topbar .hide-s { display: none; } .topbar { height: 64px; } }

/* ---- a page of words (privacy, terms): one white sheet on the green ground */
.doc { width: min(800px, 100%); margin: 0 auto; padding: 8px clamp(14px, 4vw, 44px) 56px; }
.sheet { background: var(--panel); border-radius: 22px; padding: clamp(22px, 5vw, 52px); box-shadow: var(--shadow); }
.sheet h1 { font: 700 clamp(30px, 6vw, 42px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 6px; text-wrap: balance; }
.sheet h2 { font: 700 21px/1.2 var(--display); letter-spacing: -.015em; margin: 34px 0 8px; }
.sheet p, .sheet li { max-width: 68ch; text-wrap: pretty; }
.sheet p { margin: 0 0 12px; }
.sheet ul { margin: 0 0 12px; padding-left: 1.2em; }
.sheet li { margin: 6px 0; }
.sheet li::marker { color: var(--accent); }
.sheet a { color: var(--accent); text-underline-offset: 3px; }
.sheet .muted { color: var(--muted); }
.sheet .lead { font-size: 18px; color: var(--text); }

/* ---- "page not found" */
.lost { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.lost main { display: grid; place-items: center; padding: 24px 18px; text-align: center; }
.lost .sheet { max-width: 30rem; }
.lost .go { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---- drawings of the app (wireframes) */
.wf { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.bar { display: block; height: 7px; border-radius: 99px; background: var(--line); }
.bar.dim { background: var(--line2); }
.bar.ink { background: color-mix(in srgb, var(--text) 62%, transparent); }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.dotc { width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--c1); }
.ava { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; background: var(--c4); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: color-mix(in srgb, var(--accent) 78%, var(--text)); }
.chip.plain { background: color-mix(in srgb, var(--muted) 15%, transparent); color: var(--muted); }
.chip.ok { background: color-mix(in srgb, var(--c2) 15%, transparent); color: color-mix(in srgb, var(--c2) 72%, var(--text)); }
.tpill { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--task); border: 1px solid var(--task-line); font-size: 12px; font-weight: 600; }
.tpill::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--text) 55%, transparent); flex: none; }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 4px 6px; font-size: 10.5px; font-weight: 600; line-height: 1.25; overflow: hidden;
  background: color-mix(in srgb, var(--c) 17%, var(--panel)); border-left: 3px solid var(--c); color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.ev.t { background: var(--task); border: 1px solid var(--task-line); border-left-width: 1px; color: var(--text); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.lbl { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
