/* Innovizea LLC — shared styles.

   The shell is deliberately NEUTRAL. It used to be Card Shark's felt-green and gold
   (lifted from CardShark21/components/Theme.js), which was right when the site was only
   the card games and reads wrong under a Salesforce consulting pitch.

   Each product keeps its own real colour instead, carried on a --p-accent set per card
   or per page, so a product still looks like itself:
     Card Shark  felt green + gold   (Theme.js)
     Thunk       sky -> apricot      (prototype/src/styles.css page gradient)
     Choptick    copper #c2895f      (Steel & Copper, public/css/app.css)
   Add a product = add a .p-<name> block near the bottom, nothing else. */
:root {
  --ink: #0E1116;
  --ink-2: #151A21;
  --text: #EDF1F5;
  --dim: #93A0AE;
  --accent: #4EA1FF;
  --accent-dim: #2E7FD6;
  --border: rgba(255, 255, 255, 0.11);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hi: rgba(255, 255, 255, 0.06);
  --max: 1080px;

  /* Per-product accents. */
  --cs-accent: #F4C64D;
  --cs-wash: linear-gradient(135deg, #12694c, #072b1f);
  --tk-accent: #8E7BFF;
  --tk-wash: linear-gradient(135deg, #7fd7fb, #bfaaff 55%, #ffce93);
  --ck-accent: #C2895F;
  --ck-wash: linear-gradient(135deg, #2b3138, #1a1d22);
  --sf-accent: #4EA1FF;
  --sf-wash: linear-gradient(135deg, #16324f, #0d1c2e);
  /* Rocket Scooter Race — its own cosmic palette, from race/index.html's :root. */
  --rs-accent: #FFCC33;
  --rs-wash: linear-gradient(135deg, #1a0b3a, #06061a);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }

/* ---------- header ---------- */
header {
  padding: 26px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
  text-decoration: none;
}
.brand::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 5px;
  vertical-align: 2px;
}
nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 20px;
}
nav a:hover, nav a:focus-visible { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 30px; }
.hero.center { text-align: center; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
  margin: 0 0 14px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.6vw, 50px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.6px;
  max-width: 17ch;
}
.hero.center h1 { max-width: none; margin-inline: auto; }
.hero h1 .accent { color: var(--accent); }
.hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--dim);
  font-size: clamp(16px, 2.3vw, 19px);
}
.hero.center p { margin-inline: auto; }

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #06121F;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .16s ease, transform .16s ease;
}
.cta:hover, .cta:focus-visible { background: #6FB4FF; transform: translateY(-1px); }
.cta.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  margin-left: 10px;
}
.cta.ghost:hover, .cta.ghost:focus-visible { background: var(--panel-hi); }

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero.center .badges { justify-content: center; }
.badge {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.badge strong { color: var(--text); font-weight: 800; }

/* ---------- section heading ---------- */
h2.section {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
  margin: 52px 0 16px;
}
h2.section .note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: rgba(147, 160, 174, 0.7);
  margin-left: 10px;
}

/* ---------- product cards ---------- */
.products {
  display: grid;
  /* Two columns on desktop, so four products land as a clean 2x2 rather than a row
     of three plus an orphan. min() keeps auto-fit from overflowing a 390px phone —
     a bare minmax(400px, 1fr) is wider than the viewport and forces a scrollbar. */
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.product:hover, .product:focus-visible {
  border-color: var(--p-accent, var(--accent));
  background: var(--panel-hi);
  transform: translateY(-2px);
}
.product .rail {
  height: 4px;
  background: var(--p-wash, var(--accent));
}
.product .body { padding: 18px; display: flex; flex-direction: column; height: 100%; }
.product .top { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.product img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .3);
}
/* Consulting has no app icon. Without a stand-in its card header starts at the card
   edge while every other card's starts 59px in, and the row reads as misaligned. */
.product .glyph {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: var(--p-wash, var(--accent));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-accent, var(--accent));
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.product .kind {
  display: block;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--p-accent, var(--accent));
  margin-bottom: 2px;
}
.product .name { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.product .desc { color: var(--dim); font-size: 14.5px; margin: 0 0 14px; }
.product .more {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--p-accent, var(--accent));
}
.product .more::after { content: " →"; }

.p-cardshark { --p-accent: var(--cs-accent); --p-wash: var(--cs-wash); }
.p-thunk     { --p-accent: var(--tk-accent); --p-wash: var(--tk-wash); }
.p-choptick  { --p-accent: var(--ck-accent); --p-wash: var(--ck-wash); }
.p-salesforce{ --p-accent: var(--sf-accent); --p-wash: var(--sf-wash); }
.p-race      { --p-accent: var(--rs-accent); --p-wash: var(--rs-wash); }

/* Rocket Scooter Race is a browser toy, not a store app — it spans the grid so the
   difference is visible before you read the card. Also rescues the layout: five cards
   in two columns would otherwise leave an orphan.
   The span must sit on the <li> — that is the grid item; the .product anchor inside it
   is not, so grid-column there does nothing. */
.products > li.wide { grid-column: 1 / -1; }
.product.wide .desc { max-width: 68ch; }

/* ---------- service list (consulting) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.service {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}
.service h3 { margin: 0 0 7px; font-size: 16px; font-weight: 800; }
.service p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ---------- game grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.game a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.game a:hover, .game a:focus-visible {
  border-color: var(--cs-accent);
  background: var(--panel-hi);
  transform: translateY(-2px);
}
.game img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .3);
}
.game .meta { min-width: 0; }
.game .name { display: block; font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.game .tag { display: block; color: var(--dim); font-size: 13.5px; line-height: 1.45; }

/* ---------- prose (privacy / support) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 8px 0 20px; }
.prose h1 { font-size: clamp(26px, 5vw, 36px); margin: 24px 0 6px; font-weight: 900; }
.prose h2 { font-size: 19px; margin: 32px 0 8px; color: var(--accent); font-weight: 800; }
.prose p, .prose li { color: #CBD5DE; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--accent); }
.prose .updated { color: var(--dim); font-size: 14px; margin-top: 0; }
.prose strong { color: var(--text); }
.callout {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer {
  margin-top: 60px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .product:hover, .game a:hover, .cta:hover { transform: none; }
}
