/* Platform Features hub */
/* Hero and footer CTA come from /resources/index.css; this adds the feature
   groups and the "Go deeper" strip. */

.features {
  padding-bottom: 3.5rem;
  background: #F4F7FB;
  header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin-bottom: 1.25rem;
  }
  h2 {
    margin: 0;
    color: #091121;
    font-size: 1.75rem;
  }
  header p {
    margin: 0;
    color: #626E89;
  }
  > ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    @media (width < 64rem){ grid-template-columns: repeat(2, 1fr); }
    @media (width < 36rem){ grid-template-columns: 1fr; }
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  a {
    display: flex;
    flex-flow: column;
    height: 100%;
    overflow: hidden;
    color: #29303E;
    text-decoration: none;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 0 0 1px rgb(18 50 75 / 5%), 0 4px 20px rgb(18 50 75 / 5%);
    transition: transform .25s ease, box-shadow .25s ease;
    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 0 0 1px rgb(18 50 75 / 5%), 0 12px 32px rgb(18 50 75 / 12%);
    }
    @media (prefers-reduced-motion: reduce){
      &:hover { transform: none; }
    }
  }
  .copy {
    display: flex;
    flex-flow: column;
    gap: .5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    > b {
      color: #091121;
      font-size: 1.35rem;
      &::after {
        content: " →";
        color: var(--color);
      }
    }
  }
}

/* Illustrations: a small version of each feature page's hero, sitting on the
   card's bottom edge over a soft glow in the feature's accent */
.thumb {
  --tint: color-mix(in srgb, var(--color) 14%, white);
  --line: color-mix(in srgb, var(--color) 45%, white);
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  align-items: center;
  gap: .6rem;
  height: 11rem;
  margin-top: auto;
  padding: 1rem 1.25rem 0;
  overflow: hidden;
  font-size: .72rem;
  line-height: 1.35;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, var(--tint), white);
  p { margin: 0; }
  ul { padding: 0; margin: 0; list-style: none; }
  b { color: #091121; }
}
.mini {
  display: flex;
  flex-flow: column;
  gap: .5rem;
  width: 100%;
  max-width: 15rem;
  box-sizing: border-box;
  padding: .8rem .9rem;
  background: white;
  border-radius: .8rem .8rem 0 0;
  box-shadow: 0 -.25rem 1.5rem rgb(18 50 75 / 10%), 0 0 0 1px rgb(18 50 75 / 5%);
}
.bars, .stack {
  display: flex;
  align-items: flex-end;
  gap: 5%;
  height: 4.5rem;
  li { flex: 1; }
}
.bars li {
  height: calc(var(--v) * 1%);
  background: linear-gradient(var(--color), var(--line));
  border-radius: 2px 2px 0 0;
}
.stack li {
  display: flex;
  flex-flow: column-reverse;
  height: 100%;
  i {
    display: block;
    height: calc(var(--v) * 1%);
    background: var(--color);
    &.light { background: var(--line); }
    &.neg { background: #F59E8B; }
  }
}
.bubble {
  align-self: flex-end;
  padding: .45rem .7rem;
  color: white;
  background: var(--color);
  border-radius: .8rem .8rem .2rem .8rem;
}
.chip {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  padding: .3rem .6rem;
  color: var(--color);
  background: white;
  border-radius: 10rem;
  box-shadow: 0 .25rem 1rem rgb(18 50 75 / 12%);
  font-weight: 600;
  rotate: 3deg;
}

.thumb-dashboards .board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F4F7FB;
  .tile {
    display: flex;
    flex-flow: column;
    padding: .45rem .6rem;
    background: white;
    border-radius: .5rem;
    span { color: #626E89; }
    b { font-size: .9rem; }
  }
  .wide {
    grid-column: 1 / -1;
    height: 3rem;
    padding: .45rem .6rem 0;
    background: white;
    border-radius: .5rem;
  }
}

.thumb-benchmarks .rows {
  gap: .4rem;
  p {
    display: grid;
    grid: auto / 4.5rem 1fr;
    align-items: center;
    gap: .5rem;
  }
  span { color: #626E89; }
  i {
    height: .5rem;
    width: calc(var(--v) * 1%);
    background: #DBE3EB;
    border-radius: 1rem;
  }
  .you {
    span { color: #091121; font-weight: 700; }
    i { background: var(--color); }
  }
}

.thumb-forecasting svg {
  display: block;
  width: 100%;
  height: 4.5rem;
  overflow: visible;
  polyline {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
  .history { stroke: #12324B; }
  .base { stroke: #B1C3CF; stroke-dasharray: 4 4; }
  .what-if { stroke: var(--color); stroke-dasharray: 4 4; }
}

.thumb-ai {
  .bubble { margin-right: 1.5rem; }
  .hbars {
    display: flex;
    flex-flow: column;
    gap: .25rem;
    li {
      width: var(--v);
      height: .45rem;
      background: var(--line);
      border-radius: 1rem;
      &:first-child { background: var(--color); }
    }
  }
}

.thumb-crm .kanban {
  display: grid;
  grid: auto / repeat(3, 1fr);
  gap: .4rem;
  max-width: 16rem;
  background: #F4F7FB;
  > div {
    display: flex;
    flex-flow: column;
    gap: .3rem;
    min-width: 0;
  }
  span { color: #626E89; font-weight: 600; }
  p {
    display: flex;
    flex-flow: column;
    padding: .35rem .45rem;
    background: white;
    border-left: 2px solid var(--color);
    border-radius: .35rem;
  }
}

.thumb-destinations .flow {
  display: grid;
  grid: auto / 1fr auto 1fr;
  align-items: center;
  gap: .9rem;
  width: 100%;
  margin-bottom: 1.5rem;
  ul {
    display: flex;
    flex-flow: column;
    gap: .3rem;
  }
  li {
    padding: .3rem .5rem;
    background: white;
    border-radius: .4rem;
    box-shadow: 0 0 0 1px rgb(18 50 75 / 8%);
    text-align: center;
    font-weight: 600;
  }
  .core {
    position: relative;
    padding: 1.1rem .7rem;
    color: white;
    background: #13283F;
    border-radius: .7rem;
    font-weight: 700;
    &::before, &::after {
      content: "→";
      position: absolute;
      top: 50%;
      translate: 0 -50%;
      color: var(--color);
      font-size: .9rem;
    }
    &::before { left: -.8rem; }
    &::after { right: -.8rem; }
  }
}

.thumb-mcp {
  .clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    li {
      padding: .25rem .6rem;
      background: white;
      border: 1px solid #C8D3DE;
      border-radius: 10rem;
      font-weight: 600;
    }
  }
  .dark {
    color: #D0DBF5;
    background: #0E202E;
    b { color: #82C3FF; }
  }
}

.thumb-mobile .phone {
  display: flex;
  flex-flow: column;
  gap: .5rem;
  width: 10rem;
  height: 9.75rem;
  box-sizing: border-box;
  padding: 1.5rem .6rem 0;
  position: relative;
  background: white;
  border: 5px solid #0E202E;
  border-bottom: none;
  border-radius: 1.6rem 1.6rem 0 0;
  &::before {
    content: "";
    position: absolute;
    top: .4rem;
    left: 50%;
    width: 3rem;
    height: .7rem;
    translate: -50% 0;
    background: #0E202E;
    border-radius: 1rem;
  }
  .widget {
    display: flex;
    flex-flow: column;
    padding: .5rem .6rem;
    background: var(--tint);
    border-radius: .7rem;
    span { color: #626E89; font-weight: 600; }
    b { font-size: .95rem; }
    em { color: #149A57; font-style: normal; font-weight: 600; }
  }
}

.thumb-api .code {
  gap: .2rem;
  max-width: 16rem;
  color: #D0DBF5;
  background: #0E202E;
  font: .7rem/1.5 "Noto Sans Mono", monospace;
  white-space: nowrap;
  .verb { color: #FDBA8C; font-weight: 700; }
  .key { color: #82C3FF; }
  .str { color: #8FD9B0; }
  .num { color: #FDBA8C; }
  .gap { margin-top: .4rem; }
}

#more {
  padding-block: 3rem 6rem;
  h2 {
    margin: 0 0 1.25rem;
    color: #091121;
    font-size: 1.5rem;
  }
  ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    @media (width < 64rem){ grid-template-columns: repeat(2, 1fr); }
    @media (width < 36rem){ grid-template-columns: 1fr; }
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  a {
    display: flex;
    flex-flow: column;
    gap: .3rem;
    height: 100%;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    color: #29303E;
    text-decoration: none;
    background: #F4F7FB;
    border-radius: 1rem;
    transition: box-shadow .2s;
    &:hover { box-shadow: 0 8px 24px rgb(18 50 75 / 10%); }
  }
  b {
    color: #091121;
    font-weight: 700;
  }
  span { font-size: .95rem; }
}
