/* Fast Five Products company site stylesheet — fleet web skeleton DNA
   (template.firebase#57 §3) grown desktop-first for the brand/service site
   class (fastfiveproducts.web#1). Per-site knob: --accent. */

:root {
  --accent: #1E5B3C; /* FFP green — interim proposal, owner tunes at review (issue #1) */
  --text: #333;
  --body: #555;
  --subtle: #666;
  --faint: #999;
  --rule: #ddd;
  --band: #f4f7f5; /* alternating section band, green-tinted near-white */
  --code-bg: #14301f;
  --code-text: #d9e8de;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* desktop-grown content column — wider than the 720px app-site column */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* masthead: top wordmark linking home (subpages and 404; home's h1 IS the wordmark) */
header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

header .wordmark {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

header .wordmark:hover {
  text-decoration: underline;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

h2 {
  font-size: 26px;
  color: var(--accent);
  margin: 0 0 16px;
}

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

ol,
ul {
  line-height: 1.8;
  padding-left: 20px;
}

/* hero band on the landing page */
.hero {
  padding: 72px 0 56px;
}

.hero .tagline {
  font-size: 22px;
  margin: 0 0 16px;
}

.hero .lede {
  max-width: 46em;
}

.hero-links {
  margin-top: 28px;
}

.chip {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 18px;
  margin: 0 12px 12px 0;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--band);
}

/* full-width alternating sections */
section {
  padding: 48px 0;
}

/* a plain section directly after the hero shares its whitespace — without
   a band's color boundary the two paddings read as one oversized gap */
.hero + section:not(.band) {
  padding-top: 0;
}

section.band {
  background: var(--band);
}

/* subtitle line under an h1 */
.tagline {
  color: var(--subtle);
  font-size: 17px;
}

/* bold sub-label */
.subhead {
  font-weight: 600;
  margin: 20px 0 4px;
}

/* muted body copy */
.muted {
  color: var(--body);
}

/* two-column section layout (text + figure), single column on phones */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: start;
}

/* portfolio cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
}

.card .appicon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  display: block;
  margin-bottom: 12px;
}

.card h2 {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 6px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 10px;
}

.card .tech {
  color: var(--subtle);
  font-size: 14px;
}

.card .credit {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 0;
}

/* platforms & engines strip (work page) — one wide entry set apart from the
   app cards: an engine is a different kind of shipped thing than an app */
.enginestrip {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
}

.enginestrip h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.enginestrip .muted {
  max-width: 56em;
}

.enginestrip .credit {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 0;
}

/* screenshot segments */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.shots figure {
  margin: 0;
}

/* an explicit column pairing two short segments, so uneven figure heights
   don't open a row-track gap in the grid */
.shots .stackcol figure + figure {
  margin-top: 32px;
}

.shots img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: block;
}

.shots figcaption {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 10px;
}

/* two images side by side inside one figure (cross-platform pair) */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

/* stacked images inside one figure (bracket + its tab bar) */
.stackgap {
  margin-top: 10px;
}

/* code segment (real template source, styled as code — not an image) */
pre.schema {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.schemafig {
  margin: 0;
}

.schemafig figcaption {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 10px;
}

/* operators-bundle flow line */
.flow {
  color: var(--subtle);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* centered contact block */
.contact {
  text-align: center;
}

.contact h2 {
  color: var(--text);
}

.contact .primary {
  font-weight: 600;
}

/* shared site footer: nav + product pointers + copyright */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 14px;
}

footer .lookingfor {
  color: var(--subtle);
  font-size: 13px;
  margin: 10px 0 0;
}

footer .copyright {
  color: var(--faint);
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero .tagline {
    font-size: 19px;
  }
}
