/* OnTra's website: the app's own tokens (ui/Theme.kt), fonts and stickers. One sheet for every page. */
:root {
  --ink: #16171c; --muted: #5b5e6b; --line: #e3e4ea; --page: #f7f7f9; --raised: #f2f3f6; --paper: #ffffff;
  --teal: #3fe0c5; --teal-deep: #0b8a74; --teal-soft: #ddf6f0; --coral: #ec6564;
  --town: #5dc4f9; --area: #7ed9a8; --spot: #ffd36e;
  --ground-top: #f4ebdd; --ground-bottom: #e4f2f9; --contour: #cdbba5;
  --night: #111729; --night-raised: #1f2842; --night-ink: #e9ecf5; --night-muted: #9aa3bd;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 28px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* the bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 21px var(--display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.bar nav a:hover { background: var(--raised); }
.bar nav a.cta { background: var(--ink); color: #fff; }
.bar nav a.cta:hover { background: #2a2c35; }
@media (max-width: 560px) { .bar nav a.hide-s { display: none; } .brand span { font-size: 19px; } }

/* footer */
.foot { padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.foot a { color: var(--muted); }
.foot .grow { flex: 1 1 260px; }

/* the legal pages and the small ones: plain, readable, the app's type */
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.doc h1 { font: 700 clamp(30px, 5vw, 44px)/1.12 var(--display); letter-spacing: -.02em; margin: 6px 0 12px; }
.doc .lede { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font: 700 20px/1.3 var(--display); margin: 40px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #33353f; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc .toc { background: var(--paper); border-radius: 20px; padding: 18px 22px; margin: 0 0 8px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2 240px; column-gap: 28px; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--teal-deep); }
.doc .note { background: var(--teal-soft); border-radius: 16px; padding: 14px 18px; color: #1f4a43; }
.doc .todo { background: #fff4d6; border-radius: 6px; padding: 0 5px; color: #6b5200; font-family: var(--mono); font-size: 14px; }
@media (max-width: 560px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 2px 0; } .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .doc td:first-child { font-weight: 700; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
