/* OdoTell in a car's browser: large, few words, readable at arm's length, any shape of screen. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/brand/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"), url("/brand/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/brand/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"), url("/brand/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
:root { --bg: #FFFFFF; --ink: #0E0A24; --title: #1D1066; --card: #F1EFFE; --accent: #E1DDFD; --on: #1D1066; --soft: #55525F; --hair: #B9B1EF; --vivid: #5A46E8; --onvivid: #FFFFFF; --car: #2B1C96; --car-hi: #8F84E6; --car-lo: #150C52; --go: #000000; --goink: #FFFFFF; --warn: #FCE3D3; --stop: #FBDAD6; --line: #C9C5E6; }
[data-look="night"] { --bg: #000000; --ink: #EDEBF8; --title: #C9C3FB; --card: #0E0C1A; --accent: #1B1835; --on: #C9C3FB; --soft: #9E9BA8; --hair: #37317A; --vivid: #7B6CF0; --onvivid: #050410; --car: #DCD8FC; --car-hi: #F6F5FF; --car-lo: #6C6A86; --go: #FFFFFF; --goink: #000000; --warn: #5a3214; --stop: #5c1d18; --line: #2C2A45; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; font-size: 18px; line-height: 1.5; }
@media (min-width: 1100px) { html, body { font-size: 22px; } }
@media (min-width: 1700px) { html, body { font-size: 28px; } }
#car { display: -webkit-flex; display: flex; height: 100vh; height: 100dvh; }
h1, h2, .km { color: var(--title); }
nav { width: 9em; padding: .6em; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; flex: none; overflow: auto; }
nav button { flex: 1 0 3.2em; margin-bottom: .4em; border: 0; border-radius: .9em; background: none; color: inherit; font: inherit; }
nav button { color: var(--soft); }
nav button.on { background: var(--vivid); color: var(--onvivid); font-weight: 600; }
main { flex: 1; min-width: 0; padding: 1em 1.2em; overflow: auto; }
h1 { font-size: 1.5em; margin: 0 0 .3em; line-height: 1.3; } h2 { font-size: 1.15em; margin: 0 0 .3em; } p { margin: 0 0 .6em; }
.big { font-size: 1.15em; font-weight: 600; } .soft { color: var(--soft); } .hero .soft { color: inherit; }
.card { background: var(--card); border-radius: 1.1em; padding: 1em 1.2em; margin-bottom: .8em; }
.card.urgent, .card.warn, .card.check_soon { background: var(--warn); } .card.stop_safely { background: var(--stop); }
.btn { display: inline-block; border: 2px solid var(--go); background: var(--go); color: var(--goink); font: inherit; font-weight: 600; border-radius: 2em; padding: .55em 1.2em; text-decoration: none; min-height: 2.8em; }
.btn.ghost { background: var(--card); color: var(--title); border: 1px solid var(--hair); }
.hero .btn.ghost { color: var(--on); border-color: currentColor; }
.row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -.2em; } .row > * { margin: .2em; }
.grid { display: flex; flex-wrap: wrap; margin: -.4em; align-content: stretch; min-height: 100%; } .grid > * { margin: .4em; }
.hero { flex: 1 1 22em; background: var(--card); background-image: radial-gradient(circle at 50% 42%, var(--vivid) 0, var(--accent) 45%, transparent 72%); border: 1px solid var(--hair); color: var(--on); border-radius: 1.4em; padding: 1.1em 1.3em; display: flex; flex-direction: column; justify-content: space-between; min-height: 15em; }
.grid .tile { flex: 1 1 11em; border: 0; color: inherit; font: inherit; text-align: start; display: flex; flex-direction: column; justify-content: center; min-height: 7em; }
.tile .n { font-size: 2.2em; font-weight: 600; line-height: 1; } .tile .h { font-weight: 600; }
.art svg { display: block; width: 100%; max-height: 11em; } .art .s1 { stop-color: var(--car-hi); } .art .s2 { stop-color: var(--car); } .art .s3 { stop-color: var(--car-lo); } .km { font-size: 2.1em; font-weight: 600; } .km small { font-size: .5em; font-weight: 400; }
.split { display: flex; flex-wrap: wrap; align-items: center; min-height: 100%; margin: -.6em; } .split > * { margin: .6em; flex: 1 1 18em; min-width: 0; }
.qr { flex: 0 1 24em; } .qr svg { width: 100%; max-height: 78vh; display: block; border-radius: .6em; background: #fff; }
.code { font-size: 2.4em; font-weight: 600; letter-spacing: .06em; margin: .1em 0 .3em; }
.keys { direction: ltr; display: flex; flex-wrap: wrap; margin: -.2em; } .key { flex: 1 0 20%; margin: .2em; min-height: 2.6em; font: inherit; font-size: 1.2em; font-weight: 600; border: 0; border-radius: .7em; background: var(--card); color: inherit; } .keys.three .key { flex-basis: 30%; }
.bar { background: var(--warn); border-radius: .8em; padding: .4em 1em; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }
@media (orientation: portrait), (max-width: 760px) { #car { flex-direction: column-reverse; } nav { width: auto; flex-direction: row; padding: .3em; } nav button { flex: 1 0 auto; margin: 0 .15em; padding: .6em .7em; min-height: 3em; } main { padding: .8em; } .hero { flex-basis: 100%; min-height: 14em; } .grid { min-height: 0; } .grid .tile { min-height: 9em; } }
@media (max-height: 520px) { html, body { font-size: 15px; } .hero { min-height: 11em; } .grid .tile { min-height: 5em; } nav button { flex-basis: 2.5em; } .art svg { max-height: 7em; } }
.lite { margin: auto; padding: 1em; color: inherit; }
