/*
 * /breezeai (views/page/breezeai.php). Built on ui.css; only what is
 * particular to this page lives here.
 */

/* --- hero --- */

/* The arrow rides the end of the text, so it wraps with the last word. */
/* The live roster: the product family drawn as a team on shift. */
.breezeai-roster__title {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ui-muted);
}

.breezeai-roster__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 14px;

  & + & {
    border-top: 1px solid var(--ui-line);
  }
}

.breezeai-roster__text {
  display: grid;
  line-height: 1.4;

  strong {
    font-size: 1.0625rem;
  }

  span {
    font-size: 0.875rem;
    color: var(--ui-muted);
  }
}

.breezeai-roster__shift {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ui-positive);
}

.breezeai-roster__item:has(.breezeai-roster__status--build) .breezeai-roster__shift {
  color: var(--ui-brand-light);
}

.breezeai-roster__status--build {
  background: var(--ui-brand-light);
}

/* --- figures and the problem --- */

.breezeai-stats {
  padding-block: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-surface-alt);
}

/* --- products --- */

.breezeai-products {
  counter-reset: breezeai-product;
}

.breezeai-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-increment: breezeai-product;

  &::before {
    content: counter(breezeai-product, decimal-leading-zero);
    position: absolute;
    top: var(--ui-card-padding);
    right: var(--ui-card-padding);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--ui-muted);
  }
}

.breezeai-product__role {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ui-accent);
}

.breezeai-product__name {
  margin-top: -6px;
  font-family: var(--ui-font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.breezeai-product__tagline {
  font-weight: 500;
  line-height: 1.45;
}

.breezeai-product__compare {
  padding-top: 14px;
  border-top: 1px solid var(--ui-line);
  font-size: 0.9375rem;
  color: var(--ui-muted);

  span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-text);
  }
}

.breezeai-product__link {
  margin-top: auto;
  padding-top: 8px;
}

.breezeai-product--feature {
  border-color: var(--ui-surface);
}

/* --- the three stages --- */

.breezeai-flow {
  display: grid;
  gap: 40px;
  counter-reset: breezeai-stage;

  @container ui (width >= 900px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.breezeai-flow__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  --ui-card-padding: 24px;

  gap: 6px;
  counter-increment: breezeai-stage;

  h3::before {
    content: counter(breezeai-stage) ". ";
    color: var(--ui-accent);
  }

  /* The arrow to the next stage: down when stacked, across when side by side. */
  &:not(:last-child)::after {
    content: "\2193";
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% 6px;
    font-size: 1.25rem;
    line-height: 28px;
    color: var(--ui-brand);

    @container ui (width >= 900px) {
      content: "\2192";
      top: 50%;
      left: 100%;
      translate: 6px -50%;
    }
  }
}

.breezeai-flow__items {
  display: grid;
  gap: 10px;
  margin-top: 14px;

  li {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: var(--ui-radius);
    font-size: 0.9375rem;
    line-height: 1.5;
    background: var(--ui-surface);
  }

  strong {
    font-size: 1rem;
  }
}

.breezeai-flow__stage--result {
  border-color: var(--ui-surface);
  background: var(--ui-surface);

  .breezeai-flow__items li {
    background: var(--ui-ink-raised);
  }
}

.breezeai-flow__note {
  margin-top: 28px;
}

/* --- human review --- */

.breezeai-reviews {
  display: grid;

  > div {
    display: grid;
    gap: 4px;
    padding-block: 20px;
    border-top: 1px solid var(--ui-line);
  }

  dt {
    font-size: 1.125rem;
  }
}

/* --- conversations --- */

.breezeai-convo {
  --ui-card-padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breezeai-convo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breezeai-convo__channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ui-muted);
}

.breezeai-convo__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breezeai-convo__message {
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 12px 12px 12px 3px;
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--ui-surface);

  mark {
    padding: 0 4px;
    border-radius: 3px;
    color: inherit;
    background: var(--ui-tint);
    font-weight: 500;
  }
}

.breezeai-convo__message--reply {
  align-self: flex-end;
  border-color: var(--ui-brand);
  border-radius: 12px 12px 3px 12px;
  color: #fff;
  background: var(--ui-brand);

  .breezeai-convo__speaker {
    color: rgb(255 255 255 / 0.75);
  }

  mark {
    background: rgb(255 255 255 / 0.2);
  }
}

.breezeai-convo__speaker {
  display: block;
  font-size: 0.75rem;
  color: var(--ui-muted);
}

.breezeai-convo__outcome {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ui-line);
}

/* --- roles --- */

.breezeai-roles {
  tbody th {
    font-size: 1.0625rem;
  }
}

.breezeai-roles__product {
  color: var(--ui-accent);
  white-space: nowrap;
}

/* --- savings --- */

.breezeai-ledger {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--ui-radius-lg);

  caption {
    caption-side: top;
    padding-bottom: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
    color: var(--ui-accent);
  }

  tbody th {
    font-weight: 400;
  }

  tfoot :is(th, td) {
    padding-top: 18px;
    font-family: var(--ui-font-display);
    font-size: 1.5rem;
  }
}

.breezeai-ledger__price {
  color: var(--ui-brand-light);
}

.breezeai-ledger__result {
  font-family: var(--ui-font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.3;

  strong {
    font-weight: 400;
    color: var(--ui-brand-light);
  }
}

.breezeai-compare__card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.breezeai-compare__basis {
  margin-top: -8px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.breezeai-bar {
  display: grid;
  gap: 8px;

  p {
    font-size: 0.9375rem;
    font-weight: 500;
  }
}

.breezeai-compare__card--figure {
  align-content: center;
}

.breezeai-compare__figure {
  font-family: var(--ui-font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ui-accent);
}

/* --- offer --- */

.breezeai-offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.breezeai-offer__rates {
  margin-top: 4px;

  tbody th {
    font-weight: 400;
  }

  tfoot :is(th, td) {
    padding-block: 10px;
    font-size: 1rem;
  }

  tfoot tr:first-child :is(th, td) {
    padding-top: 18px;
    color: var(--ui-muted);
  }

  .breezeai-offer__saving :is(th, td) {
    color: var(--ui-brand-light);
  }

  /* The longest value in the column; left on one line it squeezes the
     service names into three on a phone. */
  .breezeai-offer__saving td {
    white-space: normal;
  }

  .breezeai-offer__total {
    th {
      font-size: 1.125rem;
    }

    td {
      font-family: var(--ui-font-display);
      font-size: 2.5rem;
      line-height: 1;
      color: var(--ui-brand-light);

      @container ui (width < 600px) {
        font-size: 1.875rem;
      }
    }

    small {
      font-family: var(--ui-font);
      font-size: 1rem;
    }
  }
}

.breezeai-offer__closing {
  font-weight: 500;
  color: var(--ui-brand-light);
}

.breezeai-claim {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--ui-radius-lg);
}

.breezeai-claim__title {
  font-family: var(--ui-font-display);
  font-size: 1.75rem;
  font-weight: 400;
}

.breezeai-claim__progress {
  display: grid;
  gap: 10px;
}

.breezeai-claim__count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;

  strong {
    color: var(--ui-brand);
  }
}

/* --- mission --- */

.breezeai-why {
  --ui-card-padding: clamp(24px, 4vw, 36px);

  display: grid;
  gap: 20px;

  ul {
    display: grid;
    gap: 16px;
  }
}

/* --- questions --- */

/* --- closing call to action --- */

.breezeai-cta__offer {
  font-size: 0.9375rem;
}
