/* Martbots home page and products site. Colours taken from the Martbots logo. */
:root {
  --mb-blue: #1aa3e8; --mb-blue-dark: #0b6fa8; --mb-grey: #6f7378; --ink: #18212b; --muted: #5e6874;
  --bg: #f5f8fb; --card: #ffffff; --line: #e1e7ee; --bs-navy: #0b1a3a; --ok: #138a52; --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: min(1080px, 100% - 32px); margin: 0 auto; }
a { color: var(--mb-blue-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.error { color: #c0392b; }

header.top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px max(16px, calc((100% - 1080px) / 2)); flex-wrap: wrap; }
.logo img { height: 52px; width: auto; display: block; }
header nav a { color: var(--mb-grey); text-decoration: none; margin-left: 16px; font-weight: 600; font-size: .95rem; }
header nav a:hover { color: var(--mb-blue-dark); }

.hero { text-align: center; padding: 40px 0 16px; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.15; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 auto 22px; max-width: 620px; font-size: 1.1rem; }
.search { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; background: #fff; border: 2px solid var(--mb-blue);
  border-radius: 999px; padding: 6px; box-shadow: 0 8px 28px rgba(26,163,232,.18); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: 10px 14px; background: transparent; color: var(--ink); }
.search button { border: 0; border-radius: 999px; background: var(--mb-blue); color: #fff; font: inherit; font-weight: 700; padding: 10px 24px; cursor: pointer; }
.search button:disabled { opacity: .7; cursor: wait; }
.search-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.chips button:hover { border-color: var(--mb-blue); }

.results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; scroll-margin-top: 16px; }
.result-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.result-col h2 { margin: 0 0 6px; font-size: 1.15rem; }
.result-col h2 small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.row { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row span { display: block; font-size: .88rem; }
.row:hover strong { color: var(--mb-blue-dark); }
.stars { color: #e0a100; }
.pill { font-size: .72rem; background: #fff3dc; color: #b26b00; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }

.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.site-tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.site-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24,33,43,.12); }
.site-tile.products { border-top: 6px solid var(--mb-blue); }
.site-tile.services { border-top: 6px solid var(--bs-navy); }
.tile-logo { height: 56px; width: auto; align-self: flex-start; object-fit: contain; }
.tile-logo.round { border-radius: 12px; }
.site-tile h2 { margin: 14px 0 0; font-size: 1.6rem; }
.tile-sub { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.site-tile ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.go { margin-top: auto; font-weight: 700; color: var(--mb-blue-dark); }
.services .go { color: var(--bs-navy); }
.tag { position: absolute; top: 18px; right: 18px; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.soon { background: #e6f5fd; color: var(--mb-blue-dark); }
.tag.live { background: #e3f6ec; color: var(--ok); }

.band { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 32px; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: var(--muted); max-width: 560px; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--mb-blue); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 10px 20px; }
.btn.ghost { background: transparent; color: var(--mb-blue-dark); border: 2px solid var(--mb-blue); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px max(16px, calc((100% - 1080px) / 2));
  background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Products site (coming soon) */
.soon-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin: 24px 0 32px; }
.soon-card ul { color: var(--muted); }
.switch { display: flex; gap: 4px; font-size: .85rem; }
.switch a { text-decoration: none; color: var(--mb-grey); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); margin: 0; }
.switch a.on { background: var(--mb-blue); color: #fff; border-color: var(--mb-blue); font-weight: 700; }

@media (max-width: 720px) {
  .results, .sites { grid-template-columns: 1fr; }
  .search { border-radius: 16px; flex-direction: column; }
  .search button { border-radius: 12px; }
  .logo img { height: 42px; }
  header nav a { margin-left: 12px; }
}
