/* OmniBeam info pages (/how-to-use, /about, /privacy, /terms, 404): same colours as the app, normal scrolling page */
:root {
  --bg: #e6e9f0; --sd: #c4c9d6; --sl: #ffffff; --fg: #3b4256; --muted: #5d6478;
  --accent: #5248e8; --accent-2: #8f7cff;
  --raise: 8px 8px 16px var(--sd), -8px -8px 16px var(--sl);
  --inset-sm: inset 3px 3px 6px var(--sd), inset -3px -3px 6px var(--sl);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2b2e38; --sd: #1d1f26; --sl: #393d4a; --fg: #dfe2ec; --muted: #a3aabd; --accent: #a59fff; --accent-2: #a597ff; }
}
/* Plus Jakarta Sans (SIL Open Font License, fonts/OFL.txt), served from this site: one variable font file for
   every weight, and the extra Latin letters (Turkish ğ ş ı…) only on pages that use them */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.woff2?v=1) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-ext.woff2?v=1) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.65;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page-header { max-width: 820px; margin: 16px auto 0; padding: 0 16px; }
.page-header nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 18px; border-radius: 999px; background: var(--bg); box-shadow: var(--raise);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; }
.brand span span { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.open-app {
  padding: 9px 20px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; font-size: 0.92rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
main { max-width: 820px; margin: 28px auto; padding: 0 16px; }
article { padding: 30px 34px; border-radius: 26px; background: var(--bg); box-shadow: var(--raise); }
h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.lead, .updated { color: var(--muted); }
.updated { font-size: 0.85rem; }
a { color: var(--accent); }
code { padding: 1px 6px; border-radius: 6px; box-shadow: var(--inset-sm); font-size: 0.9em; }
li { margin: 4px 0; }
.cta { text-align: center; margin: 34px 0 6px; }
.page-footer { max-width: 820px; margin: 0 auto 30px; padding: 0 16px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.page-footer a { color: inherit; font-weight: 600; text-decoration: none; margin: 0 6px; }
.page-footer a:hover { color: var(--accent); }
@media (max-width: 600px) {
  article { padding: 22px 18px; }
  h1 { font-size: 1.45rem; }
}
[dir="rtl"] .page-header nav { padding: 8px 18px 8px 10px; }
/* Guides list (/guides and "More guides" under each guide) */
.guide-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-list li { margin: 0; padding: 12px 16px; border-radius: 18px; box-shadow: var(--inset-sm); }
.guide-list a { font-weight: 700; text-decoration: none; }
.guide-list span { display: block; color: var(--muted); font-size: 0.92rem; }
.page-langs a { font-weight: 500; }
/* Download page for shared links (/d/…) */
button.open-app { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.drop-files { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.drop-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 16px; box-shadow: var(--inset-sm); overflow-wrap: anywhere; }
.drop-files .s { color: var(--muted); white-space: nowrap; font-size: 0.9rem; }
.drop-files .save { flex: none; padding: 6px 16px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.drop-bar { height: 8px; border-radius: 99px; box-shadow: var(--inset-sm); overflow: hidden; margin: 14px 0; }
.drop-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.2s; }
.drop-note { color: var(--muted); font-size: 0.85rem; text-align: center; }
.drop-own { text-align: center; }
/* Owner stats page (/stats) */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; }
@media (prefers-color-scheme: dark) { :root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; } }
main.stats { max-width: 980px; }
[hidden] { display: none !important; }
.stats-login { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats-login .lead { flex-basis: 100%; }
.stats-login input { flex: 1; min-width: 200px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); box-shadow: var(--inset-sm); font: inherit; }
.stats-error { flex-basis: 100%; color: #d03b3b; min-height: 1em; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { padding: 14px 16px; border-radius: 18px; box-shadow: var(--inset-sm); display: flex; flex-direction: column; gap: 2px; }
.tile span, .tile small { color: var(--muted); font-size: 0.82rem; }
.tile b { font-size: 1.6rem; line-height: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--sd); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .hit { fill: transparent; }
.chart .bar:hover .hit { fill: var(--sd); opacity: 0.35; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; font-size: 0.85rem; width: 100%; }
.table-wrap th, .table-wrap td { padding: 6px 8px; text-align: end; white-space: nowrap; border-bottom: 1px solid var(--sd); }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: start; }
#problems-top td, #problems-top th, .problems td, .problems th { text-align: start; }
#problems-top td:nth-child(2), .problems td:nth-child(3), .problems td:nth-child(6) { white-space: normal; min-width: 200px; overflow-wrap: anywhere; }
#turn-result { margin-inline-start: 8px; }
/* Blog: dates in the list and under a post's title */
.guide-list time { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.post-date { color: var(--muted); font-size: 0.9rem; margin-top: -6px; }
/* Download button inside a guide */
.download { display: inline-block; padding: 10px 22px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
/* Comparison pages: OmniBeam's column first, text wraps so the table fits a phone */
.compare-wrap { margin: 18px 0 8px; }
.table-wrap table.compare { font-size: 0.92rem; }
.table-wrap .compare th, .table-wrap .compare td { white-space: normal; text-align: start; vertical-align: top; padding: 10px 8px; min-width: 7em; }
.compare thead th { font-size: 1rem; }
.compare tbody th { font-weight: 700; }
.compare td:nth-child(2) { color: var(--fg); font-weight: 600; }
