/* ==========================================================================
   Chatbot demo pages — Pak Suzuki brand shell

   Colours taken from suzukipakistan.com's own stylesheets.
   The page is deliberately empty: brand chrome only, so any chatbot can be
   dropped in without the page saying anything about it.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Suzuki brand — verbatim from suzukipakistan.com */
  --suzuki-blue:      #01349a;
  --suzuki-blue-deep: #011a4d;
  --suzuki-red:       #e20a17;
  --ink:              #282327;
  --grey:             #6a6a6a;
  --surface:          #f5f5f5;
  --hairline:         #e4e4e4;
  --white:            #ffffff;

  /* Suzuki Pro is a licensed typeface and cannot be served from here.
     Archivo is the closest free substitute: same squarish grotesque skeleton. */
  --sans: "Archivo", "Segoe UI", Arial, sans-serif;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--suzuki-blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- header -- */

.masthead {
  flex: none;
  height: var(--header-h);
  background: var(--suzuki-blue);
  border-bottom: 3px solid var(--suzuki-red);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 44px);
}

.masthead__logo {
  display: block;
  height: 26px;
  width: auto;
}

/* ---------------------------------------------------------------- stage -- */
/* The empty branded canvas the chatbot widget lands on. */

.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px) clamp(18px, 4vw, 44px);
}

.mount {
  width: 100%;
  max-width: 1080px;
}

/* --------------------------------------------------------------- footer -- */
/* A brand rule, not a sentence. */

.underline {
  flex: none;
  height: 4px;
  background: linear-gradient(90deg, var(--suzuki-blue), var(--suzuki-blue-deep));
}

/* ----------------------------------------------------------------- index -- */
/* Numbered tiles only — navigation without copy. */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  width: 100%;
  max-width: 1080px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-bottom: 3px solid var(--suzuki-blue);
  color: var(--suzuki-blue);
  font-size: 3.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tile:hover {
  background: var(--suzuki-blue);
  border-bottom-color: var(--suzuki-red);
  color: var(--white);
}

/* ------------------------------------------------------------ debug mode -- */
/* Hidden unless the URL carries ?debug=1 — never shown to a client. */

.debug { display: none; }

body[data-debug="1"] .debug       { display: block; }
body[data-debug="1"] .debug__rail { display: flex; }

body[data-debug="1"] .mount {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c4d8;
  border-radius: 4px;
  background: rgba(1, 52, 154, 0.03);
}

body[data-debug="1"] .mount[data-filled="true"] {
  display: block;
  min-height: 0;
  border: 0;
  background: none;
}

body[data-debug="1"] .mount[data-filled="true"] .debug { display: none; }

.debug__note {
  margin: 0;
  padding: 24px;
  max-width: 52ch;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--grey);
}

.debug__note code {
  color: var(--suzuki-blue);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1px 6px;
}

.debug__rail {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.debug__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a500;
  flex: none;
}

body[data-state="live"]   .debug__dot { background: #35c759; }
body[data-state="absent"] .debug__dot { background: var(--suzuki-red); }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .masthead__logo { height: 22px; }
  .tile { min-height: 130px; font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
