/* LittleO — shared styles. iOS look: grey page, white cards, Unbounded headings.
   Fonts are served from this site (no Google Fonts), so visitors' IPs go nowhere else. */
@font-face { font-family: "Unbounded"; src: url("Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --text: #000; --muted: #6C6C70; --sep: #E5E5EA;
  --blue: #007AFF; --link: #0062CC; --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1C1C1E; --text: #fff; --muted: #98989F; --sep: #38383A; --link: #409CFF; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Language: every bilingual element carries data-l; the body says which one shows. */
body.uk [data-l="en"], body.en [data-l="uk"] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--sep); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px "Unbounded", sans-serif; color: var(--text); }
.logo:hover { text-decoration: none; }
.ring { display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(#007AFF, #5856D6, #AF52DE, #FF2D55, #FF9500, #FFCC00, #34C759, #30B0C7, #007AFF);
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 9.5px); mask: radial-gradient(circle, transparent 9px, #000 9.5px); }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav .links a { color: var(--text); }
.lang { display: inline-flex; background: rgba(118,118,128,.12); border-radius: 18px; padding: 3px; }
.lang button { border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 10px; border-radius: 15px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Type */
h1, h2, h3 { font-family: "Unbounded", sans-serif; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 14px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: none; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.store { background: #000; color: #fff; height: 56px; padding: 0 22px; }
@media (prefers-color-scheme: dark) { .btn.store { background: #fff; color: #000; } }
.btn.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.btn.store b { display: block; font-size: 19px; line-height: 1.15; }
.btn.soon { background: rgba(118,118,128,.16); color: var(--muted); pointer-events: none; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(118,118,128,.12); font-size: 13px; font-weight: 600; color: var(--muted); }

/* Footer */
footer { margin-top: 72px; border-top: .5px solid var(--sep); padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer .sp { flex: 1; }

/* Long text pages */
.doc { padding: 40px 0 0; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.doc .card { padding: 26px 26px 10px; margin-top: 18px; }
.doc h2 { font-size: 20px; margin-bottom: 10px; }
.doc p, .doc li { margin-bottom: 14px; }
.doc ul { padding-left: 20px; }
.todo { background: #FFF3C4; color: #6B4E00; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
