@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin.woff2) format("woff2"); }
:root {
  color-scheme: light;
  --bg: #f4f4f6; --card: #fff; --text: #1a1d21; --muted: #626872; --line: #e1e3e8;
  --primary: #1c8a74; --primary-text: #fff; --danger: #c0392b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif; }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; }
nav a:hover { color: var(--text); }
main { padding-top: 16px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.2; margin: 16px 0 4px; }
h2 { font-size: 19px; margin: 32px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
ul { padding-left: 20px; }
a { color: var(--primary); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 20px 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; font: inherit; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
button, .btn { display: inline-block; width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-text); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.msg { margin-top: 14px; font-size: 14px; }
.msg.error { color: var(--danger); }
.hidden { display: none; }
footer { padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); margin-right: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--primary-text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h3 { font-size: 16px; margin: 24px 0 4px; }
header { flex-wrap: wrap; gap: 4px 16px; }
nav { display: flex; flex-wrap: wrap; }
nav a { padding: 8px 0; }
footer a { display: inline-block; padding: 4px 0; }
.card .btn { margin-top: 8px; }
a.btn, a.btn:visited { color: var(--primary-text); }
@media (max-width: 480px) { nav a:first-child { margin-left: 0; } h1 { font-size: 24px; } }
footer a:last-child { margin-right: 0; }

.brand { display: inline-flex; align-items: center; }
.logo-mark { display: inline-block; flex: none; width: 1.7em; height: 1.7em; margin-right: .4em; background: currentColor; -webkit-mask: url(/img/logo-mark.svg) center / contain no-repeat; mask: url(/img/logo-mark.svg) center / contain no-repeat; }

.logo-word { display: inline-block; flex: none; height: .72em; aspect-ratio: 3000 / 569; background: currentColor; -webkit-mask: url(/img/logo-wordmark.svg) left center / contain no-repeat; mask: url(/img/logo-wordmark.svg) left center / contain no-repeat; }

/* Tekstilogo AJOS, kunnes Ajokselle tehdään oma logo (merkki on toistaiseksi Afirin) */
.brand-word { margin-left: .15em; font-family: "Figtree", system-ui, sans-serif; font-size: .95em; font-weight: 300; letter-spacing: .32em; line-height: 1; }
.brand-app { margin-left: .9em; font-family: "Figtree", system-ui, sans-serif; font-size: .6em; font-weight: 500; letter-spacing: .3em; color: var(--muted); }

/* Latauspainike */
.cta { margin: 20px 0 8px; max-width: 360px; }

pre { background: #f3f5f7; border: 1px solid #e1e5ea; border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
:not(pre) > code { background: #f3f5f7; border-radius: 4px; padding: 1px 5px; }
