/* MarketBot site styles — built against the approved brand palette
   (company/brand/board/Main.dc.html). Pairing rules from that board:
   Cineraria = loudest single accent, never more than one per screen.
   Purple Tansy = dark anchor for headers/high-contrast panels.
   Ivory = page background, Dove = card fill on top of it.
   Harbor gray = secondary text, Crow black = headlines.
   Flamingo pop = CTA/stat accent, Marigold spark = highlight accent
   (never both accents at full saturation together). */

:root {
  --cineraria: #6A2FC9;
  --purple-tansy: #3B1F5C;
  --ivory: #FBF7F2;
  --dove: #D8DBE2;
  --harbor-gray: #4F5968;
  --crow-black: #17141F;
  --flamingo-pop: #F2437E;
  --marigold-spark: #FFB330;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ivory);
  color: var(--crow-black);
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--cineraria);
}
a:hover {
  color: var(--purple-tansy);
}

h1, h2, h3 {
  color: var(--crow-black);
  line-height: 1.25;
  margin-top: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

p {
  color: var(--crow-black);
}

.text-secondary {
  color: var(--harbor-gray);
}

/* ---- Header / nav ---- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--dove);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--crow-black);
  font-weight: 600;
  font-size: 15px;
}

nav.site-nav a:hover {
  color: var(--cineraria);
}

nav.site-nav a.current {
  color: var(--cineraria);
  border-bottom: 2px solid var(--cineraria);
  padding-bottom: 4px;
}

nav.site-nav a.btn-primary {
  color: #FFFFFF;
}

nav.site-nav a.btn-primary:hover {
  color: #FFFFFF;
}

nav.site-nav a.btn-primary.current,
nav.site-nav a.btn-primary.current:hover {
  color: var(--cineraria);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--crow-black);
  border-radius: 2px;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }
  nav.site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    padding: 14px 0 6px;
  }
  nav.site-nav.open {
    display: flex;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--flamingo-pop);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #d6316a;
  color: #FFFFFF;
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 64px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--flamingo-pop);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 42px;
  max-width: 780px;
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 19px;
  color: var(--harbor-gray);
  max-width: 620px;
  margin-bottom: 28px;
}

/* Hero sections with a background photo, tinted purple to match the palette */
.hero-photo {
  background-size: cover;
  background-position: center;
}

.hero-photo h1 {
  color: #FFFFFF;
}

.hero-photo p.lede {
  color: rgba(255, 255, 255, 0.85);
}

.hero-photo .hero-visual img {
  box-shadow: 0 8px 28px rgba(23, 20, 31, 0.45);
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1 1 480px;
}

.hero-visual {
  flex: 0 0 240px;
  max-width: 240px;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(23,20,31,0.12);
  display: block;
}

/* Cluster of all five bot mascots, used on the homepage cover */
.hero-visual-grid {
  flex: 0 0 260px;
  max-width: 260px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-visual-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(23, 20, 31, 0.45);
  display: block;
  animation: mascot-enter 0.6s ease-out both;
}

.hero-visual-grid img:nth-child(5) {
  grid-column: 1 / span 2;
  width: 47%;
  margin: 0 auto;
}

.hero-visual-grid img:nth-child(1) { animation-delay: 0.05s; }
.hero-visual-grid img:nth-child(2) { animation-delay: 0.15s; }
.hero-visual-grid img:nth-child(3) { animation-delay: 0.25s; }
.hero-visual-grid img:nth-child(4) { animation-delay: 0.35s; }
.hero-visual-grid img:nth-child(5) { animation-delay: 0.45s; }

@keyframes mascot-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-grid img {
    animation: none;
  }
}

@media (max-width: 780px) {
  .hero-flex {
    flex-direction: column;
  }
  .hero-visual {
    max-width: 180px;
  }
  .hero-visual-grid {
    max-width: 280px;
    gap: 10px;
  }
}

/* ---- Sections ---- */
section {
  padding: 56px 0;
}

section.alt {
  background: #FFFFFF;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flamingo-pop);
  margin-bottom: 10px;
}

.section-heading {
  font-size: 28px;
  margin-bottom: 32px;
  max-width: 700px;
}

/* ---- Cards / grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Crew grid: 5 mascot cards on About. Stays 2-column on phones rather than
   stacking to a single long column. */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

@media (max-width: 480px) {
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.card {
  background: var(--dove);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(23,20,31,0.12);
}

/* Two-column grids that must stack on narrow screens */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--harbor-gray);
  margin-bottom: 0;
}

.card .bot-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--flamingo-pop);
  margin-bottom: 8px;
}

/* Crew cards */
.crew-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(23,20,31,0.12);
  padding: 12px 12px 18px;
  text-align: center;
}

.crew-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
}

.crew-card .name {
  font-weight: 700;
  font-size: 15px;
  color: var(--crow-black);
}

.crew-card .bot-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--flamingo-pop);
  margin: 3px 0 8px;
}

.crew-card .background {
  font-size: 13px;
  color: var(--harbor-gray);
  margin: 0;
}

/* ---- Dark panel (Purple Tansy anchor) ---- */
.panel-dark {
  background: var(--purple-tansy);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
}

.panel-dark p, .panel-dark h2, .panel-dark h3 {
  color: #FFFFFF;
}

.trust-line {
  font-size: 13px;
  color: var(--dove);
  margin-top: 16px;
}

/* Lighter accent panel — an alternative to panel-dark so pages
   don't repeat the same full dark block more than once. */
.panel-accent {
  background: #FFFFFF;
  border-left: 4px solid var(--cineraria);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(23,20,31,0.12);
}

.panel-accent h2 {
  color: var(--crow-black);
}

.panel-accent p {
  color: var(--harbor-gray);
  margin-bottom: 0;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.flow .step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  flex: 1 1 160px;
}

.flow .step .who {
  font-weight: 700;
  font-size: 14px;
}

.flow .step .what {
  font-size: 13px;
  color: var(--dove);
}

.flow .arrow {
  color: var(--marigold-spark);
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .flow {
    flex-direction: column;
    align-items: stretch;
  }
  .flow .step {
    flex: 1 1 auto;
  }
  .flow .arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

/* ---- Stat row ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat {
  background: var(--dove);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.stat .number {
  font-size: 26px;
  font-weight: 700;
  color: var(--flamingo-pop);
}

.stat .label {
  font-size: 13px;
  color: var(--harbor-gray);
  margin-top: 4px;
}

/* ---- TODO markers ---- */
.todo {
  display: inline-block;
  background: #FFF3DA;
  border: 1px dashed var(--marigold-spark);
  color: #8a5a00;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--dove);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--harbor-gray);
  margin: 0;
}

/* ---- Form ---- */
.contact-form {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(23,20,31,0.12);
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--dove);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--crow-black);
  background: var(--ivory);
}

.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form .hint {
  font-size: 12.5px;
  color: var(--harbor-gray);
  margin-top: 4px;
}

.contact-form button {
  margin-top: 22px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--purple-tansy);
  color: #FFFFFF;
  padding: 36px 0;
  margin-top: 40px;
}

.site-footer a {
  color: #FFFFFF;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .fine-print {
  font-size: 13px;
  color: #D8DBE2;
}

.site-footer nav a {
  margin-left: 18px;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .site-footer nav a { margin-left: 0; margin-right: 16px; }
}
