/* ilali labs — design system for landing + science pages only.
   Order, link-sample, and admin keep styles.css and are not affected. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.ilali-gate-pending body {
  visibility: hidden !important;
}

body.page-design {
  margin: 0;
  text-wrap: pretty;
  background: #f6f4ef;
  color: #1c2420;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.page-design h1,
body.page-design h2,
body.page-design h3 {
  text-wrap: balance;
}

body.page-design a {
  color: color-mix(in srgb, #2f8b70 88%, #0b1f18);
  text-decoration: none;
}

body.page-design a:hover {
  color: #205f4d;
}

body.page-design ::selection {
  background: rgba(47, 139, 112, 0.22);
}

/* Image slots (design placeholders / photos) */
.image-slot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, #ebe7dc 0%, #e2ddd0 55%, #d8d3c6 100%);
  color: #6f746c;
  border: 1px dashed rgba(28, 36, 32, 0.14);
}

.image-slot__label {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(28, 36, 32, 0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #1c2420;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  body.page-design > div > header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, #f6f4ef 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .menu-toggle {
    display: flex;
  }

  body.page-design .site-nav {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 8px 0 12px;
  }

  body.page-design .site-nav.is-open {
    display: flex !important;
  }

  body.page-design .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(28, 36, 32, 0.08);
  }

  body.page-design .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 8px;
    justify-content: center;
  }
}

.why-matters,
.band-sage {
  background: color-mix(in srgb, var(--accent, #2f8b70) 5%, var(--ground, #f6f4ef));
  border-top: 1px solid rgba(28, 36, 32, 0.08);
  border-bottom: 1px solid rgba(28, 36, 32, 0.08);
}

.why-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.why-pull {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(28, 36, 32, 0.1);
  border-radius: var(--radius, 16px);
}

@media (min-width: 800px) {
  .why-split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .why-pull {
    padding: 0 0 0 34px;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(28, 36, 32, 0.14);
    border-radius: 0;
  }
}

.how-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.how-kit {
  order: -1;
}

.how-kit__img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: auto;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

.how-step__n {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2f8b70) 14%, #fff);
  color: color-mix(in srgb, var(--accent, #2f8b70) 88%, #0b1f18);
  font-family: var(--font-mono, "Space Mono", ui-monospace, monospace);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

@media (min-width: 720px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 36px;
  }
}

@media (min-width: 900px) {
  .how-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .how-kit {
    order: 0;
  }

  .how-kit__img {
    max-width: none;
  }
}

/* FAQ details polish if any browsers need it */
body.page-design details summary {
  cursor: pointer;
  list-style: none;
}

body.page-design details summary::-webkit-details-marker {
  display: none;
}
