/* The apps' look: near-black, Inter, the brand red. Inter is served from here (SIL Open Font License),
   so visitors' browsers do not contact a font service. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-800.woff2) format("woff2"); }
:root {
  --bg: #07070a;
  --panel: #15151c;
  --raised: #1d1d26;
  --line: #2a2a35;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --accent-soft: rgba(225, 29, 72, 0.14);
  --accent-text: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
header { display: flex; align-items: center; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 16px 20px; }
header .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
header .brand img { width: 34px; height: 34px; border-radius: 9px; }
header nav { display: flex; gap: 18px; align-items: center; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a:hover { color: var(--text); }
header nav a.button { color: var(--accent-text); }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; }
main { max-width: 960px; margin: 0 auto; padding: 16px 20px 64px; }
main.wide { max-width: 1160px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 32px 0 12px; }
h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.narrow { max-width: 440px; margin: 32px auto; }
form { display: grid; gap: 12px; }
.card p + form { margin-top: 16px; }
label { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
input, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; }
textarea { resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input:focus-visible, textarea:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { background: var(--raised); border-color: var(--line); }
button.danger { background: transparent; color: var(--bad); border-color: var(--line); }
button:disabled, .button.disabled { opacity: .55; cursor: default; pointer-events: none; }
.button.small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.button.light { background: #fff; color: #9f1239; border-color: #fff; }
.button.light:hover { background: #ffe4e6; border-color: #ffe4e6; }
.code-input { font-size: 24px; letter-spacing: 3px; text-align: center; text-transform: uppercase; }
.message { padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.message.error { border-color: var(--bad); color: var(--bad); }
.message.ok { border-color: var(--ok); color: var(--ok); }
.switch { color: var(--muted); font-size: 14px; text-align: center; }
.switch button { background: none; border: 0; color: var(--accent-hover); padding: 0; min-height: 0; font-weight: 500; text-decoration: underline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--line); }
.badge.licensed { background: var(--ok); color: #062012; }
.badge.trial { background: var(--warn); color: #241703; }
.badge.expired { background: var(--bad); color: #250805; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .muted, .muted { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.stack { display: grid; gap: 16px; }
[hidden] { display: none !important; }
footer { max-width: 1160px; margin: 0 auto; padding: 24px 20px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
/* Legal pages (privacy): plain reading width. */
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 19px; }
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.legal li { margin: 6px 0; }
footer a { color: var(--muted); }
#request-for { margin-bottom: 8px; }
#request .message { margin-top: 16px; }

/* Cookie choice for the site statistics: asked once, at the bottom of the screen. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.consent p { flex: 1 1 280px; margin: 0; font-size: 14px; color: var(--muted); }
.consent p a { color: var(--text); }
.consent div { display: flex; gap: 8px; margin-left: auto; }

/* Store buttons: the first thing on the home page and on every guide. A phone's own store comes first (.mine). */
.get { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 18px; border-radius: 16px; background: #fff; color: #0b0b0f; text-decoration: none; border: 1px solid #fff; transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .2s; }
.store:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 16px 36px -14px rgba(255, 255, 255, .45); }
.store:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; }
.store svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store[data-store="android"] svg { fill: currentColor; stroke: none; }
.store span { display: grid; line-height: 1.15; text-align: left; }
.store small { font-size: 12px; font-weight: 600; color: #52525b; }
.store b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.get:has(.mine) .store:not(.mine) { background: rgba(255, 255, 255, .06); color: var(--text); border-color: rgba(255, 255, 255, .16); }
.get:has(.mine) .store:not(.mine) small { color: var(--muted); }
.get:has(.mine) .store:not(.mine):hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
@media (max-width: 420px) { .get { display: grid; } .store { justify-content: flex-start; } }
