/* Homepage Personalization V3: customizable advanced-speaking unit flow. */
.unit-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 54px;
  direction: rtl;
}

.unit-moment {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(94px, auto) 390px;
  align-self: stretch;
}

.unit-moment-copy {
  text-align: center;
}

.unit-moment-copy h3 {
  margin: 0;
  color: var(--purple-deep);
  font-family: "Heebo", "Assistant", sans-serif;
  font-size: 24px;
  line-height: 1.25;
}

.unit-moment-copy p {
  max-width: 330px;
  margin: 8px auto 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
}

.unit-flow-arrow {
  width: 54px;
  margin-bottom: 180px;
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.app-preview {
  display: flex;
  min-width: 0;
  height: 390px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 43, 76, 0.09);
  color: #14233f;
  font-family: "Assistant", Arial, sans-serif;
  text-align: left;
}

.app-preview-heading,
.app-preview-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-preview-heading {
  justify-content: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e8f0;
  color: var(--blue);
  font-size: 19px;
}

.app-preview-heading svg,
.app-preview-kicker svg {
  width: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.saved-details dl {
  margin: 7px 0 0;
}

.saved-details dl > div {
  display: grid;
  min-height: 55px;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e6ebf2;
}

.saved-details dt {
  color: #6d7b92;
  font-size: 14px;
  font-weight: 600;
}

.saved-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.app-preview-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #bcd2e8;
  border-radius: 10px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.app-preview-action svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-preview-kicker {
  color: #607087;
  font-size: 16px;
  font-weight: 700;
}

.app-preview h4 {
  margin: 8px 0 0;
  color: #102241;
  font-family: "Assistant", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.25;
}

.made-status {
  align-self: flex-start;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #eaf5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.speaker-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 13px 0 15px;
}

.speaker-preview figure {
  position: relative;
  overflow: hidden;
  height: 148px;
  margin: 0;
  border-radius: 10px;
  background: #f4eee6;
}

.speaker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.sound-bars {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  height: 23px;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.sound-bars i {
  width: 3px;
  border-radius: 99px;
  background: var(--purple);
}

.sound-bars i:nth-child(1) { height: 7px; }

.sound-bars i:nth-child(2) { height: 15px; }

.sound-bars i:nth-child(3) { height: 20px; }

.sound-bars i:nth-child(4) { height: 11px; }

.speaking-preview > p {
  margin: 14px 0;
  color: #33435e;
  font-size: 15px;
  line-height: 1.55;
}

.speaking-preview > .speaking-tip {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #b9dfc9;
  border-radius: 8px;
  background: #edf9f1;
  color: #285b3c;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.speaking-tip strong {
  color: #174a2d;
}

.personalized-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  color: #596a82;
  font-size: 14px;
}

.personalized-disclosure b {
  color: var(--blue);
}

.app-preview-action-primary {
  min-height: 55px;
  margin-top: 12px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #126bb0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 119, 191, 0.18);
}

.unit-flow-caption {
  margin: 42px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.personalization .scope-note {
  margin: 14px auto 0;
  padding-top: 0;
  border-top: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

@media (max-width: 1200px) {

  .unit-flow {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 10px;
  }

  .unit-flow-arrow {
    width: 40px;
  }

  .app-preview {
    padding: 16px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .speaking-preview {
    padding: 14px;
  }

  .speaking-preview > p:not(.speaking-tip) {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .speaking-preview > .speaking-tip {
    margin-bottom: 8px;
    padding: 8px;
  }

  .speaking-preview .personalized-disclosure {
    padding: 8px 10px;
  }

  .speaking-preview .app-preview-action-primary {
    min-height: 50px;
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .unit-flow {
    display: flex;
    max-width: 560px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-inline: auto;
  }

  .unit-moment {
    grid-template-rows: auto auto;
  }

  .unit-moment-copy p {
    max-width: none;
  }

  .unit-flow-arrow {
    align-self: center;
    margin: -2px 0;
    transform: rotate(-90deg);
  }

  .app-preview {
    height: auto;
    min-height: 390px;
  }
}

@media (max-width: 760px) {

  .unit-flow {
    margin-top: 40px;
  }

  .unit-moment-copy h3 {
    font-size: 23px;
  }

  .unit-moment-copy p {
    font-size: 17px;
  }

  .app-preview {
    min-height: 370px;
    padding: 17px;
  }

  .unit-flow-caption {
    margin-top: 34px;
    font-size: 18px;
  }

  .personalization .scope-note {
    align-items: flex-start;
    font-size: 15px;
    text-align: right;
  }
}

@media (max-width: 420px) {

  .speaker-preview figure {
    height: 136px;
  }
}
