﻿/* AI Solutions page (Views/Service/AI.cshtml). It shares its layout and its cyan palette with the Software Solutions
   page, its phone layout too (.ssw-page--phone), so it loads service-page.css first; this file adds the banner's
   sibling line, the roadmap with the demo and the price, and the languages' flags. */

/* Banner: the line that sets AI Solutions against Custom Software, under the promise */
.ais-hero__vs {
  margin: 1.2rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #4a6370;
}
/* The sibling line's name in the brand's cyan */
.ais-hero__vs a {
  font-weight: 700;
  color: #00c2cb;
  text-decoration: none;
  transition: color 0.2s;
}
.ais-hero__vs a:hover,
.ais-hero__vs a:focus-visible {
  color: #0e2a38;
}

/* ---------- From demo to operation (Views/Service/AI.cshtml, #roadmap): four steps on one line, each with who does what
   in it (the cells of Working together, responsibility.css) and what it delivers; Start here (#start): the demo and the
   price ---------- */
.ais-road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.2rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ais-road::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  right: 12%;
  border-top: 2px dashed #00c2cb;
}
.ais-road__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #3e5662;
}
.ais-road__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: #00c2cb;
  box-shadow: 0 0 0 0.6rem #ffffff;
  font-size: var(--fs-body);
  font-weight: 800;
  color: #ffffff;
}
.ais-road__chip {
  margin-bottom: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fedd59;
  font-size: var(--fs-label);
  font-weight: 800;
  color: #0e2a38;
}
.ais-road__name {
  margin-bottom: 1.2rem;
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.3;
  color: #0e2a38;
}
/* Who does what in the step: a cell of Working together, the full width of its column */
.ais-road__who {
  align-self: stretch;
}
.ais-road__out {
  margin-top: 1.2rem;
  font-size: var(--fs-small);
}
/* The steps share their rows: names, the cells' titles, their details and the deliverables each start at one height in
   every column (a step spans six rows of the list, its cell two of them) */
@media (min-width: 768px) {
  .ais-road__step {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    justify-items: start;
  }
  .ais-road__who {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    justify-self: stretch;
  }
}
.ais-start {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}
/* The demo: the step to start with, framed in cyan */
.ais-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.4rem 2.8rem;
  border: 2px solid #00c2cb;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 2rem 4rem -3.2rem rgba(0, 194, 203, 0.8);
}
.ais-demo__kicker {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00c2cb;
}
html[lang=ja] .ais-demo__kicker {
  letter-spacing: 0.04em;
}
.ais-demo__name {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.25;
  color: #0e2a38;
}
.ais-demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ais-demo__chips span {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: #fedd59;
  font-size: var(--fs-small);
  font-weight: 800;
  color: #0e2a38;
}
.ais-demo__text,
.ais-demo__cond {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #0e2a38;
}
.ais-demo__cond {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--fs-small);
  color: #3e5662;
}
.ais-demo__cond svg {
  flex: none;
  margin-top: 0.3rem;
  color: #00c2cb;
}
.ais-demo .ssw-btn {
  margin-top: 0.6rem;
}
/* The monthly price of a live workflow */
.ais-road__price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 2.4rem 2.8rem;
  border: 1px solid #d4eff1;
  border-radius: 2rem;
  background: #ffffff;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #3e5662;
}
.ais-road__price strong {
  font-size: var(--fs-title);
  line-height: 1.35;
  color: #0e2a38;
}
.ais-road__price-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: #00c2cb;
  color: #ffffff;
}
/* A document language's flag (#accuracy) */
.ais-flag {
  width: 2rem;
  height: 1.4rem;
  margin-right: 0.8rem;
  border-radius: 0.3rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(14, 42, 56, 0.12);
  vertical-align: -0.2em;
}
@media (max-width: 1024px) {
  .ais-road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3.2rem;
  }
  .ais-road::before {
    display: none;
  }
  .ais-start {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Phones: the steps run down a wire */
@media (max-width: 767px) {
  .ais-road {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.4rem;
  }
  .ais-road::before {
    display: block;
    top: 1.8rem;
    bottom: 1.8rem;
    left: 1.7rem;
    right: auto;
    border-top: 0;
    border-left: 2px dashed #00c2cb;
  }
  .ais-road__step {
    padding-left: 5.2rem;
  }
  .ais-road__num {
    position: absolute;
    top: 0;
    left: 0;
  }
  /* The cells as on wider screens: their colour and the legend tell who does the step, no badge */
  .ais-road .resp-cell__head {
    display: flex;
  }
  .ais-road .resp-cell__head::before,
  .ais-road .resp-cell__who {
    display: none;
  }
  .ais-road .resp-cell__label {
    margin-top: 0;
    font-size: var(--fs-small);
  }
  .ais-start {
    gap: 1.4rem;
  }
  .ais-demo,
  .ais-road__price {
    padding: 2rem 1.6rem;
  }
  .ais-demo .ssw-btn {
    align-self: stretch;
    justify-content: center;
  }
}
