/* BIMSYNQ site styles
   White canvas, Manrope headings with Inter body text, cobalt blue pill
   actions with a teal secondary, soft rounded cards. */

:root {
  --white: #ffffff;
  --grey-50: #f8f9fa;
  --grey-100: #f1f3f4;
  --grey-300: #dadce0;
  --grey-700: #5f6368;
  --grey-900: #202124;
  --text: #3c4043;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-50: #e9eefc;
  --blue-tint: #f3f6fd;
  --green-50: #e6f5f3;
  --green-700: #0f766e;
  --yellow-50: #fef7e0;
  --red-50: #fce8e6;
  --purple-50: #f3e8fd;
  --teal: #0d9488;
  --teal-50: #e6f5f3;

  --font-display: "Manrope", "Inter", Arial, sans-serif;
  --font-body: "Inter", "Manrope", Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: 24px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--grey-900);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--grey-900);
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 54ch;
}

.centered {
  text-align: center;
}

.centered .lede {
  margin-left: auto;
  margin-right: auto;
}

.centered h2 + .lede {
  margin-top: 16px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--grey-300);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-tint);
  border-color: var(--grey-300);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.centered .btn-row {
  justify-content: center;
}

.btn-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--grey-700);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--grey-900);
}

.brand svg {
  width: 30px;
  height: 30px;
}

.brand-accent {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--grey-900);
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav .btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 20px;
}

.site-nav .btn,
.site-nav .btn:hover,
.site-nav .btn[aria-current="page"] {
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  padding: 80px 0 72px;
}

.hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  margin-top: 20px;
}

.tiles {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.tile-art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  padding: 6%;
  overflow: hidden;
}

.tile-art svg {
  width: 100%;
  height: auto;
}

.tile-blue {
  background: var(--blue-50);
}

.tile-green {
  background: var(--green-50);
}

.tile-yellow {
  background: var(--yellow-50);
}

.tile-red {
  background: var(--red-50);
}

.tile-purple {
  background: var(--purple-50);
}

.tiles p {
  margin: 20px 12px 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--grey-900);
}

.art-line {
  fill: none;
  stroke: var(--grey-900);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-fill {
  fill: var(--white);
  stroke: var(--grey-900);
  stroke-width: 3;
  stroke-linejoin: round;
}

.art-accent {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-accent-fill {
  fill: var(--blue);
}

.art-dot {
  fill: var(--grey-900);
}

/* ---------- sections ---------- */

.section {
  padding: 88px 0;
  scroll-margin-top: 64px;
}

.section-tint {
  background: var(--blue-tint);
}

.section-grey {
  background: var(--grey-50);
}

/* steps: three soft cards, numbered because they are a sequence */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  padding: 56px 32px 48px;
  text-align: center;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 28px;
}

.steps h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.steps p {
  color: var(--text);
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

/* service cards: outlined, like plan cards */

.cards {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.card .card-sub {
  margin-top: 6px;
  color: var(--grey-700);
  font-size: 0.95rem;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--grey-300);
}

.card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.card li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.cards-note {
  margin: 28px auto 0;
  max-width: 64ch;
  text-align: center;
  color: var(--grey-700);
  font-size: 0.95rem;
}

/* split: text with accordion on one side, illustration on the other */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split .lede {
  margin-top: 16px;
}

.split-art {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--grey-300);
}

.section-tint .split-art,
.section-grey .split-art {
  border-color: transparent;
}

.split-art svg {
  width: 100%;
  height: auto;
}

.accordion {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}

.accordion details {
  background: var(--blue-50);
  border-radius: var(--radius-sm);
}

.accordion.accordion-grey details {
  background: var(--grey-100);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--grey-900);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--grey-900);
  border-bottom: 2px solid var(--grey-900);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 160ms ease;
}

.accordion details[open] summary::after {
  transform: rotate(225deg);
}

.accordion .acc-body {
  padding: 0 24px 22px;
  color: var(--text);
}

/* dashboard and log drawings */

.dash-frame {
  fill: var(--white);
  stroke: var(--grey-300);
  stroke-width: 1.5;
}

.dash-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  fill: var(--grey-900);
}

.dash-small {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--grey-700);
}

.dash-big {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  fill: var(--grey-900);
}

.dash-axis {
  stroke: var(--grey-300);
  stroke-width: 1;
}

.dash-bar {
  fill: var(--blue-50);
}

.dash-bar-hot {
  fill: var(--blue);
}

.dash-line {
  fill: none;
  stroke: var(--green-700);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-good {
  fill: var(--green-700);
}

.dash-open {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2;
}

.dash-check {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-track {
  fill: var(--blue-50);
}

.dash-pill-green {
  fill: var(--green-50);
}

.dash-pill-text-green {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  fill: var(--green-700);
}

.dash-pill-blue {
  fill: var(--blue-50);
}

.dash-pill-text-blue {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  fill: var(--blue);
}

/* who we work with: soft cards */

.people {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.people li {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  background: var(--white);
  text-align: left;
}

.people h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-300);
  /* Two title lines plus padding, so the divider lines up across the row */
  min-height: calc(2 * 1.3em + 14px);
}

.people p {
  font-size: 0.95rem;
  color: var(--text);
}

.chips {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips li {
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--grey-900);
  background: var(--white);
}

/* faq */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.faq h2 {
  max-width: 12ch;
}

.faq-list {
  display: grid;
}

.faq-list details {
  border-bottom: 1px solid var(--grey-300);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--grey-900);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--grey-900);
  border-bottom: 2px solid var(--grey-900);
  transform: rotate(45deg);
  margin: 0 8px 4px 0;
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list .acc-body {
  padding: 0 4px 24px;
  max-width: 60ch;
}

/* closing panel */

.panel {
  background: var(--grey-50);
  border-radius: 28px;
  padding: 72px 32px;
  text-align: center;
}

.panel .lede {
  margin: 16px auto 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--grey-300);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--grey-700);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--grey-700);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.site-footer .copy {
  margin-left: auto;
}

/* ---------- contact page ---------- */

.contact-hero {
  padding: 80px 0 48px;
}

.contact-hero .lede {
  margin-top: 20px;
}

.contact-email {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  overflow-wrap: anywhere;
}

.contact-email a {
  color: var(--grey-900);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.contact-card.is-tint {
  background: var(--blue-50);
}

.contact-card.is-outline {
  border: 1px solid var(--grey-300);
}

.contact-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-card > p {
  color: var(--grey-700);
}

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checklist svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.checklist strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--grey-900);
}

.checklist span {
  font-size: 0.95rem;
  color: var(--text);
}

.next-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: next;
  display: grid;
  gap: 18px;
}

.next-steps li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.next-steps li::before {
  content: counter(next);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
}

.next-steps strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--grey-900);
}

.next-steps span {
  font-size: 0.95rem;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .accordion summary::after,
  .faq-list summary::after {
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards,
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-art {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq h2 {
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .site-header .wrap {
    gap: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav .nav-text {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .steps,
  .cards,
  .people {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding: 40px 24px 36px;
  }

  .split-art {
    padding: 20px;
  }

  .panel {
    padding: 56px 20px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .site-footer .copy {
    margin-left: 0;
  }

  .contact-card {
    padding: 32px 24px;
  }
}

/* Utility classes replacing former inline styles (kept out of HTML so the CSP can forbid inline styles). */
.btn-row-center { justify-content: center; }
.section-tight-top { padding-top: 24px; }
