/* Layout: dealership-style launcher - black top bar with a red rule, light grey floor, square white tiles with black/red icon blocks. One brand look (light only), matched to the dealer group's site: black, red, white, Montserrat, square corners. */
:root {
  --black: #000000;
  --red: #ed2027;
  --red-dark: #c20000;
  --floor: #f0f0f0;
  --white: #ffffff;
  --grey: #636363;
  --line: #cccccc;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--floor); color: var(--black); font-family: var(--font); font-size: 16px; line-height: 1.4; }
.bar {
  background: var(--black); border-bottom: 3px solid var(--red);
  padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: 18px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.bar-inner { max-width: 1080px; margin: 0 auto; }
h1 {
  margin: 0; color: var(--white); font-weight: 800; font-size: clamp(22px, 4vw, 30px);
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1;
}
h1 span { color: var(--red); }
.wrap {
  max-width: 1080px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: 28px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}
section { display: grid; gap: 12px; }
h2 {
  margin: 0; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-dark); display: flex; align-items: center; gap: 10px;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile {
  display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center;
  min-height: 164px; padding: 18px 12px;
  background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--line);
  color: var(--black); text-decoration: none; touch-action: manipulation;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tile:hover { border-color: var(--black); border-bottom-color: var(--red); }
.tile:active { transform: scale(0.97); border-bottom-color: var(--red); }
.tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.icon { width: 66px; height: 66px; display: grid; place-items: center; background: var(--black); color: var(--white); }
.tile.primary .icon { background: var(--red); }
.icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.label { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; text-wrap: balance; }
.sub { font-size: 12px; color: var(--grey); margin-top: -6px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:active { transform: none; } }

/* Real product logos on login tiles (white block); falls back to the lock if the logo can't load. */
.icon.logo { background: var(--white); border: 1px solid var(--line); }
.icon.logo img { width: 44px; height: 44px; object-fit: contain; image-rendering: auto; }
.icon.logo svg { display: none; color: var(--black); }
.icon.logo.nologo { background: var(--black); border-color: var(--black); }
.icon.logo.nologo img { display: none; }
.icon.logo.nologo svg { display: block; color: var(--white); }
/* Sub-page bar: back to all tools + page name */
.bar-inner.sub-bar { display: flex; align-items: center; gap: 14px; }
.home {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.home:active { background: var(--red-dark); }
.home:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
